body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: rgb(16, 15, 15);
    position: relative;
    padding-bottom: 50px; /* To account for fixed footer */
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(2px);
    z-index: -1;
}

body.light-theme {
    background-color: white;
    color: black;
}

body.light-theme header {
    background-color: rgba(255, 235, 59, 0.9);
    color: black;
}

body.light-theme button {
    background-color: #FFC107;
    color: black;
}

body.light-theme button:hover {
    background-color: #FFB300;
}

.container {
    display: flex;
}
/* Sidebar */
.sidebar {
    width: 250px;
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    height: 100%;
    overflow-y: auto;
    transform: translateX(-250px); /* Hidden initially */
    transition: transform 0.3s ease; /* Smooth slide-in/out */
    z-index: 1000;
}

.sidebar.open {
    transform: translateX(0); /* Show when open */
}

.sidebar ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 5px;
    background-color: rgba(76, 175, 80, 0.9); /* Green */
    text-align: center;
    transition: background-color 0.3s ease;
}

.sidebar ul li a:hover {
    background-color: #78d67d;
}

/* Content */
.container {
    display: flex;
    transition: margin-left 0.3s ease;
}

.content {
    margin-left: 0;
    padding: 20px;
    flex: 1;
}

.content.sidebar-open {
    margin-left: 250px;
}

/* Toggle Button */
.toggle-button {
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: #4CAF50; /* Green */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1100; /* Above sidebar */
}

.toggle-button:hover {
    background-color: #45a049;


}

header {
    background-color: rgba(76, 175, 80, 0.9);
    padding: 20px;
    text-align: center;
}

section {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    margin: 20px auto;
    border-radius: 10px;
    max-width: 800px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.image-container img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

footer {
    background-color: rgba(241, 241, 241, 0.9);
    text-align: center;
    padding: 10px;
    position: fixed;
    width: 100%;
    bottom: 0;
}

button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .content {
        margin-left: 0;
    }
}
