@media screen and (min-width: 769px) {
    .navbar {
        background-color: #111827;
        height: 5vw;
        min-height: 50px;
    }

    .sidebar {
        display: none;
    }

    .sidebar-menu-button {
        display: none;
    }

    .navbar .container {
        margin-left: auto;
        margin-right: auto;
        width: 65%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: none;
    }

    .nav-buttons a {
        padding: 0.8vw 1vw;
        margin: 0.4vw;
        font-size: 1vw;
        border-radius: 0.2vw;
        transition: background-color 0.3s ease;
        height: 100%;
        width: auto;
    }

    .nav-buttons a:hover {
        background-color: #E0E0E0;
        color: #111827;
    }

    .nav-buttons {
        flex-wrap: wrap;
        justify-content: center;
        display: flex;
        gap: 0.5vw;
    }

    .nav-home-button i {
        font-size: 1.6vw;
        padding: auto;
    }

    .theme-toggle {
        color: white;
        background-color: transparent;
        padding: 0.6vw;
        margin-left: 3vw;
        border-radius: 0.5vw;
        outline: none;
        height: 50%;
        width: 2.4vw;
    }

    .theme-toggle:hover {
        background-color: #4B5563;
    }

    .theme-toggle svg {
        width: 100%;
        height: 100%;
    }

    .nav-oyshka-logo {
        width: auto;
        height: 75%;
    }

    .nav-oyshka-logo img {
        width: 100%;
        height: 100%;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        display: none;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -750px;
        width: 80%;
        height: 100%;
        background-color: #111827;
        color: white;
        padding: 20px;
        transition: left 0.3s ease-in-out;
        z-index: 5;
    }

    .sidebar img {
        width: 50%;
        height: auto;
        margin-left: 25%;
        margin-bottom: 2vw;
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar ul {
        list-style: none;
        padding: 0;
    }

    .sidebar li {
        margin-bottom: 16px;
    }

    .sidebar a {
        color: white;
        text-decoration: none;
        background-color: #18253f;
        display: block;
        padding: 16px 16px;
        font-size: 18px;
    }

    .sidebar a:hover {
        color: #cbd5e0;
    }

    .sidebar-menu-button {
        position: fixed;
        top: 16px;
        left: 16px;
        background-color: #18253f;
        color: white;
        padding: 16px;
        z-index: 4;
    }

    .close-button {
        position: absolute;
        right: -13vw;
        color: whitesmoke;
        font-size: 200%;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        visibility: hidden;
        transition: opacity 0.3s ease-in-out;
        z-index: 4;
    }

    .overlay.visible {
        visibility: visible;
        opacity: 1;
    }
}