* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Cedarville Cursive", cursive;
  background-image: url("/assets/background.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #2c1810;
  line-height: 1.6;
}

#root {
  width: 100%;
  max-width: 800px;
  margin: 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  padding: 3rem 2.5rem;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  color: #9d4edd;
  margin-bottom: 1.5rem;
  font-weight: normal;
  text-shadow: 2px 2px 4px rgba(157, 78, 221, 0.1);
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

p {
  font-size: 1.2rem;
  color: #4a4a4a;
  margin-bottom: 2rem;
  text-align: left;
  line-height: 1.8;
  padding: 0 1rem;
  min-height: 200px;
}

p.typing::after {
  content: "|";
  color: #9d4edd;
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  from,
  to {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

img {
  max-width: 300px;
  width: 100%;
  height: auto;
  /*border-radius: 15px;
  margin-top: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);*/
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.05);
}

/* Decoración extra */
main::before {
  content: "<3";
  color: #9d4edd;
  display: block;
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
  #root {
    margin: 1rem;
  }

  main {
    padding: 2rem 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  p {
    font-size: 1.1rem;
  }

  img {
    max-width: 250px;
  }
}
