html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
html {
    max-width: 80%;
    margin: 0 auto;
    background-color: beige;
}

.wrapper {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 10px;
}
header {
    width: 95%;
    margin: 0 auto;
    margin-top: 30px;
    text-align: center;
    border: 1px solid black;
    border-radius: 25px;
    background-color: aqua;
}
header h1 {
    font-size: .8rem;;
}

.mainNav ul {
    list-style-type: none;
    margin: 0px;
    padding: 0;
    overflow: hidden;
    text-align: center;
/*    position: fixed;*/
    top: 0;
    width: 100%;
}
.mainNav li {
    display: inline;
    padding: 5px;
} 
/* Change the nav link color on hover */
li a:hover {
    background-color: #F9DED9;
}
main {
    display: grid;
    grid-template-columns: 1fr;
}
main h1, h3 {
    margin: 0;
    text-align: center;
}
figure {
    justify-self: center;
}
.mainPic {
    border: 1px solid black;
    box-shadow: 10px 10px 5px #888888;
}
aside {
    justify-self: center;
}
.menu ul {
    margin-top: 0px;
    margin-bottom: 0px;
}
.menu li {
    padding: 5px;
}
footer {
    text-align: center;
    width: 95%;
    margin: 0 auto;
    border: 1px solid black;
    border-radius: 25px;
    background-color: lightgray
}
footer p {
    font-size: .8rem;
    margin-top: 2px;
    margin-bottom: 2px;
}

/*Design for larger screens*/
@media (min-width:550px) {
    html {
        max-width: 80%;
    }
    header {
        width: 60%;
    }
    main {
        margin: 0 auto;
        display: grid;
        grid-template-columns: 2fr;
        grid-template-areas:
            "title title"
            "aside figure";
    }
    .title {
        margin-bottom: 40px;
        grid-area: title;
    }
    figure {
        grid-area: figure;
    }
    aside {
        grid-area: aside;
    }
    footer {
        width: 60%;    
    }
}