/* Dark Theme Styles */
body.dark-theme {
    --bg-color: #121212;
    --text-color: #eee;
    --header-bg-color: #333;
    --nav-bg-color: #444;
    --nav-hover-color: #555;
    --main-bg-color: #222;
    --box-shadow-color: rgba(255, 255, 255, 0.1);
    --link-color: #1e90ff; /* Adjust link color for better visibility */
    --link-hover-color: #63b8ff; /* Adjust link hover color for better visibility */
}

body.dark-mode {
    color: #e0e0e0; /* Light gray for better readability */
}

a {
    color: #80bfff; /* Softer blue for links */
}

a:visited {
    color: #b380ff; /* Softer purple for visited links */
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff; /* Bright white for headings */
}

/* Theme Toggle Button */
.theme-toggle {
    background-color: #555;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

/* Discord Widget Styling */
#discord-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 300px;
    height: 400px;
    z-index: 999; /* Ensure it's above other content */
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

#discord-widget iframe {
    width: 100%;
    height: 100%;
}

/* Hide on phones */
@media (max-width: 767px) {
    #discord-widget {
        display: none;
    }
}

/* Tablet styles (adjust max-width as needed) */
@media (min-width: 768px) and (max-width: 1024px) {
    #discord-widget {
        width: 250px;
        height: 350px;
        bottom: 10px;
        left: 10px;
    }

    #discord-widget.collapsed {
        height: 30px;
    }

    #discord-widget.collapsed iframe {
        display: none;
    }

    #discord-widget .collapse-button {
        position: absolute;
        top: 5px;
        right: 5px;
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        padding: 3px 5px;
        cursor: pointer;
        border-radius: 3px;
    }
}

/* Desktop responsiveness */
@media (min-width: 1025px) and (max-width: 1200px) {
    #discord-widget {
        /* Adjust position/size to avoid map overlap */
        bottom: 10px;
        left: 10px;
    }
}

.image-gallery img {
    width: 45%;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, opacity 1s ease;
    opacity: 1;
}
