/* ------------------ Reset ------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ------------------ Body ------------------ */
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('bg.jpg'); /* <-- CHANGE THIS TO YOUR IMAGE */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Dark overlay for better readability */
body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 0;
}

/* ------------------ App Wrapper ------------------ */
.app {
    width: 100%;
    max-width: 520px;
    padding: 20px;
    position: relative;
    z-index: 1; /* above overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ------------------ Quiz Card ------------------ */
.quiz-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pop 0.4s ease;
}

.quiz-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ------------------ Header ------------------ */
.quiz-header {
    text-align: center;
    margin-bottom: 28px;
}

.quiz-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.quiz-header p {
    margin-top: 6px;
    font-size: 15px;
    color: #6b7280;
}

/* ------------------ Question ------------------ */
#questions {
    font-size: 20px;
    margin-bottom: 22px;
    line-height: 1.6;
    color: #111827;
    font-weight: 500;
}

/* ------------------ Options ------------------ */
#options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    background: #f9fafb;
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.option:hover {
    background: #eef2ff;
    border: 2px solid #4f46e5;
    transform: translateY(-1px);
}

.option input {
    margin-right: 12px;
    accent-color: #4f46e5;
}

/* ------------------ Next Button ------------------ */
#nextbtn {
    width: 100%;
    margin-top: 25px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    background: #4f46e5;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

#nextbtn:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

/* ------------------ Score ------------------ */
#score {
    margin-top: 20px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #111827;
}

/* ------------------ Footer Text / Paragraphs ------------------ */
.footer-text {
    margin-top: 15px;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
}

/* ------------------ Pop Animation ------------------ */
@keyframes pop {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ------------------ Responsive ------------------ */
@media (max-width: 600px) {
    .quiz-card {
        padding: 24px 20px;
    }
    #questions {
        font-size: 18px;
    }
    #nextbtn {
        font-size: 15px;
        padding: 12px;
    }
}
