@font-face {
    font-family: "NotoColorEmoji";
    src: local("NotoColorEmoji")
        url("https://gitcdn.xyz/repo/googlefonts/noto-emoji/master/fonts/NotoColorEmoji.ttf");
}

html {
    overflow-y: auto;
}

body {
    background-color: #e6f0f4;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: $family-heading;
}

strong {
    color: inherit;
}

.card {
    &.has-radius {
        border-radius: $radius;
    }
}

.image img {
    object-fit: cover;
}

::-webkit-input-placeholder {
    color: $grey-darker !important;
    opacity: 1 !important;
}

::-moz-selection {
    background: $grey-darker;
    color: $white;
}

::selection {
    background: $grey-darker;
    color: $white;
}

.logo {
    margin-top: 1em;
    margin-left: 1em;

    svg,
    img {
        width: 60px;
    }
}

.modal {
    z-index: 500;

    .modal-content,
    .modal-card {
        @include mobile {
            width: 90%;
        }
    }
}

.select,
.select select {
    width: 100%;
}

.container {
    max-width: 1440px;
    padding-left: 2rem;
    padding-right: 2rem;
    margin: 0 auto;
    position: relative;
}

// Header
.guest-header {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
    padding-top: 5vw;
    padding-bottom: 5vw;

    .redirect-link {
        @include mobile {
            display: none;
        }
    }

    .auth-link {
        padding: 0.5em;
        text-transform: uppercase;
        margin-left: 0.5em;
        margin-right: 0.5em;
        font-weight: 900;
        font-size: $size-5;
    }

    .level-right {
        display: flex;
        align-items: center;
        justify-content: center;

        a {
            margin-bottom: 0;
        }
    }
}

.languages {
    text-align: center;

    .lang-item {
        background-color: rgba(0, 0, 0, 0.5);
        padding: 0.2em 0.3em;
        display: inline-block;
        border-radius: $radius;

        &:hover {
            background-color: rgba($primary, 0.5);
        }
    }
}

//Footer
.footer {
    background-color: $footer-background-color;
    padding: $footer-padding;
    color: $footer-color;

    .level {
        justify-content: flex-start;
    }

    @include mobile {
        .level-left + .level-right {
            margin-top: 0.6em;
        }
    }

    &__menu {
        a {
            padding: 0.2rem;
            margin: 0.5rem;
        }
    }
}

// Homepage slider
.slider-guest {
    height: 100vh;
    overflow: hidden;

    .slider-caption {
        position: absolute;
        top: 50%;
        z-index: 10;
        text-align: right;
        padding-left: 2rem;
        padding-right: 2rem;
        color: $white;
        width: 100%;
        transform: translateY(-50%);

        @include mobile {
            top: auto;
            bottom: 0;
        }
    }

    .slide-title {
        font-size: 6rem;
        font-weight: 700;

        @include mobile {
            font-size: 3.2rem;
        }

        span {
            font-weight: 900;
            @include mobile {
                display: block;
            }
        }
    }

    .arrow {
        position: absolute;
        bottom: 0;
        color: $white;
        font-size: 1.6rem;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        left: 50%;
        margin-bottom: 20px;
        transform: translateX(-50%);
    }
}

.home-slider {
    &__item {
        min-height: 100vh;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;

        &:after {
            content: "";
            background-color: rgba($primary, 0.5);
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }
    }

    .slick-prev {
        margin-left: 15px;
        left: -60px;
    }

    .slick-next {
        margin-right: 15px;
        right: -60px;
    }

    .slick-prev,
    .slick-next {
        z-index: 10;
        transition: all 0.3s;
        height: 40px;
        width: 40px;

        &:before {
            font-size: 35px;
        }
    }

    &:hover {
        .slick-next {
            right: 0;
        }

        .slick-prev {
            left: 0;
        }
    }
}

//Sticky Header
.nav-sticky {
    background-color: $primary;
    width: 100%;
    left: 0;
    min-height: $nav-sticky-height;
    @include mobile {
        min-height: auto;
    }

    &.is-sticky {
        position: fixed;
        top: 0;
    }
}

.is-sticky ~ .has-top-space {
    margin-top: $nav-sticky-height;
}

#navbarSecondary {
    @include mobile {
        background-color: transparent;
        display: block;
        box-shadow: 0 0 0 transparent;
        .navbar-end {
            display: flex;
            justify-content: space-between;

            a {
                padding: 0.3em;
                color: $white;
            }
        }
    }
}

