/* ===== RESET ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}


/* ===== BODY ===== */

body {
    background: #f5f6fa;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
}


/* ===== SCREEN (CARD) ===== */

.screen {
    display: none;
    width: 420px;
    background: white;
    padding: 25px;
    border-radius: 20px;
    /* 🔥 yumaloq */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.screen.active {
    display: block;
}


/* ===== TITLE ===== */

.app-title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
    /* 🔥 qora */
}


/* ===== BUTTON ===== */

button {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    /* 🔥 yumaloq */
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: #87CEFA;
    /* 🔥 och ko‘k */
    color: black;
    transition: 0.2s ease;
}

button:hover {
    background: #6ec1f3;
}


/* ===== TEST HEADER ===== */

.test-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
}


/* ===== QUESTION ===== */

#question-box {
    font-size: 17px;
    margin-bottom: 15px;
}


/* ===== OPTIONS ===== */

#options-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option {
    border: 1px solid #ccd6e0;
    padding: 10px;
    border-radius: 10px;
    /* 🔥 yumaloq */
    cursor: pointer;
    transition: 0.2s;
}

.option:hover {
    background: #f0f6ff;
}

.option.selected {
    background: #dce9ff;
    border-color: #6ea8ff;
}


/* ===== ACTION BUTTONS ===== */

.actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.actions button {
    flex: 1;
}


/* ===== RESULT ===== */

#result-screen h3 {
    text-align: center;
    margin-bottom: 10px;
}

#result-screen p {
    text-align: center;
    margin-bottom: 5px;
}


/* ===== RESPONSIVE ===== */

@media (max-width: 500px) {
    .screen {
        width: 90%;
        padding: 20px;
    }
}