html {
  font-size: 16px;
}

body {
  display: grid;
  margin: 1.5rem;
  padding: 3rem 5rem 1.5rem;
  grid-template-columns: 15% 45% 25% 15%;
  font-family: "Montserrat", "DM Sans", serif;
  color: black;
  background-color: white;
  grid-template-areas:
    "header header nav nav"
    "title_cs title_cs title_cs title_cs"
    "port_app port_app date_port_app date_port_app"
    "tea tea date_tea date_tea"
    "lab lab date_lab date_lab"
    "dash dash date_dash date_dash"
    "spot spot date_spot date_spot"
    "portfolio portfolio date_portfolio date_portfolio"
    "gdp gdp date_gdp date_gdp"
    "med med date_med date_med"
    "title_eng title_eng title_eng title_eng"
    "tile tile date_tile date_tile"
    "fem fem date_fem date_fem"
    "sprinkler sprinkler date_sprinkler date_sprinkler"
    "lift lift date_lift date_lift"
    "gearbox gearbox date_gearbox date_gearbox"
    "footer footer footer footer";
}

header {
  border: var(--border-info);
  padding: 0.75rem 0 0.75rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  justify-items: start;
  align-content: center;
}

header h1 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

header a {
  color: #0855a7;
}

#make_button a {
  background-color: #0855a7;
  color: white;
  padding: 0.875rem 1.56rem;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  border-radius: 0.5rem;
}

#make_button a:hover {
  position: static;
  transition: background-color 0.5s;
  opacity: 1;
  background-color: #130201;
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  border-radius: 0.5rem;
}

#on_this_page {
  font-weight: 800;
  color: black;
}

#on_this_page:hover {
  font-weight: 800;
  position: static;
  opacity: 1;
}

nav {
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  border: var(--border-info);
  align-items: center;
  justify-content: end;
}

nav a {
  padding: 0 1rem;
  margin: 0;
  color: #0855a7;
}

a {
  color: #0855a7;
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  color: black;
  position: static;
  top: 2px;
  transition: top 5s;
  opacity: 1;
  text-decoration: underline;
}

#title_cs {
  justify-self: start;
}

#title_eng {
  justify-content: start;
  border-top: #2a70e0 solid;
  margin-top: 2rem;
}

#date_port_app,
#date_tea,
#date_lab,
#date_spot,
#date_dash,
#date_portfolio,
#date_gdp,
#date_med,
#date_tile,
#date_fem,
#date_lift,
#date_sprinkler,
#date_gearbox {
  align-items: start;
  justify-items: center;
  text-align: center;
}

#port_app,
#tea,
#lab,
#spot,
#dash,
#portfolio,
#gdp,
#tile,
#fem,
#lift,
#sprinkler,
#gearbox {
  padding-bottom: 1.5rem;
}

figure {
  max-height: 21rem;
  max-width: 85%;
  justify-items: center;
  height: auto;
  width: auto;
}

figure img {
  width: 100%;
  max-height: 15rem;
  flex-shrink: 1;
}

figcaption {
  font-size: smaller;
  text-align: center;
}

#date_dash figure img,
#date_spot figure img {
  border: 0.1rem solid #130201;
}

#spot a {
  color: black;
  text-decoration: none;
  transition: 0.3s;
  font-weight: bold;
}

#spot a:hover {
  color: #ffffff;
  position: static;
  opacity: 1;
  background-color: #1ed760;
}

#spot_link a {
  color: #0855a7;
  font-weight: 600;
}

#footer {
  display: flex;
  border-top: #2a70e0 solid;
  justify-content: end;
  font-size: smaller;
  margin-top: 2rem;
  font-weight: bold;
}

.footer_blurb {
  padding-left: 1rem;
  padding-right: 1rem;
  border-right: #2a70e0 solid;
}

.footer_info {
  padding-left: 1rem;
  padding-right: 1rem;
  border-right: #2a70e0 solid;
}

.footer_links {
  gap: 0.5rem;
  display: flex;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media only screen and (max-width: 850px) {
  html {
    font-size: 12px;
  }

  body {
    padding: 3rem 1.25rem 1rem;
    justify-items: center;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
      "header header header"
      "nav nav nav"
      "title_cs title_cs title_cs"
      "port_app port_app date_port_app"
      "tea tea date_tea "
      "lab lab date_lab "
      "dash dash date_dash "
      "spot spot date_spot "
      "portfolio portfolio  date_portfolio"
      "gdp gdp date_gdp "
      "med med date_med "
      "title_eng title_eng  title_eng"
      "tile tile date_tile "
      "fem fem date_fem "
      "sprinkler sprinkler  date_sprinkler"
      "lift lift date_lift "
      "gearbox gearbox  date_gearbox"
      "footer footer footer";
  }

  figure {
    max-height: 20rem;
  }

  figure img {
    max-height: 12rem;
  }

  #footer {
    width: 100%;
  }

  header {
    height: 31px;
    justify-items: start;
    align-self: end;
    padding: 1.25rem 1.56rem 1.25rem;
    margin: 0;
  }

  header a {
    font-size: 1.25rem;
  }

  #make_button a {
    padding: 0.5rem 0.5rem;
  }

  nav {
    justify-self: center;
    padding: 1rem;
    flex-wrap: nowrap;
    margin: 0;
  }

  #title_gen {
    width: 100%;
    justify-items: start;
    border-top: #2a70e0 solid;
    margin-top: 2rem;
  }

  #title_eng {
    width: 100%;
    justify-items: start;
    border-top: #2a70e0 solid;
    margin-top: 2rem;
  }
}

@media only screen and (max-width: 500px) {
  html {
    font-size: 10px;
  }

  body {
    padding: 3rem 1.25rem 1rem;
    justify-content: center;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
      "header header header"
      "nav nav nav"
      "title_cs title_cs title_cs"
      "port_app port_app port_app"
      "tea tea tea"
      "lab lab lab"
      "dash dash dash"
      "spot spot spot "
      "portfolio portfolio portfolio"
      "gdp gdp gdp"
      "med med med  "
      "title_eng title_eng title_eng "
      "tile tile tile "
      "fem fem fem "
      "sprinkler sprinkler sprinkler"
      "lift lift lift"
      "gearbox gearbox gearbox"
      "footer footer footer";
  }

  header {
    padding: 1rem 1.56rem 1rem;
  }

  /*#date_lab{
            height: max(12.5rem);
        align-items: start;
        justify-items: center;
        text-align: end;
        }

        #date_lab figure img{
            height: 100%;
        }

        #date_lab h4{
            display: none;
        }

        #date_lab figcaption{
            font-size: 0.75rem;
        }*/

  #date_tea,
  #date_port_app,
  #date_lab,
  #date_spot,
  #date_dash,
  #date_portfolio,
  #date_gdp,
  #date_med,
  #date_tile,
  #date_fem,
  #date_lift,
  #date_sprinkler,
  #date_gearbox {
    display: none;
  }
}
