body {
    background-color: #b2d3fe;
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    margin: 20px;
}

header {
    background-color: #58735E;
}

header img {
    width: 150px;
    display: block;
    margin: 0 auto;
}

.navbar-brand img {
    width: 70px;
    height: auto;
}

nav a:hover {
    color: rgb(42, 211, 30);
    transform: scale(1.1);
    transition: color 0.4s ease, font-size 0.4s ease, transform 0.4s ease;
}

main img {
    display: block;
    margin: 0 auto;
}

h1 {
    color: rgb(255, 252, 55);
}

table {
    padding: 0;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0;
    background-color: antiquewhite;
    color: rgb(22, 31, 75);
    border: 5px outset black;
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid #cccccc;
}

th {
    background-color: #58735e;
    color: white;
}

tr:nth-child(even) {
    background-color: #e1e8df;
}

tbody tr {
    transition: background-color 0.3s ease;
}

/* Highlights table rows when hovered over to make them easier to read. */
tbody tr:hover {
    background-color: #d0ddd0;
}

table tr:first-child th:first-child {
    border-top-left-radius: 8px;
}

table tr:first-child th:last-child {
    border-top-right-radius: 8px;
}

table tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

table tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

form {
    width: 500px;
}

img {
    border: 8px groove black;
}

/* Creates a centered, rounded footer instead of a full-width banner. */
#site-footer {
    background-color: #0f172a;
    color: #cbd5e1;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.85rem;
    padding: 1rem;
    text-align: center;
    width: fit-content;
    margin: 30px auto;
    border-radius: 10px;
}

#assignment-link {
    text-align: center;
}

#assignment-link a {
    background-color: #f8f9fa;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #754343;
}

#assignment-link a:hover {
    background-color: lightgrey;
    transition: background-color 0.4s ease;
}

#dmacc-logo {
    border: none;
}

/* Gives the page titles a rounded background to make them stand out. */
.title {
    background-color: rgb(118, 66, 66);
    text-align: center;
    width: fit-content;
    margin: 0 auto;
    padding: 10px 20px;
    border-radius: 10px;
}

.bio {
    color: rgb(22, 31, 75);
    font-size: 18px;
    line-height: 1.6;
}

.hidden {
    display: none;
}

.album-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.album-layout table {
    margin: 0;
}

.album-preview {
    width: 240px;
    min-height: 240px;
}

#album-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.album-layout caption {
    caption-side: top;
    text-align: center;
    color: rgb(22, 31, 75);
    font-weight: bold;
}