/**
 * partials/header
 * ---
 */
 
 @import '../modules/variables';

#singNowModal {
    display: none;
    @media (min-width: 990px) {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: $orange;
        border-radius: 50%;
        width: 264px;
        height: 264px;
        position: fixed;
        bottom: 10%;
        right: 3vw;
        z-index: 99999;
        h2 {
            text-align: center;
            font-family: $gotham-bold;
            font-size: 30px;
            color: #fff;
            margin-bottom: 18px;
            span {
                font-size: 44px;
            }
        }
        a {
            max-width: 142px;
            font-size: 14px;
        }
        .close {
            background-color: $black;
            padding: 0;
            outline: none;
            border: none;
            position: absolute;
            top: 10px;
            right: 35px;
            width: 33px;
            height: 33px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }
    }
}
#dflixModal {
    .modal-dialog {
        height: 100%;
        margin: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: unset;
        .modal-content {
            border-radius: 50%;
            background-color: $orange;
            width: 685px;
            height: 685px;
            position: relative;
            .modal-body {
                text-align: center;
                display: flex;
                align-items: center;
                justify-content: center;
                flex-direction: column;
                padding: 0 88px;
                .btn-close {
                    background-color: #212121;
                    padding: 0;
                    outline: none;
                    border: none;
                    position: absolute;
                    top: 50px;
                    right: 90px;
                    width: 49px;
                    height: 49px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border-radius: 50%;
                    opacity: 1;
                    background-image: unset;
                    svg {
                        width: 15px;
                        height: 15px;
                    }
                }
                p {
                    font-size: 40px;
                    color: #fff;
                    margin-bottom: 0;
                }
                h2 {
                    font-family: $gotham-bold;
                    color: #fff;
                    font-size: 58px;
                    margin-bottom: 20px;
                }
                h3 {
                    font-size: 24px;
                    color: #fff;
                    margin-bottom: 0;
                }
                h4 {
                    font-size: 32px;
                    font-family: $gotham-bold;
                    color: #fff;
                    margin-bottom: 40px;
                }
                form {
                    width: 80%;
                    margin: 0 auto;
                    input {
                        height: 50px;
                        border-radius: 100px;
                        margin-bottom: 34px;
                    }
                    button {
                        max-width: 171px;
                        margin: auto;
                        background-color: unset;
                        &:hover {
                            background-color: #fff;
                        }
                    }
                }
            }
        }
    }
}

header {
    padding: 20px 0 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 9999;
    .logo {
        margin-top: 10px;
        position: relative;
        z-index: 9999;
    }
    .btn-open {
        min-width: 40px;
        outline: none;
        background-color: unset;
        border: none;
        position: relative;
        z-index: 9999;
    }
    .menu-mobile {
        position: fixed;
        height: 100vh;
        top: -150%;
        left: 0;
        background-color: $black;
        padding: 13px 20px 0;
        transition: all 0.4s ease;
        z-index: 99999;
        &.active {
            top: 0;
        }
        .header-menu {
            display: flex;
            justify-content: space-between;
            a {
                display: block;
                margin-top: 10px;
                img {
                    min-width: 83px;
                }
            }
            button {
                outline: none;
                border: none;
                background-color: unset;
                display: flex;
                padding: 10px;
            }
        }
        hr {
            color: #e0e0e0;
            opacity: 1;
            margin: 27px 0 29px;
        }
        ul.menu {
            padding-left: 20px;
            padding-right: 20px;
            li {
                min-height: 36px;
                margin-bottom: 13px;
                display: flex;
                justify-content: center;
                flex-direction: column;
                list-style: none;
                position: relative;
                a {
                    display: flex;
                    font-family: $gotham-bold;
                    color: #fff;
                    align-items: center;
                    justify-content: space-between;
                    i {
                        display: none;
                    }
                }
                &.menu-item-has-children {
                    > a {
                        i {
                            display: block;
                            font-size: 14px;
                        }
                    }
                }
                .sub-menu {
                    opacity: 0;
                    height: 0;
                    overflow: hidden;
                    list-style: none;
                    transition: all 0.4s ease;
                    &.active {
                        margin-top: 9px;
                        opacity: 1;
                        height: auto;
                        li {
                            min-height: unset;
                            margin-bottom: 12px;
                            a {
                                font-family: $gotham;
                                font-size: 16px;
                            }
                        }
                    }
                }
            }
        }
    }
    @media (min-width: 990px) {
        &::before {
            background: linear-gradient(to bottom, $black, transparent 50%);
        }
        .logo {
            display: flex;
            margin-top: 12px;
        }
        .menu {
            display: flex;
            justify-content: space-between;
            list-style: none;
            padding: 0;
            margin: 0;
            height: 100%;
            margin-right: 10%;
            > li {
                padding: 12px 0px 9px;
                a {
                    color: #fff;
                    font-size: 16px;
                    justify-content: center;
                    display: flex;
                    align-items: center;
                    i {
                        display: none;
                    }
                }
                > a {
                    white-space: nowrap;
                }
                .sub-menu {
                    padding: 0;
                    height: 0;
                    opacity: 0;
                    overflow: hidden;
                    list-style: none;
                    left: 0;
                    li {
                        text-align: center;
                        a {
                            padding: 3px 20px;
                            display: flex;
                            justify-content: center;
                            width: 100%;
                        }
                        &:hover {
                            background-color: #a95316;
                        }
                    }
                }
                &.menu-item-has-children {
                    height: fit-content;
                    > a {
                        padding-left: 17px;
                        padding-right: 17px;
                        i {
                            margin-left: 8px;
                            display: block;
                            font-size: 14px;
                        }
                    }
                    &:hover {
                        background-color: $orange;
                        border-radius: 30px;
                        position: relative;
                        overflow: hidden;
                        .sub-menu {
                            padding-top: 6px;
                            padding-bottom: 6px;
                            opacity: 1;
                            width: 100%;
                            height: auto;
                        }
                    }
                }
            }
            .sign-now,
            .login {
                display: none;
            }
        }
        .btn-orange {
            padding: 13px 5px;
            margin-right: 18px;
            max-width: 161px;
            font-size: 13px;
            height: 50px;
            align-items: start;
            height: fit-content;
            font-family: $gotham-bold;
            &:hover {
                border-color: #fff;
            }
        }
        .btn-transparent {
            padding: 13px 5px;
            max-width: 109px;
            font-size: 13px;
            align-items: start;
            height: fit-content;
            font-family: $gotham-bold;
        }
        .menu-mobile {
            display: none;
        }
    }
    &.light-theme {
        .menu {
            margin-left: auto;
            margin-right: 30px;
            width: 80%;
            > li {
                a {
                    color: #fff;
                }
            }
        }
        .btn-orange {
            display: none;
        }
        .btn-transparent {
            margin-left: auto;
            border-color: #fff;
            color: #fff;
            background-color: transparent;
            color: #fff;
            &:hover {
                background-color: #fff;
                color: $orange;
                
            }
        }
    }
}
