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;
  }
  .button{
    width: 100%;
    color: #fff;
    background: rgba(10, 10, 10, 0); /* نیمه‌تاریک مثل محیط Nier */
    border: none;
  }
  
  .card img{
    border-radius: 9px 9px 0px 0px;
  }

  .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;
  }
  
  #prevBtn, #nextBtn{
    background: transparent;
    color: aliceblue;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    }
    

  .controls {
    margin-top: 15px;
    text-align: center;
  }
  
  .controls button {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    margin: 0 20%;
  }

  .card img{
    height: 200px;
  }

  .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;
  }
  
  .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;
}
  @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 **********/
