header {
    background-color: #B0C8EC;
    color: white;
    position: relative;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100vw;
    padding-left: 30px;
    padding-right: 20px;
}

.header-container img{
    height: 1.5em;
    width: auto;
}

/* Transparent header on main page */
.transparent-header {
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10;
}

/* Ensure the header content aligns with the normal header */
.transparent-header .header-container {
    max-width: 100vw;
    margin: 0 auto; 
    padding-left: 30px; 
    padding-right: 20px;
}

.transparent-header h1 a,
.transparent-header nav ul li a {
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Change background on scroll */
.scrolled {
    background-color: rgba(176, 200, 236, 1.1);
    transition: background-color 0.3s ease-in-out;
}

h1 a {
    color: white;
    text-decoration: none;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 15px;
    font-size: 1.25rem;
}

nav ul li a {
    text-decoration: none;
    position: relative;
    display: inline-block;
}

/* Default color for links (on '/') */
nav ul li a.home-link {
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Color for links on non-home pages */
nav ul li a.other-link {
    color: #1C375F;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hover effect for both home and other links */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: currentColor; /* Uses the current text color (white or blue) */
    left: 0;
    bottom: -2px;
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after {
    width: 100%;
}
