/* Yury Khmialeuski
WEB 150, ASN6
Business name: Shasta Remodeling LLC */
* {
    box-sizing: border-box;
}

.fcontainer {
    display: flex;
    flex-wrap: wrap;
}

body {
    background-color: #a3c58657;
    max-width: 2600px;
    margin: 5px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Libre Franklin', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: calc(10px + (24 - 10) * (100vw - 300px) / (1600 - 300));
}

/* Header and background */

header {
    text-align: center;
    width: 100%;
    min-height: 357px;
    background-color: #a3c586e8;
    background-image: url(../images/header1200.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    justify-content: center;
    color: #FFFFFF;
}

header div {
    align-self: center;
    /* background-color: #a3c58675; */
    max-width: 50%;
    padding: 20px;
}

header div p {
    font-size: 1.4em;
}

nav {
    justify-content: center;
    background-color: #7e5b33a9;
    width: 100%;
    position: sticky;
    top: 0;
}

/*  Navigation button------------------- */

a.button {
    padding: 0.46em 1.6em;
    border: 0.1em solid #000000;
    margin: 0.2em 0.2em 0.2em 0;
    border-radius: 0.3em;
    text-decoration: none;
    font-weight: 300;
    color: #ffffff;
    background-color: #a3c58675;
    text-align: center;
    transition: all 0.15s;
}

a.current {

    border-color: black;
    background-color: #5b7444d2;
}

a.button:hover {
    text-shadow: 0 0 2em rgba(255, 255, 255, 1);
    color: #FFFFFF;
    border-color: #FFFFFF;
}

/* end navigation button */



/* Read More Button */
a.jumplink {
    display: inline-block;
    border: .1em solid black;
    background-color: #cee6b9d2;
    border-radius: 0.3em;
    margin: 0.2em 0.2em 0.2em 0;
    text-decoration: none;
    color: black;
    padding: 0.5em;
    position: relative;
    left: 10px;
    bottom: 10px;

}

section.services {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

a.jumplink {
    align-self: flex-start;
}



main {
    flex-direction: column;
    align-items: center;
}




main div.fcontainer {
    justify-content: space-around;
}

h2 {
    text-align: center;
    margin-top: 60px;
}

.fcontainer section {
    padding: 10px;
    flex-basis: 30%;
    margin-top: 20px;
    background-color: burlywood;
    text-align: justify;

}

.fcontainer img,
main img {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;

}


/* Frequently asked questions */

.faqbackground details {
    background-color: #7e5b336e;
    margin-top: 10px;
    border-radius: 5px;
    padding: 5px 10px;
}

.faqbackground details[open] {
    background-color: #7e5b3365;
    margin-top: 10px;
    border-radius: 5px;
    padding: 5px 10px;
}

.faqbackground p {
    background-color: #7e5b33af;
    padding: 5px;
    margin-top: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.faqbackground details:hover {
    background-color: #7e5b3390;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.faqbackground h2 {
    text-align: center;
}

.faqbackground {
    margin-top: 20px;
    background-color: #a3c58675;
    width: 100%;
}

/* Contact */
.contact-form {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    margin: 0 auto;
    max-width: 2600px;
    padding: 10px;
    flex-direction: row;
}

.contact-form h3 {
    text-align: center;
}

.contact-form section {
    text-align: center;
}

.contact-form ul {
    list-style-type: none;
    padding-left: 0;
}

.contact-form form,
.contact-form section {
    flex-basis: 45%;
    padding: 15px;
    margin: 0 5px;
    border: 5px solid rgba(194, 193, 193, 0.602);
    background-color: rgba(222, 184, 135, 0.404);
}

section.fcontainer div {
    margin: 0 auto;
}

label,
form p {
    display: block;
    font-weight: bold;
    padding-top: 5px;
}

div[role="group"] label,
.calltime label {
    font-weight: normal;
}

.contact-form section iframe {
    max-width: 100%;
}

input:not([type="radio"]):not([type="checkbox"]),
textarea,
select {
    width: 100%;
    padding: 5px;
}

label[for="question"] {
    margin-top: 10px;
}

input[type="submit"] {
    background-color: #5b7444d2;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-top: 15px;
    color: #FFFFFF;
    font: 1.3em sans-serif;
    border: 1px solid #000000;
}

input[type="submit"]:hover {
    border: 3px solid #FFFFFF;
}

input::placeholder {
    color: rgba(194, 193, 193, 0.876);
    font-size: 1.1em;
    font-style: italic;
}

/* Contact end */

/* About us */
 /* Create the parallax scrolling effect */
.big_img1,
.big_img2 {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
   
    background-attachment: fixed;
    height: 100%;
}

.big_img1 {
    background-image: url(../images/floor_services.jpg);
}

.big_img2 {
    background-image: url(../images/bathroom.JPG);
}

.big_img2 section {
    margin-bottom: 20px;
    background-color: #aca9a9e7;  
    color: #FFFFFF;  
}
.big_img1 section{
    margin-bottom: 20px;
}


/* Services */

section.fcontainer {
    flex-direction: row;
    margin-top: 40px;
    padding: 0;
}

section.fcontainer img {
    width: 40%;
    border-radius: 0;

}

section.fcontainer div {
    width: 60%;
    padding: 0 15px;
    text-align: justify;

}

section.fcontainer:nth-of-type(even) {
    flex-direction: row-reverse;
}

/* Services End */

footer {
    text-align: center;
    padding: 20px;
}

@media (max-width: 800px) {

    .fcontainer,
    .contact-form {
        flex-direction: column;
    }

    section.fcontainer div {
        width: 100%;
    }


    a.button {
        display: block;
        margin: 0.4em auto;
    }

    nav {
        width: 100%;
        position: static;
        align-content: center;
    }

    nav a.button {
        width: 50%;
    }

    section.fcontainer {
        flex-direction: column;
    }

    section.fcontainer:nth-of-type(even) {
        flex-direction: column;
    }

    section.fcontainer img {
        width: 100%;
    }

    .contact-form form {
        margin-bottom: 20px;
    }

    .about_us section {
        width: 80%;
        align-self: center;
    }
    /* Turn off parallax scrolling for all tablets and phones.  */
    .big_img1,
    .big_img2 {
        background-attachment: scroll;
    }

}