* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-image: url("pictures/webbg.jpg");
    background-size: cover;
    /* Use cover for best fit */
    background-repeat: no-repeat;
    background-position: center;
    color: rgb(94, 85, 85);
    display: flex;
    /* Use flexbox for overall layout */
    flex-direction: column;
    /* Stack content vertically */
    min-height: 100vh;
    /* Ensure body takes up full viewport height */
}

nav {
    display: flex;
    border-radius: 46px;
    position: sticky;
    margin-top: 0.5rem;
    padding: 2px;
    z-index: 100;
    direction: row;
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}
nav ul li{
    
    margin-right:156px ;
    
}

nav a {
    text-decoration: none;
    
    color: #333;
    font-weight: 700;
    color: #425151;
    padding: 0.5rem 1rem;
    transition: 0.5s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

    /* Improved transition speed */

}

nav a:hover {
    color: #425151;
    background-color: #00000040;

}

.container {
    background-color: #0000004d;
    border-radius: 8px;
    max-width: 1200px;
    margin: 2rem auto;
    margin-top: 1rem;
    padding: 2rem;
    border-radius: 8px;
    flex-grow: 1;
    font-family: "Exo 2", sans-serif;
    /* Allow container to expand to fill available space */
}

section {
    margin-bottom: 2rem;
}

footer {
    font-family: "Ubuntu", sans-serif;
    bottom: 0;
    font-weight: 700;
    /* background-color: transparent; */
    background-color: #1b1d1d6b;
    color: rgb(106, 102, 102);
    font-size: medium;
    text-align: center;
    padding: 2px;
}

/* Responsive design for smaller screens */
@media (max-width: 600px) {
    header nav {
        border-radius: 0px;
    }
    header nav ul li{
        font-weight: 500;
    }
}