/* Fonts: 
font-family: 'Nunito', sans-serif;
font-family: 'Roboto', sans-serif;
 */

 * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
  }
  
  header {
    background-color: #8cc1da;
    display: flex; 
    flex-direction: row;
    min-height: 10vh;
    width: 100%;
    color: whitesmoke;
    margin: 0 auto;
    position: sticky;
    top: 0;
  }
  
  .logo-header {
    min-width: 25%;
    max-width: 50%;
  }

  header h1 {
    margin: 0em 1em 0em 0.5em;
    padding: 0.7em 0em 0em 1em;
    font-size: 1.5em;
  }
  
  
  .mynav {
    width: 90%;
    margin-right: 1em;
    margin: auto 1em; 
  }

  
  /* Style the list inside the menu */
  nav ul {
    float: right;
    list-style-type: none;
  }
  
  .navigation li {
    display: inline-block;
  }
  
  
  .navigation a {
    text-decoration: none;
    padding: 0.5em 1em;
    border-radius: 0.5em;
    color: #004465;
    font-weight: bold;
  }
  
  .navigation a:hover, .navigation a:focus  {
    text-decoration: none;
    color: ivory;
    background-color: #505464; 
    font-weight: bold;
  }

  
  li.active {
    background-color: #c6e0ec;
    border-radius: 0.5em;
    padding: 0.3rem;
    transition: 0.3 ease background-color;
  }

 
  main {
    margin: 0 auto;
    width: 100%;
    background-color: whitesmoke;
  }
  
 /* Style to all images at the beginning of the chapter */
  .image {
    width: 100%;
    height: 30em;
  }

  .section-image {
    width: 100%;
    height: 60vh;
    display: flex;
  }

  .section-image h2 {
    background-color: transparent;
    display: inline-block;
    align-self: flex-end;
    margin-bottom: 1.5em;
  }

   h2 span {
     background-color: rgba(211, 211, 211, 0.85);
     padding: 1em 2em;
     border-radius: 1em;
    }


  #home-section {
    background-image: url("images/home-image.png");
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0em 0em 2em;
  }

  p a {
    color: #00567F;
  }

 #services-section {
  background-image: url("images/mechanics.png");
  background-repeat: no-repeat;
  background-size: cover;
  margin: 2em 0em;
 }

 #fire-fighting-section {
  background-image: url("images/fire-fighting-img.png");
  background-repeat: no-repeat;
  background-size: cover;
  margin: 2em 0em;
}

#scuba-diving-section {
  background-image: url("images/scuba-diving-unsplash.png");
  background-repeat: no-repeat;
  background-size: cover;
  margin: 2em 0em;
}

  #home p {
    line-height: 2.3;
    margin: 1em auto;
    padding: 1em 2em;
    color: #505464;
    max-width: 80ch;
    font-size: 1em;
  }
  
  p strong {
    color: #455056;
  }


  /* logo on the welcome page - 1 block of text */
  #bauer-logo {
    margin: 2em auto;
    background-color: lightgray;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-radius: 1em;
    min-height: 30vh;
    max-height: 100%; 
    flex-wrap: wrap;
    width: 80vw;
  }
  

  #bauer-logo img {
    max-width: 22vw;
    margin: 1em 2em;
  }

  #bauer-logo p {
    font-family: 'Roboto', sans-serif;
  }


  /* Serivces section  */
  .services-options {
    margin: 1em auto;
    max-width: 70ch;
  }

  .services-options:last-child {
    margin-top: 0;
    margin-bottom: 3em;
  }
  
  .services-options h4 {
    font-family: 'Roboto', sans-serif;
    padding: 1em 1em 0;
    font-size: 1.2em;
    color: #00567F;
  }

  .services-options p {
    padding-left: 3em;
    padding-right: 1em;
  }


/* authorized dealers grid section */
#authorized-dealers {
  width: 70%;
  display: grid;
  grid-template-areas:
  "grid-text1 grid-text1 grid-text1 grid-text1"
  "bauer-text bauer-text bauer-text bauer-text" 
  "chem chem lawrence lawrence"
  "noshok  yanmar yanmar aqua-env" ;
  gap: 1.5em 3em;
  margin: 2em auto;
  justify-content: center;
  background-color: #c5e0ec;
  padding: 2em;
  border-radius: 1em;
}

#dealer-text1 {
  grid-area: grid-text1;
  text-align: left;
}

#bauer-logo-img-text {
  grid-area: bauer-text;
}

#text-long {
  padding: 1em;
}

#bauer-image-dealer {
border-radius: none;
}

#ul-chem {
  grid-area: chem;
}

#noshok {
  grid-area: noshok;
}

#aqua_env {
  grid-area: aqua-env;
}

#law_fact {
  grid-area: lawrence;
}

#yanmar {
  grid-area: yanmar;
}

/* EXPANDING */
#yanmar img, h5 {
  display: inline-block;
}

#authorized-dealers img {
  float: left;
  max-width: 90%;
  min-height: 10vh;
  max-height: 14vh;
  margin: 1em 0.6em;
  border-radius: 1em;
}

.dealer-item {
  max-width: 100%;
  border-radius: 0.5em;
  box-sizing: border-box;
  background-color: whitesmoke;
  padding: 0.5em;
  text-align: center;
}

