:root {
    --primary-color: #FF8A00; /* 당근 오렌지 */
    --primary-light: #FFF0E0; /* 연한 오렌지 배경 */
    --secondary-color: #4CAF50; /* 잡사귀 녹색 */
    --success-color: #4CAF50; /* 녹색 */
    --warning-color: #FFC107; /* 노란색 */
    --error-color: #F44336; /* 빨간색 */
    --text-color: #333; /* 기본 텍스트 색 */
    --light-text: #757575; /* 밝은 텍스트 색 */
    --border-radius: 12px;
    --box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* 로고 스타일 */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo-character {
    width: 40px;
    height: auto;
    vertical-align: middle;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8faff;
    margin: 0;
    padding: 0;
    padding-bottom: 80px; /* 푸터와의 간격을 위한 여백 추가 */
}

.problem-container {
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.problem-header {
    margin-bottom: 25px;
    border-bottom: 1px solid #e0e0f0;
    padding-bottom: 20px;
    position: relative;
}

.problem-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.info-tag {
    background-color: var(--primary-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.info-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.info-tag i {
    margin-right: 8px;
    font-size: 1.1em;
}

.problem-description {
    margin-bottom: 35px;
    line-height: 1.8;
    font-size: 1.05em;
}

.problem-description h2 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.problem-description h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.constraints {
    background-color: var(--primary-light);
    padding: 20px 25px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.constraints h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.3em;
}

/* 애니메이션 효과 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.word-item, .question-item, .hint-item, .results-section {
    animation: fadeIn 0.5s ease forwards;
}

/* 오디오 아이콘 스타일 */
.audio-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 10px;
}

.audio-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.audio-icon i {
    font-size: 0.9em;
}

.question-container {
    margin-bottom: 35px;
    background-color: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.question-container h2 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.8em;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.question-container h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.question-item {
    margin-bottom: 25px;
    padding: 25px;
    background-color: #f9faff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #e0e0f0;
}

.question-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.question-text {
    font-size: 1.15em;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 500;
}

.english-text {
    margin-top: 10px;
    padding: 5px 10px;
    background-color: var(--primary-light);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    cursor: pointer;
    background-color: #f0f0ff;
    border: 1px solid #e0e0f0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
}

.option-item:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
}

.option-item.selected {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    font-weight: 500;
}

.option-item.correct {
    background-color: rgba(76, 175, 80, 0.15);
    border-color: var(--success-color);
}

.option-item.incorrect {
    background-color: rgba(244, 67, 54, 0.15);
    border-color: var(--error-color);
}

.option-prefix {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    background-color: white;
    border: 1px solid #ddd;
    color: var(--text-color);
}

.option-text {
    flex: 1;
}

.explanation {
    margin-top: 15px;
    padding: 15px;
    background-color: #f0f7ff;
    border-radius: var(--border-radius);
    border-left: 5px solid #007bff;
    display: none;
}

/* 정답 확인하기 버튼 스타일 */
.submit-btn {
    margin-top: 25px;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-size: 1.05em;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    background-color: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 힌트 섹션 스타일 */
.hints-section {
    margin-bottom: 35px;
    background-color: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.hints-section h2 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.8em;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.hints-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.hint-item {
    background-color: #f0f7ff;
    padding: 18px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    border-left: 5px solid #64b5f6;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-size: 1.05em;
    line-height: 1.7;
}

.show-hint-btn {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    margin-bottom: 15px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.show-hint-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navigation-section {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e0e0f0;
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 0.95em;
    min-width: 120px;
    background-color: var(--primary-color);
}

.action-btn i {
    margin-right: 8px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.results-section {
    margin-bottom: 35px;
    background-color: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.result-item {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
}

.pass {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.fail {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 0.9em;
    transition: var(--transition);
}

.back-btn:hover {
    color: var(--primary-color);
}

.page-header {
    margin-bottom: 20px;
}

#problem-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 10px;
}

/* 읽기 지문 스타일 */
.reading-passage {
    background-color: #f9f9ff;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border-left: 5px solid var(--secondary-color);
    line-height: 1.8;
    font-size: 1.05em;
}

.reading-passage h3 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 15px;
} 