* {
  padding: 0;
  margin: 0;
}

body {
  background-color: #ececbc;
  position: static;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  overflow: hidden;
  -ms-scroll-chaining: none;
  overscroll-behavior: none;
  /* width: 100%; */
}

h1 {
  font-size: 2em;
  font-family: 'Work Sans', sans-serif;
  color: #009fe3;
  margin-bottom: 1.3rem;
}

h2 {
  color: black;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
}

footer {
  background-color: #009fe3;
  position: fixed;
  bottom: 0px;
  left: 0px;
  right: 0px;
  margin-bottom: 0px;
  z-index: 20;
  height: 3rem;
  border: 0.5px solid white;
  color: white;
}
ul li {
  margin-bottom: 0.25rem;
}

.outer {
  height: calc(100vh - 3rem);
  overflow: hidden;
  position: static;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin-bottom: 3rem;
}

#logo {
  width: 70%;
  z-index: 500;
  position: relative;
}
.logo_over {
  background-color: rgba(255, 255, 255, 0.7) !important;
  z-index: 250;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.textblock_wrapper {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin-bottom: 3rem;
  overflow: hidden;
}

.wrapperB1 {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

@-webkit-keyframes fadeInBcg1 {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeInBcg1 {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}
@-webkit-keyframes fadeInBcg2 {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}
@keyframes fadeInBcg2 {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}
@-webkit-keyframes fadeInBcg3 {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}
@keyframes fadeInBcg3 {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

#overlay1 {
  position: fixed;
  left: 0;
  top: 0;
  height: 0%;
  width: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

#overlay3 {
  position: fixed;
  top: 0;
  right: 0;
  height: 0%;
  width: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.header1 {
  opacity: 1;
  background: #ebe8e8;
  border-radius: 5px;
  box-shadow: 0 0 15px 10px #ebe8e8;
  position: relative;
  z-index: 5;
  cursor: pointer;
}

.header2 {
  opacity: 1;
  background: #ebe8e8;
  border-radius: 5px;
  box-shadow: 0 0 15px 10px #ebe8e8;
  position: relative;
  z-index: 5;
  margin-top: 5em;
  cursor: pointer;
}

.header3 {
  opacity: 1;
  background: #ebe8e8;
  border-radius: 5px;
  box-shadow: 0 0 15px 10px #ebe8e8;
  position: relative;
  z-index: 5;
  margin-top: 4rem;
  cursor: pointer;
}
.header4 {
  opacity: 1;
  background: #ebe8e8;
  border-radius: 5px;
  box-shadow: 0 0 15px 10px #ebe8e8;
  position: relative;
  z-index: 5;
  margin-top: 5em;
  cursor: pointer;
}

.text1 {
  color: black;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  position: relative;
  z-index: 10;
  -webkit-animation: fadeIn 2s linear 6s forwards;
  animation: fadeIn 2s linear 6s forwards;
}

@-webkit-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.text2 {
  color: black;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  position: relative;
  z-index: 10;
  -webkit-animation: fadeIn3 2s linear 17s forwards;
  animation: fadeIn3 2s linear 17s forwards;
}

@-webkit-keyframes fadeIn3 {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeIn3 {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.text3 {
  color: black;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  position: relative;
  z-index: 10;
  -webkit-animation: fadeIn2 2s linear 11s forwards;
  animation: fadeIn2 2s linear 11s forwards;
}

@-webkit-keyframes fadeIn2 {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeIn2 {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.text4 {
  color: black;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  position: relative;
  z-index: 10;
  -webkit-animation: fadeIn2 2s linear 17s forwards;
  animation: fadeIn2 2s linear 17s forwards;
}

@keyframes fadeIn2 {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.crossfade > figure {
  background-size: cover;
  background-position: center center;
  color: transparent;
  height: 100vh;
  left: 0px;
  opacity: 0;
  position: absolute;
  top: 0px;
  width: 100%;
  z-index: 0;
  margin: 0;
}

.crossfade > figure:nth-child(1) {
  background-image: url('../images/trees.jpg');
  width: 100%;
  -webkit-animation: fader3 46s linear;
  animation: fader3 46s linear;
}
.crossfade > figure:nth-child(2) {
  background-image: url('../images/skyscrapers.jpg');
  width: 100%;
  -webkit-animation: fader 46s linear 6s;
  animation: fader 46s linear 6s;
}

.crossfade > figure:nth-child(3) {
  background-image: url('../images/windmills.jpg');
  width: 100%;
  -webkit-animation: fader 46s linear 12s;
  animation: fader 46s linear 12s;
}

.crossfade > figure:nth-child(4) {
  background-image: url('../images/redtrees.jpg');
  width: 100%;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  -webkit-animation: fader2 46s linear 18s forwards;
  animation: fader2 46s linear 18s forwards;
}

@-webkit-keyframes fader {
  0% {
    opacity: 0;
  }
  6% {
    opacity: 1;
  }

  12% {
    opacity: 1;
  }
  18% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fader {
  0% {
    opacity: 0;
  }
  6% {
    opacity: 1;
  }

  12% {
    opacity: 1;
  }
  18% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@-webkit-keyframes fader2 {
  0% {
    opacity: 0;
  }
  6% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fader2 {
  0% {
    opacity: 0;
  }
  6% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}
@-webkit-keyframes fader3 {
  0% {
    opacity: 1;
  }
  12% {
    opacity: 1;
  }
  18% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fader3 {
  0% {
    opacity: 1;
  }
  12% {
    opacity: 1;
  }
  18% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.tel {
  font-size: 0.9em;
}
.credit {
  font-size: 0.7em;
}

/* form */

* {
  text-rendering: optimizeLegibility;
}

#form_wrapper {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 20%;
  background-color: white;
  border-radius: 5px;
  border: 0.3px solid darkslategray;
  padding: 1rem;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  line-height: 30px;
  color: #777;
  z-index: 50;
  height: 80vh;
  overflow-y: scroll !important;
  margin-bottom: 3rem;
  z-index: 1000;
  width: 90%;
}

.captcha {
  margin-bottom: 4em;
  margin-left: 1em;
  margin-right: 50em;
}

.btn_submit {
  background-color: #009fe3;
  color: white;
  border: 0.3px solid darkslategray;
  border-radius: 5px;
  padding: 0.5rem;
}

.btn_submit:hover {
  background: rgb(129, 207, 240);
  transition: background-color 0.3s ease-in-out;
}

.btn_contact {
  color: #009fe3;
  background-color: white;
  border: 0.3px solid darkslategray;
  border-radius: 5px;
  padding: 0.5rem;
}
.btn_contact:hover {
  background: lightgray;
  transition: background-color 0.3s ease-in-out;
}
.btn_contact2 {
  background-color: #009fe3;
  color: white;
  margin-top: 2rem;
  align-self: center;
  padding: 1rem;
  margin-bottom: 4rem;
}
.btn_contact2:hover {
  background: rgb(129, 207, 240);
  transition: background-color 0.3s ease-in-out;
  color: white;
}

.jumbotron {
  border: 0.5px solid slategray;
  margin-top: 10em;
}
.jumbo-wrap {
  padding-top: 15em;
}

/* media queries */

@media (min-width: 576px) {
  #smallest {
    display: none;
  }

  #logo {
    width: 60%;
  }
}

/* Extra small devices (portrait phones, anything below 576px) */
@media (max-width: 576px) {
  #logo {
    width: 70%;
  }
  #logo_overlay {
    height: 4.5rem;
  }

  .crossfade {
    display: none;
  }
  #largest {
    display: none;
    padding-bottom: 10rem;
  }
  h1 {
    font-size: 1rem !important;
  }
  .header1 {
    margin-top: 5rem;
    box-shadow: 0 0 5px 5px #ebe8e8;
    text-transform: uppercase;
  }
  .header3,
  .header4 {
    margin-top: 0.8em !important;
    box-shadow: 0 0 5px 5px #ebe8e8;
    text-transform: uppercase;
  }
  p {
    margin-bottom: 0.4rem;
  }
  #overlay1,
  .overlay2,
  #overlay3 {
    -webkit-animation: none;
    animation: none;
  }
  .textblock_wrapper {
    overflow: scroll;
  }
  .text1,
  .text3,
  .text4 {
    font-size: 0.8em !important;
  }
  #contact {
    margin-bottom: 0;
  }
  .btn_contact2 {
    margin-top: 2rem;
  }

  ul li {
    margin-bottom: 0;
  }

  .tel {
    font-size: 0.6em;
    padding-bottom: 0.5em;
  }
  .credit {
    font-size: 0.5em;
  }
  .btn_contact {
    font-size: 0.7em;
  }

  .text-block_1 {
    background: #ebe8e8;
    border-radius: 5px;
    box-shadow: 0 0 15px 10px #ebe8e8;
    opacity: 0;
    -webkit-animation: fadeIn 2s linear 0s forwards;
    animation: fadeIn 2s linear 0s forwards;
  }
  .text-block_3 {
    background: #ebe8e8;
    border-radius: 5px;
    box-shadow: 0 0 15px 10px #ebe8e8;
    opacity: 0;
    -webkit-animation: fadeIn 2s linear 5s forwards;
    animation: fadeIn 2s linear 5s forwards;
  }
  .text-block_4 {
    background: #ebe8e8;
    border-radius: 5px;
    box-shadow: 0 0 15px 10px #ebe8e8;
    opacity: 0;
    -webkit-animation: fadeIn 2s linear 11s forwards;
    animation: fadeIn 2s linear 11s forwards;
  }
  .text1 {
    -webkit-animation: fadeIn 2s linear 0s forwards;
    animation: fadeIn 2s linear 0s forwards;
  }
  .text3 {
    -webkit-animation: fadeIn2 2s linear 5s forwards;
    animation: fadeIn2 2s linear 5s forwards;
  }

  .text4 {
    -webkit-animation: fadeIn2 2s linear 11s forwards;
    animation: fadeIn2 2s linear 11s forwards;
  }

  #smallest {
    background-image: url('../images/trees.jpg');
    background-size: cover;
    background-position: center center;
    height: 100%;
    left: 0px;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0;
    margin: 0;
  }
}
/* Medium devices (tablets, up to 768px) The navbar toggle appears at this breakpoint */
@media (max-width: 767px) {
  h1 {
    font-size: 1.5em;
  }
  .text1,
  .text2,
  .text3 {
    font-size: 0.76em;
    margin-top: 0.5em;
  }
}

@media (min-width: 767px) {
  footer {
    height: 4rem;
  }
  #overlay1,
  #overlay3 {
    width: 34%;
  }
}
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  #logo {
    width: 45%;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .tel {
    font-size: 1.3em;
  }
  .credit {
    font-size: 1em;
  }
  .btn_contact {
    font-size: 1.3em;
  }
  #logo {
    width: 40%;
  }
}
