/* Variables */
:root {
    --primarycolor: #22b4de; 
    --secondarycolor: #dbb249;
    --iconcolor:rgb(39, 39, 39);
    --offwhite:rgb(238, 238, 238);
}


/* Resets */
* {
    margin:0px;
    padding:0px;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
    z-index: 1;

}

body{
    min-width: 320px;
}

#heading-container {
    height:100vh;
    background:url(../images/solar\ 3.jpg) no-repeat center center;
    background-size: cover;
    z-index:-1;
    min-height: 516px;
}

#heading-container::after {
    content:"";
    width:100%;
    min-width: 320px;
    height: 100vh;
    min-height: 516px;
    position: absolute;
    top:0;
    left:0;
    background-color: rgba(0, 0, 0, 0.685);
    z-index: 0;
}

#heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height:100%;
    position: relative;
    text-align: center;
    box-shadow:5px 0px 20px 15px var(--iconcolor);
    animation-name: fade-in;
    animation-duration:3s;
    animation-delay: .5s;
    animation-fill-mode: forwards;
    opacity:0;
}

#heading h1 {
    font-size:4rem;
}
.imagebar {
    position:absolute;
    top:0;
    left:0;
    width:100%;
}

@media only screen and (max-width:850px) {
    .imagebar {
        display:flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-bottom: 1.2rem;
    }

    #heading h1 {
        font-size: 2rem;
    }
}

@keyframes fade-in {
    to {
        opacity:1;
    }
}

#heading h1 {
    color:var(--offwhite);
    padding:0 20px 0 20px;
}

#heading #click-funnel {
    text-decoration: none;
    color:white;
    background-color:var(--primarycolor);
    padding:10px;
    position: relative;
    text-align: center;
    top:25px;
    font-size: 1.3rem;
    transition:.3s ease;
}

#heading #click-funnel:hover {
    background-color: var(--secondarycolor);
    color:var(--iconcolor);
}

#heading #scroll-button {
    position:absolute;
    bottom:0;
    left:50%;
    margin: 0 0 10px -48px;
    text-decoration: none;
    color: #fff;
    animation-name:bounce;
    animation-duration:1.5s;
    animation-delay:0s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes bounce {
    33% {
        transform: translateY(5px);
    }

    33% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(5px);
    }
}

/* Why solar section */

#why-container {
    background-color:var(--offwhite);
    color:var(--iconcolor);
    padding:50px 20px 25px 20px;
}

#why {
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    text-align: center;
}

.whysolar {
    margin: 0 0 40px 0;
}

.whysolar i {
    font-size: 5rem;
    margin: 0 0 10px 0;
}

.whysolar a {
    text-decoration: none;
    background-color: var(--secondarycolor);
    display: inline-block;
    padding:10px;
    margin:20px 0 0 0;
    color:var(--iconcolor);
    font-weight: 600;
    transition:.3s ease;
}

.whysolar a:hover {
    background-color: var(--primarycolor);
}

.flex-container {
    display: flex;
    flex-direction: column;
}

/* Ambassador Section */

#ambassador-container {
    background-color: var(--iconcolor);
    color:var(--offwhite);
    padding:50px 20px 25px 20px;
}

#ambassador {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    text-align: center;
    color:var(--offwhite);

}

.ambassador {
    margin: 0 0 40px 0;
}

.ambassador i {
    font-size: 5rem;
    color:var(--secondarycolor);
    margin: 0 0 10px 0;
}

.ambassador a {
    text-decoration: none;
    font-weight: bold;
    color:var(--primarycolor);
}

/* Consultant section */

#consultant-container {
    background-color: var(--offwhite);
    color:var(--iconcolor);
    padding:50px 20px 25px 20px;
}

.consultant {
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.consultant a {
    background-color: var(--primarycolor);
    padding:10px;
    font-size: 1.1rem;
    font-weight:600;
    color:var(--offwhite);
    text-decoration: none;
    transition: .3s ease;
}

.consultant a:hover {
    background-color: var(--secondarycolor);
    color:var(--iconcolor);
}

/* Footer section */

#footer-container {
    background-color: var(--iconcolor);
}

#footer {
    padding:20px;
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer {
    color:var(--offwhite);
}

.footer p {
    padding: 10px;
}

.footer p a {
    color:var(--offwhite);
}

.footer ul {
    display: flex;
    flex-direction: row;
}

.footer ul li {
    list-style: none;
}

.footer ul li a {
    text-decoration: underline;
    padding:10px;
    color:var(--offwhite);
}


/* Larger Screens */

@media only screen and (min-width:1000px) {

    .flex-container {
        flex-direction:row;
    }

    .whysolar, .ambassador {
        padding:20px;
        margin:0 0 0 0;
    }

}