//About us
.about-us {
    background-color: $primary;
    color: $light;
    padding: 0;

    .title {
        margin-bottom: 0.5rem;
        color: $light;
    }

    .about-us-content {
        padding: 4vw 1.5rem;
    }

    .about-us-icons {
        padding-top: 4vw;
        padding-bottom: 4vw;
        background-image: url("images/assets/about-us.jpg");
        background-size: cover;
        background-attachment: fixed;

        .icon {
            height: 15rem;
            width: 15rem;
            padding: 1.3em;
            background: $secondary;
            border-radius: 50%;
            margin-bottom: 0.5em;
            flex-direction: column;
            color: $dark;

            @media only screen and (max-width: 1090px) {
                height: 18rem;
                width: 18rem;
            }
        }

        h3 {
            font-size: 1.2rem;
            font-weight: 900;
        }

        p {
            font-size: 0.8rem;
            padding-left: 0.5rem;
            padding-right: 0.5rem;
        }

        img {
            max-width: 5rem;
            margin-bottom: 0.5rem;
        }
    }
}

//Login/Regsiter
.form-screen {
    min-height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;

    &:after {
        content: "";
        background-color: rgba($primary, 0.5);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .auth-form {
        position: relative;
        z-index: 10;
        background: rgba(0, 0, 0, 0.5);
        padding: 2em;
        margin-top: 20vw;
        margin-bottom: 5vw;
        border-radius: $radius;
        color: #fff;
        @include mobile {
            margin-top: 240px;
            padding: 1em;
        }
    }

    .title {
        color: $white;
    }
}

#age-restriction-modal {
    .modal-card-foot {
        justify-content: center;
    }
}

#drawer {
    width: $drawer-width;
    position: fixed;
    top: 0;
    left: 0;
    background-image: url("images/assets/sidebar-bg.jpg");
    background-size: cover;
    height: 100%;
    z-index: 30;
    box-shadow: 3px 5px 5px 0 rgba(0, 0, 0, 0.25);
    overflow: auto;

    &:after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: $drawer-color;
    }

    @include mobile {
        transform: translateX(-103%);
        transition: transform 0.3s;
        &.is-active {
            transform: translateX(0);
        }
    }

    .navbar-brand,
    .drawer-menu {
        position: relative;
        z-index: 2;
    }

    .menu-list {
        width: 100%;
        margin-top: 1em;

        a {
            padding: 1em;
        }

        .chat {
            display: none;
            @include mobile {
                display: block;
            }
        }

        .messages-menu {
            position: relative;

            .msg-badge {
                background-color: $red;
                border-radius: 50%;
                font-size: 80%;
                right: 1em;
                width: 1.8em;
                height: 1.8em;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                font-weight: bold;
            }

            .msg-info {
                font-size: 0.9rem;
                color: #fff;
                background-color: #d9534f;
                padding: 0.2em 0.8em 0.3em;
                margin-top: 0.3em;
                border-radius: 10px;

                p {
                    animation: blinker 1.5s linear infinite;
                }
            }

            @keyframes blinker {
                50% {
                    opacity: 0;
                }
            }
        }
    }

    .user-menu-mobile {
        display: none;
        @include mobile {
            display: block;
            .navbar-divider {
                display: block;
            }
        }
    }
}

.static-layout {
    .guest-header {
        position: relative;
        background-color: darken($primary, 10%);
        padding-top: 2vw;
        padding-bottom: 2vw;

        .level {
            margin-bottom: 0;
        }
    }

    main {
        min-height: 100vh;
    }
}

.static-content {
    p {
        margin-bottom: 1em;
    }

    a {
        color: $primary;
    }
}

#content {
    width: calc(100% - #{$drawer-width});
    margin-left: $drawer-width;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    @include mobile {
        margin-left: 0;
        width: 100%;
    }
}

.navbar-burger {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 39;
    background-color: $primary;
    color: $white;

    &:hover {
        background-color: darken($primary, 10%);
        color: $white;
    }
}

.header {
    background-image: url("/images/assets/sidebar-bg.jpg");
    background-position: center;
    background-size: cover;
    position: relative;

    &:after {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        background: $drawer-color;
        top: 0;
        left: 0;
        opacity: 0.8;
    }

    .container {
        position: relative;
        z-index: 2;
    }

    .navbar-menu {
        @include mobile {
            display: flex;
            background-color: transparent;
            height: 3.25rem;
            align-items: center;
            justify-content: space-between;
        }
    }

    .user-dropdown {
        @include mobile {
            display: none;
        }
    }

    .navbar-link {
        color: $white;
    }

    .languages {
        display: flex;
        align-items: center;

        a {
            margin-right: 0.2em;
            padding: 0 0.3em;
        }

        .flag-icon {
            width: 1em;
        }
    }

    .notifications-icons {
        align-items: center;
        display: flex;
        margin-right: 2em;

        a {
            color: $white;
            font-size: 1.3rem;
            margin-right: 1rem;
            margin-top: 0.2rem;
            position: relative;
        }

        .tag {
            height: 1.1rem;
            position: absolute;
            right: -0.8rem;
            top: -0.1rem;
            width: 1.1rem;
        }
    }
}

.page-container {
    padding-top: 2em;
    padding-bottom: 2em;
    flex: 1;
    width: 100%;
}

