.coin-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.coin {
  width: 150px;
  height: 150px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  cursor: pointer;
  border-radius: 50%;
}

.coin:hover {
  transform: scale(1.05);
}

.coin.flipping {
  animation: flip 0.6s ease-in-out;
}

.coin-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4rem;
  font-weight: bold;
  border-radius: 50%;
  border: 4px solid #333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.coin-face.heads {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #333;
}

.coin-face.tails {
  background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
  color: #333;
  transform: rotateY(180deg);
}

.coin.heads {
  transform: rotateY(0deg);
}

.coin.tails {
  transform: rotateY(180deg);
}

@keyframes flip {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(1800deg);
  }
}
