@media (orientation: landscape) {
  /* For all landscapes */
  .bottomSectionWrapper {
    display: flex;
  }

  .hamburgerMenu {
    display: none;
  }

  .mobileMenu {
    display: none;
  }
  .mobileBottomSectionWrapper {
    display: none;
  }

  .centerText {
    display: none;
  }
}

@media (orientation: landscape) and (max-height: 800px) {
  .faceAndText {
    margin: min(calc(var(--box-margin) / 2.5), 0.5vh);
  }

  .textBox,
  .splashBox {
    width: 80%;
    padding-left: 10%;
    padding-right: 10%;
    max-width: 950px;
  }
}

@media (orientation: landscape) and (max-height: 625px) {
  /* SHORT SCREENS */

  :root {
    --box-margin: 15px;
    --category-size: 20px;
    --title-size: 26px;
    --text-size: 20px;
    --body-text: 18px;
    --splash-text: 16px;
    --face-tile: 22px;
    --bottom-text: 10px;
  }

  .logoWrapper {
    transform: scale(0.6);
    transform-origin: top;
  }
}

@media (orientation: landscape) and (max-height: 400px) {
  /* SILLY SHORT SCREENS */
  :root {
    --box-margin: 15px;
    --category-size: 16px;
    --title-size: 18px;
    --text-size: 16px;
    --body-text: 14px;
    --splash-text: 12px;
    --face-tile: 16px;
    --bottom-text: 8px;
  }

  .logoWrapper {
    transform: scale(0.4);
    transform-origin: top;
  }

  .sideText {
    font-size: var(--title-size);
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  /* Styles for small desktops */
  .logoWrapper {
    transform: scale(1);
    transform-origin: top;
  }

  .menuBar {
    width: 250px;
  }

  .bottomPart {
    width: 300px;
  }
  :root {
    --box-margin: 35px;
    --category-size: 30px;
    --title-size: 22px;
    --text-size: 24px;
    --body-text: 18px;
    --splash-text: 20px;
    --face-title: 14px;
    --bottom-text: 12px;
    --logo-height: 88px;
    --uc3m-size: 80px;
  }

  #illustrationSplash {
    width: 90%;
    padding-left: 5%;
    padding-right: 5%;
  }

  .innerSplash {
    padding: 20px 35px 35px 20px;
  }

  .iconThing {
    width: 50px;
    min-width: 50px;
    min-height: 50px;
    height: 50px;
  }

  .messageSplash::before,
  .messageSplash::after {
    min-width: 10px;
    min-height: 10px;
    border-radius: 15px;
    margin-left: 5px;
    margin-right: 5px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  /* Styles for regular desktops */

  .menuBar {
    width: 250px;
  }
  :root {
    --box-margin: 35px;
    --category-size: 30px;
    --title-size: 24px;
    --text-size: 20px;
    --body-text: 20px;
    --splash-text: 18px;
    --face-title: 16px;
    --bottom-text: 12px;
    --logo-height: 88px;
    --uc3m-size: 80px;
  }

  .bottomPart {
    width: 350px;
  }

  #illustrationSplash {
    width: 90%;
    padding-left: 5%;
    padding-right: 5%;
  }
}

@media (min-width: 1200px) {
  /* Styles for big desktops */
}