.profile-box {
    position: relative;

    .addto-links a {
        margin-left: 0.5em;
        right: 0.5em;
    }
}

.profile-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba($dark, 0.8);
    padding: 0.4em 0.6em;
    display: flex;
    justify-content: space-between;
    white-space: nowrap;
    align-items: center;
    z-index: 5;

    a {
        font-size: 1.1rem;
        color: $white;
    }

    .name {
        width: 80%;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.8rem;
    }

    .add-like {
        color: $red;
    }

    .add-favorite {
        color: $yellow;
    }
}

.profile-photo,
.profile-avatar-img {
    display: inline-block;
    position: relative;

    .vip_status {
        position: absolute;
        color: white;
        background-color: $plan-5;
        padding: 0.25rem 0;
        width: 100%;
        text-align: center;
        text-transform: uppercase;
    }
}

.pagination {
    margin-top: 3em;
    font-size: 0.9rem;
}

.profile-browsing {
    @include mobile {
        flex-direction: column-reverse;
        display: flex;
    }
}

.filter-columns {
    margin-bottom: 1.5rem;

    .field:not(:last-child) {
        margin-bottom: 1.5rem;
    }
}

.tab-content {
    display: none;

    &.is-active {
        display: block;
    }
}

.notification-wrapper {
    margin: 1em;
}

#membership {
    .plan-header {
        font-size: 1em;

        .plan-image {
            max-width: 40%;
            display: block;
            margin-left: auto;
            margin-right: auto;
            margin-bottom: 1em;
        }
    }

    .pricing-table {
        margin-left: -0.5em;
        @include desktop {
            flex-wrap: nowrap;
        }
    }

    .pricing-plan {
        &.is-current {
            box-shadow: 0 8px 12px 0 rgba(122, 122, 122, 0.2);
            transform: scale(1.05);
        }

        &.plan-1 {
            .plan-header {
                color: $plan-1;
            }

            .plan-price .plan-price-amount,
            .aditional-info {
                color: $plan-1;
            }

            .plan-footer .button {
                color: $plan-1;
                border-color: $plan-1;
            }
        }

        &.plan-2 {
            .plan-header {
                color: $plan-2;
            }

            .plan-price .plan-price-amount,
            .aditional-info {
                color: $plan-2;
            }

            .plan-footer .button {
                color: $plan-2;
                border-color: $plan-2;
            }
        }

        &.plan-3 {
            .plan-header {
                color: $plan-3;
            }

            .plan-price .plan-price-amount,
            .aditional-info {
                color: $plan-3;
            }

            .plan-footer .button {
                color: $plan-3;
                border-color: $plan-3;
            }
        }

        &.plan-4 {
            .plan-header {
                color: $plan-4;
            }

            .plan-price .plan-price-amount,
            .aditional-info {
                color: $plan-4;
            }

            .plan-footer .button {
                color: $plan-4;
                border-color: $plan-4;
            }
        }

        &.plan-5 {
            .plan-header {
                color: $plan-5;
            }

            .plan-price .plan-price-amount,
            .aditional-info {
                color: $plan-5;
            }

            .plan-footer .button {
                color: $plan-5;
                border-color: $plan-5;
            }
        }
    }

    .plan-footer .button {
        font-weight: bold;
    }

    .plan-item {
        text-align: left;

        span {
            display: inline-block;
            margin-right: 0.8em;
            font-weight: bold;
        }

        .fa-check {
            color: $success;
        }

        .fa-times {
            color: $danger;
        }
    }

    .aditional-info {
        text-align: center;
        margin-top: 1em;
        margin-bottom: 0.5em;
    }

    .plan-price .plan-price-amount {
        white-space: nowrap;
        display: block;

        small {
            font-size: 50%;
        }
    }
}

.member-type {
    &.plan-1 {
        color: $plan-1;
    }

    &.plan-2 {
        color: $plan-2;
    }

    &.plan-3 {
        color: $plan-3;
    }

    &.plan-4 {
        color: $plan-4;
    }

    &.plan-5 {
        color: $plan-5;
    }
}

.preferences {
    background-color: $white-ter;
    border-radius: $radius;
    padding: 0.8em;
    margin-bottom: 2em;

    .field {
        display: flex;
        flex-wrap: wrap;
    }
}

.my-photos {
    .image {
        position: relative;

        .delete-link {
            position: absolute;
            top: 0;
            width: 2.8em;
            height: 2.8em;
            background: rgba($red, 0.8);
            right: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: $white;
        }
    }
}

.edit-profile-pic {
    label {
        display: block;
        position: relative;
        cursor: pointer;
    }

    span {
        position: absolute;
        top: 0;
        left: 0;
        font-size: 3.2rem;
        z-index: 5;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        opacity: 0;
        color: $success;
    }

    input:checked ~ label span {
        opacity: 1;
    }
}

.membership-card {
    .plan-image {
        max-width: 30%;
    }

    .plan-title {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        text-transform: uppercase;
    }
}
