/* ==========================================
   ENGLISH VOCABULARY QUIZ 10
   COMPLETE CSS
   Version 1.2
   ========================================== */


/* ==========================================
   GLOBAL RESET
   ========================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;

    font-family:
        "Noto Sans Bengali",
        "Segoe UI",
        Arial,
        sans-serif;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(0, 120, 255, 0.18),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 25%,
            rgba(255, 190, 0, 0.10),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #020b24 0%,
            #061b4f 48%,
            #031331 100%
        );

    overflow-x: hidden;
}


/* ==========================================
   DECORATIVE BACKGROUND
   ========================================== */

body::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;

    background-image:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.12) 1px,
            transparent 1px
        );

    background-size: 28px 28px;

    opacity: 0.25;

    z-index: 0;
}


/* ==========================================
   MAIN
   ========================================== */

main {
    position: relative;
    z-index: 1;

    width: 100%;
}


/* ==========================================
   START SCREEN
   ========================================== */

.start-screen {
    position: relative;
    z-index: 1;

    width: min(1100px, 94%);

    min-height: 100vh;

    margin: auto;

    padding: 45px 20px 55px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;
}


/* ==========================================
   TOP BADGE
   ========================================== */

.top-badge {
    min-width: 250px;

    padding: 10px 55px;

    border: 2px solid #f5b900;

    border-radius: 15px;

    background: rgba(5, 20, 55, 0.85);

    color: #ffffff;

    font-size: 30px;

    font-weight: 800;

    letter-spacing: 2px;

    box-shadow:
        0 0 15px rgba(245, 185, 0, 0.25),
        inset 0 0 15px rgba(0, 80, 180, 0.15);

    margin-bottom: 28px;
}


/* ==========================================
   GLOBAL HEADINGS
   ========================================== */

h1,
h2,
h3 {
    font-family: inherit;
}


/* ==========================================
   START SCREEN TITLE
   ========================================== */

.start-screen h1 {
    margin: 0;

    font-size: clamp(42px, 6vw, 76px);

    line-height: 1.2;

    color: #f5c400;

    text-shadow:
        2px 3px 0 #101f50,
        0 0 20px rgba(245, 196, 0, 0.18);
}


/* ==========================================
   GAME NAME
   ========================================== */

.start-screen h2 {
    margin: 10px 0 28px;

    font-size: clamp(27px, 4vw, 44px);

    line-height: 1.25;

    color: #ffffff;
}

.start-screen h2 span {
    color: #f5c400;
}


/* ==========================================
   INFORMATION BOX
   ========================================== */

.info-box {
    width: min(760px, 95%);

    display: flex;

    justify-content: space-around;

    align-items: center;

    gap: 20px;

    padding: 20px 30px;

    border: 2px solid #126fd0;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            rgba(7, 38, 91, 0.95),
            rgba(10, 52, 112, 0.95)
        );

    box-shadow:
        0 0 20px rgba(0, 110, 255, 0.20),
        inset 0 0 15px rgba(0, 0, 0, 0.18);

    font-size: 23px;
}

.info-box div {
    flex: 1;
}


/* ==========================================
   INSTRUCTION
   ========================================== */

.instruction {
    margin: 30px 0 22px;

    color: #ffffff;

    font-size: 22px;

    font-weight: 600;

    text-align: center;
}


/* ==========================================
   MODE BUTTONS
   ========================================== */

.mode-buttons {
    width: min(820px, 95%);

    display: flex;

    gap: 24px;
}

.mode-btn {
    flex: 1;

    min-height: 92px;

    border: 2px solid rgba(255, 255, 255, 0.15);

    border-radius: 15px;

    color: #ffffff;

    font-family: inherit;

    font-size: 23px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 7px 0 rgba(0, 0, 0, 0.28),
        0 0 18px rgba(0, 0, 0, 0.20);

    transition:
        transform 0.15s ease,
        filter 0.15s ease,
        box-shadow 0.15s ease;
}


/* ==========================================
   LEARNING BUTTON
   ========================================== */

.learning {
    background:
        linear-gradient(
            180deg,
            #0b8b46,
            #05672f
        );
}


