@import 'init';
@top-gap: 3rem;
#top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}
#top-gap {
    height: @top-gap;
    background-color: @d-green;
}
#top-menu {
    display: flex;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    justify-content: space-between;
    align-items: center;
    color: white;
    .brand-logo {
        width: 300px;
        img {
            width: 100%;
        }
    }
    .top-links {
        display: flex;
        align-items: center;
        gap: 2rem;
        .btn:not(.logout) {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 0 24px;
        }
        #btn-support, #btn-logout {
            padding-top: 15px;
            padding-bottom: 15px;
            background-color: @d-green;
            border-color: @d-green;
            &:hover {
                background-color: transparent;
                color: @d-green;
            }
        }
    }
}
#text-size-buttons {
    display: flex;
    align-items: center;
    .text-size-button {
        padding: 8px;
        background-color: @d-green;
        border: 1px solid @d-green;
        font-size: 24px;
        font-weight: 700;
        color: white;
        display: flex;
        
        &.active {
            cursor: pointer;
            &:hover {
                background-color: transparent;
                color: @d-green;
            }
        }
    }
}
@btn-one-side: 16px;
.btn-left {
    border-top-left-radius: @btn-one-side;
    border-bottom-left-radius: @btn-one-side;
    padding-left: @btn-one-side !important;
}
.btn-right {
    border-top-right-radius: @btn-one-side;
    border-bottom-right-radius: @btn-one-side;
    padding-right: @btn-one-side !important;
}
#nav-wrapper {
    &:not(.fixed-top) {
        position: absolute;
        bottom: 0;
        background-color: rgba(0,0,0,0.5);
    }
    left: 0;
    right: 0;
    background-color: rgb(0,0,0);
    padding-top: 1rem;
    padding-bottom: 1rem;
    @media only screen and (min-width: 1600px) {
        .container {
            padding-left: 6rem;
            padding-right: 6rem;
        }
    }
}
.navbar-dark .navbar-nav .nav-link {
    font-size: 1.3em;
    color: white;
}
.nav-item {
    position: relative;
    &.active a.nav-link::after {
        left: 50%;
        transform: translateX(-50%);
        bottom: -4px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: @btn-green;
        content: '';
        display: block;
        position: absolute;
    }
}
#footer-wrapper {
    background-color: @green;
    padding-top: 2rem;
    padding-bottom: 2rem;
    .container {
        display: flex;
        justify-content: space-between;
    }
}
#footer-nav {
    flex-direction: column;
    gap: 4px;        
    &::before {
        content: '';
        border-bottom: 1px solid white;
        align-self: stretch;
    }
    .navbar-nav {
        gap: 2rem;
        .nav-link {
            padding: 0;
        }
        &:first-child {
            order: -1;
        }
    }
}
#footer-right {
    display: flex;
    gap: 2rem;
    > div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        &:first-child > div {
            padding-top: 4px;
            padding-bottom: 4px;
            width: 100%;
            text-align: center;
            &:not(:last-child) {
                border-bottom: 1px solid white;
            }
        }
    /*> div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        &:first-child {
            gap: 4px;
            &::before {
                content: '';
                border-bottom: 1px solid white;
                align-self: stretch;
            }
        }
        > div:first-child {
            order: -1;
        }*/
    }
    a {
        color: white;
        font-size: 1.3em;
    }
}
.copyright {
    padding-top: 15px;
    padding-bottom: 15px;
    text-align: center;
    color: white;
    background-color: @d-green;
    line-height: 1;
    a {
        color: white;
        &:hover {
            font-weight: bold;
        }
    }
}
@media (min-width:768px) {
    #nav-wrapper-mobile {
        display: none;
    }
}
@media (max-width: 767px) {
    #nav-wrapper {
        display: none;
    }
}
@media only screen and (max-width: 1199px) {
    #footer-wrapper {
        font-size: 0.9em;
    }
}
@media only screen and (max-width: 991px) {
    #nav-wrapper {
        font-size: 0.78em;
    }
    #footer-wrapper {
        .container {
            flex-direction: column;
            gap: 1rem;
        }
    }
    #footer-right {
        padding: 0.5rem 1rem;
        justify-content: flex-end;
    }
}
@media only screen and (max-width: 767px) {
    #top-bar {
        position: relative;
    }
    #top-gap {
        height: 0.5rem;
    }
    #top-menu {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        background-color: @green;
        flex-direction: column;
        gap: 0.5rem;
        padding-bottom: 0;
        .brand-logo {
            width: 200px;
        }
        .top-links {
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 0.5rem;
            #btn-support {
                order: 1;
                padding-top: 0.5rem;
                padding-bottom: 0.5rem;
            }
        }
        #text-size-buttons {
            order: 2;
            .text-size-button {
                font-size: 14px;
            }
        }
        #profile {
            order: 3;
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            .btn-trans {
                padding-left: 0;
            }
            .logout {
                display: flex;
                position: relative;
                background-color: @d-green;
                border-color: @d-green;
                left: unset;
                width: unset;
                &:hover {
                    background-color: transparent;
                    color: @d-green;
                }
            }
        }
    }
    #nav-wrapper-mobile {
        background-color: @green;
        .navbar-toggler {
            margin-left: auto;
        }
        .navbar-collapse {
            text-align: right;
        }
        .nav-link {
            line-height: 1;
        }
    }
    #footer-wrapper .container {
        gap: 0;
    }
    #footer-nav {
        &::before {
            display: none;
        }
        .navbar-nav {
            flex-direction: column;
            gap: 0.5rem;
        }
    }
    #footer-right {
        justify-content: flex-start;
    }
}