* {
    box-sizing:border-box;
}
#wrapper {
    max-width: 992px;
    margin: 0 auto;
    display:grid;
    grid-auto-rows: minmax(0px, auto);
	grid-template-columns: minmax(0px, 1fr) repeat(6,minmax(0, 160px)) minmax(0px, 1fr);
}
#pinkbar {
    background-color: #6d696b;
    border-radius: 25px;
    grid-row:1/2;
    grid-column:1/-1;
}
#homehero {
    height: 570px;
    background-image: url(images/keyboardhero.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
	align-content: center;
    border: 2px solid;
    border-radius: 25px;
    grid-row: 3;
    grid-column: 1/-1;
}
#gamehero {
    height: 570px;
    background-image: url(images/selection.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
	align-content: center;
    border: 2px solid;
    border-radius: 25px;
    grid-row: 3;
    grid-column: 1/-1;
}
#quotehero {
    height: 570px;
    background-image: url(images/ps1.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
	align-content: center;
    border: 2px solid;
    border-radius: 25px;
    grid-row: 3;
    grid-column: 1/-1;
}
#abouthero {
    height: 570px;
    background-image: url(images/sorry.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
	align-content: center;
    border: 2px solid;
    border-radius: 25px;
    grid-row: 3;
    grid-column: 1/-1;
}
#contacthero {
    height: 570px;
    background-image: url(images/monopoly.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
	align-content: center;
    border: 2px solid;
    border-radius: 25px;
    grid-row: 3;
    grid-column: 1/-1;
}
#logo {
    display: block;
    float: left;
}
#lifehero {
    background-image: url(images/lifehero.jpg);
    width: 305px;
    height: 203px;
    float: right;
    grid-column: 6 / 7;
    grid-row: 5;
    object-fit: contain;
    background-size: cover;
}
#neshero {
    background-image: url(images/neshero.jpg);
    width: 230px;
    height: 345px;
    float: left;
    object-fit: contain;
    background-size: cover;
}
header {
    border-radius: 25px;
    grid-row: 1/2;
    grid-column: 2/-2;
}
header h1 {
    text-decoration-style: solid;
    text-decoration: none;
    color: #33CC00;
    font-family: Georgia;
    padding-left: 30px;
    padding-right: 40px;
    float: left;
}
nav {
    display: block;
    font-weight: bold;
    text-decoration: none;
    list-style-type: none;
    float:right;
}
ul {
    display: flex;
    padding: 0;
    margin: 0;
    float: right;
}
li {
    text-decoration-style: unset;
    display: inline-flex;
    text-align: right;
    font-family: Courier;
    font-size: 22.5px;
    padding-top: 20px;
    padding-right: 0.15rem;
    padding-bottom: 0.1rem;
    padding-left: 0.15rem;
    float: right;
}
header nav a {
    color: #33CC00;
    padding: 8px;
    text-align: right;
}
main {
    background-color: #D3D3D3;
    display: block;
    margin-left: 105px;
    margin-right: 105px;
    grid-row: 4 / 5;
    grid-column: 1 / -1;
}
main h2 {
    color: #33CC00;
    text-align: center;
    font-family: Courier;
}
main p {
    margin: 10px;
}
main a {
    font-family: Georgia;
    font-size:20px;
}
i {
    opacity: 65%;
}
h3 {
    color:#6d696b;
    font-family: Georgia;
}
h4 {
    color: #33CC00;
    font-family: courier;
}
h5 {
    color: #f5f5f5;
    font-family: Georgia;
    font-size: 25px;
}
p {
    color:#000000;
    font-family: Verdana;
	font-size: 20px;
}
#section1 {
    display: block;
    margin-right: 305px;
    margin-left: 105px;
}
#section2 {
    display: block;
    margin-left: 230px;
    margin-right: 105px;
    padding-left: 15px;
}
footer {
    background-color:#33CC00;
    border-radius: 50px;
    text-align: center;
    height: 50px;
    grid-row: 6 / 7;
    grid-column: 1 / -1;
}
footer div {
    padding-top: 15px;
    font-family: Georgia;
    font-size: 25px;
}
.gameoptions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    grid-row-gap: 5px;
    grid-column-gap: 5px;
}
.gamebox {
    border: solid 2px;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

    #gamebox1 {
        background-image: url(gameimg/yoshi.jpg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
    #gamebox2 {
        background-image: url(gameimg/gba.jpg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
    #gamebox3 {
        background-image: url(gameimg/galaga.jpg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
    #gamebox4 {
        background-image: url(gameimg/3ds.jpg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
    #gamebox5 {
        background-image: url(gameimg/catan.jpg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
    #gamebox6 {
        background-image: url(gameimg/ds.jpg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }

.quoteoptions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(100px, auto);
    grid-row-gap: 5px;
    grid-column-gap: 5px;
}
.quotebox {
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

@media only screen and (max-width: 992px) {
    nav {
        position: center;
        margin-right: 10px;
        margin-left: 10px;
        float: none;
    }
    
    #lifehero {
        border: 0.5em;
    }
    #neshero {
        border: 0.5em;
    }
    #section1 {
        padding: 0.5em;
        margin: 1rem;
        text-align: justify;
    }
    #section2 {
        padding: 0.5em;
        margin: 1rem;
        text-align: justify;
    }
    .gameoptions {
        grid-template-columns: repeat(2,1fr)
    }
    .quoteoptions {
        display: grid;
        grid-template-columns: repeat(2,1fr);
        grid-auto-rows: auto;
        grid-row-gap: 5px;
        grid-column-gap: 5px;
    }
}

@media only screen and (max-width: 768px) {
    #wrapper {
        width:100% !important;
        max-width:100%;
        margin: 0;
        margin-left: none;
        margin-right: none;
    }
    #homehero {
        height: 300px;
    }
    #gamehero {
        height: 300px;
    }
    #quotehero {
        height: 300px;
    }
    #abouthero {
        height: 300px;
    }
    #contacthero {
        height: 300px;
    }
    #lifehero {
        float: none;
        margin-left: auto;
        margin-right: auto;
    }
    #neshero {
        float: none;
        margin-left: auto;
        margin-right: auto;
    }
    #section1 {
        margin-left: auto;
        margin-right: auto;
    }
    #section2 {
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
    }
    .gameoptions {
        grid-template-columns: repeat(1,1fr);
    }
    .quoteoptions {
        display: grid;
        grid-template-columns: repeat(1,1fr);
        grid-auto-rows: auto;
        grid-row-gap: 5px;
        grid-column-gap: 5px;
    }
}