html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* queremos que el sobre no se desplace */
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

.full-link {
  display: block;
  width: 100%;
  height: 100dvh;
  text-decoration: none;
  color: inherit;
}

.background-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.background-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  animation: fadeInImage 2s ease-in forwards;
  will-change: opacity;
}

@keyframes fadeInImage {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.handwritten-text,
.handwritten-text2 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  z-index: 2;
  font-family: 'Ringbearer', serif;
  color: #6b4b2a;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
  text-align: center;
  margin: 0;
  opacity: 0;
  animation: fadeIn 1.5s ease-in forwards;
  line-height: 1.3;
  will-change: opacity;
}

.handwritten-text {
  font-size: clamp(20px, 5vw, 28px);
  top: 14vh;
  animation-delay: 0.8s;
}

.handwritten-text2 {
  font-size: clamp(20px, 5vw, 28px);
  top: 70vh;
  animation-delay: 1.5s;
  animation-duration: 2s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@font-face {
  font-family: 'Ringbearer';
  src: url('/fonts/Ringbearer.ttf') format('truetype');
  font-display: swap;
}

@media (max-height: 600px) {
  .handwritten-text { top: 15vh; }
  .handwritten-text2 { top: 65vh; }
}