* {
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    font-family: 'Russo One', sans-serif;
    background-attachment: fixed;
    margin: 0px;
}

#wrapper {
    display: grid;
    grid-auto-rows: auto;
    grid-template-columns: minmax(0px, 1fr) repeat(6, minmax(0, 175px)) minmax(0px, 1fr);
}

#purplebar {
    background-color: #8C65A6;
    grid-column: 1 / -1;
    grid-row: 1 / 2;
}

#sub {
    grid-row: 2 / 3;
    grid-column: 2 / 5;
    background-color: #D7FFD2;
    color: #8C65A6;
    z-index: 1;
    text-align: left;
    height: 60px;
}

header {
    background-color: #8C65A6;
    grid-column: 2 / 5;
    grid-row: 1 / 2;
    text-align: left;
}

header h1 a {
    color: #D7FFD2;
    font-size: 2rem;
    text-decoration: none;
}

nav {
    background-color: #8C65A6;
    grid-column: 5 / 8;
    grid-row: 1 / 2;
    font-weight: bold;
}

nav a {
    display: block;
    color: #dddddd;
    text-align: center;
    padding: 2rem 0rem;
    text-decoration: none;
    font-size: large;
}

nav a:hover {
    background-color: rgb(106, 66, 143);
}

nav ul {
    list-style-type: none;
    display: flex;
    flex-flow: row nowrap;
    padding: 0px;
    margin: 0px;
    align-items: stretch;
}

nav ul li {
    width: 100%;
}

main {
    display: block;
    background-image: linear-gradient(white, #b894cf);
    grid-column: 2 / -2;
    grid-row: 4 / 5;
    color: #8C65A6;
}

.index1 {
    background-image: url("images/index1comp.jpg");
    height: 666px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    grid-column: 1 / -1;
    grid-row: 2 / 4;
}

#index2 {
    background-image: url("images/index2comp.jpg");
    height: 240px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#index3 {
    background-image: url("images/index3comp.jpg");
    height: 240px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#index4 {
    background-image: url("images/index4comp.jpg");
    height: 240px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#socialmedia {
    background-image: url("images/socialmediacomp.png");
    height: 95px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

#map {
    background-image: url("images/map.png");
    height: 240px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

#googlemap {
    background-image: url("images/googlemap.jpg");
    height: 666px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    grid-column: 1 / -1;
    grid-row: 2 / 4;
}

#profilepic {
    background-image: url("images/profilepic.jpg");
    height: 666px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    grid-column: 1 / -1;
    grid-row: 2 / 4;
}

h2 {
    background-color: #D7FFD2;
    color: #8C65A6;
    height: 77px;
    margin: 0px;
}


main h2 {
    text-align: center;
    padding: 1rem 0rem;
}
.square {
    float: left;
    width: 50%;
    padding: 3rem;
}

.clear {
    clear: both;
}

#search input {
    grid-row: 4 / 5;
    font-size: 1.8rem;
}

footer {
    background-color: white;
    font-style: italic;
    text-align: center;
    grid-column: 2 / -2;
    grid-row: 5 / 6;
}

@media only screen and (max-width: 992px) {
    #wrapper {
        grid-template-columns:  minmax(0px, 1fr) repeat(6, minmax(0, 128px)) minmax(0px, 1fr);
    }
}

@media only screen and (max-width: 768px) {
    #wrapper {
        grid-template-columns: 0px repeat(6, 1fr) 0px;
    }

    #index2, #index3, #index4 {
        display: none;
    }
}