* {
    box-sizing: border-box;
}


body {
    background-color: #FFF;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cabin SemiBold', sans-serif;
}

p, li, input, textarea, label, button {
    font-family: 'Inter Regular', sans-serif;
}

div {
    display: block;
}

header {
    background-color: #FFF;
    position: fixed;
    width: 100%;
    z-index: 10;
}

nav, section {
    display: inline-block;
    width: 100%;
}

nav {
    background-image: linear-gradient(to bottom right,#3d77a4,#4c8cbd,#6a9fc8);
    position: fixed;
    top: 100px;
    z-index: 10;
}

section {
    margin-top: 70px;
    scroll-margin-top: 180px;
    scroll-snap-margin-top: 180px; /* iOS 11 and older */
}

.logo {
    position: relative;
    top: 10px;
}

.floatleft {
    float: left;
}

#menu-icon img {
    display: none;
}

#menu {
    display: inline-block;
    list-style: none;
    margin-top: 10px;
    margin-bottom: 8px;
}

#menu a {
    color: #F8F7FF;
    text-decoration: none;
}

#menu li {
    float: left;
    margin: 5px 10px 5px 0px;
}

#menu li:hover {
    border-bottom: 2px solid #F8F7FF;
    margin-bottom: 3px;
}

#notice {
    display: none; /* change to flex to display notice */
    justify-content: space-evenly;
    align-items: center;
    position: fixed;
    top: 150px;
    background: rgba(255,0,0,0.5);
    color: #fff;
    padding: 20px 50px;
    width: 100%;
    height: auto;
}

#notice p {
    display: block;
    margin: 0 auto;
    text-align: center;
}

#notice div {
    height: 16px;
    margin-left: 15px;
}

#about {
    margin-bottom: 30px;
}

.yellow-background {
    background-image: linear-gradient(to bottom right,#ffc95c,#ffcf70,#ffdd99);
    padding: 50px 0px;
}

.smallerpart {
    position: relative;
    top: 5px;
    font-size: 2em;
    margin: 10px 10px 0px 20px;
}

.largerpart {
    font-size: 2.4em;
    margin: 0px 10px 10px 20px;
}

#headwrapper {
    width: 500px;
    margin: 0 auto;
}

#titlewrapper {
    clear: right;
}

#navwrapper {
    position: relative;
    left: -5px;
    min-height: auto;
    clear: both;
    width: 460px;
    margin: 0 auto;
}

footer {
    color: #F8F7FF;
    background-image: linear-gradient(to bottom right,#3d77a4,#4c8cbd,#6a9fc8);
    width: 100%;
    height: 250px;
}

#footwrapper {
    width: 80%;
    margin: 0 auto;
    padding-top: 30px;
}

.footer-centre-section {
    text-align: center;
}

.footer-centre-section p {
    margin: 2px 0px;
}

.times-label {
    padding-bottom: 5px;
}

.footer-right-section {
    text-align: right;
}

.flex-container-home-content {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 90px;
}

#home-text {
    width: 65%;
    padding: 40px;
}

.flex-container-call-to-action {
    display: flex;
    height: 220px;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    margin-top: 50px;
}

.flex-container-call-to-action div {
    display: flex;
    align-items: center;
    width: 250px;
    height: 200px;
    padding: 20px;
    background-image: linear-gradient(to bottom right,#5dcbfd,#72d1fe,#9adefe);
}

.flex-container-call-to-action div a {
    font-family: 'Cabin SemiBold', sans-serif;
    text-decoration: none;
    font-size: 2em;
    color:#F8F7FF;
}

.flex-container-showroom-photos {
    display: flex;
    height: 480px;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 50px;
}

#showroom-text, .trade-text, #about-text {
    text-align: center;
    padding: 0px 150px;
}

.flex-container-trade-logos {
    display: flex;
    height: 300px;
    justify-content: space-evenly;
    align-items: center;
    background-image: linear-gradient(to bottom right,#a49d79,#aca686,#bdb89e);
    margin: 50px 0px;
}

.flex-container-core-stock {
    display: flex;
    height: 200px;
    justify-content: space-evenly;
    align-items: center;
    list-style: none;
    font-style: italic;
    text-align: left;
    position: relative;
    left: 10px;
}

.flex-container-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.flex-container-core-stock ul {
    list-style: none;
}

.trade-list {
    list-style: none;
    position: relative;
    left: -20px;
}

.core-stock {
    min-width: 350px;
}

#contactwrapper {
    padding: 0px 150px;
}

form {
    text-align: left;
    margin-bottom: 40px;
}

input, textarea {
    width: 100%;
    border: solid 1px #4282B3;
    margin: 3px 0px 13px 0px;
    resize: vertical;
}

input,  button {
    height: 30px;
}

button {
    background-color: #FFF;
    color: #4282B3;
    border: solid 1px #4282B3;
    margin-top: 15px;
    margin-bottom: 60px;
}

.form-alert {
    float: right;
    color: red;
}

