/* universal selector for all html elements to apply the border-box style */
* { 
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Helvetica, serif;
} 


#wrapper {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    max-width: 1920px;
}

html { 
    background: url(images/index_bg_dark_1672x1274.jpeg) no-repeat center center fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-color: rgba(0, 0, 0, .3);
    background-blend-mode: overlay;
  }


a {
    text-decoration: none;
    color: black;
}

ul {
  list-style: none;
}

.side-menu {
  display: none;
} /* Hide checkbox */

/* Header */
.header{
  background-color: black;
  /*position: sticky;*/
  top: 0;
  width: 100%;
}

/* Logo */
.logo{
  display: inline-block;
  color: black;
  background-color: #FFF76A;
  /*font-size: 60px;
  margin-left: 10px;*/
  font-size: 1em;
  
  padding: 1em 2em 1em 2em;
}
.nav-logo{
  font-weight: bold;
  font-size: 3em;
}

/* Nav menu */
.nav{
  max-height: none;
  top: 0;
  position: relative;
  float: right;
  width: fit-content;
}
.menu a{
  display: block;
  padding: 2.5em 2em 2.5em 2em;
  color: white;
}
.menu a:hover{
  background-color: transparent;
  color: #FFF76A;

}
.menu li{
  float: left;
}

/* Menu Icon */
.hamb{
  display: none;
}

a.active {
  color:#FFF76A;
}

/*a:hover{
    color: #FFF76A;
}

nav {
    font-family: helvetica, serif;
}

/*nav ul {
    text-align: center;
    list-style-type: none;
    padding: 1em 0em 1em .5em;
}

/*nav ul li {
    float: left;
}*/

/* Style the links inside the navigation bar */
/*nav ul li a {
    padding: 1em 1.5em .95em 1.5em;
    background-color: black;
    text-decoration: none;
    color: white;
}

/* Add a black background color to the top navigation */
/*.topnav {
    background-color: black;
    overflow: hidden;
    width: 100%;
    padding: 0em 0em 1em 0em;
    margin: 0em 0em -1em 0em;
    display: inline-block;
}

/* Style the links inside the navigation bar
.topnav a {
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}*/

/* Change the color of links on hover */
/*.topnav a:hover {
  color: #FFF76A;
}

/* Add a color to the active/current link */
/*.topnav a.active {
  color: #FFF76A;
}

/* Right-aligned section inside the top navigation */
/*.topnav-right {
    color: white;
    float: right;
    padding: .75em 0em 0em 0em;
}

/* Left-aligned text inside the top navigation*/
/*.topnav-left{
    float: left;
    background-color: #FFF76A;
    color: black;
    padding: 1em 2em 1em 2em;
    margin: -2em -1em -1em -1em;
}

.nav-logo{
    font-weight: bold;
    font-size: 3em;
}

/*body {
    /*background-image: url("images/index_bg_dark.jpeg");
    background-repeat: no-repeat;
    background-size: cover;
    background-color: black;
}*/

main {
    color: white;
    text-align: center;
    padding: 0em 1em 15em 1em;
    font-family: helvetica, serif;
}

.main-h1{
    font-size: 2em;
    letter-spacing: .1em;
    padding-top: 3em;
}

.main-h1-large{
    font-size: 4em;
    letter-spacing: .1em;
    font-weight: bolder;
    padding-top: 1em;
    padding-bottom: 1em;
}

#index-text-filter{
    background-color: rgba(0, 0, 0, .2);
}

.index-button-wrapper{
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

.index-button {
    width: 10%;
    align-items: center;
    justify-content: center;
    display: flex;
    min-height: 3em;
}

.index-button > a {
    text-decoration: none;
    color: black;
    background-color: #FFF76A;
    padding: 1em 2em 1em 2em;
    max-height: 3em;
    flex-shrink: 0; /* Keeps text static on one line*/
    margin-top: 7em;
}

.index-button:hover > a {
    color: #FFF76A;
    background-color: transparent;
    border-style: solid;
    border-width: .1em;
}

.clear {
    clear:both;
}

.services-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    background-color: rgba(0, 0, 0, .6);
}

