.game-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px #ccc;
    width: 800px;
    max-width: 100%;
    text-align: center;
}

.screen.hidden {
    display: none;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: bold;
}

.top-bar-button {
    background: linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .06);
    border-radius: 12px;
    padding: 10px 14px;
    color: #0b2239;
    border: 2px solid #19a4ef;
}

#score,
#timer-second,
#total-que {
    background-color: #19a4ef;
    padding: 5px 10px;
    border-radius: 5px;
    color: white;
}

.flag-container img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
}

.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.options button {
    padding: 10px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
    color: black;
}

.options button.correct {
    background: #4caf50;
    color: white;
}

.options button.wrong {
    background: #f44336;
    color: white;
}

.options button:disabled {
    cursor: not-allowed;
}

button {
    padding: 12px 20px;
    background: #1e4d7b;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background: #163959;
    color: white;
}


/* Start Screen */
#start-screen {
    position: relative;
    width: 100%;
    height: 400px;
    background: url("../img/india.png") no-repeat center center/cover;
    border-radius: 10px;
}

.start-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    /* background: rgba(119, 118, 118, 0.4); */
    border-radius: 10px;
}

.start-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.start-box h2 {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.start-box h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #222;
}

.start-box button {
    padding: 12px 20px;
    background: #1e4d7b;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.start-box button:hover {
    background: #163959;
}

/* Category pill */
.category-tag {
    display: inline-block;
    background: #eef2f7;
    color: #1e4d7b;
    font-size: 15px;
    padding: 6px 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: 500;
    position: absolute;
    left: 29%;
    bottom: 83%;

}

/* Title */
.start-box h1 {
    font-size: 26px;
    font-weight: bold;
    color: #222;
    margin-bottom: 20px;
}

/* Start button */
.start-box button {
    width: 100%;
    padding: 14px 20px;
    background: #1e4d7b;
    color: #fff;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
}

.start-box button:hover {
    background: #163959;
}

/* Bottom info row */
.start-info {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #444;
}

/* Toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
    margin-right: 6px;
}

.switch input {
    display: none;
}

/* Result screen container */

#result-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}


.result-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #222;
}

.result-circle {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    background: conic-gradient(#1e4d7b 0deg, #e6f0ff 0deg);
}


.result-circle::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #fff;
}


.result-inner {
    position: relative;
    text-align: center;
    z-index: 2;
}


.result-score {
    font-size: 34px;
    font-weight: bold;
    color: #1e4d7b;
    margin-bottom: 5px;
}

.result-points {
    font-size: 16px;
    color: #666;
    margin-top: 30px;
}

.result-badge {
    position: absolute;
    top: -15px;
    background: #1e4d7b;
    color: #fff;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
}

.result-score {
    font-size: 34px;
    font-weight: bold;
    color: #1e4d7b;
    margin-bottom: 5px;
}

.result-points {
    font-size: 16px;
    color: #666;
}


.result-btn {
    margin-top: 15px;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 10px;
    border: 2px solid #1e4d7b;
    background: #fff;
    color: #1e4d7b;
    cursor: pointer;
    transition: 0.3s;
}

.result-btn:hover {
    background: #1e4d7b;
    color: #fff;
}




/* responsive start here  */
@media (max-width:825px) {
    .game-box {
        padding: 15px;
        max-width: 700px;

    }
}

@media (max-width:768px) {
    .game-box {
        padding: 15px;
        max-width: 690px;

    }
}

@media (min-width:680px) and (max-width:767px) {
    .game-box {
        padding: 15px;
        max-width: 620px;

    }
}

@media (max-width:680px) {
    .game-box {
        padding: 15px;
        max-width: 510px;

    }

    #start-screen {
        background: none;
        height: auto;
    }

    #start-screen::before {
        content: "";
        display: block;
        width: 100%;
        height: 180px;
        background: url("../img/india_2.png") no-repeat center center/cover;
        border-radius: 10px 10px 0 0;
        margin-bottom: 15px;
    }

    .start-overlay {
        display: block;
        padding: 0;
    }

    .start-box {
        position: static;
        width: 100%;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    }

    .category-tag {
        display: none;
    }
}

@media (max-width:576px) {
    .hero-section {
        padding: 0px !important;
    }
}

@media (max-width: 575px) {
    .game-box {
        max-width: 500px;
        padding: 15px;
    }


    .top-bar {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
        font-size: 14px;
    }

    .options {
        grid-template-columns: 1fr;
    }

    .options button {
        font-size: 14px;
        padding: 10px;
    }


    #next-btn,
    .result-btn,
    .start-box button {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }

    .start-box {

        padding: 20px;
    }

    .start-box h1 {
        font-size: 22px;
    }

    .category-tag {
        display: none;
    }

    .result-circle {
        width: 180px;
        height: 180px;
    }

    .result-circle::after {
        width: 140px;
        height: 140px;
    }

    .result-score {
        font-size: 26px;
    }


    #start-screen {
        background: none;
        height: auto;
    }

    #start-screen::before {
        content: "";
        display: block;
        width: 100%;
        height: 180px;
        background: url("../img/india_2.png") no-repeat center center/cover;
        border-radius: 10px 10px 0 0;
        margin-bottom: 15px;
    }

    .start-overlay {
        display: block;
        padding: 0;
    }

    .start-box {
        position: static;
        width: 100%;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    }

}

@media (min-width:480px) and (max-width:574px) {
    .game-box {
        max-width: 400px;
        padding: 15px;
    }
}

@media (max-width:425px) {
    .hero-section {
        margin: 0px;
    }

    .top-bar-button {
        padding: 10px 10px;
    }

    #score,
    #timer-second,
    #total-que {
        padding: 3px 10px;

    }
}

@media (min-width:380px) and (max-width:479px) {
    .game-box {
        max-width: 300px;
        padding: 15px;
    }

    .flag-container img {
        width: 100%;
    }

}

@media (max-width:380px) {
    .game-box {
        max-width: 300px;
    }

    .flag-container img {
        width: 100%;
    }
}

@media (max-width:365px) {
    .game-box {
        max-width: 300px;
    }

    .flag-container img {
        width: 100%;
    }
}

@media (max-width:340px) {
    .game-box {
        max-width: 280px;
    }

    .flag-container img {
        width: 100%;
    }
}