#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 {
    height: 300px;
    width: 100%;
}

#mainheader h1 {
    color: #1668a5;
    justify-content: center;
    text-decoration: underline;
    margin: 0;
    font-size: 50px;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
}

#mainheader {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-area: 1/2/3/12;
    text-align: center;
}

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));
}

form {
    grid-area: 3/4/8/10;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

#nfield {
    border: solid 5px #1668a5;
    border-radius: 5px;
    width: 300px;
    height: 50px;
    font-size: 35px;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    color: black;

}

#efield:focus {
    border: solid 2px #1668a5;
    border-radius: 5px;
    background-color: lightgray;
}

#efield {
    border: solid 5px #1668a5;
    border-radius: 5px;
    width: 300px;
    height: 50px;
    font-size: 35px;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    color: black;

}

#nfield:focus {
    border: solid 2px #1668a5;
    border-radius: 5px;
    background-color: lightgray;
}

#tfield {
    border: solid 5px #1668a5;
    border-radius: 5px;
    width: 300px;
    height: 50px;
    font-size: 35px;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    color: black;

}

#tfield:focus {
    border: solid 2px #1668a5;
    border-radius: 5px;
    background-color: lightgray;
}

#pfield {
    border: solid 5px #1668a5;
    border-radius: 5px;
    width: 300px;
    height: 50px;
    font-size: 23px;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    color: black;

}

#pfield:focus {
    border: solid 2px #1668a5;
    border-radius: 5px;
    background-color: lightgray;
}

#submit {
    border: solid 5px #1668a5;
    border-radius: 25px;
    width: 150px;
    height: 50px;
    font-size: 25px;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    color: black;
}

#submit:hover {
    border: solid 5px #1668a5;
    border-radius: 25px;
    width: 150px;
    height: 50px;
    font-size: 25px;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    color: white;
    background-color: #1668a5;
    transition: .5s;
}

footer {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-end;
    background-color: gray;
    border: solid 2px black;
}

#news {
    display: flex;
    flex-direction: column;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    font-size: 25px;
    padding-bottom: 30px;
}

#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;
    font-size: 18px;
}

#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;
    }
}