* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    background: #f4f6f4;
    color: #222;
}

/* Indian Flag */
.flag {
    width: 100%;
}

.saffron {
    height: 9px;
    background: #ff9933;
}

.white {
    height: 9px;
    background: white;
}

.green {
    height: 9px;
    background: #138808;
}

/* Main Container */
.container {
    width: 90%;
    max-width: 700px;
    margin: 40px auto;
}

/* Card */
.card {
    background: white;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.hidden {
    display: none;
}

/* Headings */
h1 {
    color: #ff671f;
    margin-bottom: 12px;
}

h2 {
    margin-bottom: 15px;
}

#startPage h2 {
    color: #138808;
}

#startPage p {
    color: #666;
    margin-bottom: 25px;
}

/* Name Input */
input[type="text"] {
    width: 100%;
    padding: 15px;
    font-size: 17px;
    border: 2px solid #ddd;
    border-radius: 10px;
    margin-bottom: 15px;
}

input[type="text"]:focus {
    outline: none;
    border-color: #138808;
}

/* Quiz Top */
.top {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 15px;
    color: #555;
}

/* Progress Bar */
.progress {
    width: 100%;
    height: 10px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

#progressBar {
    height: 100%;
    width: 0%;
    background: #138808;
    transition: width 0.4s;
}

/* Question */
.question-title {
    font-size: 22px;
    line-height: 1.5;
    margin-bottom: 25px;
    text-align: left;
}

/* Answer Buttons */
.answer {
    display: block;
    width: 100%;
    padding: 15px;
    margin: 12px 0;
    background: #ffdddd;
    color: #b00000;
    border: 2px solid #ff0000;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.answer:hover {
    background: #ffcccc;
    border-color: #b00000;
}

.answer.selected {
    background: red;
    color: white;
    border-color: darkred;
}

/* Main Buttons */
button {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: #138808;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #0d6506;
}

button:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Score Circle */
.score-box {
    width: 150px;
    height: 150px;
    border: 7px solid #ff9933;
    border-radius: 50%;
    margin: 25px auto;

    display: flex;
    justify-content: center;
    align-items: center;
}

#scoreText {
    font-size: 28px;
    font-weight: bold;
    color: #138808;
}

#percentageText {
    font-size: 20px;
    font-weight: bold;
    margin: 15px;
}

#message {
    color: #ff671f;
    margin: 20px 0;
}

#saveStatus {
    font-size: 15px;
    margin: 15px 0;
    color: #138808;
}

.jai-hind {
    font-size: 18px;
    font-weight: bold;
    color: #138808;
}

/* Footer */
footer {
    text-align: center;
    background: #222;
    color: white;
    padding: 20px;
    margin-top: 40px;
}

/* Mobile */
@media (max-width: 600px) {

    .container {
        width: 94%;
        margin: 25px auto;
    }

    .card {
        padding: 25px 18px;
    }

    .top {
        flex-direction: column;
        gap: 8px;
        text-align: left;
    }

    .question-title {
        font-size: 19px;
    }

    h1 {
        font-size: 25px;
    }
}