.services-wrapper > div {
    background-color: grey;
    width: 100%;
    margin: 2em 1em 4em 1em;
    text-align: center;
    line-height: 2em;
    font-size: 1em;
    min-height: 5em;
    align-items: flex-start;
    justify-content: center;
    display: flex;
    flex-direction: column; /* forces text below image */
    flex-shrink: 0;

    background-color: rgba(0, 0, 0, .2);
    width: 30%;
}

.services-img {
    display: flex;
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.services-text-header {
    color: #FFF76A;
    font-size: 1.5em;
    /*font-weight: bold;*/
    font-family: helvetica, serif;
}

.services-wrapper p {
    color: white;
    font-size: 1em;
    font-family: helvetica, serif;
}

.services-wrapper a {
    color: #FFF76A;
    text-decoration: none;
    font-size: 1em;
}

.services-wrapper a:hover {
    color: black;
    background-color: #FFF76A;
}

.services-footer-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    background-color: #FFF76A;
    flex-direction: column;
}

.services-footer-wrapper > div {
    /*background-color: grey;*/
    width: 100%;
    margin: 1em;
    text-align: center;
    line-height: 2em;
    font-size: 1em;
    min-height: 5em;
    align-items: center;
    justify-content: center;
    display: flex;
    /*flex-direction: column; /* forces text below image */
}

#footer-text {
    color: black;
    width: 100%;
    font-family: helvetica, serif;
    font-size: 2.5em;

    margin: 1em;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
}

#footer-text h3 {
    color: black;
    width: 100%;
    font-family: helvetica, serif;
    font-size: 1.75em;

    margin: 1em;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    line-height: 1em;
}

.footer-button-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

.footer-button {
    align-items: center;
    justify-content: center;
    display: flex;
    min-height: 3em;
    background-color: black;
    color: #FFF76A;
    font-size: 1.2em;
    padding: 1em 2em 1em 2em;
    margin-bottom: 2.5em;
    border-style: solid;
    border-width: .1em;
}

.footer-button a {
    width: 10%;
    text-decoration: none;
    color: #FFF76A;
    background-color: black;
    max-height: 3em;
    flex-shrink: 0; /* Keeps text static on one line*/
    /*margin-top: 7em;*/
}

.footer-button:hover {
    color: black;
    background-color: transparent;
    border-style: solid;
    border-width: .1em;
}

.about-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    background-color: rgba(0, 0, 0, .6);
}

.about-wrapper > div {
    width: 100%;
    margin: 2em 1em 4em 1em;
    text-align: center;
    line-height: 2em;
    font-size: 1em;
    min-height: 5em;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column; /* forces text below image */
}

#about-text-above-img h2 {
    display: flex;
    color: #FFF76A;
    font-size: 2em;
}

#david {
    background-color: rgba(0, 0, 0, .2);
    width: 30%;
    display: flex;
    margin-right: 6%;
    margin-left: 10%
}

#ken {
    background-color: rgba(0, 0, 0, .2);
    width: 30%;
    display: flex;
    margin-left: 6%;
    margin-right: 10%;
}


.about-header-wrapper {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 70%;
  margin-left: 15%;
  margin-right: 15%;
}

.about-header-text-large {
    font-size: 4em;
    letter-spacing: .1em;
    font-weight: bolder;
}

.about-header-text-small {
  font-size: 1em;
  letter-spacing: .05em;
  font-family: helvetica, serif;
  background-color: rgba(0, 0, 0, .3);
  padding: 1em 1em 1em 1em;
}

.about-wrapper p {
    color: white;
    font-size: 1em;
    font-family: helvetica, serif;
}

.about-img {
    object-fit: contain;
    display: flex;
    width: 100%;
    height: 100%;
}

.about-button {
    align-items: center;
    justify-content: center;
    display: flex;
    min-height: 3em;
    background-color: #FFF76A;
    color: black;
    font-size: 1.2em;
    padding: .5em 1em .5em 1em;
    margin-bottom: 2.5em;
    margin-top: 2.5em;
    border-style: solid;
    border-width: .1em;
}

.about-button a {
    width: 10%;
    text-decoration: none;
    color: black;
    background-color: #FFF76A;
    max-height: 3em;
    flex-shrink: 0; /* Keeps text static on one line*/
}

