/* Reset */
* {
    padding: 0;
    margin: 0;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
}

a,
a:hover,
a:active,
a:focus {
    display: inline-block;
    text-decoration: none;
    color: #343a3f;
    padding: 0;
    font-weight: bold;
}

/* 
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    color: #343a3f;
    font-size: 18px;
    font-weight: 500;
    text-transform: capitalize;
}
*/
p {
    margin: 0;
    padding-bottom: .75rem;
    color: #3d3d3d;
}

img {
    border: none;
    max-width: 100%;
    height: auto;
}

ul {
    padding: 0;
    margin: 0 auto;
    list-style: none;
}

li {
    padding-left: 1rem;

}

select,
input,
textarea,
button {
    box-shadow: none;
    outline: 0 !important;
}

button {
    background: transparent;
    border: 0;
    font-size: 12px;
}

html,
body {
    height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.5rem;
    background-image: url('images/head.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.top {
    padding: 10px;
    text-align: right;
}

.header {
    padding: 2rem 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    transition-property: height, background, padding;
    transition-duration: 2s;
    transition-timing-function: linear;
}

.logo {
    transition-property: scale;
    transition-duration: 2s;
}

.sticky {
    .logo {
        scale: calc(0.8)
    }
    z-index: 1;
    position: fixed;
    top: 0;
    padding: 0.2rem 1rem;
    width: 100%;
    background: rgb(230, 243, 255);
}

.sticky+.content {
    padding-top: 350px;
}

.content {
    padding-top: 200px;
}

.navlinks a:hover {
    background-color: rgb(0, 0, 255);
    color: aliceblue;
    border-radius: 20px;
}

.navlinks a {display: none;}

.navlinks a.icon {
    position: fixed;
    top: 25px;
    right: 20px;
    float: right;
    display: block;
    font-size: larger;

}
.navlinks a:hover.icon {
    background: none;
    color: blue;
}

.navlinks.responsive {
    flex:100%;
    flex-wrap: wrap;
    position: relative;
    background-color: aliceblue;
    margin: 0 -1rem;
}

.navlinks.responsive a { 
    float: none;
    display: block;
    text-align: left;
    padding-left: 4rem;
    margin: .2rem 2rem;
}

.navlinks.responsive .icon {
    position: fixed;
    right: 20px;
    top: 25px;
}

.boxes {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    margin: 0 2rem 2rem 2rem;
}

.box {
    margin: -3rem 0rem 0rem 0rem;
    padding: 1.5rem 1rem 2.5rem 1rem;
    text-align: center;
    background-color: aliceblue;
    color: blue;
    border-radius: 15px;
}

.box p {
    margin: 1rem 1rem 0 1rem;
    text-wrap: nowrap;
}

.section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background-color: rgb(230, 243, 255);
}

.reverse {
    background-image: linear-gradient(blue, rgb(0, 0, 183));
    background-color: rgb(23, 23, 227);
    color: aliceblue;
}

.reverse p,
.reverse h2,
.reverse a {
    color: aliceblue;
}

.image {
    margin: 2rem;
    width: 100%;
    background-color: rgb(2, 6, 255);
    border-radius: 10px;
}

.image img {
    width: 100%;
    transform: rotate(-5deg);
    border-radius: 10px;
    z-index: -1;
}

.text {
    padding: 20px 1em;
}

#footer {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: start;
    justify-content: space-between;
}

.address {
    flex: 30%;
}

.nav-footer {
    flex: 20%;
}

.location {
    flex: 50%;
    min-width: 397px;
}

iframe {
    width: 100%;

}

.social a img {
    filter: grayscale(90%);
    height: 40px;
    width: auto;
    padding-top: 10px;
    padding-right: 10px;
}

.social a:hover img {
    filter: grayscale(0%);
}
.three {
    font-family: sans-serif;
    color: #0A3049;
}

/* larger screens */
@media (min-width: 794px) {
    .boxes {
        flex-direction: row;
    }

    .box {
        margin: -4rem 0;
    }

    .section {
        flex-direction: row;
        padding: 1.2em;
    }


    .reverse {
        flex-direction: row-reverse;
    }

    .image {
        flex: 40%;
        margin: 3rem;
    }

    .text {
        flex: 60%;
    }


    .navlinks {
        display: inline-flex;
    
    }
    
    .navlinks a {
        color: navy;
        display: block;
        padding: 5px 10px;
        margin-right: 10px;
        text-decoration: none;
        text-align: center;
    }
    
    .navlinks a.icon {
        display: none;
    }

}