* {
    box-sizing: border-box;
}


body {
    background-color: #FFFFFF;
    color:#666666;
    background-image: linear-gradient(to bottom,#eeeeee, #ffffff);
    font-family: Verdana, Arial, "sans-serif";
    background-attachment: fixed;
    margin: 0px;
}
header{
    background-color: #003058;
    color: #FFFFFF;
    font-family: Georgia, "sans-serif";
    grid-row: 1 / 2;
    grid-column: 2 / 8;


}

header h1{
    line-height: 140%;
    padding: .5rem;
    background-image: 
    url(utahtechimages/utahtechlogo.svg);
    background-position: right;
    background-repeat: no-repeat;
    padding-left: 1em;
    background-origin: border-box;
    background-size: 8%;
    /*this wasn't part of the assignment but I like it more this way*/
    margin: 0;

}

header a{
    text-decoration: none;
    color: #FFFFFF;
}

nav{
    font-weight: bold;
    background-color: #424242;
    grid-row: 2 / 3;
    grid-column: 2 / 8;
    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%;
}

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

h3{
    color: #003058;
}

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

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

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

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


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

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

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

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

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

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

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

nav a:hover{
    background-color: #ba1c21;
    transition: 0.5s;
}

#bluebar {
    background-color:#003058;
    grid-row: 1 / 2;
    grid-column: 1 / 9;
}

#greybar {
    background-color: #424242;
    grid-row: 2 / 3;
    grid-column: 1 / 9;

}


@media only screen and (max-width: 1100px){
    #wrapper{
        display: grid;
        grid-auto-rows: minmax(0px, auto);
        grid-template-columns: minmax(0px, 1fr) repeat(6, minmax(0, 150px)) minmax(0px, 1fr);
    }    
}


@media only screen and (max-width: 900px){
    nav{
        grid-row: 2 / 3;
        grid-column: 1 / 5;
        position: static;
    }
    nav ul{
        flex-flow: column nowrap;
    }

    #homehero{
        grid-row: 2 / 3;
        grid-column: 5 / 8;
        height: auto;
    }
    #studenthero{
        grid-row: 2 / 3;
        grid-column: 5 / 8;
        height: auto;
    }
    #facultyhero{
        grid-row: 2 / 3;
        grid-column: 5 / 8;
        height: auto;
    }
    #alumnihero{
        grid-row: 2 / 3;
        grid-column: 5 / 8;
        height: auto;
    }
    #shophero{
        grid-row: 2 / 3;
        grid-column: 5 / 8;
        height: auto;
    }

    section{
        float: none;
        width: 100%;
        padding: 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-row: 2 / 3;
        grid-column: 1 / 9;
    }
    #homehero{
        display: none;
    }
    #facultyhero{
        display: none;
    }
    #studenthero{
        display: none;
    }
    #alumnihero{
        display: none;
    }
    #shophero{
        display: none;
    }
}



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

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

input, 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;
}


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

td{
    text-align: center;
}

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

.text {
    text-align: left;
}


video {
    float: right;
    margin-left: 2em;
}