@media (orientation: portrait) {
  :root {
    --box-margin: 35px;
    --category-size: 30px;
    --title-size: 22px;
    --text-size: 22px;
    --body-text: 16px;
    --splash-text: 17px;
    --face-title: 18px;
    --bottom-text: 12px;
    --logo-height: 88px;
    --uc3m-size: 80px;
    --up-and-away: scale(0.4) translateY(85px);
  }

  .sideText {
    display: none;
  }

  .introContent,
  .teamContent {
    border-radius: 0vw 0px 0px 15vh;
  }

  .aboutContent {
    border-radius: 15vh 0px 0px 0px;
  }

  .fullMenuBar {
    top: 0;
    width: 100%;
    height: 100px;
    min-height: 100px;
    flex-direction: column;
    z-index: 100000;
  }

  .fullPage {
    flex-direction: column;
    display: block;
  }

  .menuLine {
    width: 100%;
    height: 10px;
    min-height: 3px;
    z-index: 40;
  }

  .menuBar {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }
  .bottomSectionWrapper {
    display: none;
  }

  .mobileBottomSectionWrapper {
    display: flex;
  }

  .midSectionWrapper {
    display: none;
  }

  .logoWrapper {
    place-self: flex-start;
  }

  .categoryTab {
    margin: calc(var(--box-margin) / 2);
    color: white;
  }

  .logoWrapper {
    width: 100px;
    height: 80px;
    margin: 10px;
    margin-left: 30px;
  }

  .categoryWrapper {
    align-items: center;
  }

  .midSectionWrapper {
    height: 500px;
    width: 100%;
    background: var(--main-color);
    top: 100px;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 5px 0px 5px white;
    border-radius: 0px 0px 20px 20px;
    transition: transform 250ms ease-in-out;
    transform: translateY(-700px) scaleY(0);
    z-index: 40;
  }
  .logoWrapper {
    z-index: 50;
  }
  #hamburgerMenu {
    z-index: 50;
  }

  .darkSpace {
    background: var(--secondary-color);
    height: 100%;
    width: 100%;
    z-index: 45;
    position: absolute;
    display: block;
  }

  .categoryTab:hover {
    font-weight: 300;
  }

  .currentTab:hover {
    font-weight: 500;
  }

  .innerSplash {
    padding: 20px 35px 35px 20px;
  }

  .iconThing {
    width: 50px;
    min-width: 50px;
    min-height: 50px;
    height: 50px;
  }

  .messageSplash::before,
  .messageSplash::after {
    min-width: 10px;
    min-height: 10px;
    border-radius: 15px;
    margin-left: 5px;
    margin-right: 5px;
  }

  .textBox,
  .splashBox {
    width: 85%;
    padding-left: 10%;
    padding-right: 10%;
    max-width: 950px;
  }

  .splashBox {
    width: 90%;
  }

  #illustrationSplash {
    width: 95%;
    padding-left: 5%;
    padding-right: 5%;
  }

  .newsRollerWrapper {
    height: fit-content;
    width: 100%;
    overflow: hidden;
  }

  .newsRoller {
    height: 80px;
    animation: rollReel 20s linear infinite;
  }

  .hiiliGrade {
    width: 40px;
  }

  .gradeBox {
    width: 40px;
    height: 40px;
  }

  .letterBox,
  .triangleBox,
  .coloredBox {
    width: 40px;
  }

  .triangleBox {
    height: 40px;
    bottom: -25px;
  }
  .letterBox {
    font-size: 20px;
    animation: swappingLetterHeightsMobile 6s linear infinite,
      swappingLetterColors 6s linear infinite;
  }

  .illustrationContent {
    width: 90%;
  }

  .trueIllustration {
    height: 200px;
    margin-top: min(25px, 2vh);
    margin-bottom: min(25px, 2vh);
  }

  .faceImage {
    min-width: 70px;
    min-height: 70px;
  }

  .faceContainer {
    display: flex;
    flex-direction: column;
  }

  .faceAndText {
    margin: 12px;
  }

  .faceImage {
    margin-right: 15px;
    margin-left: 15px;
  }

  .faceAndText {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  .trueBodyContent {
    height: calc(100% - 100px);
    scroll-snap-type: y mandatory;
    bottom: 0;
    padding-left: 0px;
  }

  .bigContent {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  .privacyPolicy {
    color: var(--main-color);
  }

  .uc3mLogo {
    margin-top: initial;
    margin-right: initial;
    height: calc(var(--uc3m-size) / 2);
    right: initial;
    top: initial;
    left: 0;
    bottom: 0;
    margin-bottom: calc(var(--uc3m-size) / 10);
    margin-left: calc(var(--uc3m-size) / 6);
    z-index: 10000;
  }

  .bubbleWrapper {
    width: 10px;
    height: 10px;
  }

  .titleAndContent > * {
    margin-top: 2px;
    margin-bottom: 2px;
  }

  .bottomPart {
    display: none;
  }
}

@media (max-width: 400px) and (orientation: portrait) {
  /* Styles for small mobiles */

  :root {
    --box-margin: 20px;
    --category-size: 30px;
    --title-size: 18px;
    --text-size: 22px;
    --body-text: 15px;
    --splash-text: 15px;
    --face-title: 16px;
    --bottom-text: 12px;
    --logo-height: 88px;
    --uc3m-size: 80px;
  }

  .newsRollerWrapper {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .iconThing {
    width: 35px;
    min-width: 35px;
    min-height: 35px;
    height: 35px;
    border-radius: 10px;
  }

  .messageSplash::before,
  .messageSplash::after {
    min-width: 7px;
    min-height: 7px;
    border-radius: 15px;
    margin-left: 3px;
    margin-right: 3px;
  }

  .newsRoller {
    margin-top: calc(var(--box-margin) * 0.5);
    margin-bottom: calc(var(--box-margin) * 0.5);
  }

  .faceAndText {
    margin: 10px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) and (orientation: portrait) {
  /* Styles for regular mobiles */

  :root {
    --box-margin: 35px;
    --category-size: 30px;
    --title-size: 22px;
    --text-size: 24px;
    --body-text: 17px;
    --splash-text: 18px;
    --face-tile: 20px;
    --bottom-text: 12px;
    --logo-height: 88px;
    --uc3m-size: 80px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) and (orientation: portrait) {
  /* Styles for big mobiles */
}

@media (max-width: 400px) and (max-height: 700px) and (orientation: portrait) {
  :root {
    --box-margin: 35px;
    --category-size: 30px;
    --title-size: 18px;
    --text-size: 24px;
    --body-text: 15px;
    --splash-text: 14px;
    --face-title: 16px;
    --bottom-text: 12px;
    --logo-height: 88px;
    --uc3m-size: 80px;
  }
  .titleAndContent > * {
    margin-top: 2px;
    margin-bottom: 2px;
  }

  .faceContent {
    font-size: calc(var(--face-title) * 0.8);
  }
}
