body {
  background: #000;
  background-image: url(../../img/bg/bg-menu.avif);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow: auto;
  padding: 80px 0;
}

/* .container {
  height: 100%;
  overflow: auto;
} */

.title {
  text-align: center;
  font-size: 30px;
  color: var(--black-text);
  margin-bottom: 10px;
  cursor: default;
}

.top-section,
.bottom-section {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0 70px;
  margin-bottom: 30px;
  scrollbar-width: none;
  -ms-overflow-style: none; 
}

.card {
  width: 300px;
  /* background: #000000; */
  padding-bottom: 10px;
  border-radius: 10px;
  transition: 0.5s;
  flex-shrink: 0;
  opacity: 0.6;
  cursor: pointer;
  overflow: hidden;
  background-color: var(--blur-bg);
  backdrop-filter: blur(10px);
}

.card.active {
  opacity: 1;
}

.card:hover {
  opacity: 1;
}

.main-img {
  height: 150px;
  margin-bottom: 10px;
  /* border-radius: 10px; */
  background-size: cover;
  background-position: center;
}

.level-text {
  font-size: 18px;
  text-align: center;
  margin-bottom: 5px;
  color: var(--black-text);
  font-weight: bold;
  cursor: default;
  z-index: 1;
}

.bonus-img {
  width: 100px;
  display: block;
  margin: 0 auto;
  margin-bottom: 5px;
}

.card__buy-icon {
  height: 20px;
  z-index: 1;
}

.unit-card {
  width: 200px;
  /* background: #000000; */
  padding: 10px;
  border-radius: 10px;
  transition: 0.5s;
  flex-shrink: 0;
  opacity: 0.6;
  position: relative;
  /* overflow: hidden; */
  background-color: var(--blur-bg);
  backdrop-filter: blur(10px);
}

.castle {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.castle-img {
  display: block;
  max-width: 50%;
  max-height: 70%;
}

.unit-card:not(.active) {
  cursor: pointer;
}

.unit-card.active {
  opacity: 1;
}

.unit-card:hover {
  opacity: 1;
}

.unit-card.disabled:hover {
  opacity: 0.6;
  cursor: default;
}

.unit-img {
  display: block;
  max-height: 100px;
  margin: 0 auto;
}

.unit__add-icon {
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  transition: 0.3s;
  opacity: 0;
  cursor: pointer;
}

.unit-info {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  padding: 10px;
  background: linear-gradient(to right bottom, #ae7836, #702d24);
  border-radius: 12px;
  /* display: flex; */
  /* justify-content: center; */
  opacity: 0;
  /* align-items: center; */
  transition: 0.5s;
  /* line-height: 20px; */
}




.unit-info::before {
  content: '!';
  font-size: 14px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--light-text);
  width: 16px;
  height: 16px;
  border: 1px solid var(--light-text);
  border-radius: 10px;
  margin-right: 5px;
}

.unit-card:hover .unit-info {
  opacity: 1;
  top: -70px;
}


.unit-card:hover .unit__add-icon {
  opacity: 1;
}

.info_game_time-mini {
  color: var(--light-text);
}


.add-modal__wrapper {
  position: fixed;
  top: -100vh;
  left: 0;
  right: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
  background: #00000088;
}

.add-modal__wrapper.active {
  top: 0;
}

@media (max-width: 1000px) {
  .top-section,
  .bottom-section {
    padding: 0 30px;
  }
  .top-section {
    width: 100%;
    display: flex;
    justify-content: start;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 0 70px;
    margin-bottom: 30px;
    overflow-x: auto;
  }
  .title {
    font-size: 24px;
  }
  .unit__add-icon {
    opacity: 0.6;
  }
}

@media (max-width: 500px) {
  body {
    padding-top: 50px;
    padding-bottom: 60px;
  }
  .top-section,
  .bottom-section {
    padding: 0 15px;
    gap: 10px;
    margin-bottom: 15px;
  }

  .card {
    width: 250px;
  }

  .main-img {
    height: 100px;
    margin-bottom: 0;
  }

  .level-text {
    font-size: 16px;
  }

  .unit-card {
    width: 47%;
  }
}