/* Limpieza y estandarización general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Establecemos reglas para centrar y ajustar tamaños del body */
body {
  background-color: #191919; /* Darker Notion-like background */
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Georgia, "Times New Roman", serif;
  perspective: 1000px;
}

/* Establecemos reglas para dispositivos móviles */
#card {
  width: 80%;
  aspect-ratio: 63 / 88; /* Proporción similar a una carta de poker */
  background-color: white;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  user-select: none;
}

/* Card entrance animation */
.card-animate {
  animation: card-flip 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes card-flip {
  0% {
    transform: rotateY(-90deg) scale(0.96);
    opacity: 0;
    filter: blur(2px);
  }
  60% {
    transform: rotateY(5deg) scale(1.02);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: rotateY(0) scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-animate {
    animation: none;
  }
}

#card-symbol-header {
  font-size: 96px;
  line-height: 1;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#card-value {
  text-align: center;
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#card-symbol-footer {
  font-size: 96px;
  line-height: 1;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#card-symbol-header p,
#card-symbol-footer p,
#card-value p {
  margin: 0;
}

/* Media query para pantallas medianas */
@media screen and (min-width: 576px) {
  #card {
    width: 40%; /* Reducimos el ancho para pantallas medianas */
  }
}

/* Media query para pantallas grandes */
@media screen and (min-width: 768px) {
  #card {
    width: 25%; /* Establecemos el ancho original para pantallas más grandes */
  }
}