.fa {
    box-sizing: content-box;
    padding: 15px;
    font-size: 20px;
    width: 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 50%;
    border: solid 1px #F8F7FF;
    float: right;
  }

  .fa:hover {
    opacity: 0.7;
  }

  .fa-times {
    background: #fff;
    color: #000;
    width: 16px;
    font-size: 16px;
    padding: 10px;
  }

  .fa-facebook {
    background: #3B5998;
    color: #FFF;
  }

  .fa-instagram {
    background: orange;
    color:#FFF;
    margin-left: 15px;
  }

  .fa-map-marker {
    background: #FFC145;
    color: #FFF;
    margin-left: 15px;
  }


@media screen and (max-width: 1045px) {
    header, #footwrapper {
        width: 100%;
    }

    #showroom-text, .trade-text, #about-text {
       padding: 0px 90px;
    }

    .flex-container-call-to-action {
        flex-wrap: wrap;
        height: 500px;
        margin: 0px 50px;
    }

    .flex-container-showroom-photos {
        display: none;
    }

    .flex-container-trade-logos {
        flex-direction: column;
        height: 700px;
    }

    .flex-container-core-stock {
        justify-content: center;
        align-items: center;
        flex-direction: column;
        height: 550px;
    }

    .core-stock {
        min-width: 100%;
        margin: 0px;
        text-align: center;
        position: relative;
        left: -30px;
    }

    footer {
        height: 530px;
    }

    .flex-container-footer {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 15px;
    }

    .footer-left-section, .footer-centre-section, .footer-right-section {
        text-align: center;
        width: 100%;
    }

    #fa-wrapper {
        width: 200px;
        margin: 0px auto;
        position: relative;
        left: -5px;
    }

}

@media screen and (max-width: 725px) {

    #contactwrapper {
        padding: 0px 75px;
    }
}

@media screen and (max-width: 615px) {

    #headwrapper {
        width: 480px;
        height: 78px;
    }

    #navwrapper {
        width: 120px;
    }

    #menu {
        display: none;
        padding-left: 0px;
    }

    #menu li {
        float: none;
        margin: 8px 0px;
        text-align: center;
    }

    #notice {
        top: 90px;
        padding: 20px 30px;
    }

    #logowrapper img {
        height: 45px;
        margin-top: 5px;
    }

    .smallerpart {
        font-size: 1.2em;
    }

    .largerpart {
        font-size: 1.8em;
    }

    #menu-icon img {
        display: inline-block;
        height: 60px;
        margin-top: 10px;
    }

    section {
        margin-top: 30px;
        scroll-margin-top: 85px;
        scroll-snap-margin-top: 85px; /* iOS 11 and older */
    }  

    nav {
        top: 78px;
    } 

    .flex-container-home-content {
        flex-direction: column;
    }

    #home-text {
        width: 80%;
        padding: 30px;
        text-align: center;
    }

    .flex-container-call-to-action {
        flex-direction: column;
        flex-wrap: nowrap;

    }

    .flex-container-call-to-action div {
        width: 90%;
        height: 100px;
        padding: 15px 20px 25px 20px;
    }

    .flex-container-call-to-action div a {
        font-size: 1.8em;
    }

    .flex-container-trade-logos {
        padding: 0px;
    }

    .flex-container-trade-logos img {
        width: 200px;
    }

    .form-alert {
        float: none;
        position: relative;
        top: -45px;
    }
}

@media screen and (max-width: 470px) {

    #headwrapper {
        width: 430px;
    }

    #logowrapper {
        display: none;
    }

    #showroom-text, .trade-text, #about-text {
        padding: 0px 50px;
    }

    footer {
        height: 550px;
    }

}

@media screen and (max-width: 450px) {
    
    #headwrapper {
        width: 330px;
        margin-top: 10px;
    }

    .smallerpart {
        font-size: 1.15em;
    }

    .largerpart {
        font-size: 1.4em;
    }

    #menu-icon img {
        height: 50px;
        margin-top: 10px;
    }

    section {
        margin-top: 30px;
        scroll-margin-top: 85px;
        scroll-snap-margin-top: 85px; /* iOS 11 and older */
    }  

    nav {
        top: 78px;
    } 

    #home-text {
        padding: 0px 10px;
    }

    .flex-container-call-to-action {
        height: 700px;
    }

    .flex-container-call-to-action div {
        width: 100%;
    }
}

@media screen and (max-width: 415px) {

    .flex-container-call-to-action div {
        height: 135px;
    }

    #contactwrapper {
        padding: 0px 50px;
    }
}

@media screen and (max-width: 370px) {

    .flex-container-call-to-action {
        margin: 0px 30px;
    }

    .flex-container-trade-logos img {
        width: 150px;
    }

    .flex-container-core-stock {
        margin-bottom: 50px;
    }

    .core-stock {
        width: 90%;
    }

    #contactwrapper {
        padding: 0px 30px;
    }

    #footwrapper {
        padding-right: 30px;
        padding-left: 30px;
    }
}