.about-button:hover {
    color: #FFF76A;
    background-color: transparent;
    border-style: solid;
    border-width: .1em;
}

.about-footer-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    background-color: #FFF76A;
    flex-direction: column;
}


/*********** TESTIMONIAL SLIDES ***********/

/* Styling the area of the slides */
#slideshow {
    overflow: hidden;
    /*height: 510px;*/
    height: auto;
    width: 728px;
    margin: 0 auto;
    padding-bottom: 3em;
  }
   
  /* Style each of the sides
  with a fixed width and height */
  .slide {
    float: left;
    /*height: 510px;*/
    height: auto;
    width: 728px;
  }

.slide p {
    font-size: 1em;
    font-style: italic;
    color: black;
    padding: 0em 0em 2em 0em;
}

.slide a {
    text-decoration: none;
    color: #FFF76A;
    background-color: black;
    font-size: 1em;
    padding: 1em .5em 1em .5em;
    border-style: solid;
    border-width: .1em;
}

.slide a:hover {
    color: black;
    background-color: #FFF76A;
}
   
  /* Add animation to the slides */
  .slide-wrapper {
     
  /* Calculate the total width on the
    basis of number of slides */
    width: calc(728px * 4);
   
  /* Specify the animation with the
    duration and speed */
    animation: slide 30s ease infinite;
    animation-timing-function: steps(1, jump-start);
  }
   
  /* Set the background color
  of each of the slides */
  /*.slide:nth-child(1) {
    /*background: green;
  }
   
  .slide:nth-child(2) {
    /*background: pink;
  }
   
  .slide:nth-child(3) {
    /*background: red;
  }
   
  .slide:nth-child(4) {
    /*background: yellow;
  }*/
   
  /* Define the animation
  for the slideshow */
  @keyframes slide {
     
  /* Calculate the margin-left for
    each of the slides */
    20% {
      margin-left: 0px;
    }
   
    40% {
      margin-left: calc(-728px * 1);
    }
   
    60% {
      margin-left: calc(-728px * 2);
    }
   
    80% {
      margin-left: calc(-728px * 3);
    }
  }


  /********* END TESTIMONIAL SLIDES ********/


.contact-button-wrapper{
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

.contact-button {
    width: 10%;
    align-items: center;
    justify-content: center;
    display: flex;
    min-height: 3em;
}

.contact-button > a {
    text-decoration: none;
    color: black;
    background-color: #FFF76A;
    padding: 1em 2em 1em 2em;
    max-height: 3em;
    flex-shrink: 0; /* Keeps text static on one line*/
    margin-top: 7em;
}

.contact-button:hover > a {
    color: #FFF76A;
    background-color: transparent;
    border-style: solid;
    border-width: .1em;
}





/********** TABLET  VERSION *************/
@media only screen and (max-width: 1024px) {
    #wrapper {
        width: auto;
        min-width: 0;
    }

    /***********  SERVICES         *************/


    /*********** TESTIMONIAL SLIDES ***********/

/* Styling the area of the slides */
#slideshow {
    overflow: hidden;
    /*height: 510px;*/
    height: auto;
    width: 628px;
    margin: 0 auto;
    padding-bottom: 3em;
  }
   
  /* Style each of the sides
  with a fixed width and height */
  .slide {
    float: left;
    /*height: 510px;*/
    height: auto;
    width: 628px;
  }

.slide p {
    font-size: 1em;
    font-style: italic;
    color: black;
    padding: 0em 0em 2em 0em;
}

.slide a {
    text-decoration: none;
    color: #FFF76A;
    background-color: black;
    font-size: 1em;
    padding: 1em .5em 1em .5em;
    border-style: solid;
    border-width: .1em;
}

.slide a:hover {
    color: black;
    background-color: #FFF76A;
}
   
  /* Add animation to the slides */
  .slide-wrapper {
     
  /* Calculate the total width on the
    basis of number of slides */
    width: calc(628px * 4);
   
  /* Specify the animation with the
    duration and speed */
    animation: slide 30s ease infinite;
    animation-timing-function: steps(1, jump-start);
  }
   
   
  /* Define the animation
  for the slideshow */
  @keyframes slide {
     
  /* Calculate the margin-left for
    each of the slides */
    20% {
      margin-left: 0px;
    }
   
    40% {
      margin-left: calc(-628px * 1);
    }
   
    60% {
      margin-left: calc(-628px * 2);
    }
   
    80% {
      margin-left: calc(-628px * 3);
    }
  }


  /********* END TESTIMONIAL SLIDES ********/
}





