body {
    margin: 0;
    padding: 0;
    background-image: url(assets/backgroundimagee.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    overflow: hidden; /* Hide both horizontal and vertical scrollbars */
    box-sizing: border-box; /* Include padding and border in the element's width and height */
}

@font-face {
    font-family: 'RiverAdventures';
    src: url(River\ Adventurer.ttf);
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #004d00;
    font-family: 'RiverAdventures', sans-serif;
}

h2 {
    font-family: 'RiverAdventures', sans-serif;
    letter-spacing: 6px;
    font-size: 36px;
}

header img {
    height: 40px;
}

nav a {
    text-decoration: none;
    color: white;
    background-color: #66b266;
    padding: 10px 20px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #4d994d;
}

.container {
    display: flex;
    flex-direction: row;
    padding: 20px;
    color: white;
    flex: 1; /* Allow the container to take remaining space */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.content-left {
    width: 30%;
    margin-right: 20px;
    font-family: Arial, Helvetica, sans-serif;
}

.content-left p {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
}

.content-middle {
    flex: 1;
    text-align: center;
    justify-content: center; /* Center horizontally */
    align-items: flex-start; /* Align to the top */
    display: flex;
    flex-direction: column;
    margin-top: 20px; /* Add spacing from the top */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-middle {
        margin-top: 10px; /* Adjust spacing for smaller screens */
    }

    nav a {
        background-color: #66b266; 
        padding: 15px;
        text-align: center;
        border-bottom: 1px solid #66b266;
        width: 150px; /* Ensure consistent button size */
    }

    nav ul li a {
        width: 150px; /* Ensure consistent button size in responsive view */
        text-align: center;
    }

    .container {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* Adjusted to allow content to stack */
        overflow-y: auto; /* Enable vertical scrolling */
    }

    .content-left, .content-middle, .content-right {
        min-width: 100%;
        margin: 10px 0;
    }

    .monkey {
        position: relative;
        top: 0;
        right: 0;
        max-width: 100%;
        height: auto;
    }

    .monkey img {
        width: 100%;
        height: auto;
    }

    footer {
        position: static; /* Allow the footer to appear at the bottom of the content */
    }
}

.content-middle .image-box {
    width: 100%;
    height: 300px;
    background: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

content-right {
    width: 30%;
    margin-left: 20px;
    font-family: Arial, Helvetica, sans-serif;
}

.content-right .game-box {
    background: rgba(0, 128, 0, 0.8);
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
}

footer {
    background-color: #004d00;
    color: white;
    text-align: center;
    padding: 10px;
    width: 100%;
    position: relative;
    bottom: 0;
    margin-top: auto; /* Push the footer to the bottom */
    font-family: Arial, Helvetica, sans-serif;
}

header img {
    height: 80px; /* Adjust the height as desired */
    width: auto;  /* Maintain aspect ratio */
}

header {
    display: flex;
    align-items: center; /* Vertically centers the content */
    justify-content: space-between; /* Space between the logo and the nav */
    padding: 10px 20px;
    background-color: #004d00;
}

.logo-container {
    margin-right: 20px; /* Add space between the logo and the nav */
}

nav {
    display: flex;
    gap: 20px;
    justify-content: center; /* Center the items inside the nav */
    flex-grow: 1; /* Allow the nav to take remaining space */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    justify-content: center;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: white;
    background-color: #66b266;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: block;
    text-align: center;
    width: 150px; /* Set a consistent width for buttons */
}

nav ul li a:hover {
    background-color: #007700;
    transform: scale(1.05);
}

nav.active {
    display: block;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: #004d00;
    color: white;
    width: 100%;
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.monkey {
    position: absolute; /* Zorgt ervoor dat je het aapje relatief aan de container kunt positioneren */
    top: 80px; /* Pas deze waarde aan om het aapje hoger of lager te plaatsen */
    right: 500px; /* Pas deze waarde aan om het aapje meer naar links of rechts te verplaatsen */
}

/* Burger menu styles */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute; /* Ensure it can be positioned freely */
    top: 10px; /* Adjust vertical alignment */
    right: 20px; /* Align to the right */
}

.burger-menu .line {
    width: 30px;
    height: 4px;
    background-color: #fff;
    margin: 5px 0;
    border-radius: 2px;
}

@media (max-width: 768px) {
    header {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    nav.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        
    }

    nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        gap: 20px;
        justify-content: center;
    }

    nav a {
        background-color: #66b266; 
        padding: 15px;
        text-align: center;
        border-bottom: 1px solid #66b266;
        width: 150px; /* Ensure consistent button size */
    }

    nav ul li a {
        width: 150px; /* Ensure consistent button size in responsive view */
        text-align: center;
    }

    .burger-menu {
        display: flex;
    }

    .container {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* Adjusted to allow content to stack and scroll */
        overflow-y: auto; /* Enable vertical scrolling */
    }

    .content-left, .content-middle, .content-right {
        min-width: 100%;
        margin: 10px 0;
    }

    .monkey {
        position: relative;
        top: 0;
        right: 0;
        max-width: 100%;
        height: auto;
    }

    .monkey img {
        width: 100%;
        height: auto;
    }

    footer {
        position: static; /* Allow the footer to appear at the bottom of the content */
    }
}