* {
    box-sizing: border-box;
}

body {
    margin: 0;
    /* Configure a "to bottom" CSS gradient background */
    background: linear-gradient(to bottom, #eeeeee, #ffffff);
    /* Stretch the gradient to the bottom of the site */
    background-attachment: fixed;
    color: #666666;
    font-family: Verdana, Arial, sans-serif;
}


/* Styles for the header element */

header {
    background-color: #003058;
    color: #FFFFFF;
    font-family: Georgia, serif;
    grid-row: 1 / 2;
    grid-column: 2 / -2;
}


/* Styles for header h1 */

header h1 {
    line-height: 140%;
    padding: 0.5rem;
    /* Configure the background image */
    background-image: url('utahtechlogo.svg');
    background-position: right;
    background-repeat: no-repeat;
    /* Set left padding */
    padding-left: 1em;
    /* Configure background-origin */
    background-origin: content-box;
    /* Remove margin bottom to eliminate space */
    margin: 0;
}


/* Styles for the nav element */

nav {
    background-color: #424242;
    /* Change background color */
    margin: 0;
    /* Remove margin */
    padding: 0;
    /* Remove padding */
    position: sticky;
    /* Add sticky position */
    top: 0;
    /* Keep menu at the top */
    font-weight: bold;
    /* Configure padding */
    padding: 0.5rem 2rem 0.5rem 0.5rem;
    grid-row: 2 / 3;
    grid-column: 2 / -2;
}

nav ul {
    margin: 0;
    padding: 0;
    display: flex;
    /* Display as a flex container */
    flex-flow: row nowrap;
    /* Make it a row and nowrap */
    list-style-type: none;
}

nav ul li {
    width: 100%;
}


/* Styles for the h2 element */

h2 {
    color: #424242;
    font-family: Georgia, serif;
}


/* Styles for the dt element (used on students page) */

dt {
    color: #003058;
    font-weight: bold;
}


/* Styles for the .ut class */

.ut {
    color: #BA1C21;
    font-weight: bold;
}


/* Styles for the footer element */

footer {
    font-size: 0.70rem;
    font-style: italic;
    text-align: center;
    /* Set padding for the footer */
    padding: 1rem;
    grid-row: 5 / 6;
    grid-column: 2 / -2;
}


/* Style for the #wrapper ID */

#wrapper {
    display: grid;
    grid-auto-rows: minmax(0, auto);
    grid-template-columns: minmax(0, 1fr) repeat(6, minmax(0, 175px)) minmax(0, 1fr);
}


/* Style for the h3 element */

h3 {
    color: #003058;
}


/* Style for the main element */

main {
    /* Configure padding for left and right */
    padding: 0 2rem;
    grid-row: 4 / 5;
    grid-column: 2 / -2;
    background: #ffffff;
}


/* Style for the homehero ID */

#homehero {
    /* Configure height */
    height: 300px;
    /* Display the homehero.jpg background image and center it */
    background-image: url('homehero.jpg');
    background-size: cover;
    background-position: center;
    grid-row: 3 / 4;
    grid-column: 2 / -2;
}


/* Style for the studenthero ID */

#studenthero {
    /* Configure height */
    height: 300px;
    /* Display the studenthero.jpg background image and center it */
    background-image: url('studenthero.jpg');
    background-size: cover;
    background-position: center;
    grid-row: 3 / 4;
    grid-column: 2 / -2;
}


/* Style for the facultyhero ID */

#facultyhero {
    /* Configure height */
    height: 300px;
    /* Display the facultyhero.jpg background image and center it */
    background-image: url('facultyhero.jpg');
    background-size: cover;
    background-position: center;
    grid-row: 3 / 4;
    grid-column: 2 / -2;
}


/* Prevent hyperlinks in the nav area from displaying the default underline */

nav a {
    text-decoration: none;
    color: #FFFFFF;
    padding: 1rem 0;
    /* Add padding */
    display: block;
    /* Display as a block element */
    text-align: center;
    text-decoration: none;
    transition: background-color 0.5s ease-out;
    /* Transition for background-color property */
}

header a {
    text-decoration: none;
    color: #FFFFFF;
    /* Set hyperlink color */
}


/* Style for images in main */

main img {
    float: right;
    padding-left: 2rem;
}

nav a:hover {
    background-color: #BA1C21;
    /* Change background color on hover */
}


/* New ID for the blue bar */


/* Task 3 */

#bluebar {
    background-color: #003058;
    grid-row: 1/2;
    grid-column: 1/-1;
}

#greybar {
    background-color: #424242;
    grid-row: 2/3;
    grid-column: 1/-1;
}

#homehero,
#studenthero,
#facultyhero {
    grid-row: 3/4;
    grid-column: 1/-1;
}

form {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 200px, 1fr;
    gap: 0.75rem;
    width: 100%;
}


/* Styles for input and text area in the form */

form input,
form textarea {
    font-size: 1rem;
    padding: 10px;
    color: #666666;
    background-color: #fafafa;
    border: none;
}


/* Styles for input and text area in focus state */

form input:focus,
form textarea:focus {
    outline: none;
    background-color: #f0f0f0;
}


/* Styles for label in the form */

form label {
    padding: 10px;
    text-align: right;
}


/* Styles for the submit button */

#mySubmit {
    width: 10rem;
    grid-column: 2 / 3;
    /* Place in columns 2 to 3 */
}


/* Styles for the #alumnihero ID */

#alumnihero {
    height: 300px;
    background-image: url('alumnihero.jpg');
    /* Add the new background image */
    background-size: cover;
    background-position: center;
    grid-row: 3 / 4;
    grid-column: 1 / -1;
}


/* Styles for the table element */

table {
    margin: 0 auto;
    /* Center the table */
    border: 1px solid #424242;
    /* Solid gray border */
    width: 100%;
    border-collapse: collapse;
    /* Collapse the borders */
}


/* Styles for table cells (td and th) */

td,
th {
    padding: 5px;
    /* 5 pixels of padding */
    border: 1px solid #424242;
    /* 1 pixel gray border */
    text-align: center;
    /* Center the content in table cells */
}


/* Styles for the text class */

.text {
    text-align: left;
    /* Left-align the text in text class */
}


/* Styles for alternate-row background color */

tr:nth-of-type(even) {
    background-color: #F3F3F3;
    /* Light-gray background for even rows */
}

main video {
    float: right;
    margin-left: 2em;
}

#shophero {
    height: 300px;
    background-image: url('shophero.jpg');
    background-size: cover;
    background-position: center;
    grid-row: 3 / 4;
    grid-column: 1 / -1;
}


/* Task 4 */

@media only screen and (max-width: 1100px) {
    #wrapper {
        grid-template-columns: minmax(0, 1fr) repeat(6, minmax(0, 150px)) minmax(0, 1fr);
    }
}


/* Task 5 */

@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,
    #studenthero,
    #facultyhero,
    #alumnihero,
    #shophero {
        grid-row: 2 / 3;
        grid-column: 5 / 8;
        height: auto;
    }
    main img {
        float: none;
        width: 100%;
        height: auto;
        padding-left: 0px;
    }
    main video {
        float: none;
        margin: 0;
        width: 100%;
        height: auto;
    }
}


/* Task 6 */

@media only 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,
    #shophero {
        display: none;
    }
}