.container, .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
 }
  
  @media (max-width: 768px) {

    .profile {
      position: static;
      margin-top: 180px;
    }
    
    .col-md-3-mod {
      width: 50%;
    }
  }

  @media (max-width: 992px) {
    .card-t {
      margin-bottom: 30px;
    }
    
    .card-title-t {
      font-size: 16px;
      padding: 10px;
    }
    
    .card-price-t {
      font-size: 24px;
      left: 0%;
    }
    .island3 {
      margin-left: 120px !important;
      width: 100px !important;
      margin-top: -550px;
    }
    .eldoria-icon {
      max-width: 120px;
    }
    .island1 {
      width: 100px;
      margin-left: -180px;
      margin-top: -160px;
    }
    .cube {
      margin-left: -135px;
      margin-top: 2070px;
    }
    .left-al-txt {
      text-align: left !important;
    }
    .profile-eldoria-pic {
      width: 35px !important;
    }
    
    .button-container {
      flex-direction: column;
    }
    
    .btn-main, .btn-second {
      font-size: 14px !important;
    }
  }



  @media (max-width: 768px) {
    
    .after::after, .after-blue::after {
      top: -5px;
      right: -5px;
    }

  }

  @media (max-width: 992px) {
    .profile-img {
      margin-bottom: 0;
    }
    
    .eldoria-about-overlay-behind {
      display: none;
    }
    .eldoria-about-overlay {
      width: 150%;
      right: -199px;
      top: -10px;
    }
    .eldoria-overlay {
      display: none;
    }


    .back-index {
      display: none;
    }
    .about-text-2 {
      width: 46vw !important;
    }
    .socials-index {
      display: none !important;
    }
  }



  @media (max-width: 768px) {
    .vw07 {
      font-size: 12px !important;
    }
    
    .vw1 {
      font-size: 14px !important;
    }
    
    .minecraft {
      font-size: 14px !important;
    }
  }

  @media (max-width: 768px) {
    
    .navbar-nav {
      text-align: center;
      padding-top: 10px;
    }
    
    .icons-column {
      margin-left: 0;
      flex-direction: row !important;
      justify-content: center;
    }
  }


  @media (max-width: 768px) {
    footer .col-md-2, 
    footer .col-md-7, 
    footer .col-md-2 {
      width: 100%;
      text-align: center;
      margin-bottom: 20px;
    }
    
    footer .d-flex {
      justify-content: center;
    }
  }

  @media (max-width: 768px) {
    #rankModal .modal-dialog {
      margin: 10px;
    }
    
    #rankModal .row {
      flex-direction: column;
    }
    
    #rankModal .col-md-6 {
      width: 100%;
    }
    
    #modalRankTitle {
      font-size: 18px !important;
    }
  }

  @media (max-width: 768px) {
    .zoom:hover, .rotate:hover {
      transform: none;
    }
  }

@media (max-width: 992px) {
  .card-title {
    font-size: 1.2rem !important;
    height: auto !important;
    padding: 10px 5px !important;
  }
  
  .card-desc {
    font-size: 1rem !important;
    height: auto !important;
    min-height: 80px;
    padding: 10px !important;
  }
  
  .card-desc.smaller {
    font-size: 0.9rem !important;
    padding: 8px !important;
  }
}

@media (max-width: 768px) {
  .card-title {
    font-size: 1rem !important;
    padding: 8px 5px !important;
  }
  
  .card-desc {
    font-size: 0.9rem !important;
    min-height: 70px;
    padding: 8px !important;
  }
  
  .card-desc.smaller {
    font-size: 0.8rem !important;
    padding: 6px !important;
  }
}

@media (max-width: 576px) {
  .card-title {
    font-size: 0.9rem !important;
  }
  
  .card-desc {
    font-size: 0.8rem !important;
    min-height: 60px;
  }
  
  .card-desc.smaller {
    font-size: 0.7rem !important;
  }
}

