@import "components.css";

@font-face {
    font-family: 'OSFont';
    src: url('/api/be-assets/fonts/Montserrat-Regular.ttf');
}

:root {
    --color-primary: #2EAFBA;
    --color-text-primary: #697075;
    --color-border: #D9D9D9;
    --color-white: #fff;
    --color-black: #000;
    --color-secondary-hover: #efeeee;
    --color-mirror: rgba(0, 0, 0, 0.1);
    --container: 1520px;
    --color-main-border: #f2f2f2;
    --font-family-primary: OSFont;
    --color-primary-transparent: rgb(46, 175, 186, 0.6);
    --color-primary-scroll: rgb(46, 175, 186, 0.5);
    --color-box-shadow: rgba(105, 112, 117, 0.25);
}

body {
    font-family: var(--font-family-primary);
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0 auto;
    padding: 0;
    position: relative;
    max-width: 2300px;
}

body .sidebar {
    display: none;
}

body::-webkit-scrollbar {
    width: 6px;
}

body::-webkit-scrollbar-thumb {
    width: 4px;
    height: 7px;
    transition: .2s;
    background: var(--color-primary-scroll);
    border-radius: 20px;
}

a {
    text-decoration: none;
}

.mirror {
    display: none;
}

button {
    cursor: pointer;
    min-width: 100px;
}

button:hover {
    opacity: 0.9;
}

.sidebar-header {
    display: none;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 30px;
    column-gap: 20px;
    border-bottom: 1px solid var(--color-main-border);
    height: 70px;
}

header .logo-section,
body .sidebar .logo-section {
    display: flex;
    align-items: center;
    cursor: pointer;
    height: 100%;
}

header .logo-section .header-logo,
body .sidebar .logo-section .header-logo {
    width: 32px;
    height: 32px;
}

header .logo-section .header-logo-text,
body .sidebar .logo-section .header-logo-text {
    width: 175px;
    height: 32px;
}

header .menu {
    display: flex;
    align-items: center;
    column-gap: 20px;
    font-weight: 600;
    font-size: 14px;
    line-height: 16px;
    height: 100%;
}

header .buttons {
    min-width: 208px;
    display: flex;
    justify-content: flex-end;
    column-gap: 10px;
}

