@media screen and (max-width: 768px) {
    #up ul {
      display: flex;
      flex-direction: column;
      align-items: center;
      background-color: white;
      padding: 10px;
      margin: 0;
      list-style: none;
      border-top: 1px solid #ccc;
    }
  
    #up ul li {
      width: 100%;
      text-align: center;
      margin-bottom: 10px;
    }
  
    #up ul li a {
      display: block;
      padding: 12px;
      font-size: 18px;
      color: rgb(255, 255, 255); /* رنگ نوشته‌ها */
      background-color: #383838; /* رنگ پس‌زمینه لینک */
      border: 1px solid #ffffff;
      border-radius: 8px;
      text-decoration: none;
      transition: background-color 0.3s;
    }
  
    #up ul li a:hover {
      background-color: #1d1d1d; /* حالت هاور */
      color: rgb(238, 255, 0); /* رنگ در هاور */
      transform: scale(1.03);     /* کمی بزرگ‌تر بشه */
      transition: transform 0.3s
    }
  
    #up ul li a.active {
      background-color: #0015ff; /* رنگ لینک فعال */
      color: rgb(255, 255, 255);
      font-weight: bold;
    }
  
    #up p {
      font-size: 13px;
      text-align: center;
      color: #333;
      margin-top: 10px;
    }
 
  
  #up ul li a.active:hover {
    background-color: #000d9f; 
    transform: scale(1.03);     /* کمی بزرگ‌تر بشه */
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.3); 
    color: yellow;
  }
 }
 @media screen and (max-width: 300px) {
  #up ul {
    padding: 5px;
    border-top: 1px solid #ccc;
  }

  #up ul li {
    margin-bottom: 6px;
  }

  #up ul li a {
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 6px;
  }
}
body{
  max-width: 1200px;
}