@import "variables";

header {
    padding-top: $header-height + $header-link-height;

    > nav {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        background-color: white;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.16);

        &.dark {
            background: linear-gradient(to right, #424661, #4E6077);

            .desktop-links a {
                color: white
            }

            color: white;

            .portal-link {
                border-color: rgba(white, 0.4);
            }
        }
    }

    nav {
        height: $header-height + $header-link-height;
        z-index: 1000;

        .container {
            display: flex;
            align-items: center;
            padding: 0;
        }
        .main-container {
            height: $header-height;
        }

        .divider {
            flex: 1;
        }

        button {
            background-color: transparent;
            border: none;
            padding: 0;
        }

        .goto-button {
            white-space: pre;
        }

        .portal-link {
            justify-content: flex-end;
            height: $header-link-height;
            border-bottom: thin #E8E8E8 solid;

            a {
                color: inherit;
                font-weight: 500;
                display: flex;
                align-items: center;
                i {
                    font-size: 18px;
                    height: 18px;
                }

            }
        }

    }

    .logo {
        display: inline-block;

        img {
            display: block;
            max-width: 150px;
        }
    }

    #menu-button {
        width: 27px;
        margin-left: 30px;

        > div {
            height: 3px;
            background-color: #000000;
            margin: 4px 0;
        }

        &.dark {
            > div {
                background-color: white;
            }
        }
    }

    .desktop-links {
        a {
            color: black;
            font-weight: bold;
            margin-right: 15px;

        }
    }

    #menu-button-close {
        color: white;
        width: 27px;
        text-align: center;

        i {
            font-size: 30px;
        }
    }

    .full-menu {
        background-color: #50647b;
        color: white;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.6s;
        position: fixed;
        z-index: 1002;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        nav .container {
            padding-top: $header-link-height;
        }

        &.active {
            display: block;
            opacity: 1;
            max-height: 100vh;
        }

        .content {
            padding-top: 30px;
            position: relative;
            min-height: 80%;
            display: flex;
            align-items: center;
        }

        .free-title {
            font-size: 22px;
            font-weight: bold;
            margin-bottom: 25px;
        }

        .centralized {
            display: flex;
            align-items: center;
            height: 100%;
        }

        .clouds {
            position: absolute;
            top: 80px;
            max-width: 70%;
            width: 1000px;
            right: -10%;
            opacity: 0.3;
        }

        .buildings {
            position: absolute;
            bottom: -23%;
            right: -7%;
            max-width: 73%;
            width: 1200px;
            opacity: 0.3;
        }
    }

    ul {
        list-style: none;
        font-size: 30px;
        font-weight: 300;
        padding: 0;

        a {
            color: white;
            position: relative;
            padding-bottom: 3px;

            &:hover:before, &.active:before {
                width: 100%;
            }

            &:before {
                content: "";
                position: absolute;
                bottom: 0;
                left: 0;
                background-color: #F15A4D;
                transition: width 0.3s ease-out;
                height: 3px;
                width: 0;
            }

            &:hover {
                color: white;
            }
        }

        li {
            margin-bottom: 12px;
        }
    }

    .simple-button {
        font-weight: bold;
        font-size: 16px;
    }
}

@media (min-width: 1200px) {
    header {
        #menu-button {
            display: none;
        }

    }
}

@media (max-width: 1199px) {
    header {
        .desktop-links {
            display: none;
        }

        .full-menu {
            .content {
                padding-top: 60px;
            }
        }
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    header {
        .full-menu {
            .simple-button {
                padding: 0 10px;
            }
        }
    }
}

@media (max-width: 991px) {
    header {
        .full-menu {
            .content {
                padding-top: 35px;
            }
        }
    }
}

@media (max-width: 767px) {
    header {
        padding-top: $header-height-sm + $header-link-height;

        > nav {
            .simple-button {
                border-radius: 5px;
                height: 22px;
                line-height: 22px;
                font-size: 9px;
            }
        }

        nav {
            height: $header-height-sm + $header-link-height;
            .main-container {
                height: $header-height-sm;
            }
        }

        .full-menu {
            .content {
                padding-top: 12px;
            }
        }

        ul {
            font-size: 20px;
        }

        .logo img {
            width: 106px;

        }

        #menu-button {
            margin-left: 20px;
        }
    }
}

@media (max-width: 575px) {
    header {
        padding-top: $header-height-sm + $header-link-height;

        > nav {
            .goto-button {
                font-size: 10px;

                span {
                    display: none;
                }
            }
        }
    }
    header #menu-button {
        margin-left: 14px;
    }

}