/********** PHONE VERSION ***************/
@media only screen and (max-width: 768px) {
    #wrapper {
        width: auto;
        min-width: 0;
    }

    .nav{
      width: 100%;
      height: 100%;
      position: fixed;
      background-color: black;
      overflow: hidden;
      max-height: 0;
      transition: max-height .5s ease-out;
      top: auto;
    }



    .menu li{
      float: none;
    }

    .menu a:hover{
      background-color: #FFF76A;
      color: black;
    }

    .hamb{
      display: block;
      cursor: pointer;
      float: right;
      padding: 40px 20px;
    }

    /* Style label tag */
    .hamb-line {
      background: #FFF76A;
      display: block;
      height: 2px;
      position: relative;
      width: 24px;
      top: 5px;

    } /* Style span tag */

    .hamb-line::before,
    .hamb-line::after{
      background: #FFF76A;
      content: '';
      display: block;
      height: 100%;
      position: absolute;
      transition: all .2s ease-out;
      width: 100%;
    }
    .hamb-line::before{
      top: 10px;
    }
    .hamb-line::after{
      top: -10px;
    }
    
    /* Toggle menu icon */
    .side-menu:checked ~ nav{
      max-height: 100%;
      /*top: 50px;*/
    }
    .side-menu:checked ~ .hamb .hamb-line {
      background: transparent;
    }
    .side-menu:checked ~ .hamb .hamb-line::before {
      transform: rotate(-45deg);
      /*top:0;*/
      top: -8px;
    }
    .side-menu:checked ~ .hamb .hamb-line::after {
      transform: rotate(45deg);
      /*top:0;*/
      top: -8px;
    }


    .main-h1-large{
      font-size: 2em;
    }

    .main-h1{
      font-size: 1.25em;
    }

    .about-header-text-large {
      font-size: 2em;
    }



    /***********      SERVICES         *************/

    .services-wrapper {
      flex-wrap: wrap;
    }
  
    .services-wrapper > div {
      width: 80%;
    }



    /*************       ABOUT      ****************/

    .about-wrapper {
      flex-wrap: wrap;
    }
  
    #david {
      width: 70%;
      margin-right: 0;
      margin-left: 0;
    }

    #ken {
      width: 70%;
      margin-left: 0;
      margin-right: 0;
    }


    /*********** TESTIMONIAL SLIDES ***********/

/* Styling the area of the slides */
#slideshow {
    overflow: hidden;
    /*height: 510px;*/
    height: auto;
    width: 300px;
    margin: 0 auto;
    padding-bottom: 3em;
  }
   
  /* Style each of the sides
  with a fixed width and height */
  .slide {
    float: left;
    /*height: 510px;*/
    height: auto;
    width: 300px;
  }

.slide p {
    font-size: 1em;
    font-style: italic;
    color: black;
    padding: 0em 0em 2em 0em;
}

.slide a {
    text-decoration: none;
    color: #FFF76A;
    background-color: black;
    font-size: 1em;
    padding: 1em .5em 1em .5em;
    border-style: solid;
    border-width: .1em;
}

.slide a:hover {
    color: black;
    background-color: #FFF76A;
}
   
  /* Add animation to the slides */
  .slide-wrapper {
     
  /* Calculate the total width on the
    basis of number of slides */
    width: calc(300px * 4);
   
  /* Specify the animation with the
    duration and speed */
    animation: slide 30s ease infinite;
    animation-timing-function: steps(1, jump-start);
  }
   

  @keyframes slide {
     
  /* Calculate the margin-left for
    each of the slides */
    20% {
      margin-left: 0px;
    }
   
    40% {
      margin-left: calc(-300px * 1);
    }
   
    60% {
      margin-left: calc(-300px * 2);
    }
   
    80% {
      margin-left: calc(-300px * 3);
    }
  }


  /********* END TESTIMONIAL SLIDES ********/
}