body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: #f4f4f9;
  font-family: Arial, sans-serif;
}

.envelope-container {
  position: relative;
  top:-13%;  /* Centraliza verticalmente na tela */
  left: 0%;  /* Centraliza horizontalmente na tela */
  width: 200px;
  height: 150px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Efeito de abrir ao clicar */
.envelope:hover {
  transform: scale(1.05);
}

/* Envelope fechado */
.envelope {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #f0f0f0;
  border: 2px solid #000000;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease;
}

/* Aba do envelope (tampa) */
.flap {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #8b0101;
  clip-path: polygon(0 0, 100% 0, 50% 50%);
  transition: transform 0.8s ease;
  transform-origin: top;
}

/* Mensagem oculta */
.letter {
  display: none;
  width: 100%;
  padding: 15px;
  text-align: center;
  background-color: rgba(92, 1, 1, 0.993);
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
  margin-top: 20px;
  font-size: 16px;
  color: #ffffff;
}

.letter img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-top: 10px;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Classe para abrir o envelope */
.open .flap {
  transform: rotateX(-180deg);
}

/* Classe para exibir a carta */
.show-letter {
  display: block;
  animation: fadeIn 1s ease;
}

/* Animação de fade-in */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 600px) {
  .envelope-container {
      width: 150px;
      height: 120px;
  }

  .letter {
      font-size: 14px;
  }

  .letter img {
      width: 60px;
      height: 60px;
  }
}


#bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  min-width: 100vw;
  min-height: 100vh;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
  pointer-events: none; /* Impede que o vídeo bloqueie cliques no conteúdo */
}

/* Certifica que o conteúdo do site fique sobre o vídeo */
body * {
  position: relative;
  z-index: 1;
}
