/* global */

html {
    background-image: url(../img/20220315-background-ec-1.jpg);
    background-repeat: no-repeat;
    background-color: #544d47;
}

body {
    max-width: 50vw;
    width: 100%;
    margin: 3rem auto;
}

main {
    background-color: white;
    border: 1px solid #6e6e6e;
    border-radius: 0.6rem;
}

hr {
    border: solid 1px #6E6E6E;
    margin-bottom: 1rem;
}

h1 {
    font-family: 'League Gothic', sans-serif;
    font-weight:400;
    font-size: 4rem;
    letter-spacing:0.1rem;
    line-height: 2rem;
    }

h2 {
    font-family: 'League Gothic', sans-serif;
    font-weight:400;
    font-size: 1.8rem;
    letter-spacing:0.1rem;
}

h3 {
    font-family: 'League Gothic', sans-serif;
    font-weight:400;
    font-size: 1.4rem;
    letter-spacing:0.1rem;
}

p {
    font-family: 'PT Sans', sans-serif;
    margin-bottom: 0.9rem;
}

footer {
    background-color: #D46617;
    color: white;
    text-align: left;
    border-radius: 0 0 0.56rem 0.56rem;
}

footer h3 {
    padding: 1rem 1.4rem;
}

.return-to-top {
    text-align: center;
    margin: 4.5rem 4.5rem 3.5rem 4.5rem;
}
.return-to-top a {
    color: black;
    text-decoration: none;
    background-color: #E3E3E3;
    border: 1px solid #6E6E6E;
    border-radius: 30px;
    padding: 0.6rem 6rem;
}

.return-to-top a:hover {
    color: blue;
}
/* local */


    header {
        display: flex;
        flex-direction: row;
        width: 100%;
        padding: 1rem 1rem;
    }

    header ul {
        text-align: right;
        white-space: nowrap;
        margin: 0 auto;
        flex-grow: 1;
        flex-basis: 100%;
        margin-right: 0.5rem;
    }
    
    header li {
       /* width: auto; */
        margin-left: 2rem;
        display: inline-block;
        font-family: 'PT Sans', sans-serif;
        font-size: 1.3rem;
    }

header li a {
    text-decoration: none;
    color: #4B4B4B;
  }
  
header li a:visited {
      color: black;
}
  
header li a:hover {
    color: blue;
}
  
header li a:active {
      color:red;
}

.banner {
    position: relative;
}
  
.banner img{
    width: 100%;
}
  
.banner .welcome {
    padding: 20px;
    position: absolute;
    margin: 0;
    left: 1%;
    top: 2%;
}
 
/* put the text company name into the banner, moving it into place */
.banner h1{
    color: white;
}

.banner h1 .energy-consultants {
    font-size: 1.4rem;
    padding-left: 0.7rem;
}

/* style up the power source section of text */
.intro, .contailer-powersource, .about {
    padding: 0 1.8rem;
}

.solar img {
    float: right;
    overflow: auto;
    margin-left: 1rem;
}

.geothermal {
    margin-top: 12.5rem;
}

.geothermal h3 {
    clear: both;
}
.geothermal img {
    float: right;
    overflow: auto;
    margin-left: 1rem;
}

.windturbines {
    margin-top: 5.1rem;
}
.windturbines h3 {
    clear: both;
}
.windturbines img {
    float: right;
    overflow: auto;
    margin-left: 1rem;
}

.about {
    margin-top: 6.5rem;
}

.about h3 {
    clear: both;
}

/* style up the testimonials area */
.container-testimonials {
    margin-top: 5rem;
    margin-bottom: 7rem;
}

.container-testimonials h3 {
    padding: 0 1.8rem;
}

.testimony {
    border: 1px solid #B2D2CB;
    border-left: 10px solid #B2D2CB;
    background-color: #F8FFFD;
    padding: 1rem;
    margin: 0.9rem 1.2rem 2.6rem 1.2rem;
}

.testimony img {
    margin: 0.24rem 1.8rem 1.4rem 0.25rem;
    float: left;
    overflow:auto;
}

.testimony p {
    font-size: 1.3rem;
    margin-right: 2.4rem;
}
.to-bold {
    font-family: 'League Gothic', sans-serif;
    font-weight:400;
    margin-top: -1rem;
    display: inline-block;
}

.testimony:after{
	content: "";
	display: block;
	clear: both;
}

/* desktop */
@media (max-width: 1280px) {
    body {
        max-width: 80vw;
        width: 100%;
        margin: 3rem auto;
    }
}

/* Mobile */
@media (max-width: 600px) {
    body {
        max-width: 100%;
        width: 100%;
        margin: 3rem auto;
    }

    h1 {
        font-size: 3rem;
    }

    .banner h1 .energy-consultants {
        font-size: 1rem;
        padding-left: 0.5rem;
    }

    .testimony img {
        margin: 0.24rem 0.9rem 0.7rem 0.25rem;
        float: left;
        overflow:auto;
    }
    
    .return-to-top {
        margin: 4.5rem 0 3.5rem 0;
    }

    .return-to-top a {
        padding: 0.6rem 3rem;
    }
}