body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f4ef; /* Background color */
    overflow-x: hidden; /* Prevents horizontal scrolling */
    width: 100vw; /* Make body width as wide as the current viewport */
}

h1, h2 {
    text-align: center;
    margin: 10px 0;
    color: #4C585B;
}

hr {
    color: #7E99A3;
    width: 100%;
    max-width: 886px;
    border: 1px solid;
    margin: 20px auto;
}

.img-wrapper {
    display: flex;
    justify-content: center;
    margin: 0;
}

.engagement {
    width: 100%;
    height: auto;
    max-width: 886px;
    opacity: 0.8;
}

nav {
    background-color: #f5f4ef; /* Semi-transparent background */
    padding: 10px 0; /* Padding for better appearance */
    text-align: center; /* Center the nav items */
}

nav ul {
    list-style-type: none; /* Removes bullet points */
    display: flex; /* Enables flexbox layout */
    justify-content: center; /* Centers the items horizontally */
    padding: 0; /* Removes default padding */
    margin: 0; /* Removes default margin */
}

nav ul li {
    margin: 0 50px; /* Spacing between nav items */
}

.button {
    display: inline-block; /* Make the anchor behave like a button */
    padding: 15px 30px;
    font-size: 40px;
    color: #4C585B;
    background-color: #f5f4ef;
    text-decoration: none; /* Remove underline */
    border: none;
    position: relative; /* Positioning for the box effect */
    cursor: pointer;
    outline: none;
    transition: background-color 0.5s linear;
}

nav ul li a {
    color: #4C585B;
    text-decoration: none;
    font-size: 40px;
}

nav ul li a:hover {
    color: white; /* Change color on hover */
    background-color: #A5BFCC;
}

.fade {
    opacity: 0; /* Start hidden */
    transition: opacity 1s ease-in; /* Transition effect */
}


.fade.in {
    opacity: 1; /* Fully visible */
}

/* Responsive styles */
@media (max-width: 600px) {
    nav ul {
        flex-direction: row; /* Stack items vertically */
        justify-content: center; /* Center items */
    }

    nav ul li {
        margin: 0 20px; /* Reduce spacing between items */
    }

    .button {
        padding: 10px 20px; /* Reduce padding for smaller screens */
        font-size: 24px; /* Smaller font size */
    }

    nav ul li a {
        font-size: 24px; /* Smaller font size for links */
    }
}