* {
    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);
}

#bar {
    background-color: #6d696b;
    border-radius: 25px;
    grid-row: 1/2;
    grid-column: 1/-1;
}

.active {
    text-decoration: underline;
}

#logo {
    display: block;
    float: left;
}

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;
}

nav a:hover {
    background-color: #f5f5f5;
    border-radius: 15px;
    transition: background-color 0.5s;
}

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;*/
}

nav a {
    border-bottom: 2px;
}

header nav a {
    padding: 8px;
    text-align: right;
}

a {
    text-decoration: none;
}

a:link {
    color: #33CC00;
}

a:active {
    color: #f5f5f5;
}

a:visited {
    color: #33CC00;
}

header h1 a:hover {
    background-color: #f5f5f5;
    border-radius: 15px;
    transition: background-color 0.5s;
}

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: 15px;
}

h3 {
    margin-left: 5px;
    color: #6d696b;
    font-family: Georgia;
}

p {
    color: #000000;
    font-family: Verdana;
    font-size: 20px;
}

footer {
    background-color: #6d696b;
    border-radius: 15px;
    text-align: center;
    height: 50px;
    grid-row: 6 / 7;
    grid-column: 1 / -1;
}

footer div {
    padding-top: 15px;
    font-family: Georgia;
    font-size: 25px;
    color: #33CC00;
}

    #game1hero {
        height: 570px;
        background-image: url(../gameimg/yoshi.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;
    }

    #game2hero {
        height: 570px;
        background-image: url(../gameimg/gba.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;
    }

    #game3hero {
        height: 570px;
        background-image: url(../gameimg/galaga.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;
    }

    #game4hero {
        height: 570px;
        background-image: url(../gameimg/3ds.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;
    }

    #game5hero {
        height: 570px;
        background-image: url(../gameimg/catan.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;
    }

    #game6hero {
        height: 570px;
        background-image: url(../gameimg/ds.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;
    }

h4 {
    text-align: center;
    color: #6d696b;
    font-family: Courier;
    line-height: 5px;
}

.selections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background-color: #333;
    transition: ease-in 0.5s;
    overflow: hidden;
    border-radius: 5px;
}

.selections a {
    width: 100%;
    float: left;
    color: #33CC00;
    font-family: Courier;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    border-radius: 5px;
}

.selections a:hover {
    background-color: #ddd;
    color: black;
}

.selections a:active {
    background-color: #04AA6D;
    color: white;
}



@media only screen and (max-width: 992px) {
    nav {
        position: center;
        margin-right: 10px;
        margin-left: 10px;
        float: none;
    }
    .selections {
        grid-template-columns: repeat(2, 1fr);
    }
}



@media only screen and (max-width: 768px) {
    #wrapper {
        width: 100% !important;
        max-width: 100%;
        margin: 0;
        margin-left: 0;
        margin-right: 0;
    }

    nav {
        width: 100%;
        float: left;
        margin: 0 0 1em 0;
        padding: 0;
    }

    nav ul {
        list-style: none;
        margin: 0 auto;
    }
    .selections {
        grid-template-columns: repeat(1, 1fr);
    }
}