/* 기본 스타일 */
body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 20px;
}

/* 섹션 스타일 */
.section {
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    min-height: 80vh;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px;
}

/* 퀴즈 문항 스타일 */
.quiz-question {
    background: #e0e0e0;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}

/* 버튼 스타일 */
button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

/* 개인정보 입력 섹션 스타일 */
#personal-info-page {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 950px;
    margin: 0 auto;
}

#personal-info-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#personal-info-form label {
    font-weight: bold;
    margin-bottom: 5px;
}

#personal-info-form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border 0.3s, box-shadow 0.3s;
}

#personal-info-form input:focus {
    border: 1px solid #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

#personal-info-form button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#personal-info-form button:hover {
    background-color: #0056b3;
}

/* 에러 메시지 스타일 */
#error-message {
    color: red;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

/* 퀴즈 페이지 스타일 */
#quiz-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 퀴즈 박스 스타일 */
.quiz-question {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.quiz-question:hover {
    transform: translateY(-5px);
}

/* 퀴즈 텍스트 스타일 */
.quiz-question p {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* 퀴즈 옵션 스타일 */
.quiz-question div {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.quiz-question input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.quiz-question label {
    font-size: 16px;
}

/* 제출 버튼 스타일 */
#submit-quiz {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    display: block;
    margin: 20px auto 0;
}

#submit-quiz:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

/* 옵션 스타일 */
.quiz-question div {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

/* 라벨 하이라이트 효과 */
.quiz-question label {
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s;
    cursor: pointer;
}

.quiz-question label:hover {
    background-color: rgba(0, 123, 255, 0.1); /* 은은한 하이라이트 색상 */
}

/* 웰컴 페이지 스타일 */
/* 첫 번째 섹션 높이 고정 */
#welcome-page {
    background: url('https://admin.cap.gov/media/cms/LOGO_1to1_DEE1AF60214FE.jpg') no-repeat center center;
    background-size: contain;
    height: 600px; /* 높이를 600픽셀로 고정 */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
}

/* 불투명한 배경색 추가 */
.welcome-content {
    background: rgba(0, 0, 0, 0.6); /* 검정색 배경의 투명도 조절 */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 80%;
}

/* 버튼 스타일 */
.start-btn {
    background-color: #007bff;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.2em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.start-btn:hover {
    background-color: #0056b3;
}

/* 정보 텍스트 박스 스타일 */
/* 정보 텍스트 박스 스타일 */
.info-box {
    max-width: 950px;
    margin-top: 0px;
    padding: 20px;
    background-color: #ffebcc; /* 밝은 주황색 배경 */
    border: 2px solid #ff9800; /* 테두리를 짙은 주황색으로 설정 */
    border-radius: 8px;
    font-size: 1.1em;
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 그림자 추가 */
}

/* 박스 내부 제목 스타일 */
.info-box h3 {
    margin-top: 0;
    font-size: 1.3em;
    font-weight: bold;
    color: #d9534f; /* 강조를 위한 붉은 색상 */
}

/* 점수 보고서 스타일 */
#score-report {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#score-report h3 {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #007bff;
    text-align: center;
}

#report-list {
    list-style: none;
    padding: 0;
}

.report-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.report-item.correct {
    border-left: 5px solid #4caf50; /* Correct - Green Border */
}

.report-item.incorrect {
    border-left: 5px solid #f44336; /* Incorrect - Red Border */
}

.report-item strong {
    display: block;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.report-item .user-answer,
.report-item .correct-answer {
    padding: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    margin-top: 5px;
    font-size: 0.9em;
}

/* 완료 섹션 배너 스타일 */
.completion-banner {
    background-color: #e0f7fa;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.completion-logo {
    max-width: 100px;
    margin-bottom: 20px;
}

.completion-banner h2 {
    color: #001489;
    font-size: 2em;
    margin: 0;
}

.completion-banner p {
    font-size: 1.2em;
    margin: 10px 0;
}

.completion-date {
    font-size: 1em;
    color: #555;
}

/* 다음 단계 안내 스타일 */
.next-steps {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.next-steps h3 {
    text-align: center;
    color: #001489;
    margin-bottom: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.icon {
    font-size: 2em;
    color: #001489;
    margin-right: 15px;
}

.step-details h4 {
    margin: 0;
    color: #333;
}

.step-details p {
    margin: 5px 0;
    color: #555;
}