.dealer-item a {
  font-family: 'Roboto', sans-serif;
  font-size: 1.2em;
  color: #00567F;
  text-decoration: none;
}

  
  .diving-equipment {
    width: 80%;
    display: grid;
    align-content: space-between;
    grid-template-columns: auto auto auto;
    grid-template-rows: 0.7fr 0.7fr 0.7fr;
    gap: 1.5em 1em;
    margin: 2em auto;
    justify-content: center;
  }

  .firefighting-equipment {
    width: 80%;
    display: grid;
    align-content: space-between;
    grid-template-columns: auto auto auto;
    grid-template-rows: 0.7fr 0.7fr;
    gap: 2em 2em;
    margin: 2em auto;
    min-height: 100%;
    justify-content: center;
  }
  
  .equipment-item {
    box-sizing: border-box;
    background-color: #c5e0ec;
    border-radius: 1em;
    padding: 0.5em;
    text-align: center;
  }

  
  .equipment-item img {
    margin-top: 0.5em;
    border-radius: 0.5em;
    height: 120px;
    width: 160px;
  }

  
  .equipment-item h3 {
    font-family: 'Roboto', sans-serif;
    padding: 1em;
  }

  .equipment-item a {
    color: #00567F;
    text-decoration: underline solid #505464 1px;
  }

  .equipment-item a {
    margin-top: 0;
    padding-top: 0;
  }


/* placeholder to show full h2 on navigation click */
.placeholder {
  height: 10vh;
}

  /* about us + contact us text areas */
  h2 {
    margin: 1em 4em;
    color: #505464;
    background-color: lightgray;
    border-radius: 1em;
    padding: 1em 2em; 
  }

  .text {
  
    min-height: 60vh; 
    font-size: 1.1em;
    margin: 2em auto 0;
    max-width: 70ch; 
  }

  .spacing {
    margin: 3em;
  }

  
  .text h4 {
    font-family: 'Roboto', sans-serif;
    padding: 1em 1em 0 0;
    font-size: 1.1em;
    color: #00567F;
  }

  .text p, address {
    line-height: 1.8;
    padding: 0.5em 0em;
  }

  .text a {
    color: #505464;
  }


  .text span {
    vertical-align: middle;
  }

  /* Style the footer */
  footer {
    width: 100%;
    font-size: 1em;
    margin: 0 auto;
    background-color: #777;
    padding: 1em;
    text-align: center;
    color: ivory;
  }

  /* Tablet/Landscape view  */
@media only screen and (max-width: 1025px) {

  html {
    width: 100%;

  }

  header h1 {
      margin: 0.1em 0.5em;
      padding: 0.2em 0.4em;
      font-size: 1.3em;
    }
  


  .section-image {
    max-height: 50vh;
    background-position-x: 30%;
  }

  #bauer-logo img {
    max-width: 50vw;
  }
  
   #bauer-logo p {
    padding-top: 0;
  } 

  #authorized-dealers {
    width: 85%;
    display: grid;
    grid-template-areas:
    "grid-text1 grid-text1"
    "bauer-text bauer-text " 
    "chem chem"
    "lawrence lawrence"
    "yanmar yanmar"
    "noshok aqua-env" ;
    gap: 1em 2em;
    margin: 2em auto;
    justify-content: center;
    background-color: #c5e0ec;
    padding: 1em;
    border-radius: 1em;
    font-size: 1.1em;
  }

  .firefighting-equipment {
    width: 90%;
    gap: 1.5em 1em;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    }

  .diving-equipment {
    width: 90%;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
  }

  h2 {
    margin: 1em;
  }

  #home p {
    font-size: 1.15em;
    margin: 1em;
  }

  .text {
    font-size: 1.2em;
    margin: 2em 2em 0 2em;
  }

  .placeholder {
    height: 13vh;
  }

  footer {
    font-size: 1.2em;
  }

}


@media only screen and (max-width: 441px) {
   header {
    font-size: 0.8em;
    height: 11vh;
  }

  .logo-header {
    max-width: 30%;
    min-width: 20%;
  }

  header h1 {
    font-size: 1.2em;
    padding: 0.2em;
    margin-top: 1em;
  }  
  
  .navigation li {
    padding: 0.15rem 0.3rem;
  }

  .navigation a:hover, .navigation a:focus  {
    padding: 0.3rem 0.5rem;
  }

  li.active {
    padding: 0.15rem 0.3rem;
  } 

  .section-image {
    height: 45vh;
  }

  .section-image h2 {
    margin-left: 0;
    padding-left: 1em;
  }

  h2 {
    font-size: 1.2em;
    margin: 1em;
  }
  
  #home p {
    font-size: 1em;
    padding: 0.5em;
  }

  #bauer-logo img {
    width: 65vw;
  }


  #authorized-dealers {
    width: 85%;
    display: grid;
    grid-template-areas:
    "grid-text1 grid-text1"
    "bauer-text bauer-text " 
    "chem chem"
    "lawrence lawrence"
    "yanmar yanmar"
    "noshok noshok" 
    "aqua-env aqua-env";
    gap: 1em 2em;
    margin: 2em auto;
    justify-content: center;
    background-color: #c5e0ec;
    padding: 1em;
    border-radius: 1em;
    font-size: 1.1em;
  }


  .firefighting-equipment {
    grid-template-rows: auto auto;
      }
    

  
  .text {
      font-size: 1.1em;
      margin: 1em 1em 0 1em;
    }
  
  .placeholder {
      height: 11vh;
    }

}

@media only screen and (max-width: 395px) {
.firefighting-equipment {
  grid-template-rows: auto auto;
  }

  header {
    height: 11.5vh;
  }

  header h1 {
    margin-top: 0.2em;

  }


}
