body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f9fafb;
    color: #3462bd;
    margin: 0;
    padding: 0;
}
.quiz-container {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transition: box-shadow 0.3s ease;
    position: relative;
    top: 140px;
}
.quiz-container:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}
.question {
    margin-bottom: 35px;
    border-bottom: 1px solid #dfdada91;
}
.question h3 {
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.15rem;
    color: #f7c775;
}
.answers label {
    display: block;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 8px;
    background: #f5f7fa;
    border: 1.5px solid transparent;
    transition: background 0.3s, border-color 0.3s;
    font-weight: 500;
}

.answers label:hover,
.answers label:focus,
.answers label:active { /* :active is for the brief moment of click */
    background: #e1e7f7;
    border-color: #007bff;
}
input[type="radio"] {
    margin-right: 12px;
    accent-color: #007bff;
}
.answers label:has(input[type="radio"]:checked) {
    background: #e1e7f7;
    border-color: #007bff;
}
.btn {
    background: #3462bd;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,123,255,0.4);
    margin-top: 10px;
    transition: .3s all ease;
}
.btn:hover {
    background: #0056b3;
    box-shadow: 0 6px 16px rgba(0,86,179,0.6);
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.65);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.modal-content {
    background: white;
    padding: 40px 35px;
    border-radius: 15px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.modal-content h2 {
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #111;
}
@media (max-width: 600px) {
    .quiz-container {
        padding: 20px 25px;
        margin: 20px 15px;
    }
    .btn {
        width: 100%;
        font-size: 16px;
        padding: 12px 0;
    }
    .question h3 {
        font-size: 1rem;
    }
    .answers label {
        padding: 12px 10px;
        font-size: 0.95rem;
    }
    .modal-content h2 {
        font-size: 1.1rem;
    }   
}
