body {
    font-family: 'Vazirmatn', sans-serif;
    background: url('images/cinema-background.jpg') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    transition: none
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/cinema-background.jpg') no-repeat center center;
    background-size: cover;
    z-index: -2;
    opacity: 0.9; 
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 215, 0, 0.05) 2px,
        rgba(255, 215, 0, 0.05) 4px
    );
    pointer-events: none;
    z-index: -1;
    animation: noise 0.1s infinite;
}

@keyframes noise {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

header {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid #d4af37; /* طلایی ملایم‌تر */
    border-radius: 10px; /* گرد کردن هدر */
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3), inset 0 0 10px rgba(139, 0, 0, 0.2); /* طلایی کم‌نورتر */
    animation: fadeIn 1s ease-in;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5em;
    color: #d4af37; /* طلایی ملایم‌تر */
    margin: 0;
    text-shadow: 0 0 6px #d4af37, 0 0 3px #8B0000; /* درخشش کمتر */
    border-bottom: none;
    padding-bottom: 10px;
}

.rooms-container {
    position: relative;
    min-height: calc(100vh - 200px); /* تنظیم برای فضای هدر و فوتر */
    background: transparent; /* لایه پس‌زمینه جدا می‌شه */
    margin-top: 0;
    border: 2px solid #c5a15e;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rooms {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
    background: transparent;
}

.room {
    padding: 15px 20px;
    background: rgba(44, 44, 44, 0.9);
    border: 2px solid #c5a15e;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: 'Cinzel', serif;
    color: #c5a15e;
    width: calc(50% - 7.5px);
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 0 8px rgba(139, 0, 0, 0.4), inset 0 0 4px #c5a15e;
    position: relative;
}

.room:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px #c5a15e, inset 0 0 8px #8B0000;
    color: #8B5A2B; /* قهوه‌ای برای هماهنگی */
}   

.room::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 1px,
        rgba(197, 161, 94, 0.08) 1px, /* طلایی کم‌رنگ‌تر */
        rgba(197, 161, 94, 0.08) 2px
    );
    z-index: -1;
}

.room.left {
    order: 1;
}

.room.right {
    order: 2;
}

.room:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px #d4af37, inset 0 0 8px #8B0000;
    color: #fff;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.menu-title {
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #d9c7b0;
    font-family: 'Cinzel', serif;
    font-size: 1.5em;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(197, 161, 94, 0.2);
}

.menu-section {
    display: block;
    margin-top: 20px;
    animation: slideIn 0.1s ease-out;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 15px; 
}

.menu-item {
    padding: 10px 15px;
    background: #1e1e1e;
    margin: 0;
    border-radius: 8px;
    border-left: 4px solid #5C4033;
    transition: transform 0.1s;
    color: #d9c7b0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);

    display: flex;            
    justify-content: space-between; 
    align-items: center;       
    direction: rtl;      
}

.menu-item:hover {
    transform: translateX(-5px);
    background: #282828;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.back-button {
    display: inline-block;
    padding: 12px 25px; /* اندازه مناسب‌تر */
    background: #2c2c2c;
    color: #ffd700;
    text-decoration: none;
    border: 2px solid #c5a15e;
    border-radius: 5px;
    margin-top: 20px; /* فاصله از آیتم‌ها */
    font-family: 'Cinzel', serif; /* هماهنگی با تم */
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    text-align: center; /* متن وسط‌چین */
    direction: rtl; /* راست به چپ برای متن */
    display: block; /* بلاک برای مرکزیت بهتر */
    margin-left: auto; /* مرکزیت افقی */
    margin-right: auto; /* مرکزیت افقی */
    width: 200px; /* عرض ثابت برای زیبایی */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* سایه برای عمق */
} 

.back-button:hover {
    background: #3a3a3a;
    color: #fff;
    transform: translateX(0); /* حرکت حذف شده، فقط رنگ تغییر می‌کنه */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
/* تنظیمات viewport برای موبایل */
@media (max-width: 768px) {
    .rooms-container {
        min-height: 100vh; /* پر کردن کل ارتفاع صفحه */
        padding: 10px;
        border: none;
    }

    .rooms {
        max-width: 100%; 
        margin: 0;
        padding: 10px;
    }

    .room {
        width: 100%; 
        margin-bottom: 10px;
    }

    .menu-grid {
        grid-template-columns: 1fr; 
        gap: 10px;
    }
    .back-button {
        padding: 10px 20px;
        font-size: 1em;
        margin-top: 15px;
        width: 150px; /* عرض کمتر توی موبایل */
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.footer-info {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.9);
    color: #d9c7b0;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9em;
    margin-top: 20px;
    border: 1px solid #5C4033;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.footer-info a {
    color: #c5a15e;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-info a:hover {
    color: #8B5A2B;
}