/* Apply the background image and the transparent brown overlay */
body {
    margin: 0;
    padding: 0;
    background: url('BackroundImageHome.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

/* Transparent brown overlay that covers the whole background */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(97, 60, 5, 0.5); /* Transparent brown overlay */
    z-index: -1;
}

/* Header navigation styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; /* Add some padding, but no height growth */
    background-color: rgba(132, 102, 87, 1);
    height: 80px; /* Fix the height of the header */
    box-sizing: border-box;
    overflow: hidden; /* Prevent any overflow if the logo gets too big */
}

header .logo img {
    width: 300px;
    margin-left: -40px;
    margin-top: 10px;
}

nav ul {
    list-style-type: none;
    display: flex;
    margin-right: 500px;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 25px;
    margin-top: 0px;
    position: relative;  /* Relative positioning for the sliding effect */
    padding-bottom: 5px; /* Space for the underline */
    
}

/* Add the sliding underline using ::after */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: white;
    left: 0;
    bottom: 0;
    transition: width 0.4s ease-in-out;  /* Transition for sliding effect */
}

/* On hover, the underline expands to full width */
nav ul li a:hover::after {
    width: 100%;
}

/* Main content styling */
.content-section {
    position: relative;
    margin-top: 10px;
    margin-left: 500px;
    
}

.content-section::before {
    content: '';
    position: absolute;
    top: 5.2px;
    left: -300px;
    width: 50%;
    height: 87.5%;
    background-color: rgba(132, 102, 87, 0.8); /* Brown box with some transparency */
    border-radius: 15px; /* Match the border-radius of the image */
    z-index: 0; /* Ensure it's behind the text and image */
}


.content-section img {
    width: 600px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.2);
    position: relative; /* Make sure the image appears above the brown box */
    z-index: 1; /* Higher than the brown box but lower than the text */
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-left: -535px;
    margin-top: -20px;
    z-index: 2; /* Ensure the text is on top of the brown box and the image */
    transition: transform 0.3s ease, font-size 0.3s ease; /* Transition for hover effect */
}

.text-overlay:hover {
    font-size: 55px; /* Slightly increase font size on hover */
    transform: translate(-50%, -50%) scale(1.05); /* Scale up the text smoothly */
}

/* Ensure anchor tag doesn't affect layout */
.content-section a {
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Inherit the text color from the overlay */
    display: block; /* Make the whole section clickable */
}


/* Ensure the body content appears above the overlay */
body * {
    position: relative;
    z-index: 1;
}




