@import url('https://fonts.googleapis.com/css2?family=Electrolize&display=swap');

:root{
    --white: rgb(240,240,240);
    --blue: rgb(50,50,125);
    --ltBlue: rgb(160, 187, 205);
    --yellow: rgb(255, 197, 36);

}

* { 
margin: 0 auto;
box-sizing: border-box;
  font-family: "Electrolize", sans-serif;
  font-weight: 400;
  font-style: normal;
  z-index: 1;
}

html, body, header, main{
    width: 100%;   
}

header{
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    margin-bottom: 10px;
}

header img{
    max-width: 200px;
}

#hamburger.open #barOne {
    margin: 0;
  top: 18px;
  width: 0%;
  left: 50%;
}

#hamburger.open #barTwo {
    margin: 0;
  -webkit-transform: rotate(45deg) translateX(2.5px);
  -moz-transform: rotate(45deg) translateX(2.5px);
  -o-transform: rotate(45deg) translateX(2.5px);
  transform: rotate(45deg) translateX(2.5px);
}

#hamburger.open #barThree {
    margin: 0;
  -webkit-transform: rotate(-45deg) translateX(2.5px);
  -moz-transform: rotate(-45deg) translateX(2.5px);
  -o-transform: rotate(-45deg) translateX(2.5px);
  transform: rotate(-45deg) translateX(2.5px);
}

#hamburger.open #barFour {
    margin: 0;
  top: 18px;
  width: 0%;
  left: 50%;
}

nav #topNav{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding-top: 85px;
    background: var(--blue);
    z-index: 2;
}

nav ul{
    padding: 0;
}

nav ul li{
    background: var(--blue);
    list-style-type: none;
    text-align: center;
}

nav ul li a{
    text-align: center;
    font-size: 2rem;
    text-decoration: none;
    color: var(--yellow);
}

nav ul li.active a{
    color: black;
}

nav ul li.active{
    background: var(--ltBlue);
}

header #hamburger #barOne, header #hamburger #barTwo, header #hamburger #barThree{
    width: 25px;
    background: var(--yellow);
    height: 4px;
    margin: 3px;
    border-radius: 1px;
    transition: .2s ease-in-out;
}

header #hamburger{
    position: absolute;
    top: 60px;
    right: 10px;
    cursor: pointer;
    z-index: 3;
}

#topSection{
    background-image:  linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url(../images/slideLake-s.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 300px;
    display: flex;
    justify-items: center;
    align-items: center;
    align-content: center;
    flex-direction: column;
}

#topSection h1{
    text-align: center;
    font-size: 2.0rem;
    margin: auto auto 10px auto;
    font-weight: bolder;
    color: rgb(59,59,59);
}

#topSection h2{
    text-align: center;
    font-size: 1.25rem;
    margin: 10px auto 10px auto;
    font-weight: bold;
    color: rgb(59,59,59);
}

#topSection h3{
    text-align: center;
    font-size: 1.0rem;
    margin: 10px auto auto auto;
    font-weight: bold;
    color: rgb(59,59,59);
}

footer{
    display: flex;
    flex-direction: column;
    background: var(--blue);
    padding: 10px;
}

hr{
    width: 80%;
    height: 2px;
    background-color: var(--yellow);
    border: none;
    margin: 5px auto;
}

footer div#footerSocial{
    width: 100px;
    justify-content: space-between;
    display: flex;
    flex-direction: row;
}

footer div#footerContact{
    display: flex;
    flex-direction: column;
}

footer div#footerContact div{
    margin: 5px auto;
}

footer div#footerContact div i{
    margin-right: 5px;
}

footer div#footerSocial div i{
    color: var(--yellow);
}

footer div#footerContact div a, footer div#footerContact div i{
    color: var(--yellow);
    text-decoration: none;
}

#contactSection{
    background: var(--blue);
}

#servicesSection{
    background: var(--white);
}

#portfolioSection{
    background: var(--ltBlue);
}

#contactSection, #servicesSection, #portfolioSection{
    height: 300px;
    display: flex;
    justify-items: center;
    align-items: center;
    align-content: center;
    flex-direction: column;
}

