html, body, h1, h2, h3, h4, h5, h6 {
    font-family: "Roboto", sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background-image: url('back.png'); /* Ensure this path is correct */
    background-size: cover; /* Cover the entire screen */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent tiling */
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5); /* White overlay with 50% opacity */
    z-index: 1; /* Place it above other content */
}

.w3-top {
    background-color: rgba(51, 51, 51, 0.8); /* Dark top bar with transparency */
}

.w3-sidebar {
    z-index: 3;
    width: 250px;
    top: 43px;
    bottom: 0;
    height: inherit;
    background-color: #f4f4f4; /* Light background for sidebar */
}

.w3-sidebar a {
    color: #555; /* Dark text color for links */
}

.w3-sidebar a:hover {
    background-color: #ddd; /* Hover effect for sidebar links */
    color: #000; /* Change text color on hover */
}

.w3-main {
    margin-left: 250px;
    padding: 20px; /* Add padding to main content */
    position: relative; /* For overlay positioning */
    z-index: 2; /* Ensure content is above overlay */
    min-height: 100vh; /* Ensure it covers the full height */
}

h1, h2 {
    color: black; 
    margin-bottom: 20px; 
    padding-top: 40px; /* Add space above the header */
}

p {
    line-height: 1.6; /* Improve readability */
    color: #333; /* Darker text color for paragraphs */
}

/* Card styles */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 30px 0; /* Increased margin for better spacing */
    transition: transform 0.3s; /* Card hover effect */
}

.card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
}

footer {
    background-color: #333; /* Dark footer */
    color: #fff;
    padding: 20px 0; /* Spacing around footer content */
    text-align: center; /* Center text in footer */
}

/* Image gallery styles */
.image-gallery {
    display: flex;
    justify-content: space-around; /* Space images evenly */
    margin-top: 20px; /* Space above the gallery */
}

.image-gallery img {
    width: 200px; /* Increased width for larger images */
    height: auto; /* Maintain aspect ratio */
    cursor: pointer; /* Change cursor to pointer on hover */
    border-radius: 5px; /* Rounded corners for images */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

/* Filter section styles */
.filter-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px; /* Space below the filter */
}

.filter-section input,
.filter-section select {
    padding: 10px;
    margin-right: 10px; /* Space between elements */
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: block; /* Change to block for vertical stacking */
    margin-bottom: 10px; /* Space between dropdowns */
}

.dropbtn {
    background-color: #f4f4f4; /* Background color */
    color: #555; /* Text color */
    padding: 10px; /* Padding */
    font-size: 16px; /* Font size */
    border: none; /* No border */
    cursor: pointer; /* Pointer cursor */
    width: 100%; /* Full width */
    text-align: left; /* Align text to the left */
}

.dropdown-content {
    display: none; /* Hidden by default */
    position: absolute; /* Position it below the dropdown button */
    background-color: #f9f9f9; /* Background color */
    min-width: 160px; /* Minimum width */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); /* Shadow */
    z-index: 1; /* Ensure it appears above other content */
}

.dropdown-content a {
    color: black; /* Link color */
    padding: 12px 16px; /* Padding */
    text-decoration: none; /* No underline */
    display: block; /* Block display */
}

.dropdown-content a:hover {
    background-color: #ddd; /* Highlight on hover */
}

.dropdown:hover .dropdown-content {
    display: block; /* Show the dropdown on hover */
}

.dropdown:hover .dropbtn {
    background-color: #ddd; /* Change background color on hover */
}