/* ---- بنیادی اسٹائلز ---- */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 1s ease-in-out;
}

.screen {
    width: 850px;
    height: 650px;
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.screen.active {
    display: flex;
}

/* ---- ویلکم اسکرین ---- */
#welcome-screen {
    background-color: #2E4053;
    color: white;
    justify-content: space-between;
}

.school-name {
    font-family: 'Helvetica', sans-serif;
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
}

#welcome-screen .main-frame {
    width: 100%;
    text-align: center;
}

#welcome-screen label {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
}

.name-entry {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    width: 300px;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    background-color: white;
    color: black;
}

.start-button {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: bold;
    background-color: green;
    color: white;
    border: none;
    padding: 15px 30px;
    margin-top: 30px;
    cursor: pointer;
}

.phone-label {
    font-family: 'Arial', sans-serif;
    font-size: 26px;
    font-weight: bold;
}

/* ---- مین مینو اسکرین ---- */
#main-menu-screen .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-button {
    width: 280px;
    height: 280px;
    font-family: 'Arial Rounded MT Bold', sans-serif;
    font-size: 70px;
    font-weight: bold;
    margin: 20px;
    border: 5px solid rgba(0,0,0,0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#math-btn {
    background-color: #FFC300;
    color: #333333;
}
#math-btn:hover {
    background-color: #FFD65C;
}

#eng-btn {
    background-color: #3498DB;
    color: white;
}
#eng-btn:hover {
    background-color: #5DADE2;
}


/* ---- کوئز اسکرین ---- */
#quiz-screen {
    background-color: #FFFACD; /* LemonChiffon */
}

#quiz-screen .main-frame {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.question-frame {
    text-align: center;
}

#question-label {
    font-family: 'Segoe UI Black', sans-serif;
    font-size: 32px;
    color: #34495E;
    margin-bottom: 10px;
}

.urdu-question {
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
    font-size: 28px; /* تھوڑا بڑا فونٹ سائز */
    color: #5D6D7E;
    cursor: pointer;
}

.options-frame {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    width: 100%;
    flex-grow: 1;
    margin: 20px 0;
}

.option-button {
    font-family: 'Segoe UI Semibold', sans-serif;
    font-size: 20px;
    color: #2C3E50;
    background-color: #BDC3C7; /* گرے */
    border: none;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 8px;
}

.option-button:hover:not(:disabled) {
    background-color: #AAB7B8; /* گہرا گرے */
}

.option-button.correct {
    background-color: #2ECC71 !important;
    color: white;
}
.option-button.wrong {
    background-color: #E74C3C !important;
    color: white;
}


#feedback-label {
    font-family: 'Arial Rounded MT Bold', sans-serif;
    font-size: 30px;
    text-align: center;
    height: 40px;
}

#next-btn {
    font-family: 'Segoe UI Semibold', sans-serif;
    font-size: 20px;
    background-color: #95A5A6;
    color: white;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    align-self: center;
    margin-top: 20px;
    display: none; /* Initially hidden */
    border-radius: 8px;
}

/* ---- اسکور اسکرین ---- */
#score-screen {
    background-color: #34495E;
    color: white;
    text-align: center;
}

#score-screen h1 {
    font-family: "Arial Rounded MT Bold", sans-serif;
    font-size: 52px;
    font-weight: bold;
    margin-bottom: 40px;
}

.stats-frame {
    font-family: "Segoe UI", sans-serif;
    font-size: 24px;
    text-align: left;
    display: inline-block;
}
.stats-frame p {
    margin: 10px 0;
}
#correct-answers { color: #2ECC71; }
#wrong-answers { color: #E74C3C; }

.button-frame {
    margin-top: 50px;
}

.button-frame button {
    font-family: "Segoe UI", sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: white;
    border: none;
    width: 150px;
    height: 60px;
    margin: 0 20px;
    cursor: pointer;
    border-radius: 8px;
}

#play-again-btn { background-color: #2ECC71; }
#main-menu-btn { background-color: #E74C3C; }