#portfolioSection a{
    text-decoration: none;
}

#contactSection h1, #servicesSection h1, #portfolioSection h1{
    text-align: center;
    font-size: 2.0rem;
    margin: auto;
    font-weight: bolder;
    color: rgb(59,59,59);
}

#contactSection h1{
    color: var(--yellow);
    margin-bottom: 10px;
}

#contactSection .button{
    margin-bottom: auto;
}

.button{
    background: var(--yellow);
    color: var(--blue);
    border: none;
    text-decoration: none;
    border-radius: 2px 0 ;
    padding: 5px;
    font-weight: bolder;
    font-size: 1.3rem;
}

#servicesSection{
    height: auto;
}

#servicesSection h1{
    font-size: 2.0rem;
    font-weight: bolder;
    margin: 10px auto;
}

#servicesSection ul{
    padding: 10px;
    display: flex;
    flex-direction: column;
}

#servicesSection li{
    list-style-type: square;
    margin: 2px auto;
}

#portfolioImg{
    max-width: 300px;
    max-height: 300px;
}

#contactMain{
    display: flex;
    flex-direction: column;
}

iframe#contactMap{
    border: none;
    max-width: 300px;
    max-height: 300px;
    width: 100%;
    height: 300px;
    margin: 10px auto;
}

#contactBtns{
    margin: 10px auto;
}

#contactBtns div{
    margin: 10px auto;
    text-align: center;
}

#contactBtns div i{
    margin: 4px;
}

#contactEmail h1{
    text-align: center;
}

#emailForm{
    margin: 10px auto;
}

.inputWrap{
    display: flex;
    flex-direction: column;
    width: 250px;
    margin: 10px auto;
}

.inputWrap label{
    font-size: .75rem;
    margin: 5px auto 2px 0;
}

.inputWrap textarea{
    height: 200px;
}

.inputWrap input, .inputWrap textarea{
    border: 3px solid var(--ltBlue);
    border-top: none;
    border-right: none;
    width: 100%;
    font-size: 1.2rem;
}

.inputWrap input:focus, .inputWrap textarea:focus{
    outline: none;
}

.inputWrap input:focus:invalid, .inputWrap textarea:focus:invalid{
    border: 3px solid red;
    border-top: none;
    border-right: none;
}

.inputWrap input:focus:valid, .inputWrap textarea:focus:valid{
    border: 3px solid rgb(6, 155, 6);
    border-top: none;
    border-right: none;
}


@media only screen and (min-width: 600px){
    #topSection{
        background-image:  linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url(../images/slideLake-m.jpg);
    }

    #servicesSection ul{
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 80%;
        max-width: 800px;
    }

    #servicesSection ul li{
        font-size: 1.2rem;
    }
}

@media only screen and (min-width: 1000px){
    #hamburger{
        display: none;
    }

    nav #topNav{
        display: flex;
        height: 25px;
        position: relative;
        top: auto;
        left: auto;
        padding-top: 0;
        background: none;
    }

    nav ul li a{
        font-size: 1.2rem;
        font-weight: 900;
        color: var(--blue);
    }

    nav ul li{
        background: none;
    }
    nav ul li.active{
        background: none;
    }

    nav ul li.active a{
        color: var(--yellow);
    }

    #topSection{
        background-image:  linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url(../images/slideLake.jpg);
    }

    #contactMain{
        flex-direction: row;
        flex-wrap: wrap;
    }

    #contactBtns{
        margin: auto;
    }

    #contactEmail{
        width: 100%;
    }

    iframe#contactMap{
        width: 500px;
        max-width: 500px;
        max-height: 500px;
        height: 400px;
    }

    #emailForm{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        max-width: 540px;
    }
    
    #emailForm .inputWrap:nth-of-type(1),#emailForm .inputWrap:nth-of-type(3){
        width: 250px;
        margin: 10px 10px 10px auto;
    }

    #emailForm .inputWrap:nth-of-type(2),#emailForm .inputWrap:nth-of-type(4){
        width: 250px;
        margin: 10px  auto 10px 10px;
    }

    #emailForm .inputWrap:nth-of-type(5){
        margin: 10px;
        width: 100%;
    }
}