/* Custom styles to complement Water.css */
body {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    margin-bottom: 2rem;
}

/* Rotating header banner */
.header-image {
    width: 100%;
    height: 225px; /* ~16:9 ratio for an 800px container */
    background-size: cover;
    background-position: center;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.header-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.header-slide.active {
    opacity: 1;
    z-index: 2;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    list-style: none;
    gap: 1rem;
}

.content-section {
    margin-bottom: 2rem;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background-color: #ffff99;
    text-align: center;
    display: none;
}

footer {
    margin-top: 2rem;
    border-top: 1px solid #ccc;
    padding-top: 1rem;
    text-align: center;
}

/* Publication styling */
.publication {
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}
