.navbar {
    width: 100%;
    min-height: 80px;
    background-color: var(--main-color);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    z-index: 1;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3); /* efekt cienia */
}

.left-navbar { /* logo, Ukraine flag and main title */
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.right-navbar { /* Menu */
    display: flex;
    flex-direction: row;
    justify-content: right;
}

/* OM logo, Ukraine flag and main title */

.navbar .image-wrapper {
    width: 35%;
    display: flex;
    justify-content: center;
}

.navbar img {
    width: 70px;
    order: 1;
    margin: auto 10px auto 10px;
}

.navbar .ukraine {
    width: 40px;
    height: 30px;
    margin: auto 0 auto 0;
    padding: 0;
    order: 1;
}

.main-title {
    order: 1;
    display: block;
    color: white;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    text-align: left;
    margin: auto 10px;
}

.main-title:hover {
    text-decoration: none;
}

/* Menu */

.menu {
    order: 2;
    list-style: none;
    padding-left: 20px;
    display: flex;
    padding-right: 20px;
    flex-wrap: wrap;
    margin-left: 20px;
}

.menu li {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.menu li a {
    display: block;
    color: white;
    font-size: 14px;
    margin: auto 10px;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    line-height: 2;
    padding: 3px;
}

@media screen and (max-width: 900px) {
    .navbar .menu {
        display: none;
    }

    .navbar .menu li {
        display: block;
        width: 100%;
        margin: 10px;
    }

    .navbar .menu li a {
        font-size: 24px;
        color: white;
    }
}

/* Langauge switch */

.language-wrapper {
    order: 2;
    margin: auto 0 auto 0;
    display: flex;
    flex-direction: row;
    text-align: center;
}

.language, .language-wrapper {
    text-decoration: none;
    color: white;
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
}

.language {
    margin-right: 10px;
    margin-left: 10px;
    cursor: pointer;
}

a > .language {
    color: var(--color4);
}

.language-wrapper > a:hover {
    text-decoration: none;
}

.language.active {
    color: white;
}


@media screen and (max-width: 900px) {
    .navbar .language-wrapper {
        display: none;
    }
}

/* Menu for mobile */

.menu-for-mobile {
    order: 2 !important;
    display: flex;
    justify-content: center;
}

.menu-for-mobile > img {
    display: none;
    width: 50px;
    height: 50px;
    text-align: center;
}

.menu-for-mobile > img:hover {
    cursor: pointer;
}


@media screen and (max-width: 900px) {
    .menu-for-mobile > img {
        display: inline;
        margin: auto 20px auto 10px;
    }

    .mobile-menu-modal {
        width: 100%;
        background-color: var(--color4);
        z-index: 1;
        text-align: left;
    }

    .mobile-menu-modal .menu li {
        width: 100%;
        display: block;
        margin: 5px;
    }

    .mobile-menu-modal .menu li a {
        color: black;
        font-size: 17px;
    }

    .mobile-menu-modal  .menu-for-mobile {
        position: absolute;
        top: 10px;
        right: 0;
    }

    .mobile-menu-modal .language-wrapper .language {
        font-size: 30px;
        display: inline-block;
        margin-bottom: 5%;
    }

    .mobile-menu-modal .language {
        margin-left: auto;
        margin-right: auto;
    }

    .mobile-menu-modal .language.active {
        color: white;
    }

    .mobile-menu-modal .language a {
        color: var(--main-color);
    }

    .mobile-menu-modal .menu {
        min-height: 80vh;
        display: flex;
        align-items: flex-start;
        flex-direction: column;
    }

    .for_student_links {
        margin-left: 50px;
    }

    .for_student_links .left_title, .for_student_links .options_title {
        display: none;
    }
}