/* ============================
   GLOBAL PAGE BACKGROUND
============================ */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;

    /* Animated AWAT gradient */
    background: linear-gradient(135deg, #33B8FF  20%, #A12E8E 50%, #000155 100%);
    background-size: 200% 200%;
    animation: bgAnim 12s ease infinite;

    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
}
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body, button, input, div, h1, h2, h3, p, span {
    font-family: 'IBM Plex Sans', sans-serif !important;
}
@keyframes bgAnim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================
   QUIZ CONTAINER
============================ */
.quiz-container {
    width: 60%;             /* bigger width for big screens */
    max-width: 700px;       /* perfect for desktops */
    background: rgba(255, 255, 255, 0.92);
    padding: 50px 40px;
    padding-top: 110px !important;
    border-radius: 22px;
    margin-top: 220px;
    box-shadow: 0px 20px 50px rgba(0,0,0,0.25);
    text-align: center;
    position: relative;
    backdrop-filter: blur(8px);
}

/* ============================
   AWAT LOGO (larger)
============================ */
.quiz-container::before {
    content: "";
    background: url('../images/awat-logo.png') no-repeat center top;
    background-size: 360px;    /* increased */
    width: 100%;
    height: 260px;             /* more spacing */
    position: absolute;
    top: -210px;
    left: 0;
}

/* ============================
   SCREEN SECTIONS
============================ */
.screen {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.hidden {
    display: none;
}

/* ============================
   INPUT FIELDS
============================ */
.input {
    padding: 18px;
    font-size: 22px;     /* larger text */
    width: 100%;
    border-radius: 14px;
    border: 3px solid #33B8FF;
    background: #fff;
    outline: none;
    box-sizing: border-box;
}

.input:focus {
    border-color: #1C8CD8;
    box-shadow: 0 0 0 6px rgba(51, 184, 255, 0.25);
}

/* ============================
   BUTTONS
============================ */
.btn {
    padding: 18px;
    background: #33B8FF;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 24px;       /* bigger */
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s;
    width: 100%;
}

.btn:hover {
    background: #1C8CD8;
    transform: scale(1.04);
}

/* ============================
   QUESTION TEXT
============================ */
#questionText {
    font-size: 30px;     /* increased */
    color: #000155;
    font-weight: 700;
    line-height: 1.5;
}

/* ============================
   OPTIONS (BIG SCREEN UPGRADE)
============================ */
.option {
    padding: 20px 22px;
    border-radius: 16px;
    border: 3px solid #d1def2;
    background: #ffffffdd;
    font-size: 22px;       /* larger */
    font-weight: 600;
    color: #000155;
    cursor: pointer;
    transition: 0.25s;
    margin-bottom: 18px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
}

.option:hover {
    background: #eaf5ff;
    border-color: #33B8FF;
    box-shadow: 0px 8px 20px rgba(51,184,255,0.25);
    transform: scale(1.03);
}

/* ============================
   RESULT SCREEN
============================ */
#result-screen h1 {
    font-size: 34px;
    color: #8F287E;
}

#scoreText {
    font-size: 26px;
    font-weight: 700;
    color: #000155;
}

/* ============================
   ANIMATED TITLE
============================ */
.title-gradient {
    font-size: 32px;     /* bigger */
    font-weight: 800;
    text-align: center;
    background: linear-gradient(90deg, #33B8FF, #A12E8E, #000155);
    background-size: 300%;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradientFlow 4s infinite linear;
}

@keyframes gradientFlow {
    0% { background-position: 0%; }
    50% { background-position: 100%; }
    100% { background-position: 0%; }
}

/* ============================
   MOBILE RESPONSIVE
============================ */
@media (max-width: 768px) {
    .quiz-container {
        width: 90%;
        max-width: 95%;
        padding: 30px 20px;
        margin-top: 160px;
    }

    .quiz-container::before {
        background-size: 180px;
        top: -140px;
        height: 160px;
    }

    #questionText {
        font-size: 22px;
    }

    .option {
        font-size: 18px;
        padding: 14px;
    }

    .btn {
        font-size: 20px;
        padding: 14px;
    }
}






/* ============================
   QR BUTTON (Bottom Right)
============================ */
.qr-section {
    position: fixed;
    bottom: 30px;
    right: 25px;

    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
}

.qr-btn {
    width: 180px;
    height: auto;

    border-radius: 12px;
    animation: glowPulse 1.8s infinite ease-in-out;
}

/* White text under QR */
.qr-text {
    color: #f7f7f7;
    font-size: 18px;
    margin-top: 8px;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(0,0,0,0.5);
}

/* Glow animation (using #f7f7f7) */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 12px rgba(247, 247, 247, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(247, 247, 247, 0.9);
        transform: scale(1.06);
    }
    100% {
        box-shadow: 0 0 12px rgba(247, 247, 247, 0.4);
        transform: scale(1);
    }
}

/* Hide on mobile */
@media (max-width: 480px) {
    .qr-section {
        display: none;
    }
}



/* TOP RIGHT BUTTONS WRAPPER */
.top-right-buttons {
    position: fixed;
    top: 18px;
    right: 18px;
    display: flex;
    gap: 12px; /* spacing between buttons */
    z-index: 9999;
}

/* MUTE + WINNER BUTTON SAME DESIGN */
.mute-btn,
.winner-btn {
    width: 58px;
    height: 58px;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 18px;
    font-size: 26px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 0 12px rgba(51, 184, 255, 0.4);
    animation: glowPulse 2.2s infinite ease-in-out;
    transition: 0.2s;
}

.mute-btn:hover,
.winner-btn:hover {
    transform: scale(1.07);
    box-shadow: 0 0 20px rgba(161, 46, 142, 0.9);
}

/* ON MOBILE – smaller buttons */
@media (max-width: 480px) {
    .mute-btn,
    .winner-btn {
        width: 48px;
        height: 48px;
        font-size: 22px;
        border-radius: 14px;
    }
}

/* GLOW ANIMATION */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 12px rgba(51, 184, 255, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(161, 46, 142, 0.8);
        transform: scale(1.06);
    }
    100% {
        box-shadow: 0 0 12px rgba(51, 184, 255, 0.4);
        transform: scale(1);
    }
}

.progress-text {
    font-size: 22px;
    font-weight: 600;
    color: #8F287E;
    margin-bottom: 10px;
    text-align: right;
}
