html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  position: relative;
}

/* Imagem de fundo natalina com opacidade */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://static.vecteezy.com/ti/fotos-gratis/p2/51565741-natal-natal-fundo-gratis-foto.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

.swiper {
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: 1;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  /* Previne sobreposição de slides */
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  opacity: 1;
}

/* Container da foto com moldura */
.photo-frame {
  position: relative;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  display: inline-block;
  max-width: 95%;
  max-height: 90vh;
}

.photo-content {
  display: none;
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  border: 3px solid #ffd700;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
  object-fit: contain;
  position: relative;
  z-index: 5;
}

/* Texto opcional */
.caption {
  position: absolute;
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 2rem;
  font-family: 'Mountains of Christmas', cursive;
  font-weight: 700;
  z-index: 5;
  letter-spacing: 2px;
}

/* Título acima da moldura */
.caption-top {
  top: 20px;
}

/* Título abaixo da moldura */
.caption-bottom {
  bottom: 30px;
}

/* Animação pisca-pisca para cada letra */
.caption span {
  display: inline-block;
  animation: twinkle 1.5s ease-in-out infinite;
}

/* Cores para as letras - Vermelho */
.caption span.color-red {
  color: #ff6b6b;
  text-shadow: 
    0 0 10px rgba(255, 107, 107, 0.9),
    0 0 20px rgba(196, 30, 58, 0.8),
    0 2px 10px rgba(0,0,0,.8),
    0 0 30px rgba(255, 107, 107, 0.6);
}

/* Cores para as letras - Azul */
.caption span.color-blue {
  color: #4ecdc4;
  text-shadow: 
    0 0 10px rgba(78, 205, 196, 0.9),
    0 0 20px rgba(0, 123, 255, 0.8),
    0 2px 10px rgba(0,0,0,.8),
    0 0 30px rgba(78, 205, 196, 0.6);
}

/* Cores para as letras - Dourado */
.caption span.color-gold {
  color: #ffd700;
  text-shadow: 
    0 0 10px rgba(255, 215, 0, 0.9),
    0 0 20px rgba(255, 200, 0, 0.8),
    0 2px 10px rgba(0,0,0,.8),
    0 0 30px rgba(255, 215, 0, 0.6);
}

/* Cada letra pisca em momentos diferentes */
.caption span:nth-child(1) { animation-delay: 0s; }
.caption span:nth-child(2) { animation-delay: 0.1s; }
.caption span:nth-child(3) { animation-delay: 0.2s; }
.caption span:nth-child(4) { animation-delay: 0.3s; }
.caption span:nth-child(5) { animation-delay: 0.4s; }
.caption span:nth-child(6) { animation-delay: 0.5s; }
.caption span:nth-child(7) { animation-delay: 0.6s; }
.caption span:nth-child(8) { animation-delay: 0.7s; }
.caption span:nth-child(9) { animation-delay: 0.8s; }
.caption span:nth-child(10) { animation-delay: 0.9s; }
.caption span:nth-child(11) { animation-delay: 1s; }
.caption span:nth-child(12) { animation-delay: 1.1s; }
.caption span:nth-child(13) { animation-delay: 1.2s; }
.caption span:nth-child(14) { animation-delay: 1.3s; }
.caption span:nth-child(15) { animation-delay: 1.4s; }
.caption span:nth-child(16) { animation-delay: 1.5s; }
.caption span:nth-child(17) { animation-delay: 1.6s; }
.caption span:nth-child(18) { animation-delay: 1.7s; }
.caption span:nth-child(19) { animation-delay: 1.8s; }
.caption span:nth-child(20) { animation-delay: 1.9s; }
.caption span:nth-child(21) { animation-delay: 2s; }
.caption span:nth-child(22) { animation-delay: 2.1s; }
.caption span:nth-child(23) { animation-delay: 2.2s; }
.caption span:nth-child(24) { animation-delay: 2.3s; }
.caption span:nth-child(25) { animation-delay: 2.4s; }
.caption span:nth-child(26) { animation-delay: 2.5s; }
.caption span:nth-child(27) { animation-delay: 2.6s; }
.caption span:nth-child(28) { animation-delay: 2.7s; }
.caption span:nth-child(29) { animation-delay: 2.8s; }
.caption span:nth-child(30) { animation-delay: 2.9s; }

@keyframes twinkle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.95);
  }
}

/* Animação específica para cada cor */
.caption span.color-red {
  animation: twinkle-red 1.5s ease-in-out infinite;
}

.caption span.color-blue {
  animation: twinkle-blue 1.5s ease-in-out infinite;
}

.caption span.color-gold {
  animation: twinkle-gold 1.5s ease-in-out infinite;
}

@keyframes twinkle-red {
  0%, 100% {
    opacity: 1;
    text-shadow: 
      0 0 10px rgba(255, 107, 107, 0.9),
      0 0 20px rgba(196, 30, 58, 0.8),
      0 2px 10px rgba(0,0,0,.8),
      0 0 30px rgba(255, 107, 107, 0.6);
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    text-shadow: 
      0 0 5px rgba(255, 107, 107, 0.5),
      0 0 10px rgba(196, 30, 58, 0.4),
      0 2px 5px rgba(0,0,0,.4),
      0 0 15px rgba(255, 107, 107, 0.3);
    transform: scale(0.95);
  }
}

@keyframes twinkle-blue {
  0%, 100% {
    opacity: 1;
    text-shadow: 
      0 0 10px rgba(78, 205, 196, 0.9),
      0 0 20px rgba(0, 123, 255, 0.8),
      0 2px 10px rgba(0,0,0,.8),
      0 0 30px rgba(78, 205, 196, 0.6);
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    text-shadow: 
      0 0 5px rgba(78, 205, 196, 0.5),
      0 0 10px rgba(0, 123, 255, 0.4),
      0 2px 5px rgba(0,0,0,.4),
      0 0 15px rgba(78, 205, 196, 0.3);
    transform: scale(0.95);
  }
}

@keyframes twinkle-gold {
  0%, 100% {
    opacity: 1;
    text-shadow: 
      0 0 10px rgba(255, 215, 0, 0.9),
      0 0 20px rgba(255, 200, 0, 0.8),
      0 2px 10px rgba(0,0,0,.8),
      0 0 30px rgba(255, 215, 0, 0.6);
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    text-shadow: 
      0 0 5px rgba(255, 215, 0, 0.5),
      0 0 10px rgba(255, 200, 0, 0.4),
      0 2px 5px rgba(0,0,0,.4),
      0 0 15px rgba(255, 215, 0, 0.3);
    transform: scale(0.95);
  }
}

/* Botão de música */
.music-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
  background: rgba(196, 30, 58, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255, 215, 0, 0.4);
  padding: 10px 14px;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Dancing Script', cursive;
  font-weight: 600;
  font-size: 16px;
  text-shadow: 0 2px 5px rgba(0,0,0,.5);
  box-shadow: 
    0 0 10px rgba(255, 215, 0, 0.3),
    0 4px 15px rgba(0,0,0,.2);
  transition: all 0.3s ease;
}

.music-btn:hover {
  background: rgba(196, 30, 58, 0.5);
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 
    0 0 20px rgba(255, 215, 0, 0.5),
    0 4px 20px rgba(0,0,0,.3);
  transform: scale(1.05);
}

