/* ---- Tu CSS para el fondo degradado ---- */
body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  background-image: linear-gradient(to right, #ffc0cb, #e83ae2); /* Fondo degradado rosado */
  overflow: hidden;
}

/* ---- CSS de la hoja en blanco (la carta) ---- */
.card-container {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s, visibility 1s;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.card-container.visible {
    opacity: 1;
    visibility: visible;
}

#blank-sheet {
    /* Nuevas dimensiones para que la hoja sea más pequeña */
    width: 450px;
    height: 600px;
    
    background-color: #fff;
    padding: 30px; /* Reducimos el padding para que se ajuste mejor */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); /* Sombra más oscura y grande */
    /* ... (resto del código) ... */
    border-radius: 10px;
    box-sizing: border-box;
    font-family: 'Sacramento', sans-serif;
    color: #444;
}

#card-title {
    font-size: 2.5em; /* Reducimos el tamaño de la fuente del título */
    margin: 0;
    color: #ffc0cb;
    text-align: center;
}

#typed-message {
    font-size: 1.2em; /* Reducimos el tamaño de la fuente del mensaje */
    text-align: justify;
    line-height: 1.6;
    margin-top: 20px; /* Ajustamos el margen superior */
    white-space: pre-wrap;
}

#card-signature {
    font-size: 1.2em; /* Reducimos el tamaño de la fuente de la firma */
    text-align: right;
    margin-top: 30px; /* Ajustamos el margen superior */
    color: #888;
}

/* El resto del CSS se mantiene igual */


/* ---- Estilos para los emojis que caen ---- */
.falling-emoji {
    position: absolute;
    top: -50px;
    animation: fall linear infinite;
    pointer-events: none;
    opacity: 0.8;
    z-index: 1;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* ---- Estilos para el sobre ---- */
/* Asegúrate de mantener todo el CSS para el sobre que ya teníamos */
.valentines-day {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: opacity 1s, visibility 1s;
}

.valentines-day.closed {
    opacity: 0;
    visibility: hidden;
}

/* (resto del CSS del sobre) */

.envelope {
  position: relative;
  filter: drop-shadow(0 0 25px #c5009a80);
}

.envelope:before {
  content: "";
  position: absolute;
  width: 254px;
  height: 254px;
  background-color: #ff9494;
  transform: rotate(-45deg);
  border-radius: 0 15px 0 0;
  left: -37px;
  top: -82px;
}

.envelope:after {
  content: "";
  position: absolute;
  background-color: #ff9494;
  width: 360px;
  height: 225px;
  left: -90px;
  top: 45px;
}

.heart {
  position: relative;
  background-color: #ffa8dd;
  display: inline-block;
  height: 180px;
  top: 50px;
  left: 0;
  transform: rotate(-45deg);
  width: 180px;
  filter: drop-shadow(0 -10px 25px rgba(0, 0, 0, 0.384));
  transition: 0.5s;
}

.heart:before,
.heart:after {
  content: "";
  background-color: #ffa8dd;
  border-radius: 50%;
  height: 180px;
  width: 180px;
  position: absolute;
}

.heart:before {
  top: -100px;
  left: 0;
}

.heart:after {
  left: 100px;
  top: 0;
}

.front {
  position: absolute;
  width: 0;
  height: 0;
  border-right: 190px solid #f8b1b1;
  border-top: 113px solid transparent;
  border-bottom: 113px solid transparent;
  top: 44px;
  left: 80px;
  z-index: 4;
}

.front:before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 190px solid #f8b1b1;
  border-top: 113px solid transparent;
  border-bottom: 113px solid transparent;
  top: -113px;
  left: -170px;
}

.front:after {
  width: 0;
  height: 0;
  position: absolute;
  content: "";
  border-bottom: 150px solid #fce7e9;
  border-right: 180px solid transparent;
  border-left: 180px solid transparent;
  top: -36px;
  left: -170px;
}

.text {
  position: absolute;
  font-family: arial;
  letter-spacing: 3.5px;
  text-align: center;
  color: rgb(255, 255, 255);
  z-index: 2;
  top: 80px;
  left: 15px;
  transition: 0.5s;
}

.valentines-day:hover .heart {
  transform: translateY(-50px) rotate(-45deg);
}

.valentines-day:hover .text {
  transform: translateY(-50px);
}

/* ---- Estilos para los emojis que caen ---- */
.falling-emoji {
    position: absolute;
    top: -50px;
    animation: fall linear infinite;
    pointer-events: none;
    opacity: 0.8;
    z-index: 1;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
        opacity: 0;
    }
}

#card-image-header {
    width: 300px; /* Ajusta este valor al tamaño que desees */
    display: block; /* Para que la imagen se comporte como un bloque y se pueda centrar */
    margin: 0 auto 20px; /* Centra la imagen y le da un margen inferior */
}

/* ---- Estilos para el mini reproductor de musica ---- */
.mini-player-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #ffc0cb;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-player-container:hover {
    transform: scale(1.1);
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.player-button .fa-music {
    color: #fff;
}

.player-button.paused .fa-music {
    color: #e83ae2;
}
