@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&family=Quicksand&display=swap');

body {
  margin: 0;
  padding: 0;
  background: url('fondo2.jpg') no-repeat center center fixed;
  color: #ffffff;
  font-family: 'Quicksand', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  padding: 20px;
  box-sizing: border-box;
}

h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.4em;
  color: #ffffff;
  margin-bottom: 20px;
}

.letter-container {
  background-color: rgba(30, 30, 30, 0.9);
  padding: 30px;
  border-radius: 20px;
  max-width: 700px;
  width: 100%;
  text-align: center;
  z-index: 2;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

p {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.back-btn {
  display: inline-block;
  padding: 10px 25px;
  background-color: #5e62eb;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1em;
  transition: background 0.3s;
}

.back-btn:hover {
  background-color: #ff1493;
}

/* Fondo animado */
.background-animation::before,
.background-animation::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, #ffc0cb33 10%, transparent 10.01%);
  background-size: 80px 80px;
  animation: moveBackground 40s linear infinite;
  z-index: 0;
  opacity: 0.3;
}

.background-animation::after {
  animation-delay: 20s;
  background: radial-gradient(circle, #ff69b455 10%, transparent 10.01%);
}

@keyframes moveBackground {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-50%, -50%);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .letter-container {
    padding: 20px;
  }

  h1 {
    font-size: 1.8em;
  }

  p {
    font-size: 1em;
  }

  .back-btn {
    font-size: 0.9em;
    padding: 8px 20px;
  }
}
