/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    height: 100vh;
    display: flex;
}

/* 레이아웃 */
.left-container {
    width: 80%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.right-container {
    width: 20%;
    height: 100vh;
    position: fixed;
    right: 0;
    background-color: #fff;
    border-left: 1px solid #ccc;
    padding: 20px;
    overflow-y: auto;
}

/* 헤더 영역 */
.header {
    height: 10%;
    background-color: #f0f0f0;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.title {
    font-size: 24px;
    font-weight: bold;
}

/* 메인 콘텐츠 영역 */
.main-content {
    height: 80%;
    overflow-y: auto;
    padding: 20px;
}

/* 푸터 영역 */
.footer {
    height: 10%;
    background-color: #f0f0f0;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 문제 스타일 */
.question {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    position: relative;
}

.question-number {
    font-weight: bold;
    margin-bottom: 10px;
    color: #007bff;
    font-size: 18px;
}

.question-text {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.5;
    margin-left: 5px;
}

.question-image {
    max-width: 100%;
    margin: 10px 0;
}

/* 보기 옵션 스타일 */
.options {
    margin-left: 20px;
}

.option {
    margin: 8px 0;
    display: flex;
    align-items: flex-start;
}

.option label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 8px;
}

.option-number {
    margin: 0 12px;
    min-width: 20px;
    font-size: 16px;
}

.option-text {
    margin-left: -4px;
}

/* OMR 카드 스타일 */
.omr-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.omr-container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.omr-number {
    text-align: right;
    font-weight: bold;
    padding-right: 10px;
}

.omr-options {
    display: flex;
    gap: 10px;
}

.omr-option {
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: none;
    background: none;
}

.omr-option.selected {
    background-color: #90EE90;
    border-radius: 50%;
    color: white;
}

/* 버튼 스타일 */
.button-group {
    display: flex;
    gap: 10px;
}

button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

/* 팝업 스타일 */
.popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.popup h2 {
    color: #007bff;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
}

.popup p {
    margin: 10px 0;
    font-size: 18px;
}

/* 틀린 문제 스타일 */
.wrong-question {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.wrong-question-number {
    color: #dc3545;
    font-size: 20px;
    margin-bottom: 10px;
}

.wrong-question-text {
    font-weight: bold;
    margin-bottom: 15px;
}

.correct-answer {
    color: #28a745;
    font-weight: bold;
    margin: 10px 0;
    padding: 10px;
    background-color: #e8f5e9;
    border-radius: 5px;
}

.explanation {
    margin-top: 15px;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.explanation-title {
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

/* 팝업 버튼 스타일 */
.popup-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.popup-buttons button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    min-width: 200px;
    transition: all 0.3s ease;
}

.popup-buttons button:first-child {
    background-color: #28a745;
}

.popup-buttons button:last-child {
    background-color: #007bff;
}

.popup-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.popup-buttons button:first-child:hover {
    background-color: #218838;
}

.popup-buttons button:last-child:hover {
    background-color: #0056b3;
}