@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Shippori+Mincho&display=swap");

:root {
}

html {
  font-size: 16px;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

section {
  height: 100vh;
  width: 100vw;
}

main {
  min-height: 720px;
  /* overflow-y: scroll; */
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.background-image {
  background-image: url("../images/fondo-top-cursos.webp");
  background-size: cover;
}

.floating-image {
  position: absolute;
  bottom: 0;
  left: 0;
  img {
    width: 54rem;
    height: auto;
  }
}

.floating-logo {
  position: absolute;
  top: 50px;
  left: 50px;
  z-index: 10;
  img {
    width: 18rem;
    height: auto;
  }
}

.floating-text {
  position: absolute;
  top: 50%;
  right: 50px;
}

h3 {
  font-size: 3rem;
  color: #6e4ccc;
}

b span {
  color: #6e4ccc;
}

.typewriter-container {
  width: 600px;
  max-width: 600px;
  display: inline-block;
  position: relative;
}

.typewriter-cursor {
  display: inline-block;
  color: #6e4ccc;
  animation: blink 0.7s steps(1) infinite;
  font-weight: bold;
  font-size: 3rem;
  position: absolute;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 1600px) {
  .floating-text {
    h3 {
      font-size: 2.8rem;
    }
  }
  .floating-image {
    img {
      width: 50rem;
    }
  }
}

@media (max-width: 1499px) {
  .floating-text {
    right: 0;
    h3 {
      font-size: 2.5rem;
    }
  }
  .floating-image {
    img {
      width: 40rem;
    }
  }
}

@media (max-width: 1299px) {
  .floating-text {
    top: 45%;
    right: -100px;
    .typewriter-container {
      width: 500px;
      max-width: 500px;
    }
    h3 {
      font-size: 2.5rem;
    }
  }
}

@media (max-width: 1199px) {
  section {
    height: unset;
    width: unset;
    min-height: 35vh;
  }
  main {
    min-height: unset;
  }
  .floating-logo {
    position: relative;
    left: unset;
    top: unset;
    padding: 50px;
    img {
      width: 25%;
    }
  }
  .floating-text {
    position: relative;
    padding-bottom: 500px;
    right: unset;
    top: unset;
    padding: 50px;
    width: unset;
    .typewriter-container {
      width: unset;
      max-width: unset;
    }
  }
  .floating-image {
    position: relative;
    bottom: unset;
    left: unset;
    img {
      width: 100%;
    }
  }
}

@media (max-width: 767px) {
  .floating-logo {
    img {
      width: 35%;
    }
  }
}

@media (max-width: 575px) {
  .floating-logo {
    img {
      width: 100%;
    }
  }
  .floating-text {
    position: relative;
    padding-bottom: 500px;
    right: unset;
    top: unset;
    padding: 50px;
  }
  .floating-image {
    position: relative;
    bottom: unset;
    left: unset;
    img {
      width: 100%;
    }
  }
}

@media (max-width: 419px) {
  .floating-text {
    padding-top: unset;
    h3 {
      font-size: 1.8rem;
    }
  }
}
