#wrapper {
    display: grid;
    grid-template-columns: minmax(0,1fr) repeat(6, minmax(0,175px)) minmax(0,1fr);
    grid-template-rows: repeat(6, 175px);
}

.side {
    float: right;
    width: 180px;
    height: 274px;
}

#logo{
    height: 103px;
    width: 97px;
    left: 0.9456787109375px;
    top: 1.23040771484375px;
    border-radius: 0px;
    margin-top: 50px;
}

body {
    background: linear-gradient(180deg, #97D9E1 0%, #D9AFD9 100%);
}

main {
    background-color: #fff;
    border-radius: 15px;
    grid-column: 3 / -2;
    grid-row: 1 / 5;
    font-family: lato;
    margin-top: 50px;
    font-size: 16px;
    padding: 20px;
}

main h2 {
    border-bottom: 1.5px solid black;
    padding-bottom: 7.5px;
}

header {
    grid-column: 2 / 3;
}

nav ul{
    display: flex;
    flex-direction: column;
    list-style-type: none;
    margin: 0;
    padding-left: 0;
}

nav ul li {
    padding: 10px;
    color: white;
    position: relative;
    height: 20px;
}

nav ul li:hover{
    background-color: white;
    border-radius: 5px 0px 0px 5px;
    color: black;
}

nav ul li a:hover {
    color: black;
}

.current-menu-item{
    background-color: white;
    border-radius: 5px 0px 0px 5px;
}

.current-menu-item a {
    color: black;
}

ul li a{
    text-decoration: none;
    color: white;
    width: 100%;
    height: 100%;
    padding-left: 5px;
    position: absolute;
    vertical-align: middle;
}   


footer {
    grid-column: 5 / 6;
    grid-row: 5 / 6;
    color: #fff;
}

@media only screen and (max-width: 960px) { 
    
    #wrapper{
        grid-template-rows: auto auto auto auto auto;
    }
    
    main{
        grid-column: 1 / -1;
        width: 100%;
        grid-row: 2 / 5;
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        margin-top: 0;
    }

    body{
        margin: 0;
    }

    header {
        grid-row: 1 / 2;
        grid-column: 1 / -1;
        width: 90%;
    }

    nav ul{
        flex-direction: row;
        justify-content: space-around;
    }

    .side{
        width: 95.5%;
        height: 600px;
        float: none;
        text-align: center;
        padding-left: 8px;
    }
    
    footer{
        text-align: center;
        grid-column: 4 / 6;
        height: 50px;
    }

    .current-menu-item{
        border-radius: 5px 5px 0px 0px;
        width: 15%;
        margin: 0;
    }

    nav ul li{
        width: 50px;
    }

    nav ul {
        padding-left: 40px;
    }

    nav ul li a{
        padding: 0px;
    }

    #logo{
        margin-left: calc(86% / 2);
    }

    p, h2 {
        padding: 8px;
    }

    nav ul li:hover{
        border-radius: 5px 5px 0px 0px;
    }
}