* {
    box-sizing: border-box;
}

body {
    margin:0px;
    background-image:linear-gradient(#eeeeee,#ffffff);
    color:#666666;
    font-family: Verdana;
    background-attachment: fixed;
}

header {
    background-color:#003058;
    color:#FFFFFF;
    font-family: Georgia;
    grid-area: 1 / 2 / 2 / 8;
}

video {
    float:right;
    margin-left:2em;
}

header h1 {
    line-height: 140%;
    padding-left: 1em;
    background-image: url("images/utahtechlogo.svg");
    background-repeat:no-repeat;
    background-position: right;
    background-origin: content-box;
    margin:0;
}

header a {
    text-decoration: none;
    color: #FFFFFF;
}

main {
    padding-left: 2rem;
    padding-right: 2rem;
    background-color: #FFFFFF;
    grid-area: 4 / 2 / 5 / 8;
}

main img {
    float:right;
    padding-left:2rem;
}

nav {
    font-weight: bold;
    background-color: #424242;
    position:sticky;
    top: 0;
    grid-area: 2 / 2 / 3 / 8;
}

nav ul {
    margin: 0px;
    padding: 0px;
    display: flex;
    flex-flow: row nowrap;
    list-style-type: none;
}

nav ul li {
    width: 100%;
}

nav a {
    color: #FFFFFF;
    padding: 1rem 0rem;
    display: block;
    text-align: center;
    transition: background-color 0.5s ease-out;
}

nav a:hover{
    background-color: #BA1C21;
}

h2 {
    color: #424242;
    font-family: Georgia;
}

h3 {
    color:#003058
}

dt {
    color: #003058;
    font-weight: bold;
}

.ut {
    color: #BA1C21;
    font-weight: bold;
}

footer {
    font-size: .70rem;
    font-style: italic;
    text-align: center;
    grid-area: 5 / 2 / 6 / 8;
}

#wrapper {
    display:grid;
    grid-auto-rows:minmax(0px,auto);
    grid-template-columns: minmax(0px, 1fr) repeat(6, minmax(0, 175px)) minmax(0px, 1fr);
}

#footer {
    padding:1rem
}

#homehero {
    background-image: url("images/homehero.jpg");
    background-size: cover;
    height:300px;
    background-repeat: no-repeat;
    background-position: center;
    grid-area: 3 / 1 / 4 / 9;
}

#studenthero {
    background-image: url("images/studenthero.jpg");
    background-size: cover;
    height: 300px;
    background-position: center;
    grid-area: 3 / 1 / 4 / 9;
}

#facultyhero {
    background-image: url("images/studenthero.jpg");
    background-size: cover;
    height: 300px;
    background-position: center;
    grid-area: 3 / 1 / 4 / 9;
}

#alumnihero {
    background-image: url("images/alumnihero.jpg");
    background-size: cover;
    height: 300px;
    background-position: center;
    grid-area: 3 / 1 / 4 / 9;
}

nav a {
    text-decoration:none;
}

#bluebar {
    background-color: #003058;
    grid-area: 1 / 1 / 2 / 9;
}

#greybar {
    background-color: #424242;
    grid-area: 2 / 1 / 3 / 9;
}

form {
    display:grid;
    grid-template-rows: auto;
    grid-template-columns: 200px 1fr;
    gap: 0.75rem;
    width:100%;
}

input, textarea {
    font-size: 1rem;
    padding: 10px;
    color:#666666;
    background-color:#fafafa;
    border-style: none;
}

input:focus {
    outline: none;
    background-color: #f0f0f0;
}

textarea:focus {
    outline: none;
    background-color: #f0f0f0;
}

label {
    padding: 10px;
    text-align: right;
}

#mySubmit {
    width:10rem;
    grid-column: 2 / 3;
}

table {
    margin:0 auto;
    border: 1px solid #424242;
    width:100%;
    border-collapse:collapse;
}

th {
    padding: 5px;
    border: 1px solid #424242;
}

td {
    padding: 5px;
    border: 1px solid #424242;
    align-self: center;
    text-align: center;
}

tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

#text {
    text-align: left;
}

@media only screen and (max-width: 1100px) {
    #wrapper {
        grid-template-columns:minmax(0px, 1fr) repeat(6, minmax(0, 150px)) minmax(0px, 1fr);
    }
}

@media only screen and (max-width: 900px) {
    nav {
        grid-area: 2 / 1 / 3 / 5;
        position:static;
    }
    nav ul {
        flex-flow:column nowrap;
    }
    #homehero {
        grid-area: 2 / 5 / 3 / 8;
        height:auto;
    }
    #studenthero {
        grid-area: 2 / 5 / 3 / 8;
        height:auto;
    }
    #facultyhero {
        grid-area: 2 / 5 / 3 / 8;
        height:auto;
    }
    #alumnihero {
        grid-area: 2 / 5 / 3 / 8;
        height:auto;
    }
    section {
        float:none;
        width:100%;
        padding-right:0px;
    }
    video {
        float:none;
        margin:0;
        width:100%;
        height:auto;
    }
}

@media only screen and (max-width: 600px) {
    header h1 {
        background-image:none;
        text-align: center;
    }
    nav {
        grid-area: 2 / 1 / 3 / 9;
    }
    #homehero {
        display:none;
    }
    #studenthero {
        display:none;
    }
    #facultyhero {
        display:none;
    }
    #alumnihero {
        display:none;
    }
}