@font-face {
  font-family: 'AwesomeSerifVAR';
  src: url('../fonts/AwesomeSerifVAR-VF.ttf');
}

@font-face {
  font-family: 'AwesomeSerifItalicVAR';
  src: url('../fonts/AwesomeSerifItalicVAR-VF.ttf');
  font-style: italic;
}

body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Cover - Erasmus */

.erasmus-cover {
  position: relative;
  background-color: #E45A2C;
  color: #FFFFF8;
  height: 100vh;
  padding-top: 66px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.erasmus-cover-texts {
  width: 765px;
  height: fit-content;
  margin-top: 65px;
  margin-left: 50px;
  margin-right: 50px;
}

.erasmus-cover-title {
  margin: 0;
  margin-bottom: 50px;
  font-family: 'AwesomeSerifVAR';
  font-variation-settings: 'wght' 525, 'hght' 1000;
  font-weight: 400;
  font-size: 64px;
  line-height: 102%;
}

.erasmus-cover-texts p {
  margin: 0;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 102%;
  font-size: 24px;
  text-align: start;
  width: 500px;
}

.erasmus-cover-img img {
  width: 1155px;
  height: 100vh;
  object-fit: cover;
  object-position: center;
}

/* FIN - Cover - Erasmus */

/* Middle - Erasmus */

.erasmus-middle {
  position: relative;
  background-color: #FFFFF8;
  color: #20313B;
  padding: 100px 50px;
}

.erasmus-middle-texts p {
  width: 773px;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 102%;
  font-size: 24px;
  margin: 0;
  text-align: left;
}

.erasmus-middle-btns {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 170px;
}

.erasmus-what-btn, .erasmus-applicants-btn, .erasmus-sources-btn {
  width: 400px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom-left-radius: 58px;
  border-top-left-radius: 58px;
  border-top-right-radius: 58px;
  border: 2px solid #20313B;
  background-color: #FFFFF8;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 102%;
  font-size: 24px;
  margin: 0;
  margin-right: 50px;
  text-decoration: none;
  color: #20313B;
  z-index: 5;
  margin-top: 25px;
}

.erasmus-sources-btn {
  margin-right: 300px;
}

.erasmus-what-btn:hover {
  background-color: #F8C81B;
}

.erasmus-applicants-btn:hover {
  background-color: #E45A2C;
  color: #FFFFF8;
}

.erasmus-sources-btn:hover {
  background-color: #C1DCEF;
}

.erasmus-btn-sticker {
  position: absolute;
  bottom: 100px;
  right: 100px;
}

.erasmus-btn-sticker .hover-img img {
  width: 250px;
  height: auto;
  z-index: 5;
  position: relative;
}

.raton {
  position: absolute;
  right: 175px;
  bottom: -45px;
  z-index: 7;
  width: 90px;
  animation: mouse 2s infinite linear;
}

@keyframes mouse {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-15px, 15px);
  }
  100% {
    transform: translate(0, 0);
  }
}

.yellow-star {
  position: absolute;
  right: -70px;
  bottom: -25px;
  z-index: 3;
  width: 160px;
  animation: spin-star 5s infinite linear;
}

