* {
    font-family: norse;
    font-weight: 400;
    font-style: normal;
}

.menubar {
    position: fixed;
    left: 0;
    top: 0;
    width: 15vw;      /* 10% of screen width */
    height: 100vh;    /* full screen height */
    background-color: #162114;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menuitem {
    list-style: none;
    padding: 0 0 0 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menuitem a {
    text-decoration: none;
    color: #ffedd2;
    font-size: 2rem;
}

.menuitem a:active {
    color: #eb3d00;
}

.content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;          /* full viewport height */
    margin-left: 10vw;
    box-sizing: border-box;
    padding: 20px 0;            /* small equal gap top and bottom */
}

.image-container {
    position: relative;
    width: 80%;
    max-width: 1000px;
}

.carousel {
    position: relative;
}

.slide {
    width: 100%;
    max-height: calc(100vh - 40px);   /* accounts for the 20px padding top+bottom */
    object-fit: contain;
    display: none;
    border-radius: 10px;
}

.slide.active {
    display: block;
}

body {
    background-color: #162114;
    margin: 0px;
}

.hamburger {
    display: none;
}




/* ── Mobile ── */
@media (max-width: 768px) {

    /* top bar */
    .menubar {
        width: 100vw;
        height: 60px;
        flex-direction: row;
        justify-content: flex-end;   /* push hamburger to the right */
        align-items: center;
        padding: 0 20px;
        box-sizing: border-box;
        z-index: 1000;
    }

    /* hamburger button */
    .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 1001;        /* ← add this */
    position: relative;   /* ← required for z-index to take effect */
}
    .hamburger span {
        display: block;
        width: 28px;
        height: 3px;
        background-color: #ffedd2;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* animate hamburger → X when active */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* dropdown menu — hidden by default */
    .menuitem {
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 0;
        position: fixed;
        top: 0px;             /* directly below the top bar */
        left: 0;
        width: 100vw;
        background-color: #162114;
        z-index: 999;
    }

    /* show when JS toggles .active */
    .menuitem.active {
        display: flex;
    }

    .menuitem a {
        font-size: 1.4rem;
        padding: 16px 24px;
    }

    .content {
        margin-left: 0;
        margin-top: 60px;
        min-height: calc(100vh - 60px);
        padding: 20px;
    }

    .image-container {
        width: 95%;
    }

    .slide {
        max-height: calc(100vh - 100px);
        border-radius: 6px;
    }
}