/* 퀴즈 상단 */

.quiz-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:15px;

}

#question-number{

    font-size:1.3rem;

}

#progress-text{

    color:#6b7280;

    font-weight:700;

}

/* 진행바 */

.progress-bar{

    width:100%;

    height:14px;

    background:#e5e7eb;

    border-radius:999px;

    overflow:hidden;

    margin-bottom:25px;

}

.progress-fill{

    width:10%;

    height:100%;

    background:linear-gradient(
        90deg,
        #22c55e,
        #16a34a
    );

    border-radius:999px;

    transition:.4s ease;

}

/* 문제 카드 */

.question-box{

    background:#f9fafb;

    border:2px solid #e5e7eb;

    border-radius:22px;

    padding:28px;

    margin-bottom:20px;

}

.question-box p{

    font-size:1.25rem;

    font-weight:700;

    line-height:1.8;

}

/* 선택지 */

.choices{

    display:flex;

    flex-direction:column;

    gap:14px;

}

.choice-btn{

    width:100%;

    text-align:left;

    border:2px solid #d1d5db;

    background:white;

    border-radius:18px;

    padding:20px;

    cursor:pointer;

    font-size:1rem;

    font-weight:600;

    line-height:1.6;

    transition:.2s;

}

.choice-btn:hover{

    border-color:#2563eb;

    transform:translateY(-2px);

    box-shadow:
    0 6px 16px rgba(0,0,0,.08);

}

/* 내가 선택한 답 */

.selected{

    border:4px solid #dc2626 !important;

    box-shadow:
    0 0 0 6px rgba(220,38,38,.12);

}

/* 정답 */

.correct{

    background:#dcfce7 !important;

    border-color:#16a34a !important;

    color:#166534;

}

/* 오답 */

.wrong{

    background:#fee2e2 !important;

    border-color:#dc2626 !important;

    color:#991b1b;

}

/* 해설 */

.explanation-box{

    display:none;

    margin-bottom:20px;

    padding:18px;

    border-radius:16px;

    background:#eff6ff;

    border-left:6px solid #2563eb;

    color:#1e3a8a;

    line-height:1.7;

    font-size:.95rem;

}

/* 결과 카드 */

.grade-card{

    background:#eff6ff;

    border-radius:18px;

    padding:20px;

    text-align:center;

}

/* 모바일 */

@media(max-width:768px){

    .question-box{

        padding:20px;

    }

    .question-box p{

        font-size:1.05rem;

    }

    .choice-btn{

        padding:16px;

        font-size:.95rem;

    }

}

#next-btn{

    margin-top:20px;

}
.inline-explanation{

    margin:12px 0;

    padding:16px;

    border-radius:14px;

    background:#eff6ff;

    border-left:5px solid #2563eb;

    color:#1e3a8a;

    line-height:1.7;

    animation:fadeIn .25s ease;

}
.wrong-question-card{

    position:relative;

}

.delete-wrong-btn{

    position:absolute;

    top:12px;

    right:12px;

    width:32px;

    height:32px;

    border:none;

    border-radius:50%;

    cursor:pointer;

    font-size:18px;

}
.home-btn{

    position:absolute;

    top:20px;

    left:20px;

    width:50px;

    height:50px;

    border:none;

    border-radius:50%;

    cursor:pointer;

    font-size:22px;

    display:flex;

    align-items:center;

    justify-content:center;

    box-shadow:
        0 4px 12px
        rgba(0,0,0,0.15);
    backdrop-filter: blur(8px);
    z-index:9999;

}

.home-btn:hover{

    transform:scale(1.08);

}

.home-btn:active{

    transform:scale(0.95);

}
@media (max-width:768px){

    .home-btn{

        top:12px;

        left:12px;

        width:46px;

        height:46px;

        font-size:20px;

    }

}
.container{

    position:relative;

}
.site-footer{

    margin-top:40px;

    padding:20px;

    text-align:center;

    border-top:1px solid #ddd;

}

.site-footer a{

    margin:0 8px;

    color:#666;

    text-decoration:none;

    font-size:14px;

}

.site-footer a:hover{

    text-decoration:underline;

}