header .buttons .sign-in {
    background-color: var(--color-white);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

header .buttons .sign-in:hover {
    background-color: var(--color-secondary-hover);
}

header .menu .links,
body .sidebar .links {
    column-gap: 30px;
    display: flex;
    flex-wrap: wrap;
    row-gap: 10px;
    height: 100%;
    align-items: center;
}


header .menu .links a {
    color: var(--color-text-primary)!important;
    min-width: 100px;
    text-align: center;
    height: 100%;
    display: grid;
    place-content: center;
    cursor: pointer;
    border-bottom: 5px solid var(--color-white);
    position: relative;

    &:hover {
        border-bottom: 5px solid var(--color-primary);
    }
}

header .menu .links .show .list {
    transition: .4s;
    visibility: visible;
    opacity: 1;
}

header .menu .links a .list {
    min-width: 650px;
    max-width: 650px;
    max-height: 500px;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    position: absolute;
    top: calc(100% - 9px);
    left: 0;
    box-shadow: 5px 5px 25px 0px var(--color-box-shadow);
    background-color: var(--color-white);
    box-sizing: border-box;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    padding-top: 10px;
    overflow-y: auto;

    .list-item, .not-clickable {
        list-style-type: none;
        min-width: 140px;
        max-width: 140px;
        border-right: 1px solid var(--color-main-border);
        padding-left: 15px;
        display: flex;
        align-items: center;
        text-align: left;
        height: 48px;
        cursor: pointer;
        border-left: 5px solid var(--color-white);
        font-size: 14px;

        &:hover {
            border-left: 5px solid var(--color-primary);
            background-color: var(--color-primary-transparent);
            color: var(--color-primary);

            .item-text {
                padding-left: 5px;
            }
        }

        .item-text {
            transition: .2s;
        }

    }

    .title {
        min-width: 100%;
        border-right: none;
        font-size: 18px;
        color: var(--color-black);
        font-weight: bold;
    }

    .not-clickable {
        cursor: auto;
        color: var(--color-black) !important;
        font-weight: bold;


        &:hover {
            border-left: none;
        }

        .item-text {
            transition: 0s;
        }
    }

    &::-webkit-scrollbar {
        width: 6px;
    }

    &::-webkit-scrollbar-thumb {
        width: 4px;
        height: 7px;
        transition: .2s;
        background: var(--color-primary-scroll);
        border-radius: 20px;
    }
}

.footer-container {
    position: relative;
    height: 204px;
    width: 100%;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
}

.footer-logo-container {
    width: 25%;
    height: 60%;
    border-right: 2px solid var(--color-white);
}

.footer-logo-content {
    width: 80%;
    margin-left: 0;
}

.footer-logo-content div {
    min-width: 240px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    column-gap: 10px;
}

.footer-logo {
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.footer_logo_text {
    width: 200px;
    cursor: pointer;

}

.footer-name {
    color: var(--color-white);
    font-size: 32px;
    margin-bottom: 24px;
    line-height: 39px;
}

.footer-text-container {
    width: 80%;
    height: 60%;
    display: flex;


}

.footer-text-content {
    width: 95%;
    height: calc(100%);
    margin: 0 auto;
    display: flex;


}

.footer-text-content div a {
    text-decoration: none;
    color: var(--color-white);
}



.footer-text-content div {
    width: 19%;
}


.footer-text {
    line-height: 35px;
    font-size: 17px;
    color: var(--color-white);
    cursor: pointer;
    text-decoration: none;
}

.footer-icons {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    column-gap: 15px;
}

.footer-icons a {
    color: var(--color-white);
    transform: scale(.8);
    margin-left: -5px;
    cursor: pointer;
}

.footer-text-content .last-child {
    width: 43%;
}

.copyright {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    width: 100%;
    text-align: center;
    padding-top: 10px;

}

.copyright span {
    color: var(--color-white);
}
body .mirror {
    position: absolute;
    width: 100%;
    height: calc(100% + 100px);
    background-color: var(--color-mirror);
    top: -80px;
    left: 0;
    z-index: 11;
}


@media (max-width: 1700px) {
    .footer-text-content div {
        width: 23%;
    }

    .footer-logo-content {
        margin-left: 40px;
    }
}


@media (max-width: 1480px) {

    header .menu .links {
        column-gap: 5px;
    }

    header .menu .links a {
        min-width: 90px;
        font-size: 12px;
    }
}

@media (max-width: 1240px) {

    header .logo-section .header-logo-text {
        display: none;
    }

    header .menu .links {
        column-gap: 3px;
    }
}

@media (max-width: 1162px) {

    header .menu {
        column-gap: 10px;
    }

    .footer_logo_text {
        width: 140px;
    }

    .footer-logo-content div {
        justify-content: flex-start;
    }
}

@media (max-width: 1041px) {
    header {
        column-gap: 10px;
        padding: 0 20px;
    }

    header .menu .links {
        column-gap: 0;
    }

    header .menu .links a {
        min-width: 84px;
    }


    .footer-logo {
        width: 30px;
        height: 30px;
    }

    .footer-text {
        font-size: 14px;
    }

    .footer-text-content div {
        width: 25%;
    }
}

@media (max-width: 955px) {

    .main-header {
        display: none;
    }

    body .show {
        display: block;

    }

    .hidden {
        overflow-y: hidden;
    }

    .sidebar-header {
        display: flex;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        justify-content: space-between;
        align-items: center;
        background-color: var(--color-white);
        z-index: 10;
        padding: 15px 0;
        margin: 0;
        box-shadow: 2px 2px 10px 2px var(--color-mirror)
    }

    body .sidebar .close {
        position: absolute;
        top: 20px;
        right: 20px;
        transform: scale(1.2);
        color: var(--color-text-primary);
        cursor: pointer;
    }

    body .sidebar .logo-section {
        margin-left: 20px;
        height: 70px;
    }

    .sidebar-header .menu-logo {
        transform: scale(1.3);
        cursor: pointer;
        margin-left: 20px;
        transition: .5s;
    }

    body .sidebar {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: flex-start;
        width: 0;
        visibility: hidden;
        background-color: var(--color-white);
        height: 100vh;
        position: fixed;
        padding-top: 20px;
        row-gap: 50px;
        top: 0;
        left: 0;
        transition: .5s;
        overflow: hidden;
        z-index: 15;
    }

    body .sidebar .links a {
        width: 100%;
        min-width: 150px;
        text-align: left;
        color: var(--color-text-primary);
        transition: .1s;
        padding-left: 20px;

        &:hover {
            border-left: 7px solid var(--color-primary);
            color: var(--color-primary);
            background-color: var(--color-primary-transparent);
        }
    }

    body .open {
        width: 300px;
        visibility: visible;
    }

    body .sidebar .links {
        line-height: 50px;
        height: 70px;
    }

    .sidebar-header .buttons {
        display: flex;
        justify-content: flex-start;
        row-gap: 20px;
        margin-right: 20px;
    }

    header .buttons {
        column-gap: 20px;
    }
}

@media (max-width: 850px) {

    .footer-container {
        height: 240px;
    }

    .footer-logo-container {
        width: 40%;
        height: 70%;
    }

    .footer-logo {
        width: 28px;
        height: 28px;
    }

    .footer_logo_text {
        width: 150px;
    }

    .footer-text-container {
        width: 60%;
        height: 70%;
    }

    .footer-text-content {
        margin-top: -10px;
        flex-wrap: wrap;
    }

    .footer-text-content div {
        width: 50%;
    }

    .footer-text-content .last-child {
        width: 100%;
        display: flex;
    }
}

@media (max-width: 780px) {
    .footer-container {
        flex-wrap: wrap;
        height: auto;
    }

    .footer-logo-container {
        width: 100%;
        height: 20%;
        margin-top: 20px;
        border: none;
    }

    .footer-logo-content {
        border-bottom: 2px solid var(--color-white);
        padding-bottom: 20px;
        margin: 0 auto;
        width: 50%;
        height: 100%;
    }

    .footer-logo-content div {
        height: 100%;
        justify-content: center;
    }

    .footer_logo_text {
        width: 180px;
    }

    .footer-text-container {
        width: 100%;
        height: 80%;
        padding: 20px 0;
    }

    .footer-text-content {
        width: 80%;
        margin-top: 0;
        margin-bottom: 20px;
    }

    .footer-text-content div {
        width: 100%;
        text-align: center;
    }

    .footer-text {
        font-size: 18px;
    }

    .footer-icons {
        width: 100%;
        justify-content: center;
    }

    .footer-text-content .last-child {
        display: block;
    }
}



@media(max-width: 480px) {
    .footer-logo-content {
        width: 100%;
    }

    .footer_logo_text {
        width: 150px;
    }

    .footer-text {
        font-size: 14px;
    }

    .copyright {
        font-size: 14px;
    }

}