.result-box {
    display: none; /* ابتدا پنهان است */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    width: 80%;
    max-width: 400px;
    text-align: center;
}

.result-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.result-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.result-content button {
    background-color: #007BFF;
    color: rgb(255, 255, 255);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.result-content button:hover {
    background-color: #0056b3;
}





/* استایل اولیه باکس */
#messageBox {
    position: fixed;
    bottom: -100px; /* ابتدا خارج از صفحه قرار دارد */
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    padding: 20px;
    background-color: blue;
    color: white;
    text-align: center;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* انیمیشن برای ورود و خروج */
@keyframes slideUpAndDisappear {
    0% {
        bottom: -100px;
        opacity: 0;
    }
    20% {
        bottom: 50px;
        opacity: 1;
    }
    80% {
        bottom: 50px;
        opacity: 1;
    }
    100% {
        bottom: -100px;
        opacity: 0;
    }
}

/* کلاس برای نمایش انیمیشن */
.show {
    animation: slideUpAndDisappear 3s ease-in-out forwards;
}
