/* rem and em do NOT depend on html font-size in media queries! Instead, 1rem = 1em = 16px */

/**************************/
/* BELOW 1344px (Smaller desktops) */
/**************************/

@media (max-width: 84em) {
}

/**************************/
/* BELOW 1200px (Landscape Tablets) */
/**************************/

@media (max-width: 75em) {
  html {
    /* 9px / 16px  */
    font-size: 56.25%;
  }
}

/**************************/
/* BELOW 1090px (Landscape Tablets) */
/**************************/

@media (max-width: 68em) {
  /* ===================================== */
  /* REGISTATION */
  /* ===================================== */
  .registration-form {
    grid-template-columns: 1fr;
  }

  .reg-forename {
    grid-row: 1;
    grid-column: 1/-1;
  }

  .reg-surname {
    grid-row: 2;
    grid-column: 1/-1;
  }

  .reg-email {
    grid-row: 3;
    grid-column: 1 / -1;
  }

  .reg-password {
    grid-row: 4 !important;
    grid-column: 1/-1;
  }

  .reg-confirm-password {
    grid-row: 5 !important;
    grid-column: 1/-1;
  }

  .reg-submit {
    grid-row: 6;
    grid-column: 1/-1;
  }

  /* ===================================== */
  /* CREATE EVENT */
  /* ===================================== */
  .create-event-form {
    grid-template-columns: 1fr;
  }

  .create-event-location {
    grid-row: 1;
    grid-column: 1/-1;
  }

  .create-event-description {
    grid-row: 2;
    grid-column: 1/-1;
  }

  .create-event-date {
    grid-row: 3;
    grid-column: 1 / -1;
  }

  .create-event-time {
    grid-row: 4 !important;
    grid-column: 1/-1;
  }

  .create-event-match-Type {
    grid-row: 5 !important;
    grid-column: 1/-1;
  }

  .create-event-required {
    grid-row: 6;
    grid-column: 1/-1;
  }

  .create-event-group {
    grid-row: 7;
    grid-column: 1/-1;
  }

  .create-event-reserves {
    grid-row: 8;
    grid-column: 1/-1;
  }

  .create-event-submit {
    grid-row: 9;
    grid-column: 1/-1;
  }

  /* ===================================== */
  /* DISPLAY EVENT */
  /* ===================================== */

  .grid-entered-members,
  .grid-add-user {
    grid-template-columns: 3rem 1fr 8rem 8rem !important;
  }

  /* ===================================== */
  /* LIST EVENT */
  /* ===================================== */

  .list_event {
    margin: 5rem 3rem !important;
  }
}

/**************************/
/* BELOW 944px (Tablets) */
/**************************/

@media (max-width: 59em) {
  html {
    /* 8px / 16px = 0.5 = 50% */
    font-size: 50%;
  }

  /* MOBILE NAVIGATION */
  .btn-mobile-nav {
    display: block;
    z-index: 1000;
  }

  /* ===================================== */
  /* HEADER / NAVIGATION */
  /* ===================================== */

  .main-nav {
    background-color: rgba(255, 255, 255, 0.97);
    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;

    /* 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 {
    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;
    height: 100vh;
    width: 100vh;
    padding: 5rem;
  }

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 3rem;
  }
}
/**************************/
/* BELOW 860px (Landscape Tablets) */
/**************************/

@media (max-width: 54em) {
  /* ===================================== */
  /* REGISTATION */
  /* ===================================== */
  .registration {
    margin: 10rem 15rem !important;
  }

  /* ===================================== */
  /* LOGIN */
  /* ===================================== */

  .login {
    margin: 10rem 15rem !important;
  }

  /* ===================================== */
  /* CREATE EVENT */
  /* ===================================== */

  .create_event {
    margin: 10rem 15rem !important;
  }

  /* ===================================== */
  /* DISPLAY EVENT */
  /* ===================================== */

  .display-event {
    margin: 10rem 15rem !important;
  }

  /* ===================================== */
  /* MAINT MENU */
  /* ===================================== */
  .maint-grid-number-cols {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/**************************/
/* BELOW 704px (Smaller tablets) */
/**************************/

@media (max-width: 44em) {
  /* ===================================== */
  /* GENERAL / REUSABLE */
  /* ===================================== */

  .page-title {
    font-size: 1.5rem;
  }

  /* ===================================== */
  /* HEADER / NAVIGATION */
  /* ===================================== */
  .nav-col {
    grid-row: 1;
    grid-column: span 2;
    margin-bottom: 3.2rem;
  }

  /* ===================================== */
  /* REGISTATION */
  /* ===================================== */

  .registration {
    margin: 8rem 5rem !important;
  }

  .registration-form {
    padding: 2rem 6rem !important;
  }

  /* ===================================== */
  /* LIST EVENTS */
  /* ===================================== */

  #events th:nth-child(1) + th,
  #events td:nth-child(1) + td {
    display: none;
  }

  /* ===================================== */
  /* LOGIN */
  /* ===================================== */

  .login {
    margin: 8rem 5rem !important;
  }

  .login-form {
    padding: 2rem 6rem !important;
  }

  /* ===================================== */
  /* CREATE EVENT */
  /* ===================================== */

  .create_event {
    margin: 8rem 5rem !important;
  }

  .create-event-form {
    padding: 2rem 6rem !important;
  }

  /* ===================================== */
  /* DISPLAY EVENT */
  /* ===================================== */

  .display-event {
    margin: 8rem 5rem !important;
  }

  /* ===================================== */
  /* LIST EVENT */
  /* ===================================== */

  .list_event {
    margin: 5rem 1rem !important;
  }

  .table-row {
    height: 6rem !important;
  }
}

/**************************/
/* BELOW 600px (Phones) */
/**************************/

@media (max-width: 37em) {
  /* ===================================== */
  /* LIST EVENTS */
  /* ===================================== */
}

@media (max-width: 34em) {
  /* ===================================== */
  /* REGISTATION */
  /* ===================================== */
  .registration-form {
    padding: 2rem 3rem !important;
  }

  /* ===================================== */
  /* LOGIN */
  /* ===================================== */

  .login-form {
    padding: 2rem 3rem !important;
  }

  /* ===================================== */
  /* DISPLAY EVENT */
  /* ===================================== */

  .display-event {
    margin: 1rem 3rem !important;
  }

  /* #events th:nth-child(3) + th,
  #events td:nth-child(3) + td {
    display: none;
  } */

  /* ===================================== */
  /* DISPLAY EVENT */
  /* ===================================== */

  .display-event {
    margin: 1rem 1rem !important;
  }
}

/**************************/
/* BELOW 544px (Phones) */
/**************************/

@media (max-width: 32em) {
  html {
    /* 8px / 16px = 0.5 = 50% */
    font-size: 30%;
  }

  /* ===================================== */
  /* LIST EVENT */
  /* ===================================== */

  .list_event {
    margin: 5rem 0rem !important;
  }

  /* ===================================== */
  /* DISPLAY EVENT */
  /* ===================================== */

  .display-event {
    margin: 1rem 0rem !important;
  }

  .table-row {
    height: 7rem !important;
  }
}

/* 
- 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
*/