/* ==========================================
   EXAM BUTTON
   ========================================== */

.exam {
    background:
        linear-gradient(
            180deg,
            #df3b1d,
            #a91f0b
        );
}


/* ==========================================
   MODE BUTTON HOVER
   ========================================== */

.mode-btn:hover {
    filter: brightness(1.12);

    transform: translateY(-3px);

    box-shadow:
        0 10px 0 rgba(0, 0, 0, 0.25),
        0 0 25px rgba(255, 255, 255, 0.08);
}


/* ==========================================
   MODE BUTTON ACTIVE
   ========================================== */

.mode-btn:active {
    transform: translateY(4px);

    box-shadow:
        0 3px 0 rgba(0, 0, 0, 0.28);
}


/* ==========================================
   STATUS
   ========================================== */

.status {
    min-height: 28px;

    margin-top: 24px;

    color: #d8e7ff;

    font-size: 16px;

    text-align: center;
}


/* ==========================================
   QUIZ SCREEN
   ========================================== */

.quiz-screen {
    width: min(1000px, 94%);

    margin: 30px auto 50px;

    padding: 25px 30px 30px;

    background:
        rgba(5, 20, 55, 0.94);

    border: 2px solid #126fd0;

    border-radius: 22px;

    box-shadow:
        0 0 25px rgba(0, 110, 255, 0.20),
        inset 0 0 20px rgba(0, 0, 0, 0.18);
}


/* ==========================================
   QUIZ TOP
   ========================================== */

.quiz-top {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-bottom: 12px;

    font-size: 20px;

    font-weight: 700;
}

.score,
.question-number {
    color: #ffffff;
}


/* ==========================================
   TIMER
   ========================================== */

.timer-box {
    width: fit-content;

    margin: 10px auto 16px;

    padding: 7px 24px;

    border: 2px solid #f5c400;

    border-radius: 14px;

    background:
        rgba(245, 196, 0, 0.10);

    color: #ffffff;

    font-size: 21px;

    font-weight: 800;

    box-shadow:
        0 0 15px rgba(245, 196, 0, 0.15);
}

#timer {
    display: inline-block;

    min-width: 42px;

    color: #f5c400;

    font-size: 30px;

    font-weight: 900;

    text-align: center;
}


/* ==========================================
   PROGRESS BAR
   ========================================== */

.progress {
    width: 100%;

    height: 10px;

    margin-top: 8px;

    margin-bottom: 20px;

    background:
        rgba(255, 255, 255, 0.12);

    border-radius: 20px;

    overflow: hidden;
}

.progress-bar {
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #126fd0,
            #f5c400
        );

    border-radius: 20px;

    transition:
        width 0.3s ease;
}


/* ==========================================
   QUESTION
   ========================================== */

.quiz-screen .question {
    margin: 12px 0 22px;

    color: #ffffff;

    font-family: inherit;

    font-size: clamp(28px, 3.2vw, 48px);

    line-height: 1.25;

    font-weight: 800;

    text-align: center;
}


/* ==========================================
   OPTIONS CONTAINER
   ========================================== */

.options {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;

    width: 100%;
}


/* ==========================================
   ANSWER BUTTON
   ========================================== */

