/* general color schedule that can be reused */

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  --lightBlue: #02728a;
  --gray: #31343d;
}
nav {
  background-color: var(--gray);
  width: 100%;
  margin-top: -10px;
  height: 80px;
}

nav a {
  border-bottom: 3px solid var(--lightBlue);
  text-decoration: none;
  color: var(--lightBlue);
  margin: 15px;
}

/* nav bar columns left and right */
.left {
  float: left;
  margin-left: 40px;
  margin-top: 10px;
}

.left h2 {
  background-color: var(--lightBlue);
  padding-left: 40px;
  margin-left: -40px;
  padding-right: 10px;
  color: white;
}
.right {
  float: right;
  margin-right: 50px;
  margin-top: 25px;
}

/* source code for transition  effects https://ianlunn.github.io/Hover/ */
.hoverEffect {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  position: relative;
  -webkit-transition-property: color;
  transition-property: color;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
}
.hoverEffect:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--lightBlue);
  -webkit-transform: scaleY(0);
  transform: scaleY(-0);
  -webkit-transform-origin: 50% 100%;
  transform-origin: 50% 100%;
  -webkit-transition-property: transform;
  transition-property: transform;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}
.hoverEffect:hover,
.hoverEffect:focus,
.hoverEffect:active {
  border-bottom: 1px;
}
.hoverEffect:hover:before,
.hoverEffect:focus:before,
.hoverEffect:active::before {
  -webkit-transform: scaleY(1);
  transform: scaleY(1);
}

main {
  background-color: #eeeef7;
  width: 100%;
}

/* background section */

.background {
  min-height: 100%;
  max-width: 100%;
  background-image: url(assets/pexels-tóth-viktor-5684798.jpg);
  height: 200px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
}
.background h4 {
  margin: 20px;
  background-color: var(--gray);
  font-size: 20px;
  color: white;
  padding: 5px;
}

/* creating a column and row section for the main body sections */
.row {
  display: flex;
  width: 100%;
}

.column1 {
  flex: 25%;
  border-right: 4px solid var(--gray);
  margin: 15px;
  color: var(--lightBlue);
}

.column1 h2 {
  float: right;
  margin: 40px;
  font-weight: bold;
  font-size: 60px;
  text-align: right;
}
.column2 {
  flex: 75%;
  margin: 15px;
  width: 100%;
}

/* adding image with text  */
/* link for adding images with text overlay https://www.tutorialspoint.com/How-to-position-text-to-bottom-left-on-an-image-with-CSS */

.box {
  position: relative;
  margin: 30px;
}

img {
  width: 100%;
  height: auto;
  border: 5px solid var(--lightBlue);
}
.direction {
  position: absolute;
  bottom: 30px;
  left: 19px;
  font-size: 13px;
  background-color: var(--lightBlue);
  padding-left: 30px;
  margin-left: -19px;
  padding-right: 10px;
  color: white;
}
.direction h3 {
  margin-bottom: -5px;
  margin-top: 0px;
}
.direction p {
  margin-top: px;
}

.imgrow {
  display: flex;
  flex-wrap: wrap;
}

.imgcolumn {
  float: left;
  width: 50%;
}

/* contact form */

.contact {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}
.contact h3 {
  margin: 20px;
  font-size: 26px;
  padding-top: 60px;
  border-bottom: 3px solid var(--lightBlue);
}

/* mobile responsive */

/* mobile responsive */

/* mobile responsive */

@media screen and (max-width: 576px) {
  nav {
    background-color: var(--gray);
    width: 100%;
    margin-top: -10px;
    height: 80px;
  }

  nav a {
    border-bottom: 3px solid var(--lightBlue);
    text-decoration: none;
    color: var(--lightBlue);
    margin: 0px;
    font-size: 10px;
  }

  /* nav bar columns left and right */
  .left {
    float: left;
    /* margin-left: 40px; */
    margin-top: 10px;
  }

  .left h2 {
    padding-left: 40px;
    margin-left: -40px;
    font-size: 10px;
  }
  .right {
    float: right;
    /* margin-right: 50px; */
    margin-top: 25px;
  }

  .background {
    min-height: 100%;
    background-image: url(assets/pexels-karen-laårk-boshoff-7434293.jpg);
    height: 200px;
    width: 576px;

    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
  }
  .background h4 {
    margin: 20px;
    background-color: var(--lightBlue);
    font-size: 20px;
  }

  .contact {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
  }
  .contact h3 {
    margin: 0px;
    font-size: 15px;
    padding-top: 60px;
    border-bottom: 3px solid #445876;
  }
  .column1 h2 {
    float: right;
    margin: 40px;
    font-weight: bold;
    font-size: 30px;
    text-align: right;
  }

  .box {
    position: relative;
    margin: 10px;
  }
  img {
    width: 100%;
    height: auto;
    border: 2px solid #92cbce;
  }
  .direction {
    position: absolute;
    bottom: 10px;
    left: 19px;
    font-size: 3px;
    background-color: #92cbce;
    padding-left: 30px;
    margin-left: -19px;
  }
}

@media screen and (max-width: 888px) {
  nav {
    background-color: var(--gray);
    width: 100%;
    margin-top: -10px;
    height: 80px;
  }

  nav a {
    border-bottom: 3px solid var(--lightBlue);
    text-decoration: none;
    color: var(--lightBlue);
    margin: 0px;
    font-size: 10px;
  }

  /* nav bar columns left and right */
  .left {
    float: left;
    /* margin-left: 40px; */
    margin-top: 10px;
  }

  .left h2 {
    padding-left: 40px;
    margin-left: -40px;
    font-size: 10px;
  }
  .right {
    float: right;
    /* margin-right: 50px; */
    margin-top: 25px;
  }

  .background {
    min-height: 100%;
    background-image: url(assets/pexels-karen-laårk-boshoff-7434293.jpg);
    height: 200px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
  }
  .background h4 {
    margin: 20px;
    background-color: var(--lightBlue);
    font-size: 20px;
  }

  .contact {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
  }
  .contact h3 {
    margin: 5px;
    font-size: 15px;
    padding-top: 60px;
    border-bottom: 3px solid #445876;
  }
  .column1 h2 {
    float: right;
    margin: 40px;
    font-weight: bold;
    font-size: 30px;
    text-align: right;
  }

  .box {
    position: relative;
    margin: 10px;
  }
  img {
    width: 100%;
    height: 100%;
    border: 2px solid black;
  }
  .direction {
    position: absolute;
    bottom: 10px;
    left: 19px;
    font-size: 7px;
    background-color: var(--lightBlue);
    padding-left: 30px;
    margin-left: -19px;
    padding-bottom: -10px;
  }
}
