body {
    font-family: Tahoma, sans-serif;
    background: linear-gradient(to bottom, #f6a592, #fff7cc);
    margin: 0;
    min-height: 100vh;
    display: flex;              /* مهم */
    justify-content: center;    /* وسط افقی */
    align-items: center;        /* وسط عمودی */
}

.container {
    max-width: 500px;
    width: 90%;
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
}

button.option {
    display: block;
    width: 80%;
    margin: 10px auto;
    padding: 10px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background-color: #ffef35;
    color: black;
    transition: transform 0.1s;
}

button.option:active {
    transform: scale(0.95);
}

#result {
    margin-top: 20px;
    font-size: 18px;
    min-height: 50px;
}

.character {
   width: 500px;
    margin-top: 15px;
    transition: transform 0.3s;
}

.jump {
    animation: jumpAnim 0.3s;
}

@keyframes jumpAnim {
    0% { transform: translateY(0); }
    50% { transform: translateY(-25px); }
    100% { transform: translateY(0); }
}

/* ===== ریسپانسیو عمومی ===== */
@media screen and (max-width: 600px) {
    .container {
        width: 90%; /* کاهش عرض برای موبایل */
        padding: 15px;
    }

    h1 {
        font-size: 1.8rem; /* کوچکتر کردن تیتر */
    }

    button.option, #nextBtn {
        width: 95%; /* دکمه‌ها پهن‌تر برای موبایل */
        font-size: 14px;
        padding: 8px;
    }

    #result {
        font-size: 16px;
    }

    .character {
        width: 300px; /* تصویر کوچکتر برای موبایل */
        margin: 20px;
    }
}

/* ===== ریسپانسیو برای صفحات خیلی کوچک ===== */
@media screen and (max-width: 400px) {
    h1 {
        font-size: 1.5rem;
    }

    button.option, #nextBtn {
        font-size: 13px;
        padding: 6px;
    }

    .character {
        width: 100px;
    }
}