* {
    box-sizing: border-box;
}

body {
    background-color:#FFFFFF;
    background: linear-gradient(to bottom, #eeeeee, #ffffff);
    background-attachment: fixed;
    color:#666666;
    font-family: 'Veranda', 'Arial', sans-serif;
    margin: 0px;
}

header {
    background-color:#003058;
    color:#FFFFFF;
    font-family: 'Georgia', serif;
    grid-row: 1 / 2;
    grid-column: 2 / 8;
}

header a {
    text-decoration: none;
    color:#FFFFFF;
}

h1 {
    line-height: 1.40rem;
    padding: .5rem;
    background-image:url("images/utahtechlogo.svg");
    background-position:right;
    padding-left: 1em;
    background-origin: content-box;
    margin:0;
    background-repeat: no-repeat;
}

nav {
    font-weight: bold;
    background-color: #424242;
    position:sticky;
    top:0;
    grid-row: 2 / 3;
    grid-column: 2 / 8;
}

nav a {
    text-decoration:none;
    color:#FFFFFF;
    padding: 1rem 0rem;
    display:block;
    text-align: center;
}

nav a:hover {
    background-color: #BA1C21;
}

nav ul {
    margin: 0px;
    padding: 0px;
    display: flex;
    flex-flow: row;
    flex-wrap: nowrap;
    list-style-type: none;
}

nav ul li {
    width: 100%;
}

h2 {
    color:#424242;
    font-family: 'Georgia', serif;
}

dt {
    color:#003058;
    font-weight: bold;
}

.ut {
    color: #ba1c21;
    font-weight: bold;
}

footer {
    font-size:.70rem;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

#wrapper {
    display: grid;
    grid-auto-rows: minmax(0px, auto);
    grid-template-columns: minmax(0px, 1fr) repeat(6, minmax(0, 175px)) minmax(0px, 1fr);
}

#bluebar {
    background-color: #003058;
    grid-row: 1 / 2;
    grid-column: 1 / 9;
}

#greybar {
    background-color: #424242;
    grid-row: 2 / 3;
    grid-column: 1 / 9;
}

h3 {
   color: #003058; 
}

main {
    padding-left: 2rem;
    padding-right: 2rem;
    grid-row: 4 / 5;
    grid-column: 2 / 8;
    background: #ffffff;
}

main img {
    float:right;
    padding-left: 2rem;
}

#homehero {
    height: 300px;
    background-image:url("images/homehero.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    grid-row: 3 / 4;
    grid-column: 1 / 9;
}

#studenthero {
    height: 300px;
    background-image:url("images/studenthero.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    grid-row: 3 / 4;
    grid-column: 1 / 9;
}

#facultyhero {
    height: 300px;
    background-image:url("images/facultyhero.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    grid-row: 3 / 4;
    grid-column: 1 / 9;
}

@media screen and (max-width: 1100px) {

    #wrapper{
        grid-template-columns: minmax(0px, 1fr) repeat(6, minmax(0, 150px)) minmax(0px, 1fr);
    }

}

@media screen and (max-width: 900px) {
    nav {
        grid-row: 2 / 3;
        grid-column: 1 / 5;
        position:static;
    }

    nav ul{
        flex-flow: column;
        flex-wrap: nowrap;
    }

    #homehero {
        height: auto;
        grid-row: 2 / 3;
        grid-column: 5 / 8;
    }
    
    #studenthero {
        height: auto;
        grid-row: 2 / 3;
        grid-column: 5 / 8;
    }
    
    #facultyhero {
        height: auto;
        grid-row: 2 / 3;
        grid-column: 5 / 8;
    }
    
    main img {
        float:none;
        width: 100%;
        height: auto;
        padding-left: 0px;
    }
}

@media screen and (max-width: 600px) {

    header h1 {
        background-image: none;
        text-align: center;
    }

    nav {
        grid-row: 2 / 3;
        grid-column: 1 / 9;
    }

    #homehero {
        display: none;
    }
    
    #studenthero {
        display: none;
    }
    
    #facultyhero {
        display: none;
    }
}