/* Common styles for both light and dark mode */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #126a00; /* Green background in light mode */
    color: #e2f4a6; /* Green text in light mode */
    border-radius: 7px; /* Updated border radius */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* Add a small shadow */
}

p, h1, h2, h3, h4, sub, a:link {
    margin: 0.32em 0;
    padding: 5px; /* Add some text padding (inset) */
}

h1, h2, h3, h4 {
    color: #0eca48; /* Green headings in light mode */
}

a:link {
    color: #91ee00; /* Match the link color to the Discord link */
    text-decoration: none !important;
}

a:hover {
    text-decoration: underline !important;
}

img {
    width: 5%;
    height: auto;
    border-radius: 7px;
    float: right;
}

/* Tab bar styles for both light and dark mode */
.tab-bar {
    display: inline-flex;
    justify-content: center;
    background-color: #126a00; /* Green background for both light and dark mode */
    color: #e2f4a6; /* Green text color for both light and dark mode */
    padding: 0px 0;
    border-radius: 15px;
}

.tab-bar a {
    text-decoration: none;
    color: #e2f4a6; /* Green text color for both light and dark mode */
    margin: 10px;
    padding: 4px 4px;
    border-radius: 5px;
    transition: background-color 0.125s; /* Smooth color change on hover */
    font-weight: bold;
}

.tab-bar a:hover {
    background-color: #0b8e37; /* Slightly brighter green background on hover for contrast in light mode */
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0a4400; /* Darker green background in dark mode */
        color: #8ca775; /* Dark green text in dark mode */
    }

    h1, h2, h3, h4 {
        color: #0eca48 !important; /* Green headings in dark mode */
    }

    a:link {
        color: #78aa53 !important; /* Dark green links in dark mode */
    }

    a:visited {
        color: #78aa53 !important; /* Dark green for visited links in dark mode */
    }

    .tab-bar {
        background-color: #0a4400; /* Darker green background for dark mode */
        color: #8ca775; /* Dark green text color for dark mode */
    }

    .tab-bar a {
        color: #8ca775 !important; /* Dark green text color for dark mode */
        font-weight: bold;
    }

    .tab-bar a:hover {
        background-color: #456f0e; /* Slightly darker green background on hover for contrast in dark mode */
    }
}

/* Media query for smaller screens */
@media screen and (max-width: 600px) {
    .tab-bar {
        display: block;
        text-align: left;
        padding: 4px 0;
        font-size:18px;
    }

    .tab-bar a {
        display: block;
        padding: 8px;
        font-weight: bold;
    }

    img {
        display: none; /* Hide all images on smaller screens */
    }
}
