/* header.css – shared by every page: header, navbar, dropdown */

/* Header layout and centering */
header {
    width: 100%;
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;
}

header h1 {
    margin: 0;
}

header h1 img {
    width: 100%;
    max-width: 720px;
    margin: 24px auto;
    display: block;
    box-sizing: border-box;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    padding: 12px;
    background-image: url('../images/blackpapertexture.jpg');
    background-size: contain;
    transition: box-shadow 0.3s cubic-bezier(.4,2,.6,1), transform 0.3s cubic-bezier(.4,2,.6,1);
}

header h1 img:hover,
header h1 img:focus {
    box-shadow: 0 12px 24px 0 rgba(0,0,0,0.35), 0 24px 48px 0 rgba(0,0,0,0.22);
    transform: translateY(-8px) scale(1.03);
    z-index: 2;
}

/* Navbar styles */
.navbar {
    width: 100%;
    background-image: url('../images/blackpapertexture.jpg');
    background-size: contain;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.navbar-list {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    gap: 0;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 24px;
    margin-right: 24px;
    width: auto;
}

.navbar-list > li {
    position: relative;
    margin: 0;
}

.navbar-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    padding: 14px clamp(0px, 2vw, 12px);
    font-size: clamp(1em, 3vw, 1.3em);
    border-radius: 4px;
    transition: background 0.2s;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100vw;
    height: 50px;
    margin: 0;
    text-align: center;
}

.navbar-list a:hover,
.navbar-list .dropdown:hover > a {
    background: rgba(255,255,255,0.12);
}

/* Dropdown styles */
.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 100%;
    background: var(--darker-color, #222);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 10;
    border-radius: 0 0 6px 6px;
    padding: 0;
    list-style: none;
}

.dropdown-content li {
    margin: 0;
}

.dropdown-content a {
    padding: 12px 18px;
    border-radius: 0;
    white-space: nowrap;
    font-size: clamp(0.9em, 2vw, 1.1em);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}