.mobile-menu-container {
    position: relative;
    background: black;
    display: flex;
}

.menu-icon {
    color: #fff;
    cursor: pointer;
    display: block;
    font-size: 1.8rem;
    margin-left: 10%;
    margin-right: 10%;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
}

.menu-options {
    display: none;
    background: black;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5;
    box-sizing: border-box;
}

.menu-options:target {
    display: block;
    animation: slideInMobile 0.5s ease-in-out;
}

.menu-options:not(:target) {
    animation: slideOutMobile 0.5s ease-in-out;
    animation-fill-mode: forwards;
}

.menu-options ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.menu-options li {
    padding: 2rem;
}

.menu-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-decoration: none;
    padding: 0.5rem;
    font-size: 2.5vh;
}

.menu-option:hover {
    background-color: #555;
}

.close-icon {
    background: #0000;
    border: none;
    display: flex;
    text-decoration: none;
}

.close-icon:before {
    color: #fff;
    content: "X";
    font-size: 3vh;
}

.top-right-buttons {
    display: flex;
    justify-content: flex-end;
    padding-right: 0.5rem;
    gap: 2rem;
}

@keyframes slideInMobile {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutMobile {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-100%);
        opacity: 0;
        display: none;
    }
}

@media (max-width: 550px) {
    .language-switcher-buttons {
        position: absolute;
        bottom: 1rem;
        right: 1rem;
    }
}

/* Prevent body scrolling when menu is open */
body:has(#mobile-menu:target) {
    overflow: hidden;
    height: 100vh;
}