:root {
    --primary-color: #ffcc00; /* رنگ اصلی */
    --secondary-color: #007bff; /* رنگ ثانویه */
    --background-color: #1a1a1a; /* رنگ پس‌زمینه تیره */
    --text-color: #e0e0e0; /* رنگ متن روشن */
    --muted-text-color: #b3b3b3; /* رنگ متن کمرنگ */
    --border-color: #444; /* رنگ حاشیه */
}

body {
    justify-content: center; /* اضافه کردن این خط برای وسط‌چین کردن */
    align-items: center;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Arial, sans-serif;
}

.container {
     display: flex; /* استفاده از Flexbox */
    flex-direction: column; /* چینش عمودی */
    justify-content: center; /* مرکز کردن عمودی */
    height: 100%; /* ارتفاع کامل برای مرکز کردن */
}
.content {
    text-align: center; /* مرکز کردن متن */
    padding: 20px;
    background-color: #f0f0f0; /* رنگ پس‌زمینه برای محتوا */
    border-radius: 8px; /* گوشه‌های گرد */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* سایه */
}
.left {
    flex: 1; /* بخش چپ */
    background-color: #1a1a1a; /* رنگ پس‌زمینه برای بخش چپ */
}



.right iframe {
    width: 100%; /* iframe به عرض کامل بخش راست می‌رسد */
    height: 100%; /* ارتفاع iframe به ارتفاع کامل بخش راست می‌رسد */
}

@media (max-width: 1100px) {
    .right {
        display: none; /* پنهان کردن بخش راست در نمایش موبایل */
    }
}




a:link {
  color: ffcc00;
  background-color: transparent;
  text-decoration: none;
}
a:visited {
  color: 9a2b0e;
  background-color: transparent;
  text-decoration: none;
}
body {direction:rtl;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Arial', sans-serif;
    margin: 25px;
     
}

a {  
    color: var(--primary-color);
    text-decoration-line: none;
        padding: 0px 80px;
    transition: color 0.3s; /* انیمیشن تغییر رنگ */
      margin: 0;
    padding: 0;
    
    
}




.opacity.description {
  background-color: #2a2a2a;
  color: #e0e0e0;
  padding: 20px 25px;
  margin: 30px auto;
  max-width: 1000px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  line-height: 2.2;
  white-space: normal;
  font-size: 16px;
  font-family: 'B Titr', Tahoma, sans-serif;
  text-align: justify;
  position: relative;
  overflow: hidden;
}

/* افزودن عنوان اتوماتیک با before */
.opacity.description::before {
  content: "📝 داستان بازی";
  display: block;
  font-size: 20px;
  font-weight: bold;
  color: #ffcc00;
  margin-bottom: 15px;
  text-align: center;
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 768px) {
  .opacity.description {
    padding: 15px 15px;
    font-size: 15px;
    line-height: 2;
    margin: 20px 10px;
  }

  .opacity.description::before {
    font-size: 18px;
    margin-bottom: 10px;
  }
}









.navigation {
    display: flex;
    justify-content: center;
    margin: 10px 0;
    flex-wrap: wrap;
}


.navigationline {
    display: flex;
    justify-content:space-between;
}

.navlink {
    margin:  5px;
}

.navlink a:hover {
    background-color: #535151; /* رنگ پس‌زمینه هنگام هاور */
    border-color: #535151; /* رنگ حاشیه هنگام هاور */
}
.navlink a {
    left: -130px;
    padding: 10px 15px;
    border-radius: 50px;
    transition: background-color 0.3s, border-color 0.3s;
}



#frontcover {
    text-align: center;
}

.coverimage {
    width: 300px;
    border-radius: 1px;
}

table {
    width:2050%;
    border-collapse:inherit ;
    margin-top: 1px;
}

