#top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    width: auto;
    padding-bottom: 10px;
}

nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 25px;
    width: 100%;
    align-items: flex-end;
}

nav a {
    text-decoration: none;
    color: black;
    background-color: #1668a5;
    width: 25%;
    height: 35px;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    display: flex;
    justify-content: center;
    font-size: 30px;
    border: solid black 2px;
    align-items: flex-end;
}

nav a:hover {
    text-decoration: none;
    color: black;
    width: 25%;
    height: 35px;
    background-color: #1e8bdf;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    display: flex;
    justify-content: center;
    font-size: 30px;
    border: solid black 2px;
    align-items: flex-end;
}

#search {
    border: 5px solid #1668a5;
    border-radius: 35px;
}

#searchtext,
#searchsubmit {
    border: none;
    margin: 0;
    background: none;
    color: gray;
    padding-top: 5px;
    padding-bottom: 5px;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    font-size: 20px;
}

#searchtext {
    background-color: white;
    border-bottom-left-radius: 25vw;
    border-top-left-radius: 25vw;
}

#searchsubmit {
    color: black;
    background-color: #1668a5;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
}

#rockhero {
    max-height: 300px;
    width: auto;
}

#mainheader h1 {
    color: #1668a5;
    justify-content: center;
    text-decoration: underline;
    padding-bottom: 5vw;
    padding-top: 5vw;
    font-size: 50px;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
}

#mainheader {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-area: 1/5/2/9;
}

main {
    display: grid;
    grid-template-columns: minmax(0px, 1fr) repeat(10, minmax(0, 100px)) minmax(0px, 1fr);
    grid-template-rows: repeat(8, minmax(100px, 0));
}

#moon {
    grid-area: 3/3/6/6;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#moontext {
    display: flex;
    justify-content: center;
    background-color: lightgray;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    text-align: center;
}

#moon a {
    text-decoration: none;
    font-size: 25px;
    color: black;
}

#moontext:hover {
    box-shadow: 10px 10px 3px gray;
    transition: 1s;
}

#dwayne {
    grid-area: 3/8/6/12;
    display: flex;
}

#dwaynetext {
    display: flex;
    justify-content: center;
    background-color: lightgray;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    text-align: center;
}

#dwayne a {
    text-decoration: none;
    font-size: 25px;
    color: black;
}

#dwaynetext:hover {
    box-shadow: 10px 10px 3px gray;
    transition: 1s;
}

footer {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    background-color: gray;
    border: solid 2px black;
}

#news {
    display: flex;
    flex-direction: column;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    font-size: 25px;
}

#newsjoin {
    display: flex;
}

#menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

#menu h3 {
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    font-size: 25px;
}

#menu a {
    text-decoration: none;
    color: black;
}

#menu a:hover {
    text-decoration: underline;
    color: black;
}

@media only screen and (max-width: 900px) {
    #mainheader {
        display: flex;
        justify-content: center;
        align-items: center;
        grid-area: 1/5/2/10;
    }
}

@media only screen and (max-width: 720px) {
    #mainheader {
        display: flex;
        justify-content: center;
        align-items: center;
        grid-area: 2/5/4/10;
    }

    #mainheader h1 {
        color: #1668a5;
        justify-content: center;
        text-decoration: underline;
        padding-bottom: 5vw;
        padding-top: 5vw;
        font-size: 35px;
        font-family: "Comic Sans MS", "Comic Sans", cursive;
    }

    #moon {
        display: none;
    }

    #dwayne {
        grid-area: 4/4/-1/-1;
        display: flex;
    }

    nav {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: 25px;
        width: 100%;
        align-items: flex-start;
    }

    nav a {
        width: 100%;
    }

    nav a:hover {
        width: 100%;
    }

    #mobilehero {
        display: none;
    }

    #search {
        display: none;
    }
}

@media only screen and (max-width: 520px) {
    #mainheader {
        display: flex;
        justify-content: center;
        align-items: center;
        grid-area: 2/4/4/11;
    }
}