/* 
 CS 3550 Web Development
 University of Utah Spring 2025
 Professor Johnson 
 Joshua Keith u1423033
 January 2025
 This CSS file is used to style 5 pages: profile.html, login.html, courses.html, course.html, and index.html
 The goal of this CSS file is to style the pages uniformily. 
 
*/

html, body {
    margin: 0;
    padding: 0;
}

header, main, nav {
    font-family: 'IBM Plex Sans', sans-serif;
    line-height: 1.25;

    margin: 0 auto;

}

main {
    max-width: 50rem;
}

header {
    background-color: #ddd ;
    box-shadow: 0 0 5px gray;
    font-size: 125%;

}

nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    
    padding-top: .5rem;
    padding-bottom: .5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 50rem;
}

nav a {
    color: darkgray;
    text-decoration: none;
}

nav a:hover{
    text-decoration: underline;
}

main {
    margin-top: 3rem;
}

h1, h3 {
    font-size: 100%;
    margin-bottom: 1rem;
}

h2 {
    font-size: 150%;
    border-bottom: 2px solid #ddd;
    margin-bottom: 1rem;
}

p, li, table {
    margin-bottom: 1rem;
}

table {
    line-height: 1.5;
    width: 100%;

    td, th {
        text-align: left;
    }

    .number {
        text-align: right;
    }
}

#alignRight {
    text-align: right;
}

form.login {
    font-size: 150%;
    display: grid;
    grid-template-columns: 50% 50%;
    row-gap: 1rem;
}

form.login label[for="username"], form.login label[for="password"] {
    grid-column: 1;
    text-align: center;
}

form.login #username, form.login #password {
    grid-column: 2;
    width: 100%;
}

form.login button {
    grid-column: span 2;
    display: block;
    margin: auto;
}

#actionCard {
    background-color: #b1c3de;
    border: solid #204a87;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-right: 1rem; 
    padding-left: 1rem;
}

#actionCard a{
    float: right;
}

#codeSample {
    font-family: 'IBM Plex Mono', monospace;
}

#courseName {
    font-weight: bold;
    margin-right: 1rem;
}

/*A4: Login red/invalid indicators */
output{
    color: red;
    font-weight: bold;
}

input:invalid {
    border: 2px solid red;
}

/* A6 P4: Profile (Student) -- Sort table on "Score" clicked -- Arrow to indicate sort order */
th.sort-column { cursor: pointer; }
th.sort-asc::after { content: " \25b2"; }
th.sort-desc::after { content: " \25bc"; }

/* Text color for for submitting a file */
#red {
    color: red;
}

#green {
    color: green;
}