@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
}

body {
    background-color: #544d47;
    background-image: url(images/bg800bulbs.jpg);
    background-repeat: no-repeat;
}

.main {
    max-width: 50vw;
    margin-right: auto;
    margin-left: auto;
    background-color: white;
}

@media screen and (max-width: 768px) {
    .main {
        max-width: 100%;
    }
}

/*/////////
/ Nav Bar /
/////////*/

header {
    margin-top: 1rem;
    border-radius: 8px 8px 0px 0px;
    display: flex;
    max-width: 50vw;
    margin-right: auto;
    margin-left: auto;
    justify-content: space-between;
    padding: 1.2rem 1rem;
    background-color: white;
}

@media screen and (max-width: 768px) {
    header {
        max-width: 100%;
    }
}

li,
a {
    font-weight: 500;
    font-size: 1.1rem;
    color: black;
    text-decoration: none;
}

.logo {
    cursor: pointer;
    max-height: 32px;
}

.nav__links {
    list-style: none;
}

.nav__links li {
    display: inline-block;
    padding: 0.2rem 1rem 0rem 1rem;
}

/*//////////////
// Main Image //
//////////////*/

.logo960 {
    display: flex;
    border-style: solid;
    border-width: 1px 0px 1px 0px;
    max-width: 50vw;
    margin-right: auto;
    margin-left: auto;
}

@media screen and (max-width: 768px) {
    .logo960 {
        max-width: 100%;
    }
}

/*////////////
// Articles //
////////////*/

.head_article {
    padding: 1.5rem 1.5rem 2rem 1.5rem;
}

.head_article h3 {
    font-weight: 800;
    padding-bottom: 0.5rem;
}

.head_article p {
    padding-top: 0.5rem;
}

.articles {
    padding: 1rem 1.5rem 5rem 1.5rem;
}

.articles h4 {
    font-weight: 600;
    padding-bottom: 0.5rem;
}

.articles p {
    padding-top: 0.5rem;
}

.article_image {
    float: right;
    border-radius: 8px;
    margin-left: 1rem;
}

/*//////////////////////
// Back to Top button //
//////////////////////*/

.top {
    display: flex;
    margin-right: auto;
    margin-left: auto;
    padding: 0.5rem 4rem;
    border-radius: 24px;
    justify-content: center;
    background: #e4e4e4;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    border-color: #707070;
    border-width: 1px;
}

/*////////////////
// Testimonials //
////////////////*/

.testimonials {
    margin: 1rem 1rem 1rem 1rem;
    padding-bottom: 1rem;
}

.testimonials h4 {
    margin: 1rem 0.5rem;
}

.testimonial {
    clear: both;
    border-style: solid;
    border-width: 1px 1px 1px 10px;
    border-color: #b0d2cb;
    padding: 0.2rem 0rem;
    margin-bottom: 2rem;
}

.testimonial p {
    padding: 1rem;
    display: inline-block;
}

.testimonial img {
    padding-right: 1.5rem;
    float: left;
}

/*////////////////
// Contact Form //
////////////////*/

.contact_form_header {
    margin: 2rem 1rem;
}

.contact_form_header hr {
    margin-top: 1rem;
}

.contact_form {
    background-color: lightgreen;
    padding: 5%;
    border-radius: 10px;
    margin: 1rem 1rem;
    height: 43vw;
    font-size: 1.5rem;
}

@media screen and (max-width: 768px) {
    .contact_form {
        height: 100vw;
    }
}

.contact_form input,
label {
    clear: left;
    float: left;
}

.contact_form input {
    width: 100%;
    height: 2vw;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

@media screen and (max-width: 768px) {
    .contact_form input {
        height: 4vw;
    }
}

#user_comment {
    padding-top: 1vw;
    padding-bottom: 10vw;
}

#sales_query,
#sales_query_label,
#general_enquiry,
#general_enquiry_label {
    display: flex;
    padding: 1rem;
    clear: none;
    float: left;
    width: auto;
    justify-content: center;
}

#submit_form,
#reset_form {
    display: flex;
    margin: 1rem;
    clear: both;
    float: left;
    width: 15rem;
    justify-content: center;
}

@media screen and (max-width: 768px) {

    #submit_form,
    #reset_form {
        width: 10rem;
        height: auto;
    }
}

#submit_form {
    clear: none;
    float: left;
}

#reset_form {
    margin-left: 10rem;
}

@media screen and (max-width: 768px) {
    #reset_form {
        margin-left: auto;
    }
}

/*//////////
// Footer //
//////////*/

footer {
    max-width: 50vw;
    margin-right: auto;
    margin-left: auto;
    background-color: #d66717;
    color: white;
    font-weight: 500;
    padding: 1rem 1rem;
    margin-bottom: 10%;
    border-radius: 0px 0px 8px 8px;
}

@media screen and (max-width: 768px) {
    footer {
        max-width: 100%;
    }
}