.answer-btn {
    width: 100%;

    min-height: 70px;

    padding: 15px 20px;

    border: 2px solid rgba(255, 255, 255, 0.15);

    border-radius: 14px;

    background:
        linear-gradient(
            180deg,
            #0b3b7d,
            #072b5e
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 20px;

    font-weight: 700;

    line-height: 1.35;

    text-align: left;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        filter 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease;
}


/* ==========================================
   ANSWER BUTTON HOVER
   ========================================== */

.answer-btn:hover:not(:disabled) {
    filter: brightness(1.15);

    transform: translateY(-2px);
}


/* ==========================================
   DISABLED ANSWER
   ========================================== */

.answer-btn:disabled {
    cursor: default;
}


/* ==========================================
   CORRECT ANSWER
   ========================================== */

.answer-btn.correct {
    background:
        linear-gradient(
            180deg,
            #0b9b50,
            #056b35
        );

    border-color: #22d878;
}


/* ==========================================
   WRONG ANSWER
   ========================================== */

.answer-btn.wrong {
    background:
        linear-gradient(
            180deg,
            #e3422a,
            #a82010
        );

    border-color: #ff765f;
}


/* ==========================================
   FEEDBACK
   ========================================== */

.feedback {
    margin-top: 18px;

    padding: 18px;

    border-radius: 15px;

    background:
        rgba(0, 0, 0, 0.20);

    text-align: center;

    font-size: 18px;

    line-height: 1.6;
}

.feedback p {
    margin: 8px 0;
}


/* ==========================================
   CORRECT MESSAGE
   ========================================== */

.correct-message {
    color: #35e487;

    font-size: 25px;

    font-weight: 900;
}


/* ==========================================
   WRONG MESSAGE
   ========================================== */

.wrong-message {
    color: #ff765f;

    font-size: 25px;

    font-weight: 900;
}


/* ==========================================
   EXAMPLE SENTENCE
   ========================================== */

.example-text {
    margin-top: 12px !important;

    padding: 10px 14px;

    border-left: 4px solid #f5c400;

    background:
        rgba(245, 196, 0, 0.08);

    color: #eaf2ff;

    font-size: 17px;

    line-height: 1.6;

    text-align: left;
}

.example-text strong {
    color: #f5c400;
}


/* ==========================================
   NEXT QUESTION BUTTON
   ========================================== */

.feedback button {
    display: inline-block;

    margin-top: 12px;

    padding: 11px 26px;

    border: none;

    border-radius: 10px;

    background:
        #f5c400;

    color: #071735;

    font-family: inherit;

    font-size: 18px;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        filter 0.15s ease;
}

.feedback button:hover {
    filter: brightness(1.10);

    transform: translateY(-2px);
}


/* ==========================================
   RESULT SCREEN
   ========================================== */

.result-screen {
    width: min(760px, 94%);

    margin: 45px auto;

    padding: 38px 25px 42px;

    border: 2px solid #f5c400;

    border-radius: 22px;

    background:
        rgba(5, 20, 55, 0.95);

    text-align: center;

    box-shadow:
        0 0 30px rgba(245, 196, 0, 0.15),
        inset 0 0 20px rgba(0, 0, 0, 0.18);
}


/* ==========================================
   RESULT TITLE
   ========================================== */

.result-screen h1 {
    margin: 0 0 20px;

    color: #f5c400;

    font-size: clamp(30px, 5vw, 48px);

    line-height: 1.25;
}


/* ==========================================
   RESULT SCORE
   ========================================== */

.result-score {
    margin: 15px 0;

    color: #f5c400;

    font-size: 70px;

    line-height: 1;

    font-weight: 900;

    text-shadow:
        0 0 18px rgba(245, 196, 0, 0.20);
}


/* ==========================================
   PERCENTAGE
   ========================================== */

.percentage {
    margin: 10px 0;

    color: #ffffff;

    font-size: 34px;

    font-weight: 800;
}


/* ==========================================
   RESULT MESSAGE
   ========================================== */

.result-screen h2 {
    margin: 12px 0 24px;

    color: #35e487;

    font-size: 27px;

    font-weight: 800;
}


/* ==========================================
   SOCIAL MESSAGE BOX
   ========================================== */

.social-message {
    width: min(520px, 100%);

    margin: 20px auto 25px;

    padding: 17px 20px;

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 14px;

    background:
        rgba(0, 0, 0, 0.20);

    font-size: 18px;

    line-height: 1.65;
}

.social-message p {
    margin: 6px 0;

    color: #ffffff;
}


/* ==========================================
   RESULT BUTTONS
   ========================================== */

.result-screen button {
    display: block;

    width: min(430px, 92%);

    min-height: 52px;

    margin: 12px auto;

    padding: 13px 20px;

    border: none;

    border-radius: 12px;

    font-family: inherit;

    font-size: 18px;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        filter 0.15s ease,
        box-shadow 0.15s ease;
}


/* ==========================================
   RETURN TO FACEBOOK BUTTON
   ========================================== */

.result-screen button[onclick*="returnToFacebook"] {
    background:
        linear-gradient(
            180deg,
            #1877f2,
            #0d5dcc
        );

    color: #ffffff;

    box-shadow:
        0 5px 0 rgba(0, 0, 0, 0.25),
        0 0 18px rgba(24, 119, 242, 0.25);
}


/* ==========================================
   PLAY AGAIN BUTTON
   ========================================== */

.result-screen button[onclick*="reload"] {
    background:
        linear-gradient(
            180deg,
            #f5c400,
            #d6a900
        );

    color: #071735;

    box-shadow:
        0 5px 0 rgba(0, 0, 0, 0.25);
}


/* ==========================================
   RESULT BUTTON HOVER
   ========================================== */

.result-screen button:hover {
    filter: brightness(1.10);

    transform: translateY(-2px);
}


/* ==========================================
   RESULT BUTTON ACTIVE
   ========================================== */

.result-screen button:active {
    transform: translateY(2px);
}


/* ==========================================
   MOBILE START SCREEN
   ========================================== */

@media (max-width: 700px) {

    .start-screen {
        width: 94%;

        padding:
            30px 15px 45px;
    }

    .top-badge {
        min-width: 190px;

        padding: 8px 35px;

        font-size: 25px;
    }

    .start-screen h1 {
        font-size: 42px;
    }

    .start-screen h2 {
        font-size: 27px;
    }

    .info-box {
        flex-direction: column;

        gap: 8px;

        padding: 16px 20px;

        font-size: 20px;
    }

    .mode-buttons {
        width: 100%;

        flex-direction: column;

        gap: 18px;
    }

    .mode-btn {
        width: 100%;

        min-height: 78px;

        font-size: 21px;
    }

    .instruction {
        font-size: 20px;
    }
}


/* ==========================================
   MOBILE QUIZ SCREEN
   ========================================== */

@media (max-width: 700px) {

    .quiz-screen {
        width: 94%;

        margin:
            20px auto 35px;

        padding:
            20px 15px 25px;

        border-radius: 18px;
    }

    .quiz-top {
        flex-direction: column;

        gap: 7px;

        margin-bottom: 10px;

        font-size: 17px;
    }

    .timer-box {
        margin:
            8px auto 14px;

        font-size: 18px;
    }

    #timer {
        font-size: 27px;
    }

    .progress {
        height: 8px;

        margin-bottom: 17px;
    }

    .quiz-screen .question {
        margin:
            12px 0 20px;

        font-size: 25px;

        line-height: 1.35;
    }

    .options {
        grid-template-columns: 1fr;

        gap: 13px;
    }

    .answer-btn {
        min-height: 62px;

        padding: 13px 15px;

        font-size: 18px;
    }

    .feedback {
        padding: 15px;

        font-size: 16px;
    }

    .correct-message,
    .wrong-message {
        font-size: 22px;
    }

    .example-text {
        font-size: 16px;
    }
}


/* ==========================================
   MOBILE RESULT SCREEN
   ========================================== */

@media (max-width: 700px) {

    .result-screen {
        width: 94%;

        margin:
            30px auto;

        padding:
            30px 16px 35px;

        border-radius: 18px;
    }

    .result-screen h1 {
        font-size: 32px;
    }

    .result-score {
        font-size: 58px;
    }

    .percentage {
        font-size: 30px;
    }

    .result-screen h2 {
        font-size: 24px;
    }

    .social-message {
        padding:
            14px 15px;

        font-size: 17px;

        line-height: 1.55;
    }

    .result-screen button {
        width: 94%;

        min-height: 50px;

        font-size: 17px;
    }
}


/* ==========================================
   VERY SMALL MOBILE DEVICES
   ========================================== */

@media (max-width: 400px) {

    .top-badge {
        min-width: 170px;

        padding: 8px 25px;

        font-size: 22px;
    }

    .start-screen h1 {
        font-size: 36px;
    }

    .start-screen h2 {
        font-size: 24px;
    }

    .quiz-screen .question {
        font-size: 22px;
    }

    .answer-btn {
        font-size: 17px;
    }

    .result-score {
        font-size: 52px;
    }
}