@keyframes spin-star {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

.erasmus-btn-sticker:hover .raton {
  animation: mouse-far 2s infinite linear;
}

@keyframes mouse-far {
  0% {
    transform: translate(-15px, 15px);
  }
  50% {
    transform: translate(-30px, 30px);
  }
  100% {
    transform: translate(-15px, 15px);
  }
}

.erasmus-btn-sticker:hover .yellow-star {
  animation: move-star 3s infinite alternate;
}

@keyframes move-star {
  0% {
    transform: rotate(0deg) translate(0, 0);
  }
  100% {
    transform: rotate(360deg) translate(30px, -30px);
  }
}

.erasmus-star {
  position: absolute;
  left: 300px;
  bottom: 80px;
  animation: spin-and-wiggle 12s infinite linear;
}

@keyframes spin-and-wiggle {
  0% {
    transform: rotate(0deg) translate(0, 0);
  }
  25% {
    transform: rotate(90deg) translate(-40px, -35px);
  }
  50% {
    transform: rotate(180deg) translate(0, 20px);
  }
  75% {
    transform: rotate(270deg) translate(25px, -33px);
  }
  100% {
    transform: rotate(360deg) translate(0, 0);
  }
}

  /* Bubble */

  .erasmus-bubble {
    display: none;
    position: absolute;
    background-color: #FFFFF8;
    color: #20313B;
    z-index: 100;
    border: 2px solid #20313B;
    border-top-right-radius: 50px;
    border-top-left-radius: 50px;
    border-bottom-right-radius: 50px;
    right: 160px;
    top: 50px;
  }

  .erasmus-bubble.active {
    display: block;
  }

  .erasmus-what-btn.active {
    background-color: #F8C81B;
  }

  .erasmus-applicants-btn.active {
    background-color: #E45A2C;
    color: #FFFFF8;
  }

  .erasmus-sources-btn.active {
    background-color: #C1DCEF;
  }

  .erasmus-bubble .erasmus-close-bubble {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    right: -2px;
    top: -2px;
    width: 102px;
    height: 104px;
    font-size: 48px;
    color: #20313B;
    background-color: #FFFFF8;
    border: 2px solid #20313B;
    border-top-right-radius: 50px;
    box-sizing: border-box;
  }

  .erasmus-bubble .erasmus-close-bubble:hover {
    background-color: #20313B;
    color: #FFFFF8;
  }

  .erasmus-bubble-content h1 {
    font-family: 'AwesomeSerifVAR';
    font-variation-settings: 'wght' 325, 'hght' 1000;
    font-size: 36px;
    line-height: 102%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    width: 800px;
    height: 100px;
    margin: 0;
    border-bottom: 2px solid #20313B;
  }

  .erasmus-bubble-content p, 
  .erasmus-bubble-content ul, 
  .erasmus-bubble-content li {
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 102%;
    font-size: 24px;
    margin: 0;
    text-align: left;
  }

  .erasmus-bubble-content p {
    margin-bottom: 25px;
  }

  .erasmus-bubble-content li {
    margin: 0 50px;
    margin-bottom: 25px;
  }

  .erasmus-bubble-content h2 {
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 700;
    line-height: 102%;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 25px;
  }

  .scroll-wrapper {
    position: relative;
    width: 700px;
    height: 230px;
  }

  .erasmus-bubble-scroll {
    height: 100%;
    width: 100%;    
    overflow-y: auto;
    margin: 50px;
    box-sizing: border-box;
    direction: rtl;
    /* Oculta scrollbar en Firefox */
    scrollbar-width: none;
    
    /* Oculta scrollbar en IE/Edge legacy */
    -ms-overflow-style: none;
  }

  .fade-top, .fade-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 100px;
    width: 770px;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s;
  }

  .fade-top {
    top: -1px;
    background: linear-gradient(to bottom, #FFFFF8, #fffff800);
    opacity: 0;
  }

  .fade-bottom {
    bottom: -1px;
    background: linear-gradient(to top, #FFFFF8, #fffff800);
    opacity: 1;
  }

  .erasmus-bubble-scroll > * {
    direction: ltr;
  }

.erasmus-bubble-scroll::-webkit-scrollbar {
    height: 12px;
}

.erasmus-bubble-scroll::-webkit-scrollbar-track {
    background: 
        linear-gradient(to bottom, 
            #20313B, 
            #20313B
        ) center/2px 100% no-repeat;
}

.erasmus-bubble-scroll::-webkit-scrollbar-thumb {
    background: #20313B;
    border-radius: 10px;
    width: 10px;
    height: 10px !important;
    min-height: 10px;
    margin: 0 1px;
}

  /* FIN - Bubble */

  /* Bubble - What */

  .erasmus-bubble-what {
    width: 800px;
    height: 420px;
  }

  /* FIN - Bubble - What */

  /* Bubble - Applicant */

  .erasmus-bubble-applicant {
    width: 800px;
    height: 420px;
  }

  /* FIN - Bubble - Applicant */

  /* Bubble - Source */

  .erasmus-bubble-source {
    right: 270px;
    top: 85px;
    width: 591px;
    height: 341px;
  }

  .erasmus-bubble-content-source h1 {
    font-family: 'AwesomeSerifVAR';
    font-variation-settings: 'wght' 325, 'hght' 1000;
    font-size: 36px;
    line-height: 102%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    width: 591px;
    height: 100px;
    margin: 0;
    border-bottom: 2px solid #20313B;
  }

  .erasmus-bubble-content-source a {
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 102%;
    font-size: 24px;
    color: #20313B;
    margin-bottom: 25px;
  }

  .erasmus-bubble-content-source .erasmus-bubble-scroll p {
    margin: 0;
  }

  .erasmus-bubble-content-source .erasmus-bubble-scroll {
    overflow-y: hidden;
  }

  /* FIN - Bubble - Source */

  .simbolo-mas {
    font-family: 'neue-haas-grotesk-display';
    font-weight: 500;
  }

/* FIN - Middle - Erasmus */

@media (max-width: 1000px) {
  /* Cover - Erasmus */
  .erasmus-cover {
    height: auto;
    padding-top: 0;
    display: flex;
    flex-direction: column;
  }
  .erasmus-cover-texts {
    margin-top: 25px;
    margin-left: 30px;
    width: 272px;
    margin-bottom: 25px;
  }
  .erasmus-cover-title {
    margin-bottom: 20px;
    font-size: 36px;
    width: 256px;
  }
  .erasmus-cover-texts p {
    font-size: 20px;
    width: 283px;
    margin-bottom: 10px;
  }
  .erasmus-cover-img {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    overflow: hidden;
  }
  .erasmus-cover-img img {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  /* FIN - Cover - Erasmus */
  /* Middle - Erasmus */
  .erasmus-middle {
    padding: 75px 0;
  }
  .erasmus-middle-texts p {
    width: 272px;
    font-size: 20px;
    padding-left: 30px;
  }
  .erasmus-middle-btns {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 70px;
  }
  .erasmus-what-btn, .erasmus-applicants-btn, .erasmus-sources-btn {
    width: 310px;
    height: 60px;
    font-size: 18px;
    margin: 0;
    margin-top: 25px;
  }
  .erasmus-sources-btn {
    margin-right: unset;
  }
  .erasmus-btn-sticker {
    position: relative;
    bottom: 0;
    right: 0;
    margin-top: 65px;
  }
  .erasmus-btn-sticker .hover-img img {
    width: 175px;
  }
  .raton {
    right: 125px;
    bottom: -25px;
    width: 60px;
  }
  .yellow-star {
    right: -50px;
    bottom: -5px;
    width: 100px;
  }
  .erasmus-star {
    left: 290px;
    bottom: 350px;
  }
  .erasmus-star img {
    width: 120px;
  }
    /* Bubble */
    .erasmus-bubble {
      width: 347px;
      height: 442px;
      left: 50%;
      transform: translate(-50%);
      top: 500px;
      right: unset;
    }
    .erasmus-bubble .erasmus-close-bubble {
      width: 55px;
      height: 92px;
      font-size: 48px;
    }
    .erasmus-bubble-content h1 {
      font-size: 28px;
      width: 294px;
      height: 90px;
      text-align: center;
      padding: 0 20px;
      box-sizing: border-box;
    }
    .erasmus-bubble-content p, 
    .erasmus-bubble-content ul, 
    .erasmus-bubble-content li {
      font-size: 20px;
    }
    .erasmus-bubble-content p {
      margin-bottom: 20px;
    }
    .erasmus-bubble-content li {
      margin: 0 30px;
      margin-bottom: 20px;
    }
    .erasmus-bubble-content h2 {
      font-size: 20px;
      margin-bottom: 20px;
    }
    .scroll-wrapper {
      width: 347px;
      height: 351px;
      margin: 0;
      padding: 20px 0 20px 0;
      box-sizing: border-box;
    }
    .erasmus-bubble-scroll {
      margin: 0;
      padding: 0 20px 0 20px;
    }
    .fade-top, .fade-bottom {
      height: 120px;
      width: 345px;
    }
    .fade-top {
      top: 1px;
    }
    .fade-bottom {
      bottom: 5px;
      border-bottom-right-radius: 50px;
    }
    .erasmus-bubble-scroll::-webkit-scrollbar-track {
        background: 
            linear-gradient(to bottom, 
                #20313B, 
                #20313B
            ) center/1px 100% no-repeat;
    }
    .erasmus-bubble-content-source .erasmus-bubble-scroll p {
      padding-top: 20px;
    }
    /* FIN - Bubble */
    /* Bubble - What */
    .erasmus-bubble-what {
      width: 347px;
      height: 442px;
    }
    /* FIN - Bubble - What */
    /* Bubble - Applicant */
    .erasmus-bubble-applicant {
      width: 347px;
      height: 442px;
    }
    /* FIN - Bubble - Applicant */
    /* Bubble - Source */
    .erasmus-bubble-source {
      right: unset;
      top: 597px;
      width: 347px;
      height: 242px;
    }
    .erasmus-bubble-content-source h1 {
      font-size: 30px;
      width: 294px;
      height: 90px;
      text-align: center;
      padding: 0 20px;
      box-sizing: border-box;
    }
    .erasmus-bubble-content-source a {
      font-size: 20px;
      margin-bottom: 20px;
    }
    /* FIN - Bubble - Source */
  /* FIN - Middle - Erasmus */
}