* {
    box-sizing: border-box;
}

body {
    background-color: #FFF;
    color: #666;
    font-family: Verdana, Arial, sans-serif;
    background: linear-gradient(to bottom,#eeeeee, #ffffff);
    background-attachment: fixed;
    margin: 0px;
}

#bluebar {
    background-color: #003058;
    grid-row: 1 / 2;
    grid-column: 1 / -1;
}
#greybar {
    background-color: #424242;
    grid-row: 2 / 3;
    grid-column: 1 / -1;
}
header {
    background-color: #003058;
    color: #FFF;
    font-family: Georgia, sans-serif;
    grid-row: 1 / 2;
    grid-column: 2 / -2;
}

header h1{
    font-size: 140%;
    padding: .5rem;
    background-image: url(utahtechimages/utahtechlogo.svg);
    background-position: right;
    background-repeat: no-repeat;
    padding-left: 1em;
    background-origin: content-box;
    margin: 0;
}

header a {
    text-decoration: none;
    color: inherit;
}

nav {
    font-weight: bold;
    background-color: #424242;
    grid-row: 2 / 3;
    grid-column: 2 / -2;
    position: sticky;
    top: 0;
}

nav ul {
    margin: 0px;
    padding: 0px;
    display: flex;
    flex-flow: row nowrap;
    list-style-type: none;
}

nav ul li {
    width: 100%;
}

nav a { 
    text-decoration: none; 
    color: #FFFFFF;
    padding: 1rem 0rem;
    display: block;
    text-align: center;
}

nav a:hover {
    background-color: #BA1C21;
}

main img {
    float: right;
    padding-left: 2rem;
}

#homehero {
    background-image: url(utahtechimages/homehero.jpg);
    height: 300px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    grid-row: 3 / 4;
    grid-column: 1 / -1;
}
#studenthero {
    background-image: url(utahtechimages/studenthero.jpg);
    height: 300px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    grid-row: 3 / 4;
    grid-column: 1 / -1;
}
#facultyhero {
    background-image: url(utahtechimages/facultyhero.jpg);
    height: 300px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    grid-row: 3 / 4;
    grid-column: 1 / -1;
}

#alumnihero {
    background-image: url(utahtechimages/alumnihero.jpg);
    height: 300px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    grid-row: 3 / 4;
    grid-column: 1 / -1;
}

main {
    padding-left: 2rem;
    padding-right: 2rem;
    grid-row: 4 / 5;
    grid-column: 2 / -2;
    background-color: #ffffff;
}

h2 {
    color: #424242;
    font-family: Georgia, sans-serif;
}

h3 {
    color: #003058;
}

dt {
    font-weight: bold;
    color: #003058;
}

.ut{
    font-weight: bold;
    color: #BA1C21;
}

#wrapper {
    display: grid;
    grid-auto-rows: auto;
    grid-template-columns: minmax(0px,1fr) repeat(6, minmax(0px, 175px)) minmax(0px,1fr);
}

table{
    margin: 0 auto;
    border: 1px solid #424242;
    width: 100%;
    border-collapse: collapse;
}

tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

th, td {
    padding: 5px;
    border: 1px solid #424242;
}

th {
    text-align: center;
}

td {
    text-align: left;
}

form {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 200px 1fr;
    gap: 0.75rem;
    width: 100%;
}

label {
    padding: 10px;
    text-align: right;
}

input, textarea {
    font-size: 1rem;
    padding: 10px;
    color: #666666;
    background-color: #fafafa;
    border: none;
}
textarea:focus, input:focus {
    outline: none;
    background-color: #f0f0f0;
}

footer {
    font-size: .70rem;
    font-style: italic;
    text-align: center;
    padding: 1rem;
    grid-row: 5 / 6;
    grid-column: 2 / -2;
}

#mySubmit {
    width: 10rem;
    grid-column: 2 / 3;
}


@media only screen and (max-width: 1100px) {
  #wrapper {
    grid-template-columns: minmax(0px,1fr) repeat(6, minmax(0px, 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 nowrap;
    }
    #homehero, #studenthero, #facultyhero, #alumnihero {
        height: auto;
        grid-row: 2 / 3;
        grid-column: 5 / 8;
    }
    ::selection {
        float: none;
        width: 100%;
        padding-right: 0px;
    }
}

@media screen and (max-width: 600px){
    header h1 {
        background-image: none;
        text-align: center;
    }
    nav {
        grid-row: 2 / 3;
        grid-column: 1 / -1;
    }
    #homehero, #studenthero, #facultyhero, #alumnihero {
        display: none;
    }
  
}