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

body {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#falling-elements {
  position: relative;
  background-color: #f0f8ff;
  width: 100%;
  height: 100vh; /* altura inicial */
  animation: shrinkBody 3s ease-in-out forwards;
  animation-delay: 6s;
  overflow: hidden;
}

.aboutMe {
  opacity: 0;
  display: flex;
  visibility: hidden;
  text-align: justify;
  font-size: 1.4rem;
  transition: opacity 1.5s ease-out, visibility 0s linear 6.5s;
}

.aboutMe.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.5s ease-out;
}

.aboutMe-text {
  flex: 0 0 60%;
  padding-left: 10%;
  margin-top: 3%
}

.moreAboutMe {
  flex: 0 0 30%;
  position: relative;
  padding-left: 3%;
  padding-top: 3%;
}

.moreAboutMe a {
  display: block;
  width: 100%;
  height: 49vh;
  overflow: hidden;
  border-radius: 15px;
  position: relative;
  text-decoration: none;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Texto oculto por defecto */
.moreAboutMe-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: center;
}

/* Hover: mostrar texto y zoom en la imagen */
.moreAboutMe a:hover .profile-photo {
  transform: scale(1.05);
  filter: brightness(70%);
}

.moreAboutMe a:hover .moreAboutMe-text {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}


.centered-text {
  text-align: center;
  position: relative;
  z-index: 10;
  padding-top: 20px;
}

.centered-text {
  display: flex;
  height: 90%;
  justify-content: center;
  align-content: center;
  /* font-family: 'Arial', sans-serif; */
  text-align: center;
  flex-direction: column;
}

.title {
  font-size: 5rem;
  animation: fadeIn 3s ease-in-out forwards;
  opacity: 0;
}

.welcome {
  font-size: xx-large;
  animation: fadeIn 3s ease-in-out forwards;
  opacity: 0;
  animation-delay: 3.5s;
}

.flower-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.leaf-container {
  display: grid;
  place-items: center;
}

.sun-container,
.violet-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flower-container,
.sun-container,
.violet-container,
.leaf-container {
  position: absolute;
  animation: fall 5s infinite linear;
  left: calc(100% * var(--random-x));
  top: -10%;
  animation-delay: calc(0.5s * var(--delay));
}

.petal {
  position: relative;
  width: 10px;
  height: 10px;
  background: #ff69b4;
  border-radius: 2px 90%;
}

.petal1 {
  transform: rotate(180deg);
}

.petal2 {
  transform: rotate(270deg);
}

.petal3 {
  transform: rotate(270deg);
}

.sun {
  width: 7.5px;
  height: 15px;
  position: absolute;
  margin-top: 50%;
  opacity: 0.5;
  background: #ffe600;
  border-radius: 2px 90%;
}

.sun1 {
  transform: translateX(9px) rotate(-60deg);
}

.sun2 {
  transform: rotate(60deg) translateX(9px) rotate(-60deg);
}

.sun3 {
  transform: rotate(120deg) translateX(9px) rotate(-60deg);
}

.sun4 {
  transform: rotate(180deg) translateX(9px) rotate(-60deg);
}

.sun5 {
  transform: rotate(240deg) translateX(9px) rotate(-60deg);
}

.sun6 {
  transform: rotate(300deg) translateX(9px) rotate(-60deg);
}

.violet {
  position: relative;
  width: 10px;
  height: 10px;
  background: violet;
  border-radius: 2px 95%;
}

.violet2 {
  transform: rotate(90deg);
}

.violet3 {
  top: 10px;
  background: plum;
  transform: rotate(45deg) translateX(-21px);
}

.leaf {
  width: 15px;
  height: 15px;
  border-radius: 0 100%;
  position: absolute;
  background: darkblue;
}

.branch {
  position: absolute;
  width: 45px;
  height: 1px;
  top: 6px;
  left: -3px;
  background: darkblue;
}

.leaf2 {
  left: 5px;
}

.leaf3 {
  top: 5px;
  transform: rotate(90deg);
}

.leaf4 {
  transform: rotate(90deg);
  top: 5px;
  left: 5px;
}

.leaf5 {
  top: 5px;
  left: 20px;
  transform: rotate(90deg)
}

.leaf6 {
  left: 20px;
}

/* Animación de caída */
@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(120vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes square {
  0% {
    height: 100vh;
  }

  100% {
    height: 60vh;
  }
}

@keyframes shrinkBody {
  0% {
    height: 100vh;
  }

  100% {
    height: 40vh;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
