/* rem and em do NOT depend on html font-size in media queries: 
Instead, 1rem = 1em = 16px */
#raison {
  width: 210%;
  height: 10rem;
}

html {
  overflow-x: hidden;
}
/* *************************** */
/* BELOW 1344px (Smaller desktops) */
/* *************************** */

@media (max-width: 84em) {
  html {
    /* 9px / 16px */
    font-size: 56.25%;
  }
}

/* *************************** */
/* BELOW 1200px (School Laptops) */
/* *************************** */

@media (max-width: 75em) {
  html {
    /* 8px / 16px */
    font-size: 50%;
  }

  .grid {
    column-gap: 4.8rem;
    row-gap: 6.4rem;
  }
}

/* *************************** */
/* BELOW 1072px (Landscape Tablets) */
/* *************************** */

@media (max-width: 67em) {
  /* MOBILE NAVIGATION */
  .btn-mobile-nav {
    display: block;
    z-index: 9999;
  }

  .cta {
    /* 3/5 = 60% + 2/5 = 40% */
    grid-template-columns: 3fr 2fr;
  }

  .cta-form {
    grid-template-columns: 1fr;
  }

  .btn--form {
    margin-top: 1.2rem;
  }

  .main-nav {
    background-color: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);

    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in;
    z-index: 10;

    /* Hide navigation */
    /* Aloows NO transitions allowed */
    /* display: none; */

    /* 1) Hide it visually */
    opacity: 0;

    /* 2) Make it unaccessible to mouse and keyboard */
    pointer-events: none;

    /* 3) Hie it form screen readers */
    visibility: hidden;
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  .nav-open .icon-mobile-nav[name="close-outline"] {
    display: block;
  }

  .nav-open .icon-mobile-nav[name="menu-outline"] {
    display: none;
  }

  .main-nav-list {
    flex-direction: column;
    gap: 4.8rem;
  }

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 3rem;
  }

  .grid--4-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .club-apply-action {
    text-align: center;
    margin-top: 4.8rem;
  }

  .actionheader {
    text-align: center;
    margin-bottom: 4.8rem;
  }

  #raison {
    width: 100%;
    height: 10rem;
  }
}

/* *************************** */
/* BELOW 784px (Tablets) */
/* *************************** */

@media (max-width: 49em) {
  .hero {
    grid-template-columns: 1fr;
    padding: 0 8rem;
    gap: 6.4rem;
  }

  .hero-text-box,
  .hero-img-box {
    text-align: center;
  }

  .hero-img {
    width: 60%;
  }

  .grid--3-cols,
  .grid--4-cols,
  .grid--2-cols,
  .grid--about,
  .grid--package,
  .cta {
    grid-template-columns: 1fr;
  }

  .img-about {
    width: 70%;
  }

  .cta {
    grid-template-columns: 1fr;
  }

  .cta-text-box {
    padding: 3.2rem;
  }

  .cta-img-box {
    height: 32rem;
    grid-row: 1;
  }

  .btn,
  .btn:link,
  .btn:visited {
    padding: 2.6rem 3.2rem;
  }
}

/* *************************** */
/* BELOW 816px (Smaller Tablets) */
/* *************************** */

@media (max-width: 51em) {
  .hero-text {
    font-size: 5rem;
  }

  .hero-description {
    font-size: 3rem;
  }

  iframe {
    width: 100%;
    height: 400px;
  }

  .hero {
    max-width: 140rem;
    margin: 0;
    padding: 0;
    align-items: center;
    align-self: center;
  }

  .hero a:not(:last-child) {
    margin-right: 0;
  }

  .hero-description {
    font-size: 3rem;
    line-height: 1.6;
    margin-bottom: 4.8rem;
    justify-self: center;
    padding: 0 10rem 0 10rem;
  }
}

/* *************************** */
/* BELOW 450px (Phones) */
/* *************************** */
@media (max-width: 32em) {
  .hero-text {
    font-size: 4rem;
  }

  .hero-description {
    font-size: 2rem;
  }
}

/* *************************** */
/* BELOW 368px (Small Phones) */
/* *************************** */

@media (max-width: 23em) {
  html {
    font-size: 43.75%;
  }
}

/* 
- Font sizes (px):
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- Spacing system (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
*/
