/* rem and em do NOT depend on html font-size in media queries! Instead, 1rem = 1em = 16px */

/**************************/
/* BELOW 2080px (Bigger desktops) */
/**************************/

@media (max-width: 130em) {
  .grid--2-cols {
    /* grid-template-columns: 85rem 85rem; */
  }
}

/**************************/
/* BELOW 1920px (Normal desktops) */
/**************************/

@media (max-width: 120em) {
  .grid--2-cols {
    padding: 0 10rem;
  }
  .header img {
    display: block;
    margin: 0.5rem;
    width: 40rem;
  }

  .main-nav-item:link,
  .main-nav-item:visited {
    font-size: max(2rem);
    font-weight: 700;
    padding: 1rem 1.8rem;
  }

  .main-nav--container .social-icon:link,
  .main-nav--container .social-icon:visited {
    width: 3.2rem;
    height: 3.2rem;
  }
}

/**************************/
/* BELOW 1344px (Smaller desktops) */
/**************************/

@media (max-width: 84em) {
  .grid--2-cols {
  }

  .header img {
    display: block;
    margin: 0.5rem;
    width: 30rem;
  }

  .main-nav--container {
    height: 4.4rem;
  }
  .main-nav-item:link,
  .main-nav-item:visited {
    padding: 1.2rem 1.6rem;
    font-size: 1.4rem;
  }

  .main-nav-socials {
    padding: 0 1rem;
  }

  .main-nav--container .social-icon:link,
  .main-nav--container .social-icon:visited {
    width: 3rem;
    height: 3rem;
  }

  .game-img-section {
    padding: 0rem 5rem 0 4rem;
  }
}

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

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

  .grid--2-cols {
    padding: 0 7rem;
  }

  .header img {
    display: block;
    margin: 0.5rem;
    width: 35rem;
  }

  .game.grid--2-cols {
    display: grid;
    /* align-items: center; */
    justify-content: center;
    grid-template-columns: 90rem;
    /* grid-template-rows: repeat(2, 45rem); */
    grid-template-rows: repeat(2);
    gap: 10rem;
    margin-top: 5rem;
  }

  .game-img-section {
    padding: 0;
  }

  .game--thumbnail {
    /* height: 100%;
    width: auto; */
    margin: auto;
  }

  .game--info {
    max-width: 80rem;
    padding: 0;
    align-items: center;
    margin: auto;
  }

  .btn {
    width: 6.4rem;
    height: 6.4rem;

    border: none;
  }

  /* .game--info p {
    margin: 0 5rem;
  } */
}

/**************************/
/* BELOW 944px (Tablets) */
/**************************/

@media (max-width: 59em) {
  html {
    /* 8px / 16px = 0.5 = 50% */
    font-size: 50%;
    overflow-x: hidden;
  }

  .grid--2-cols {
    padding: 0 5rem;
  }

  /* MOBILE NAVIGATION */
  .mobile-nav--btn {
    display: flex;
    margin-left: auto;
    position: relative;
    z-index: 9999;
  }

  .main-nav-socials {
    margin: 0;
    padding-top: 1.8rem;
  }

  .main-nav {
    height: auto;
  }
  .main-nav-list {
    height: auto;
  }

  .main-nav--container {
    background-color: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);
    z-index: 9998;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3.2rem;
    transition: all 0.2s ease-in;

    /* Hide navigation */
    /* Allows NO transitions at all */
    /* display: none; */

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

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

    /* 3) Hide it from screen readers */
    visibility: hidden;
  }

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

  .nav-open .mobile-nav--btn {
    /* background-color: rgba(0, 0, 0, 0.95); */
    background-color: transparent;
    /* background-color: #fff; */
  }

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

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

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

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

  .main-nav-socials .social-icon:link,
  .main-nav-socials .social-icon:visited {
    height: 4.5rem;
    width: 4.5rem;
    /* background-color: greenyellow; */
    /* width: 5rem; */
  }

  .game.grid--2-cols {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2);
  }
}

/**************************/
/* BELOW 704px (Smaller tablets) */
/**************************/

@media (max-width: 44em) {
  .grid--2-cols {
    padding: 0 5rem;
  }

  .game--logo {
    width: 80%;
  }
}

/**************************/
/* BELOW 544px (Phones) */
/**************************/

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

  .header img {
    display: block;
    margin: 0.5rem;
    width: 30rem;
  }

  header .grid--2-cols {
    padding: 0 1rem;
    /* background-color: red; */
  }

  .section-content--about {
    padding: 0rem 5rem 15rem 5rem;
  }

  .btn {
    width: 5.6rem;
    height: 5.6rem;

    border: none;
  }
}

/**************************/
/* BELOW 384px (Smaller Phones) */
/**************************/

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

  header .grid--2-cols {
    padding: 0 0.5rem;
  }

  .game--thumbnail {
    height: auto;
    width: 40rem;
    /* position: relative; */
    top: 0;
    left: 0;

    text-align: center;
  }
}

/* 
- 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
*/