td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}
div {
    float: none !important; /* تاثیر float را نادیده می‌گیرد */
    margin: 0 auto; /* مرکز قرار دادن div */
}
/* استایل برای گوشی‌های موبایل */
@media (max-width: 1068px) {
    table {
        font-size: 18px;
        font-weight: bold;
        width: 100%;
    }

    .details > tbody > tr:nth-child(1) > td:nth-child(1) .valuestable {
        width: 450px; /* مقدار ثابت برای عرض */
        min-width: 450px; /* حداقل عرض */
        max-width: 350px; /* حداکثر عرض */
        font-size: 14px;
        font-weight: bold;
    }
}

/* استایل برای رایانه‌های شخصی */
@media (min-width: 1069px) {
     table {
        font-size: 20px;
        font-weight: bold;
        width: 50%;
    }
    .details > tbody > tr:nth-child(1) > td:nth-child(1) .valuestable {
        width: 800px; /* مقدار ثابت برای عرض */
        min-width: 700px; /* حداقل عرض */
        max-width: 800px; /* حداکثر عرض */
        font-size: 16px;
        font-weight: bold;
    }
}

.details > tbody > tr:nth-child(1) > td:nth-child(2) .valuestable {
    width: 200px;
    min-width: 250px;
    max-width: 200px;font-size: 17px;
}


/* انتخاب جدول Features */
.details > tbody > tr:nth-child(3) .valuestable {
    width: 1300px;
    min-width: 1300px;
    max-width: 1300px;
}
.opacity.nomargintop {
    font-size: 16px;
    font-weight: bold;
}
.maintitle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}
.small {
    font-size: 16px;
    font-weight: bold;
}
.header {
    
    background-color: #444; 
    color: var(--primary-color);
    padding: 10px;
    text-align: center;
}

.fieldlabel {padding: 9px 35px;
    font-weight: bold;
}

.fieldvalue {  white-space: pre-line;

    color: var(--muted-text-color);
}

.opacity {text-align: center;
    opacity: 0.9;
    font-size: 12px;
    
}
.opacity.description {text-align: center;
    opacity: 0.9;
    font-size: 16px;
    
}
.marginbackdrop {
    background-color: rgba(50, 50, 50, 0.8);
    padding: 15px;
    border-radius: 8px;
}

.details {
     width: 75%;
    max-width: 40px auto;
    margin: 10px auto;
    text-align: center;
}

.sidebox {
    background-color: #2a2a2a; 
    border-radius: 10px;
    padding: 1``5px;
    margin-top: 20px;
}
.image-preview {
    width: 100%;
    max-width: 200px;
    height: auto;
    overflow: hidden;
    margin: 2px;
}

.image-preview img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.image-preview img:hover {
    transform: scale(1.05);
}

#image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0px;
    width: 100%;
    max-width: 3000px;
}
#video-container {
    width: 100%;
    max-width: 1280px;
    height: 720px;
    margin-top: 0px;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#video-container video {
    width: 170%;
    height: 100%;
}

#movietitle, .fieldvaluelarge, .fieldvaluedefault {
    margin: 5px 0;
    text-align: center;
}


    #video-container {
        width: 670px; /* مقدار ثابت برای عرض */
        
        font-size: 16px;
        height: 535; /* مقدار ثابت برای عرض */
        
       
    
        padding-right: 10px;
        display: flex;
        justify-content: center; /* اضافه کردن این خط برای وسط‌چین کردن */
        align-items: center; /* اضافه کردن این خط برای وسط‌چین کردن عمودی */
    }
    }
    .imdb-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 3px; /* تنظیم فاصله از بالا برای هم‌تراز کردن با "0*" */
}

.imdb-container span,
.imdb-container i {
    display: inline-block;
    vertical-align: top;
}
#notes {
    
  width: 250px; /* عرض 100 پیکسل */
  overflow: auto; /* اجازه می‌دهد که در صورت نیاز، محتوای اضافی نمایش داده شود */
  padding: 5px; /* اضافه کردن کمی padding */
          font-size: 22px;

}
/* برای Lightbox عکس */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

#lightbox #close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  font-weight: bold;
  z-index: 10000;
}

