/* Override main container styling */
.container {
  display: grid;
  grid: 300px auto 80px / repeat(3, auto);
  /*gap: 5px;*/
  grid-template-areas:
    "N N N"
    "M M M"
    "F F F";
  min-height: 100vh;
}

/* Main content area */
main {
  grid-area: M;
  display: grid;
  grid: auto / 1fr 5fr 1fr;
  gap: 10px;
  margin-top: 30px;
}

section {
  grid-row: 1/2;
  grid-column: 2/3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

section div:nth-child(1) {
  background-color: #ffab1f;
  color: #61241c;
  text-align: center;
  font-size: 25px;
  font-weight: 700;
  padding: 5px;
  margin: 15px 0;
  flex-basis: 35px;
}

section div:nth-child(2) {
  text-align: center;
}

.large-screen {
  text-align: center;
  display: block;
}

.small-screen {
  display: none;
}

.x-small-screen {
  display: none;
}

/* Screen size : 900px - 1350px */

/* Tablet size : 750px - 900px */
@media (max-width: 900px) {
  /* Override main container styling */
  /*.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }*/
  .container {
    display: grid;
    grid: 220px auto 80px / 1fr;
    grid-template-areas:
      "N"
      "M"
      "F";
    min-height: 100vh;
  }

  .large-screen {
    display: none;
  }

  .small-screen {
    text-align: center;
    display: block;
  }

  .x-small-screen {
    display: none;
  }
}

/*Phone size : 750 px and lower */
@media (max-width: 750px) {
  .container {
    display: grid;
    grid: 150px auto 80px / 1fr;
    grid-template-areas:
      "N"
      "M"
      "F";
    min-height: 100vh;
  }

  main {
    background-color: #f8f7f5;
    padding: 20px;
    /*border-top: 2px solid #cecdcb;*/
    border-top: 1px solid #61241c;
    margin-bottom: 0;
  }

  /* Footer area */
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/*Phone size : 450 px and lower */
@media (max-width: 450px) {
  .large-screen {
    display: none;
  }

  .small-screen {
    display: none;
  }

  .x-small-screen {
    text-align: center;
    display: block;
  }
}
