html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: url('background.JPG') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    z-index: 1;
}

header, main, footer {
    position: relative;
    z-index: 2;
}

header {
    background-color: rgba(192, 162, 92, 0.9);
    color: #fff;
    height: 10%; /* Set the header height */
    padding: 0; /* Remove padding */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensure space between logo and nav */
    max-width: 100%; /* or any preferred width */
    margin: 0 auto;
    padding: 0 5px; /* Add padding for spacing */
}

.logo {
    max-width: 15%; /* Adjust as needed */
    height: 95%;
}

nav {
    flex-grow: 1;
    text-align: center;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; /* Center the nav links */
    gap: 10px; /* Adjust as needed */
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    padding: 5px 10px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #007BFF;
}


header h1 {
    margin: 0;
    padding-top: 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin-right: 1em;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

main {
    flex: 1;
    padding: 1em;
    background: rgba(255, 255, 255, 0.9);
    margin: 1em auto;
    max-width: 85%;
    border-radius: 8px;
    overflow-x: hidden; /* Enable horizontal scrolling auto */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
}

.main::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}

main h2 {
    color: #c0a25c;
}

footer {
    background-color: rgba(192, 162, 92, 0.9);
    color: #fff;
    text-align: center;
    padding: 0em;
    width: 100%;
}
