/* Estilos propios de la página: Usuario */

.coin-container {
  perspective: 800px; /* Efecto 3D */
  width: 80px;        /* Tamaño inicial */
  height: 80px;
  margin: auto;
}

.coin {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: spin 3s infinite linear;
}

.coin div {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: #f0f0f0; /* Color del signo $ */
  border: 3px solid #ccc; /* Borde plateado */
  background: radial-gradient(circle at 30% 30%, #e0e0e0, #999); /* Plateado metálico */
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Reverso de la moneda */
.back {
  transform: rotateY(180deg);
  background: radial-gradient(circle at 30% 30%, #ccc, #888);
}

.front {
  transform: rotateY(0deg);
}

/* Animación de giro */
@keyframes spin {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}

/* Responsive: se ajusta al ancho del contenedor padre */
@media (max-width: 600px) {
  .coin-container {
    width: 60px;
    height: 60px;
  }
  .coin div {
    font-size: 1.5rem;
    border-width: 2px;
  }
}