@media (max-width: 768px) {
  /* Основные стили для карточек */
  .card-link .card-t.rotate {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: auto;
    margin-bottom: 15px;
    background-color: #E6CD2F; /* Желтый фон для всего блока */
    border: none; /* Убираем границу */
    overflow: hidden; /* Скрываем выходящие за пределы элементы */
  }

  /* Контейнер для изображения */
  .card-link .card-t.rotate .card-img-top {
    width: 40%;
    height: auto;
    object-fit: cover;
    margin: 0;
    border: 2px solid #E6CD2F; /* Желтая рамка вместо разделителя */
  }

  /* Контейнер для текста */
  .card-link .card-t.rotate .card-body {
    width: 60%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #E6CD2F; /* Желтый фон для текстовой части */
  }

  /* Заголовок карточки */
  .card-link .card-t.rotate .card-title {
    font-size: 14px;
    margin-bottom: 5px;
    height: auto;
    padding: 8px;
    text-align: left;
    background-color: transparent !important; /* Убираем отдельный фон */
    color: #000 !important;
  }

  /* Описание карточки */
  .card-link .card-t.rotate .card-desc {
    font-size: 12px;
    height: auto;
    min-height: 0;
    padding: 8px;
    text-align: left;
    background-color: transparent !important; /* Убираем отдельный фон */
    color: #000 !important;
  }

  /* Убираем псевдоэлементы на мобильных */
  .card-link .card-t.rotate .card-title::before,
  .card-link .card-t.rotate .card-title::after {
    display: none;
  }
}

@media (max-width: 576px) {
  .card-link .card-t.rotate {
    height: 100px; /* Фиксированная высота для всех карточек */
  }
  
  .card-link .card-t.rotate .card-title {
    font-size: 12px;
    padding: 5px;
  }
  
  .card-link .card-t.rotate .card-desc {
    font-size: 11px;
    padding: 5px;
  }
  
  .card-link .card-t.rotate .card-img-top {
    width: 35%;
    border-width: 1px;
  }
  
  .card-link .card-t.rotate .card-body {
    width: 65%;
  }
}

/* Добавьте эти стили в ваш adapt.css */

@media (max-width: 992px) {
  /* Адаптация основного контента */
  .main-content {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100% !important;
    padding-top: 10px;
    order: -1; /* Перемещаем сайдбар наверх */
  }
  
  .sidebar .nav-link {
    font-size: 16px;
    padding: 8px 15px;
  }
  
  .content {
    padding: 15px;
  }
  
  /* Адаптация блока профиля */
  .col-md-5, .col-md-4 {
    width: 100% !important;
  }
  
  .col-md-5 > div {
    height: auto !important;
    padding-bottom: 80px !important; /* Место для кнопки */
  }
  
  /* Адаптация аватарки и формы */
  img[src*="profile-picture.png"] {
    position: static !important;
    display: block;
    margin: 0 auto 15px;
    width: 100px;
  }
  
  .col-md-5 > div > div {
    position: static !important;
    text-align: center;
    margin-top: 15px;
  }
  
  .col-md-5 > div > div form,
  .col-md-5 > div > div input {
    width: 100% !important;
  }
  
  /* Кнопка "ИЗМЕНИТЬ" */
  .col-md-5 > div > button {
    position: static !important;
    margin: 15px auto;
    display: block;
    width: 80% !important;
  }
  
  /* Блок баланса */
  .col-md-4 > div {
    margin-top: 20px;
  }
  
  .d-flex.justify-content-center.align-items-center {
    flex-direction: column;
  }
  
  /* Форма пополнения баланса */
  .form-control {
    width: 100% !important;
  }
  

}

@media (max-width: 768px) {
  /* Уменьшаем отступы */
  .content {
    padding: 10px;
  }
  
  /* Уменьшаем шрифты */
  .minecraft.blue-f {
    font-size: 16px !important;
  }
  
  /* Адаптируем заголовок "БАЛАНС" */
  .col-md-4 > div > h2 {
    font-size: 18px !important;
  }
  
  /* Уменьшаем размер монетки */
  img[src*="coin.png"] {
    width: 48px !important;
  }
  
  /* Адаптируем футер */
  footer .col-md-2, 
  footer .col-md-7, 
  footer .col-md-2 {
    width: 100%;
    margin-bottom: 15px;
  }
  
  footer .vw07 {
    font-size: 10px !important;
  }
}

@media (max-width: 576px) {
  /* Еще более компактный вид */
  .sidebar .nav-link {
    font-size: 14px;
    padding: 6px 10px;
  }
  
  /* Уменьшаем аватарку */
  img[src*="profile-picture.png"] {
    width: 80px;
  }
  
  /* Уменьшаем поля ввода */
  .form-control {
    font-size: 14px !important;
  }
  
  /* Уменьшаем кнопки */
  .btn-main.small.after-blue {
    font-size: 12px !important;
    padding: 6px 12px !important;
  }
  
  /* Уменьшаем монетку */
  img[src*="coin.png"] {
    width: 40px !important;
  }
  
  /* Адаптируем текст в футере */
  footer .vw07 {
    display: block;
    margin: 5px 0;
  }
  
  footer .mx-1.vw07 {
    display: none;
  }
}