body {
    margin: 10px;
    padding: 10px;
    background: linear-gradient(-45deg,
      rgba(0, 0, 0, 1),
      rgba(40, 40, 40, 1),
      rgb(0, 0, 0),
      rgb(3, 3, 3)
    );
    background-size: 400% 400%;
    animation: bgAnimation 20s ease infinite;
    font-family: meno;
  }
  #SSone{
    color: #fff;
    height: 350px;
    overflow-y: scroll;
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* Internet Explorer 10+ */
    width: 50%;
    direction: rtl;
  }
  .hidden-scrollbar::-webkit-scrollbar {
    display: none;                /* Chrome, Safari and Opera */
  }

    /* قاب کلی برای نگه‌داری باکس و فلش */
    #SSone .scroll-box-wrapper {
      position: relative;
    }
  
    /* محتوای قابل اسکرول */
    #SSone .scroll-box {
      height: 350px;
      overflow-y: auto;
      padding-right: 10px;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
  
    #SSone .scroll-box::-webkit-scrollbar {
      display: none;
    }
  
    #SSone .scroll-content {
      padding-bottom: 50px;
    }
  
    /* فلش راهنما - ثابت پایین باکس */
    #SSone .scroll-hint-text {
      position: absolute;
      bottom: 5px;
      left: 10%;
      transform: translateX(-90%);
      font-size: 14px;
      color: #888;
      animation: fade-bounce 1.5s infinite;
      pointer-events: none;
      padding: 0 5px;
    }
  
    @keyframes fade-bounce {
      0%, 100% {
        opacity: 0.4;
        transform: translateX(-50%) translateY(0);
      }
      50% {
        opacity: 1;
        transform: translateX(-50%) translateY(6px);
      }
    }
  
  .aq {
    width: 100%;
  }

  .qx {
    position: relative;
    overflow: hidden;
    height: 70px;
    width: 85%;
    margin: 30px auto;
    background: transparent;
    border-radius: 10px;
    direction: rtl;
    font-family: Tahoma, sans-serif;
  }

  .ticker-text {
    position: absolute;
    white-space: nowrap;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 500;
    color: white;
    opacity: 1;
    left: 100%; /* متن رو خارج از سمت چپ قرار بده */
  }
  .carousel {
    position: relative;
  }
  .mor{
    font-size: 0.8rem;
  }
  #d{
    font-size: 1rem;
  }
  .card img{
    border-radius: 9px 9px 0px 0px;
  }

  .btn, .btn-check:checked{
    border-color: #ccc;
    color: #ccc;
  }
.btn-group{
  flex-wrap: wrap;
}
  .flex-center {
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .custom-radio {
    transition: all 0.2s ease-in-out;
  }
  
  /* Hover */
  .custom-radio:hover {
    background-color: #ccc;
    color: #000;
    border-color: #000;
  }

  #eu{
    margin-left: auto;
  }
  
  /* Active */
  .active-btn {
    background-color: #ccc !important;
    color: #000 !important;
    border-color: #000 !important;
  }
  


  /* وقتی روش کلیک می‌شه (حالت active) */
  .kop:active {
    background-color: #ccc;
    color: #000;
    border-color: #000;
  }

  .button{
    width: 100%;
    color: #fff;
    background: rgba(10, 10, 10, 0); /* نیمه‌تاریک مثل محیط Nier */
    border: none;
  }
  
  .button:hover{
    color: #fff;
    background: rgba(43, 42, 42, 0.432);
  }
  
  .btn-container {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    display: flex;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 10px;
  }
  
  i{
      font-style: italic;
    
  }

  
  .scroll-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
  }
  
  .scroll-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  
  .card {
    flex: 0 0 300px;
    margin: 0 10px;
    border-radius: 10px;
    box-sizing: border-box;
    background: transparent;
    width: 310px;
    color: aliceblue;
    border: 1px solid aliceblue;
    height: 500px;
  }
  
  .controls {
    margin-top: 15px;
    text-align: center;
  }
  
  .controls button {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    margin: 0 20%;
  }
