body {
    margin: 0;
    font-family: Arial, sans-serif;
    transition: background-color 0.5s, color 0.5s;
}

/* Default Light Mode */
body.light-mode {
    background-color: #f5f5f5;
    color: #333;
}

/* Dark Mode */
body.dark-mode {
    background-color: #222;
    color: white;
}

/* Collapsible Sidebar */
.navbar {
    position: fixed;
    left: -200px; /* Hidden by default */
    top: 0;
    width: 200px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: left 0.3s; /* Smooth open/close */
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 15px;
    display: block;
}

.navbar a:hover {
    background-color: #575757;
    border-radius: 5px;
}

/* Content that shifts with navbar */
.main-content {
    margin-left: 0;
    padding: 20px;
    transition: margin-left 0.3s;
}

/* Current Game */
.current-game {
    padding: 50px;
    background-color: #444;
    color: white;
    text-align: center;
}

/* Open/Close Button */
.open-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1100;
    padding: 10px 20px;
    background-color: #2196F3;
    color: white;
    border: none;
    cursor: pointer;
    transition: left 0.3s;
}

/* Dark Mode Slider */
.dark-mode-slider {
    margin: 20px;
    text-align: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Rounded slider */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Footer */
footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: fixed; /* Fixes footer to the bottom */
    width: 100%;
    bottom: 0;
    z-index: 1000; /* Ensures footer stays above other content */
}

.footer-content p {
    margin: 5px;
}

.social-links a {
    color: #2196F3;
    text-decoration: none;
    margin: 0 10px;
}

.social-links a:hover {
    text-decoration: underline;
}

/* Add margin-bottom to main content to prevent it from overlapping the footer */
.main-content {
    margin-bottom: 80px; /* Adjust according to footer height */
}

/* Responsive Layout */
@media (max-width: 600px) {
    .open-btn {
        top: 15px;
        left: 15px;
        padding: 8px 16px;
    }
    .navbar {
        width: 100%;
        left: -100%; /* Navbar is hidden offscreen */
    }
    .navbar a {
        padding: 10px;
    }
}
/* Responsive Layout */
@media (max-width: 600px) {
    .open-btn {
        top: 15px;
        left: 15px;
        padding: 8px 16px;
    }
    .navbar {
        width: 100%;
        left: -100%; /* Navbar is hidden offscreen */
    }
    .navbar a {
        padding: 10px;
    }
}
