body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url(https://i.pinimg.com/originals/d6/eb/9b/d6eb9b61aab89d0bbd24d969c1da94aa.jpg);
  background-position: center;
  font-family: 'Arial', sans-serif;
  color: #333;
}

.container {
  display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;

}

.card {
    background-color: #fff;
    padding: 40px;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.5);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    width: auto;
    height: auto;
}

.envelope-wrapper {
  position: relative;
  width: 150px;
  height: 100px;
  margin: 0 auto 20px;
}

.envelope {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #D8D6C0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 3s infinite ease-in-out;
}

.heart {
  width: 30px;
  height: 30px;
  background-color: #fae92a;
  position: relative;
  transform: rotate(-45deg);
}

.heart::before,
.heart::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: #fae92a;
  border-radius: 50%;
}

.heart::before {
  top: -15px;
  left: 0;
}

.heart::after {
  top: 0;
  left: 15px;
}

.letter-content {
    max-width: 90%; /* Asegura que no supere el 90% del ancho de la pantalla */
    margin: 0 auto; /* Centra horizontalmente */
    min-height: 200px;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    display: none;

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1em; /* Ajusta el tamaño del texto */
    line-height: 1.6;
    color: #000;
}

.letter-content::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 2px solid #ebfa64;
  border-radius: 10px;
  opacity: 0.3;
  pointer-events: none;
}
.letter-content strong:first-child,
.letter-content b:first-child {
  display: block;
  font-size: 1.4em;
  color: #fcba03;
  margin-bottom: 20px;
  font-weight: 600;
}
.letter-content {
  background: linear-gradient(45deg, #fff 25%, #f8f9fa 25%, #f8f9fa 50%, #fff 50%, #fff 75%, #f8f9fa 75%, #f8f9fa);
  background-size: 20px 20px;
  background-clip: padding-box;
}


.countdown {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  margin-top: 20px;
}

#openLetterBtn {
  display: block;
  background-color: #fcfc0d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s ease;
  position: relative;
  z-index: 10;
  font-size: 16px;
  font-weight: bold;
  /* Centrado */
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#openLetterBtn:hover {
  background-color: #ffff4a;
}
#imagen {
  width: 100px;
}

.show {
  display: block !important;
}

.hidden {
  display: none !important;
}