.nextBtn{
  background: transparent;
  color: aliceblue;
  font-size: 3rem;
  border: none;
  font-weight: bold;
}
  .prevBtn{
    background: transparent;
    color: aliceblue;
    font-size: 3rem;  
    border: none;
    font-weight: bold;  
  }
  .qw {
    background: none;
    border: none;
    color: white;
    font-weight: bold;
    font-family: sans-serif;
    cursor: pointer;
    text-shadow: 0px 0px 15px rgba(0, 0, 0, 1), 
    2px 2px 5px rgba(0, 0, 0, 0.8),
    1px 3px 4px rgba(0, 0, 0, 0.6);
    padding: 6px;
    position: relative;
    font-family: meno;
    margin-left: auto;
  }

  .qw.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 1), 
    2px 2px 5px rgba(0, 0, 0, 0.8),
    1px 3px 4px rgba(0, 0, 0, 0.6);
    animation: slideDown 0.3s ease-out forwards;
    transform-origin: top;
    transform: scaleY(0);
  }

  img{
    border-radius: 10px;
  }

  h1, h2, h3, h4{
     text-align: center;
     font-family:  Ingsf;
  }
  p{
    text-align: justify;
    font-size: 1rem;
    font-family: meno;
  }
  
  .Sz{
    width: 85%;
    height: auto;
    margin-left: auto;
    margin-right: auto;

  }

  .nier-footer {
    background-color: #111;
    font-family: 'Segoe UI', sans-serif;
  }
  
  .footer-link {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
    
  }
  
  .footer-link:hover {
    color: #fff;
    text-decoration: underline;
    
  }

  .Yoko{
    width: 85%;
    height: auto;
    background: rgba(56, 56, 56, 0.349);
    border-left: 4px solid black;
    padding: 10px;

  }
.d{
  height: 150vh;
}

.responsive-table {
  overflow-x: auto;
  margin: 1rem 0;
}

.responsive-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 400px;
}

.responsive-table th,
.responsive-table td {
  border: 1px solid #ccc;
  padding: 12px 16px;
  text-align: center;
  font-family: sans-serif;
  background: transparent;
}

.responsive-table thead {
  background-color: #222;
  color: #fff;
}

@media (max-width: 600px) {
  .flex-center, .btn-group{
width: 100%;
  }

  .responsive-table table {
    font-size: 14px;
  }

  .responsive-table th,
  .responsive-table td {
    padding: 10px;
  }
}


  .Sz p,
.Sz h1,
.Sz h2,
.Sz h4,
.Sz img {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.Sz .reveal {
  opacity: 1;
  transform: translateY(0);
}

.card img{
  height: 200px;
}
#w{
  height: 200px;
}

  @keyframes bgAnimation {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
/****************************************/
@font-face{
    font-family: meno;
    src: url(FontXNIER/vazir-font-v16.1.0/Vazir-Bold.ttf);
  }
  
  @font-face {
    font-family: titer;
    src: url(FontXNIER/B-Titr/B\ Titr\ Bold_0.ttf);
  }

  @font-face {
    font-family: Ingsf;
    src: url(FontXNIER/fonts/Exo2-Italic-VariableFont_wght.ttf);
  }


  @media (max-width: 800px){
    img{
        height: 400px;
    }
    .card{
      width: 300px;
    }
    .controls button {
      margin: 0 5%;
    }


     .qx{
      width: 100%;
    }
     .lc button, .xv button{
      width: 100%;
     }
.AA{
  font-size: 1.2rem;
}
.ZZ{
  font-size: 14px;
}
.im{
  height: 150px;
}
  }

  /*********************************/
  @media (max-width: 600px){
    .im{
      height: 250px;
      margin: 10px 0 10px 0;
    }
    .scroll-hint-text{
      margin-bottom: -3%;
    }
    #SSone {
      margin-top: 15px;
      width: 100%;
    }
    .lc button, .xv button{
      height: 50px;
     }
     .xv{
      margin-bottom: 1%;
     }

    .card{
      width: 255px;
    }

    
    .nier-footer {
      text-align: center;
    }

    p {
        font-size: 0.9375rem; /* کمی کوچکتر برای صفحه‌های کوچکتر */
      }
    img{
        height: 300px;
    }
    .Sz{
        width: 100%;
    }
    h1{
        font-size: 1.2rem;
    }
    .g{
        font-size: 0.9375rem; /* کمی کوچکتر برای صفحه‌های کوچکتر */
    }

  }

  @media (max-width: 400px){
    .scroll-hint-text{
      margin-bottom: -5%;
    }
    .card{
      width: 300px;
    }

    .Yoko{
      width: 100%;
    }
    img{
        height: 250px;
    }
  }

  @keyframes slideDown {
    0% {
      transform: scaleY(0);
    }
    100% {
      transform: scaleY(1);
    }
  }

/********* fonts **********/

.zermag{
    width: 100%;
    border-radius: 15px;
    background: transparent;
    box-shadow: 0px 0px 15px rgb(255, 255, 255);
    color: #fff;
    height: auto;
    flex-wrap: nowrap;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
    text-align: justify;
    font-family: meno;
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin-top: 6%;
  }
  
  .zermag {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
  }
  
  /* وقتی باکس وارد دید کاربر شد، این کلاس اضافه میشه */
  .zermag.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  
  
  .zerma{
    width: 100%;
    border-radius: 15px;
    background: transparent;
    color: #fff;
    height: auto;
    flex-wrap: nowrap;
    margin-left: auto;
    margin-right: auto;
    font-family: meno;
    transition: all 0.3s ease;
  
  
  }
  