


* {
    box-sizing: border-box;
}



body {
    background-color: #fff;
    color: #333;
    font-family: Verdana, Arial, sans-serif;
    margin: 0;
    padding: 0;
}



h1 {
    background-image: url('images/utahtechlogo.svg'); /* Adjust the URL if necessary */
    background-position: right;
    background-repeat: no-repeat;
    padding-left: 1em;
    background-origin: content-box;
    margin-bottom: 0;
}

header a {
    text-decoration: none; /* Remove underline */
    color: #FFFFFF; /* Set font color to white */
}


main {
    grid-row: 4 / 5; /* Occupies row 4 */
    grid-column: 2 / -2; /* Occupies columns 2 to 8 */
    background-color: #ffffff; /* Set background color to white */
}

main img {
    float: right; /* Float the image to the right */
    padding-left: 2rem; /* Apply 2rem of padding to the left */
}



a {
    color: blue;
    text-decoration: underline;
    text-transform: uppercase;
}

a:hover {
    text-decoration: none;
}

/* Headers */
header {
    grid-row: 1 / 2; /* Occupies row 1 */
    grid-column: 2 / -2; /* Occupies columns 2 to 8 */
    background-color: #003058; /* Header background color */
    color: #fff; /* Text color for visibility */
    padding: 1rem; /* Add padding for spacing */
}
header h1 {
    margin: 0; /* Sets all margins to 0 */
    font-weight: 900; /* Example of existing styles */
    font-family: serif; /* Example of existing styles */
}


h1 {
    font-weight: 900;
    text-align: left;
    font-family: serif;
}

h2 {
    font-family: serif;
}

p {
    line-height: 1.25rem;
}

/* Navigation */
nav {
    grid-row: 2 / 3; /* Keep grid positioning */
    grid-column: 2 / -2; /* Keep grid positioning */
    background-color: #424242; /* Change background color to dark grey */
    padding: 0; /* Remove all padding */
    margin: 0; /* Remove all margin */
    position: sticky; /* Keep the menu visible when scrolling */
    top: 0; /* Keep the menu at the top of the page when scrolling */
    z-index: 1000; /* Optional: Ensure it appears above other content */
}

nav ul {
    margin: 0; /* Add a margin of 0px */
    padding: 0; /* Add a padding of 0px */
    display: flex; /* Set display to flex */
    flex-flow: row nowrap; /* Make it a row and nowrap */
    list-style-type: none; /* Remove list style */
}

nav ul li {
    width: 100%; /* Set width to 100% */
}

nav a:hover {
    background-color: #BA1C21; /* Apply background color on hover */
}





nav a {
    font-weight: bold; /* Keep bold font weight */
    text-transform: unset; /* Keep original text transformation */
    text-decoration: none; /* Remove underline */
    color: #FFFFFF; /* Set text color to white */
    padding: 1rem 0; /* Add padding: 1rem top/bottom, 0 left/right */
    display: block; /* Make the links block-level elements */
    text-align: center; /* Center align the text */
}




dt a {font-weight: bold;
color: #003058;}
h3 {
    font-weight: bold;
    color: #003058;;
}

dt {
    font-weight: bold;
    color: #003058;
}
/* Hero Sections */
#homehero {
    background-color: lightgray;
    grid-row: 3 / 4;
    grid-column: 1 / -1;
    grid-row: 3 / 4; /* Occupies row 3 */
    grid-column: 2 / -2; /* Occupies columns 2 to 8 */
    height: 300px; /* Set the height */
    background-image: url("images/homehero.jpg");  
    background-size: cover; /* Cover the area */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent image repeat */
}

#studenthero {
    background-color: lightblue;
    grid-row: 3 / 4;
    grid-column: 1 / -1;
    grid-row: 3 / 4; /* Occupies row 3 */
    grid-column: 2 / -2; /* Occupies columns 2 to 8 */
    height: 300px; /* Set the height */
    background-image: url("images/studenthero.jpg"); /* Your background image */
    background-size: cover; /* Cover the area */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent image repeat */
}

#facultyhero {
    background-color: lightgreen;
    grid-row: 3 / 4;
    grid-column: 1 / -1;
    grid-row: 3 / 4; /* Occupies row 3 */
    grid-column: 2 / -2; /* Occupies columns 2 to 8 */
    height: 300px; /* Set the height */
    background-image: url("images/facultyhero.jpg"); /* Your background image */
    background-size: cover; /* Cover the area */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent image repeat */
}


/* Wrapper */
#wrapper {
    background-color: #fff;
    width: 80%;
    margin: 0 auto;
    display: grid;
    grid-template-rows: repeat(4, 100px); /* Adjust row heights as necessary */
    grid-template-columns: repeat(9, 1fr); /* 9 columns grid */
}
/* Footer */


/* Media Query for screen widths of 1100px and below */
@media only screen and (max-width: 1100px) {
    #wrapper {
        grid-template-columns: 
            1fr /* Column 1 */
            minmax(0, 150px) /* Column 2 */
            minmax(0, 150px) /* Column 3 */
            minmax(0, 150px) /* Column 4 */
            minmax(0, 150px) /* Column 5 */
            minmax(0, 150px) /* Column 6 */
            minmax(0, 150px) /* Column 7 */
            1fr /* Column 8 */;
    }
}

/* Media Query for screen widths of 900px and below */
@media only screen and (max-width: 900px) {

    /* Nav grid layout and position update */
    nav {
        grid-row: 2 / 3;      /* Set nav to occupy rows 2 to 3 */
        grid-column: 1 / 5;   /* Set nav to occupy columns 1 to 5 */
        position: static;     /* Override sticky and set nav position to static */
    }

    /* Nav ul layout update */
    nav ul {
        flex-flow: column nowrap; /* Change flex layout to a single column */
    }

    /* Homehero, Studenthero, Facultyhero grid and height update */
    #homehero,
    #studenthero,
    #facultyhero {
        grid-row: 2 / 3;    /* Set them to occupy rows 2 to 3 */
        grid-column: 5 / 8; /* Set them to occupy columns 5 to 8 */
        height: auto;       /* Set their height to auto */
    }

    /* Main img update */
    main img {
        float: none;         /* Remove floating */
        width: 100%;         /* Set width to 100% */
        height: auto;        /* Set height to auto */
        padding-left: 0px;   /* Remove left padding */
    }
}

/* Media Query for screen widths of 600px and below */
@media only screen and (max-width: 600px) {

    /* Header h1 update */
    header h1 {
        background-image: none;  /* Remove the background image */
        text-align: center;      /* Center align the text */
    }

    /* Nav grid layout update */
    nav {
        grid-row: 2 / 3;       /* Set nav to occupy rows 2 to 3 */
        grid-column: 1 / -1;   /* Set nav to occupy full-width (columns 1 to the last) */
    }

    /* Homehero, Studenthero, Facultyhero display update */
    #homehero,
    #studenthero,
    #facultyhero {
        display: none;   /* Hide these sections on small screens */
    }
}




footer {
    text-align: center;
    grid-row: 5 / 6;
    grid-column: 2 / -2;
    background-color: #333;
    color: #fff;
}
