@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat";
  border: none;
}

body {
  background-color: #000000;
}

.container {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  --opacidad-negro: 0.5;
  background-image: linear-gradient(rgba(0, 0, 0, var(--opacidad-negro)), rgba(0, 0, 0, var(--opacidad-negro))), url(https://wallpaperbat.com/img/46495160-dark-anime-serial-experiments-lain.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.card {
  position: relative;
  background: #180202b7;
  width: 850px;
  height: calc();
  padding: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease-in-out, opacity 0.3s;
  transition-delay: 0.6s, 0s;
  box-shadow: 0px 2px 2px 2px #a81919c4;
  display: flex;
  color: #f38787;
}

.details {
  position: relative;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding-top: 50px; /* Ajusta este valor según el tamaño del h2 */
  flex: 1;
}

.details h2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  background-color: rgba(0, 0, 0, 0); /* Fondo semitransparente opcional */
  padding: 3px 0; /* Espaciado opcional */
  z-index: 1; /* Asegura que esté por encima de otros elementos */
  
}

.details > h2 {
  color: #a00303d2;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 0.9;
  display: flex;
  gap: 0.2rem;
}

.details > h2 span {
  animation: blink 5s infinite;
}

.h22{
    color: #790000d2;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 0.6;
    display: flex;
    gap: 0.2rem;
    margin-top: 2rem;
}

.texto{
    font-size: 20px;
    color: #f38787;
}

p{
    text-align: left;
    color: bisque;;
}




@keyframes blink {
  0%, 80%, 100% {
    opacity: 1;
  }
  40% {
    opacity: 0;
  }
}

.details span {
  margin-top: -10; /* Elimina el margen superior */
}



.details > .buttons {
  display: flex;
  gap: 0.8rem; /* Separación entre los botones */
}

.details > .buttons a {
  color: #ffffff;
  background-color: #700d0d;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  transition: all 0.4s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.details > .buttons a:hover {
  transform: translateY(-5px);
  background-color: #2e0202;
}

.image {
  position: relative;
  width: 50%;
  height: 100%;
  animation: float 6s ease-in-out infinite;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}



@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.image img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
}





/* Estilos responsivos para dispositivos móviles */
@media (max-width: 768px) {
  
  .container {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    --opacidad-negro: 0.5;
    background-image: linear-gradient(rgba(0, 0, 0, var(--opacidad-negro)), rgba(0, 0, 0, var(--opacidad-negro))), url(https://wallpaperbat.com/img/46495160-dark-anime-serial-experiments-lain.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
  }
  
  .card {
    flex-direction: column;
    width: 90%; /* Ajusta el ancho de la tarjeta para dispositivos móviles */
    height: auto;
    max-height: 100%;
    padding: 1rem;
    margin: 0 auto; /* Centra la tarjeta en la pantalla */
  }

  h2{
    color: #790000d2;
  font-size: 3rem;
  font-weight: 800;
  line-height: 0.9;
  display: flex;
  gap: 0.2rem;
  margin-top: 2rem;
  }

  .h22{
    color: #790000d2;
  font-size: 2rem;
  font-weight: 800;
  line-height: 0.6;
  display: flex;
  gap: 0.2rem;
  margin-top: 4rem;
  }

  .details {
    width: 100%;
    padding-top: 70px; /* Ajusta este valor según el tamaño del h2 */
  }

  .image {
    width: 100%;
    height: auto;
  }

  .image img {
    max-width: 100%;
    max-height: auto;
    border-radius: 12px;
  }

  .details h2 {
    font-size: 1.5rem; /* Ajusta el tamaño de la fuente para dispositivos móviles */
  }

  .details span, .details p {
    font-size: 1rem; /* Ajusta el tamaño de la fuente para dispositivos móviles */
  }

  .buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .buttons a {
    margin: 0.5rem 0; /* Ajusta el margen entre los botones */
  }
}