/* --- Estilos Generales --- */
@import url('https://fonts.googleapis.com/css2?family=Comic+Sans+MS&family=Arial&display=swap');

body {
    font-family: 'Arial', sans-serif;
    background-color: #5f7c8d; 
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: #333;
    /* Extra padding ki ab zaroorat nahi */
}
.hidden { display: none !important; }
.main-content-box {
    width: 100%;
    max-width: 850px;
    /* Padding kam kar di hai taaki branding text fit ho */
    padding: 40px 40px 20px 40px; 
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    box-sizing: border-box;
    text-align: center;
}
#start-screen { background-color: #add8e6; }
.start-title-small { font-family: 'Comic Sans MS', cursive; font-size: 40px; font-weight: bold; color: #4682b4; margin: 0; }
.start-title-large { font-family: 'Comic Sans MS', cursive; font-size: 60px; font-weight: bold; color: #800080; margin: 0 0 15px 0; }
.start-subtitle { font-size: 24px; color: black; margin-bottom: 25px; }

/* === NAAM ENTER KARNE KE LIYE STYLES === */
#name-entry-container { margin-bottom: 20px; }
.name-label { display: block; font-size: 20px; margin-bottom: 10px; color: #333; }
#name-input { font-size: 24px; padding: 10px 15px; width: 80%; max-width: 400px; border: 3px solid #ccc; border-radius: 10px; text-align: center; }
#name-input:focus { outline: none; border-color: #4169e1; }
#name-feedback { min-height: 25px; margin-top: 10px; font-size: 18px; font-weight: bold; }
.correct-feedback { color: #008000; }
.incorrect-feedback { color: #d32f2f; }
.warning-feedback { color: #f57c00; }

/* === BAAKI STYLES WAISE HI HAIN === */
.start-button {
    font-size: 36px; font-weight: bold; color: white; background-color: #4169e1; border: none;
    border-bottom: 10px solid #1e90ff; border-radius: 15px; padding: 15px 30px; cursor: pointer;
    transition: all 0.1s ease-in-out;
}
.start-button:hover { background-color: #5a7ee4; }
.start-button:active { transform: translateY(5px); border-bottom-width: 5px; }
.start-button:disabled { background-color: #aaa; border-bottom: 10px solid #888; cursor: not-allowed; }

#game-container { background-color: #e0f2f7; }
.game-title { font-family: 'Comic Sans MS', cursive; font-size: 54px; font-weight: bold; color: #800080; margin: 0; }
.game-subtitle { font-family: 'Comic Sans MS', cursive; font-size: 26px; font-style: italic; color: #4682b4; margin: 0 0 20px 0; }
.stats-label { font-size: 20px; font-weight: bold; color: darkgray; margin-bottom: 10px; }
.category-label { font-size: 32px; font-weight: bold; color: #ff8c00; margin: 10px 0 5px 0; }
.sentence-display { font-size: 40px; font-weight: bold; color: #00008b; min-height: 120px; margin: 5px 0 30px 0; line-height: 1.4; }
.user-input { font-size: 28px; text-align: center; border: 5px solid #ccc; border-radius: 10px; width: 90%; padding: 10px; box-sizing: border-box; margin-bottom: 10px; transition: background-color 0.3s; }
.user-input:focus { outline: none; border-color: #4682b4; }
.user-input.correct { background-color: #e0ffe0; border-color: green; }
.user-input.incorrect { background-color: #ffe0e0; border-color: red; }
.feedback-label { font-size: 22px; min-height: 30px; margin-bottom: 10px; }
.feedback-label.correct { color: green; }
.feedback-label.incorrect { color: red; }
.feedback-label.warning { color: orange; }
.button-container { display: flex; justify-content: center; gap: 20px; margin-top: 10px; }
.game-button { font-size: 24px; font-weight: bold; color: white; padding: 10px 20px; border: none; border-radius: 10px; cursor: pointer; transition: background-color 0.2s, transform 0.1s; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }
.game-button:disabled { background-color: #b0b0b0; cursor: not-allowed; box-shadow: none; }
.check-button { background-color: #008080; }
.check-button:not(:disabled):hover { background-color: #006666; }
.next-button { background-color: #32cd32; }
.next-button:not(:disabled):hover { background-color: #228b22; }
.game-button:not(:disabled):active { transform: translateY(2px); box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.modal-content { background: white; padding: 40px; border-radius: 20px; text-align: center; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); width: 90%; max-width: 550px; }
#modal-title { font-size: 40px; font-weight: bold; margin-top: 0; margin-bottom: 20px; }
#modal-score { font-size: 24px; font-weight: normal; margin-bottom: 8px; }
#modal-message { font-size: 20px; font-style: italic; color: #555; margin-bottom: 30px; }
.modal-question { font-size: 22px; margin-bottom: 25px; }
#play-again-btn { font-size: 28px; font-weight: bold; color: white; background-color: #4169e1; border: none; border-radius: 12px; padding: 12px 40px; cursor: pointer; transition: background-color 0.2s; }
#play-again-btn:hover { background-color: #5a7ee4; }

/* === BRANDING INSIDE THE BOX === */
.branding-footer {
    margin-top: 40px; /* Upar ke content se doori */
    padding-top: 20px; /* Line aur text ke beech mein space */
    border-top: 1px solid #ccc; /* Halki si line */
    font-size: 14px;
    color: #888; /* Halka color */
}
/* ============================= */