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;
  }
  .carousel {
    position: relative;
  }
  .card img{
    border-radius: 9px 9px 0px 0px;
  }
  .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: 452px;
  }
  
  .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{
     text-align: center;
  }
  p{
    text-align: justify;
    font-size: 1rem;
  }
  
  .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) {
  .responsive-table table {
    font-size: 14px;
  }

  .responsive-table th,
  .responsive-table td {
    padding: 10px;
  }
}

.mmb {
    opacity: 0;
    transition: opacity 1.3s ease-in-out; /* خیلی نرم */
  }
  
  .mmb.show {
    opacity: 1;
  }

  .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: 150px;
}

  @keyframes bgAnimation {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
/****************************************/
@font-face{
    font-family: meno;
    src: url(fonts/Exo2-Italic-VariableFont_wght.ttf);
  }
  @font-face {
    font-family: titer;
    src: url(fonts/Newfolder/Orbitron-VariableFont_wght.ttf);
  }

  @media (max-width: 800px){
    img{
        height: 400px;
    }
    .card{
      width: 300px;
    }
    .controls button {
      margin: 0 5%;
    }
  }

  /*********************************/
  @media (max-width: 600px){
    .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){
    .card{
      width: 350px;
    }

    .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;
  
  
  }
  