.collection-page {
    background-color: black;
}

.collection-content-wrapper {
  bottom: 50px;
  padding-top: 20px;
  width:1200px;
  padding-left:20px;
  padding-right:20px;
  margin-left:auto;
  margin-right:auto;
  margin-bottom: 50px;
  -webkit-box-sizing:border-box;
  box-sizing:border-box;
}

.collection-content-wrapper h2 {
  font-family: 'Playfair Display Italic', sans-serif;
  font-size: 16px;
  margin-right:auto;
  margin-top:30px;
  margin-bottom:30px;
  color: #ccc;
}

.coins {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.coins a {
    text-decoration: none;
}

.coin {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 10px;
    border-top: 1px solid #ccc;
    background: #1e1e1e;
    border-radius: 10px;
    /*box-shadow: 0px 4px 10px rgba(255, 215, 0, 0.2);*/
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.coin:hover {
    transform: scale(1.01);
    /*box-shadow: 0px 6px 15px rgba(255, 215, 0, 0.4);*/
}

.coin-info {
    flex-grow: 1;
    max-width: 800px;
}

.coin-info a {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #ECBD5A; /*#bebebe;*/
    text-decoration: none;
    transition: text-shadow 0.3s ease;
}

.coin-info a:hover {
    text-shadow: 0 0 10px #ECBD5A, 0 0 20px #FFD700;
}

.coin-info p {
    margin-top: 5px;
    font-size: 15px;
    color: #6e6e6e;
}

.description strong {
    font-weight: bolder;
}

.rotating-img-coin {
  width: 200px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s ease-in-out;
}

.rotating-img-coin img {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
}

.rotating-img-coin .front {
  transform: rotateY(0deg);
}

.rotating-img-coin .back {
  transform: rotateY(180deg);
}

.rotating-img-coin:hover {
  transform: rotateY(180deg);
}

.rotating-img-coin:active {
  transform: rotateY(180deg);
}


/* Mobile styles */
@media (max-width: 1240px) {
  .collection-content-wrapper {
    width: 95%;
    max-width: 1100px;
  }
}

@media (max-width: 1024px) {
  .collection-content-wrapper {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  .coin {
    gap: 15px;
    padding: 12px 8px;
  }

  .rotating-img-coin {
    width: 180px;
    height: 180px;
  }

  .coin-info a {
    font-size: 16px;
  }

  .coin-info p {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .collection-content-wrapper {
    padding-top: 15px;
    bottom: 30px;
    margin-bottom: 30px;
  }

  .collection-content-wrapper h2 {
    font-size: 14px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .coins {
    gap: 15px;
    margin-top: 15px;
  }

  .coin {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
  }

  .rotating-img-coin {
    width: 150px;
    height: 150px;
    align-self: center;
  }

  .coin-info a {
    font-size: 15px;
    display: block;
    text-align: center;
  }

  .coin-info p {
    font-size: 13px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .collection-content-wrapper {
    padding-left: 10px;
    padding-right: 10px;
  }

  .collection-content-wrapper h2 {
    font-size: 13px;
    margin-top: 15px;
    margin-bottom: 15px;
  }

  .coins {
    gap: 12px;
  }

  .coin {
    padding: 10px;
  }

  .rotating-img-coin {
    width: 120px;
    height: 120px;
  }

  .coin-info a {
    font-size: 14px;
  }

  .coin-info p {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .collection-content-wrapper h2 {
    font-size: 12px;
  }

  .rotating-img-coin {
    width: 100px;
    height: 100px;
  }

  .coin-info a {
    font-size: 13px;
  }

  .coin-info p {
    font-size: 11px;
  }
}

/* Оптимизация для touch-устройств */
.coin {
  -webkit-tap-highlight-color: transparent;
}

/*.coin:active {*/
/*  transform: scale(0.98);*/
/*}*/

/* Отключение hover-эффектов на тач-устройствах */
@media (hover: none) {
  .coin:hover {
    transform: none;
  }

  .coin-info a:hover {
    text-shadow: none;
  }

  /*.rotating-img-coin:hover {*/
  /*  transform: none;*/
  /*}*/
}
