#wrapper { background-color: rgb(133, 110, 91);
    width: 95%;
    margin: 0 auto;
}

body { background-color: rgb(161, 142, 126);
    margin: 0;
}

header { background-color: rgba(100, 72, 46, 0.566);
    color: rgb(232, 166, 158);
}

header h1 { position: relative;
    left: 40px;
    color: rgb(232, 166, 158);
}

#homeimg { background-image: url(websitepics/pexels-arina-krasnikova-6663368.jpg);
    height: 500px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
} 

#shopimg { background-image: url(websitepics/pexels-shkrabaanthony-6187609.jpg);
    height: 500px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
} 

#bookimg { background-image: url(websitepics/pexels-karolina-grabowska-4041392.jpg);
height: 500px;
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}

#portfolioimg { background-image: url(websitepics/pexels-gabby-k-6621224.jpg);
    height: 500px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#treatmentsimg { background-image: url(websitepics/pexels-cottonbro-4004118.jpg);
    height: 500px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

nav ul { list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-flow: row nowrap;
}

nav ul li { display: inline-block;
    width: 100%;
}

nav ul li a { text-decoration: none;
    padding: 30px;
    background-color: rgba(100, 72, 46, 0.566);
    color: rgb(30, 22, 16);
    display: block;
    text-align: center;
}

nav a:hover { background-color: rgb(68, 55, 46);
    color: rgb(173, 138, 106);
}

main { padding: 20px;
    text-align: center;
} 

footer {  color: rgb(68, 55, 46);
    background-color: rgb(161, 142, 126);
    text-align: center;
}

h1{ color: rgb(68, 55, 46);
}

h2 { color: rgb(68, 55, 46);
}

p { color: rgb(232, 166, 158);
}

a { color: rgb(68, 55, 46);
}

main a { color: rgb(48, 35, 24);
    background-color: rgb(79, 62, 43);
    padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
}

main a:hover { color: rgb(79, 62, 43);
    background-color: rgb(48, 35, 24);
}

.right { float: right;
}

form {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 100px 300px;
    grid-gap: 0.75rem;
    width: 100%;
    color: rgb(68, 55, 46);
}

label { text-align: right;
}

input, select { background-color: rgb(161, 142, 126);
    border: none;
    display: grid;
    text-align: center;
}

input:hover, select:hover { background-color: rgb(68, 55, 46);
}

#gallery { display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
}

#wrapper { display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 200px)) minmax(0,1fr);
}

header { grid-column: 1 / 2;
    grid-row: 1 / 2;
    order: 2;
}

nav { grid-column: 2 / 6;
    grid-row: 1 / 3;
    order: 1;
}

#homeimg { grid-column: 1 / -1;
    grid-row: 1 / 5;
}

#shopimg { grid-column: 1 / -1;
    grid-row: 1 / 5;
}

#bookimg { grid-column: 1 / -1;
    grid-row: 1 / 5;
}

#portfolioimg { grid-column: 1 / -1;
    grid-row: 1 / 5;
}

#treatmentsimg { grid-column: 1 / -1;
    grid-row: 1 / 5;
}

main { grid-column: 1 / -1;
    grid-row: 5 / 6;
}

footer { grid-column: 1 / -1;
    grid-row: 6 / 7;
}

@media only screen and (max-width: 992px) {
    #wrapper { grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 200px)) minmax(0, 1fr);
        width: 768px;
        margin: 0 auto;
    }
    header { grid-column: 1 / -1;
        grid-row: 1 / 2;
    }
    nav { grid-column: 1 / -1;
        grid-row: 2 / 3;
        background-color: rgb(100, 72, 46);
    }
    nav ul { display: flex;
        flex-flow: column nowrap;
        margin: 0;
        padding: 0;
    }
    #homeimg { grid-column: 1 / -1;
        grid-row: 1 / 3;
    }
    #shopimg { grid-column: 1 / -1;
        grid-row: 1 / 3;
    }
    #bookimg { grid-column: 1 / -1;
        grid-row: 1 / 3;
    }
    #portfolioimg { grid-column: 1 / -1;
        grid-row: 1 / 3;
    }
    #treatmentsimg { grid-column: 1 / -1;
        grid-row: 1 / 3;
    }
    main { grid-column: 1 / -1;
        grid-row: 3 / 4;
    }
    footer { grid-column: 1 / -1;
        grid-row: 4 / 5;
        margin: 0;
    }
}


@media only screen and (max-width: 768px) {
    #wrapper { grid-template-columns: minmax(0, 1fr) minmax(0, 100px) minmax(0, 1fr);
        width: 100%;
    }
    header { grid-column: 1 / -1;
        grid-row: 1 / 2;
    }
    nav { grid-column: 1 / -1;
        grid-row: 2 / 3;
        background-color: rgb(100, 72, 46);
    }
    nav ul { flex-flow: column nowrap;
    }
    #homeimg { grid-column: 1 / -1;
        grid-row: 1 / 3;
    }
    #shopimg { grid-column: 1 / -1;
        grid-row: 1 / 3;
    }
    #bookimg { grid-column: 1 / -1;
        grid-row: 1 / 3;
    }
    #portfolioimg { grid-column: 1 / -1;
        grid-row: 1 / 3;
    }
    #treatmentsimg { grid-column: 1 / -1;
        grid-row: 1 / 3;
    }
    main { grid-column: 1 / -1;
        grid-row: 3 / 4;
    }
    footer { grid-column: 1 / -1;
        grid-row: 4 / 5;
        margin: 0;
    }
}