/* Layout */
:root {
    --line-color: #FFFFF0;
    --text-color: #FFFFF0;
    --link-color: #093e16;
    --main-gradient: linear-gradient(to bottom,
            rgba(0, 100, 0, 0.5) 0%,
            /* start semi-transparent */
            rgba(0, 150, 0, 0.7) 90%,
            /* smooth transition in the middle */
            rgba(0, 200, 0, 1) 100%
            /* solid green at the very bottom */
        );
}

html,
body {
    width: 90%;
    height: 100%;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        /* overlay */
        url("/static/bg.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
}

#menu-toggle {
    display: none;
    float: center;
}

.container {
    display: flex;

}

.content {
    flex: 1;
    padding: 20px;
}


/* Right menu (sidebar) */
.right-menu {
    width: auto;
    background-color: transparent;
    padding: 10px;
    border-right: 1px solid var(--line-color);
    color: var(--text-color);
    text-shadow: 1px 1px 2px #003610;
    margin-left: 50px;

}


/* Sidebar links */
.right-menu ul {
    list-style-type: none;
    padding: 0;
}

.right-menu li {
    margin: 10px 0;
}

a {
    text-decoration: none;
    font-weight: bold;
    color: var(--text-color);
    text-shadow: 1px 1px 2px #003610;
    transition: color 0.3s;
    position: relative;
}

a:hover {
    color: var(--text-color) !important;
    /* font-size: 44px; */
    text-shadow: 1px 1px 2px #001F4D;
}

a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: var(--text-color);
    transition: width 1.1s ease;
}

a:hover::after {
    width: 100%;
    /* underline grows on hover */
}

.right-menu.collapsed {
    width: auto;
    padding: 0;
}

.menu-separator.collapsed {
    display: none;
    width: auto;
    padding: 0;
}

.menu-list {
    text-align: left;
}

.menu-list.collapsed {
    display: none;
}

.lang-list {
    padding-left: 7px;
}

.lang-list.collapsed {
    display: none;
}

.lang-block.collapsed {
    display: none;
}


/* .right-menu a:hover {
    color: var(--link-color);
    background-color: rgba(0, 150, 0, 0.2);

} */

.lang-block {
    display: flex;
    margin-top: 20px;
    text-align: center;
    vertical-align: middle;
    background-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.lang-block select {
    background-color: transparent;
    border: 1px solid #ccc;
    color: var(--text-color);
    text-shadow: 1px 1px 2px #003610;
    padding: 5px 10px;
    border-radius: 5px;
}

.lang-block select option {
    color: var(--text-color);
    text-shadow: 1px 1px 2px #003610;
    background-color: darkslategray;
}

footer {
    text-align: center;
    /* background-color: #f5f5f5; */
    border-top: 1px solid var(--line-color);
    margin-top: 40px;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.menu-separator {
    height: 1px;
    background-color: var(--line-color);
    margin: 10px 0;
}


/* Responsive: move sidebar below content on small screens */
@media (max-width: 1000px) {
    .container {
        display: block;
        /* min-height: 100vh; */
        /* background-color: #007BFF; */
    }


    .menu-list {
        display: grid;
        grid-template-columns: repeat(2, auto);
        /* 2 columns */
        justify-content: center;
        /* center whole grid */
        gap: 12px 20px;
        /* row and column spacing */
        padding: 0;
        margin: 0 auto;
        text-align: center;
        width: 100%;
    }

    .right-menu li {
        margin: 0;
        /* remove desktop extra margins */
        list-style: none;
    }

    .right-menu a {
        display: block;
        padding: 8px 12px;
        font-size: 18px;
    }

    .lang-block {
        display: flex;
        justify-content: center;
        /* center row */
        width: 100%;
        margin-top: 15px;
    }

    .lang-list {
        margin-left: 0;
        padding-left: 0;
    }


    #menu-toggle {
        display: flex;
        width: 38px;
        font-size: 24px;
        font-weight: bold;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
    }

    html,
    body {
        width: 100%;
    }


}