/* css reset */

html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

img {
    max-width: 100%;
    max-height: calc(100vh - 80px);
    object-fit: cover;
    width: auto;
    margin-bottom: 40px;
    /* Add 40px of vertical space between images */
    text-align: right;
}

/* css */

body {
    font-family: helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 40px;
    overflow-y: auto;
    /* Ensure body handles scrolling */
}

.menu {
    color: rgba(0, 0, 0, 0.45);
    width: 30%;
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 40px;
    /* Add 40px of space above the top menu item */
    position: fixed;
    top: 0;
    /* Align menu to the top of the viewport */

    overflow: auto;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    transition: transform 0.3s ease;
    list-style-type: none;
}

.menu ul {
    padding: 0;
    margin: 0;
    /* Remove any default margins */
    list-style-type: none;
    line-height: 1.7;
}

.menu a {
    color: rgba(0, 0, 0, 0.45);
    text-decoration: none;
}

.content {
    background-color: none;
    margin-left: 30%;
    padding-right: 40px;
    padding-top: 40px;
    /* Add 40px of space above the topmost image */
    flex-grow: 1;
    font-size: 1.3rem;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.55);
    line-height: 1.2;
    text-align: left;
}

.hamburger {
    display: none;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: rgba(0, 0, 0, 0.55);
    margin: 5px 0;
    transition: 0.4s;
}

a:link {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: rgba(0, 0, 0, 0.20);
    text-decoration: none;
}

a:visited {
    color: inherit;
    text-decoration: none;
}

a:active {
    color: inherit;
    text-decoration: none;
}

p.info {
    list-style-type: none;
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .menu {
        background-color: white;
        opacity: 95%;
        width: 100%;
        height: auto;
        position: fixed;
        top: 0;
        max-height: 100vh;
        /* Ensure menu does not exceed viewport height */
        overflow: auto;
        /* Allow menu to scroll if it is too tall */
        padding: 40px;
        padding-bottom: 40px;
        padding-top: 40px;
        /* Add 40px of space above the top menu item in mobile view */
        display: none;
        /* Hide menu by default */
    }

    .menu.visible {
        display: block;
        /* Show menu when visible */
    }

    .content {
        margin: 0;
        width: 100%;
        padding-top: 60px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hamburger {
        display: block;
    }

    img {
        max-width: 100%;
        height: auto;
        margin-bottom: 20px;
        /* Add 40px of vertical space between images */
    }
}