/* Wrapper */
.wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Header */
.header_section {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* General */
body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f4f4f4;
}

h1 {
    font-size: 2.5em;
}

h1, h2, h3, h4 {
    font-family: 'robot flex';
}

p, ol, ul, form {
    font-family: 'sour gummy';
    font-weight: 400;
}

/* Main content */
main {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px auto;
    max-width: 960px;
    border: 1px solid #e0e0e0;
}

/* Nav */
nav {
    padding: 10px 0;
    background-color: #333;
    position: relative;
}

#nav_menu {
    display: flex;
    list-style: none;
    justify-content: center;
}

#nav_menu li a {
    font-family: 'roboto';
    color: #fff;
    margin: 0 20px;
    padding: 5px 10px;
    text-decoration: none;
    font-size: 1.3em;
}

#nav_menu li a:hover {
    background-color: #4b4b4b;
}

/* Sections */
.sections {
    margin: 20px 0;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 30px;
    display: flex;
    justify-content: center; 
}

footer p {
    margin: 0px 10px 0px 10px;
}

/* Hamburger menu */
.hamburger {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: none;
    font-size: 40px;
    margin-left: 30px;
}

/* Responsive styles */
@media all and (max-width: 800px) {
    #nav_menu {
        display: none; /* Hide menu by default */
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 70px; /* Adjust to fit the header */
        left: 15px;
        padding: 10px;
        border-radius: 5px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    }

    #nav_menu li {
        margin: 10px 0;
    }

    #nav_menu.active {
        display: flex; /* Show menu when active */
    }

    .hamburger {
        display: block; /* Show hamburger menu */
    }

    figcaption {
        font-size: 12px;
    }
}

@media all and (max-width: 456px) {
    #nav_menu {
        display: none; /* Hide menu by default */
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 70px; /* Adjust to fit the header */
        left: 15px;
        padding: 10px;
        border-radius: 5px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    }

    #nav_menu li {
        margin: 10px 0;
    }

    #nav_menu.active {
        display: flex; /* Show menu when active */
    }

    .hamburger {
        display: block; /* Show hamburger menu */
    }

    figcaption {
        font-size: 9px;
    }
}
