@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Changa&family=Dancing+Script&family=Heebo&family=Josefin+Sans&display=swap');

:root {
    --logo-color: var(--color-1);
    --nav-link-color: black;
    --nav-link-color-active: var(--color-1);
    --nav-bg: #fff;
    --nav-dropdown-bg: var(--color-3);
}

li {
    list-style: none;
}

nav {
    background: var(--nav-bg);
    height: 60px;
    position: relative;
    z-index: 111;
    /* margin-bottom: 20px; */
}

nav .brand {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin-right: 50px;
    color: var(--logo-color);
    -moz-user-select: none;
    user-select: none;
    text-decoration: none;
}

nav .brand img {
    object-fit: cover;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    fill: var(--logo-color);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    grid-gap: 36px;
    margin: 0;
}

/* TODO: Remove all duplicated styles */
@media (max-width: 991px) {

    .navbar-nav {
        border-radius: 16px;
    }
    
    .nav-button {
        color: var(--nav-link-color);
        font-family: 'changa', 'cursive';
        letter-spacing: 0.5px;
        text-decoration: none;
        transition: all .3s ease;
        font-weight: normal;
        font-size: 20px;
        align-items: center;
        user-select: none;
        height: 100%;
        cursor: pointer;
        display: inline-block;
    }

    .tools-nav-item {
        background: var(--nav-dropdown-bg);
        display: flex;
        justify-content: center;
    }

    .tools-menu {
        top: 100%;
        padding: 40px;
        background: var(--nav-dropdown-bg);
        overflow-y: hidden;
        border-radius: 16px;
        animation-name: tools-menu-show-up;
        animation-duration: .3s;
    }


    .tools-menu .tool-button img {
        width: 26px;
        height: 26px;
        border-radius: 8px;
    }

    .tools-menu-content {
        display: flex;
        gap: 50px;
    }

    .tools-menu .tools-column {
        display: flex;
        flex-direction: column;
        text-wrap: nowrap;
        white-space: nowrap;
    }

    .tools-menu .tools-column-title {
        font-weight: bold;
    }

    .tools-menu .tools-column-separator {
        margin: 14px 0;
        box-shadow: 0 1px 0 black;
    }

    .tools-menu .tools-column-body {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .tools-menu .tools-column-body a {
        text-decoration: none;
    }

    .tools-menu .tool-button {
        font-size: 16px;
        display: flex;
        gap: 12px;
        align-items: center;
        border: none;
        outline: none;
        cursor: pointer;
        background-color: transparent;
        flex-wrap: nowrap;
    }

    .tools-menu .tool-button:hover {
        color: var(--nav-link-color-active);
    }

    .tools-menu .tool-button img {
        width: 26px;
        height: 26px;
        border-radius: 8px;
    }
}



@media (min-width: 992px) {

    .nav-item {
        height: 60px;
        font-weight: 900;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        outline: none;
        border: none;
        position: relative;
    }

    .nav-button {
        color: var(--nav-link-color);
        font-family: 'changa', 'cursive';
        letter-spacing: 0.5px;
        text-decoration: none;
        transition: all .3s ease;
        font-weight: normal;
        font-size: 20px;
        display: flex;
        align-items: center;
        user-select: none;
        height: 100%;
        cursor: pointer;
    }

    .nav-item:hover .nav-button {
        color: var(--nav-link-color-active);
    }

    .nav-button .bx {
        transition: transform .2s ease-in-out;
        transform: rotate(0deg);
    }

    .nav-item:hover .nav-button .bx {
        transform: rotate(180deg);
        color: var(--nav-link-color-active);
    }


    .tools-menu {
        position: absolute;
        top: 100%;
        left: -200px;
        padding: 40px;
        background: var(--nav-dropdown-bg);
        overflow-y: hidden;
        border-radius: 16px;
        animation-name: tools-menu-show-up;
        animation-duration: .3s;
        display: none;
    }

    .tools-nav-item:hover + .tools-nav-item .tools-menu {
        display: block;
    }

    .tools-nav-item:hover .tools-menu {
        display: block;
    }


    @keyframes tools-menu-show-up {
        from {
            transform: translate(0, 60px);
            opacity: 0;
        }
        to {
            transform: translate(0, 0);
            opacity: 1;
        }
    }

    .tools-menu-content {
        display: flex;
        gap: 50px;
    }

    .tools-menu .tools-column {
        display: flex;
        flex-direction: column;
        text-wrap: nowrap;
        white-space: nowrap;
    }

    .tools-menu .tools-column-title {
        font-weight: bold;
    }

    .tools-menu .tools-column-separator {
        margin: 14px 0;
        box-shadow: 0 1px 0 black;
    }

    .tools-menu .tools-column-body {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .tools-menu .tools-column-body a {
        text-decoration: none;
    }

    .tools-menu .tool-button {
        font-size: 16px;
        display: flex;
        gap: 12px;
        align-items: center;
        border: none;
        outline: none;
        cursor: pointer;
        background-color: transparent;
        flex-wrap: nowrap;
    }

    .tools-menu .tool-button:hover {
        color: var(--nav-link-color-active);
    }

    .tools-menu .tool-button img {
        width: 26px;
        height: 26px;
        border-radius: 8px;
    }
}

nav .toggle-navbar {
    cursor: pointer;
    position: relative;
    z-index: 200;
    transition: all .3s ease;
    display: none;
}

.select-language-container {
    /* position: absolute; 
    right: 60px;
     top: 50%; 
    transform: translate(0, -50%);
    
     */
}

.select-language-container img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 10px;
}

.select-language-item {
    display: flex;
    align-items: center;
    user-select: none;
    cursor: pointer;
}