@import "custom-variables/variables";
@import "_bootstrap";
@import "layout/header";
@import "layout/footer";
@import "plugins/font-face";
@import "plugins/icomoon";
@import "plugins/slick";
@import "plugins/animate";
@import "custom/pagination";


html {
    font-size: 100%;

    @include media-breakpoint-down(md) {
        font-size: 87.5% !important;
    }

    @include media-breakpoint-down(sm) {
        font-size: 83.3% !important;
    }

    @include media-breakpoint-down(xs) {
        font-size: 75% !important;
    }
}
html[dir="ltr"]{
    body{
      font-family:"proxima_nova", sans-serif;
    }
}
html[dir="rtl"]{
    font-size: 95%;
    body{
      font-family: 'Cairo', sans-serif;
        text-align: right
    }
}
body {
    font-size: 16px;
}
ul{
    html[dir="rtl"] & {
        padding-right: 0;
    }
}

.font-weight-medium {
    font-weight: $font-weight-medium;
}

.font-weight-normal {
    font-weight: $font-weight-normal;
}

.font-weight-semibold {
    font-weight: $font-weight-semibold;
}

.font-weight-exbold {
    font-weight: $font-weight-exbold;
}

.font-xxl {
    font-size: rem(24);
    line-height: rem(32);
}

.font-xl {
    font-size: 16px;
    line-height: rem(26);

    @include media-breakpoint-down(sm) {
        font-size: 16px;
    }
}

.font-sm {
    font-size: 13px;
}

.font-xs {
    font-size: 12px;
}

.font-md {
    font-size: 14px;
    line-height: 20px;
}

.font-lg {
    font-size: 15px;
}

.font-base {
    font-size: 16px;

    @include media-breakpoint-down(sm) {
        font-size: 15px;
    }
}

.form-control {
    font-size: 16px;
}

.line-height-normal {
    line-height: 1.2;
}
.line-height-base {
    line-height: 1!important;
}

.text-transform-none {
    text-transform: none;
}

.form-control {
    font-weight: $font-weight-semibold;
}

.form-control::-webkit-input-placeholder {
    font-weight: $font-weight-light;
}

.form-control:-moz-placeholder {
    font-weight: $font-weight-light;

}

.form-control::-moz-placeholder {
    font-weight: $font-weight-light;

}

.form-control:-ms-input-placeholder {
    font-weight: $font-weight-light;

}

.form-control::placeholder {
    font-weight: $font-weight-light;

}

.bg-green {
    background: $green;
}

@mixin text-grey {

    @each $name,
    $color in $grays {
        .text-gray-#{$name} {
            color: $color !important;
        }

        .bg-gray-#{$name} {
            background: $color !important;
        }
    }
}

@include text-grey;

.bg-tertiary {
    background-color: $tertiary;
}

.bg-primary-200 {
    background: lighten($primary, 46.27);
}

.bg-primary-400 {
    background: lighten(adjust-hue($primary, 1), 41.76);
}

.text-tertiary {
    color: $tertiary;
}

.text-white-50 {
    color: rgba($white, 0.5);
}

.text-black-50 {
    color: rgba($black, 0.5);
}

.text-body {
    color: $body-color;
}

.text-underline {
    text-decoration: underline;
}

h1,
.h1 {
    line-height: rem(58);

    @include media-breakpoint-down(sm) {
        line-height: rem(50);
    }
}

h2,
.h2 {
    line-height: rem(54);
}

.display-1 {
    line-height: rem(66);

    @include media-breakpoint-down(sm) {
        font-size: rem(45);
        line-height: rem(50);
    }
}

.display-3 {
    line-height: rem(54);

    @include media-breakpoint-down(sm) {
        font-size: rem(32);
        line-height: rem(38);
    }
}

h5,
.h5 {
    line-height: rem(32);

    @include media-breakpoint-down(md) {
        line-height: rem(36);
    }
}

h3,
.h3 {
    @include media-breakpoint-down(md) {
        font-size: rem(32);
        line-height: rem(34);
    }
}

.height-auto{
    height: auto!important;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-x-hidden {
    overflow-x: hidden;
}

.overflow-y-hidden {
    overflow-y: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

a:hover {
    text-decoration: none;
}

button,
input,
textarea,
select {
    outline: 0;
}

.btn-default {
    background-color: #e9e9e9;
    color: #b0b0b0;
    transition: all 0.5s ease-in-out;

    &:hover {
        background-color: #ffd73b;
        color: $secondary;
    }
}

.btn-primary {
    @include media-breakpoint-down(xs) {
        font-size: 1rem;
        padding: 9px 25px;
    }

    &:hover,
    &:active {
        background-color: #ffd73b !important;
        border: 1px solid #ffd73b !important;
        color: inherit !important;
    }
}

.message_validation {
    color: $danger;
    font-size: 13px;

    &.hide {
        display: none;
    }
}

.message_error,
.error-message,
.message_info,
.info-message,
.message_success,
.success-message,
.message_success_custom {
    text-align: center;
    font-size: 30px;
    padding: 8px 10px;
    font-weight: 300;
}

.message_error,
.error-message {
    background: #ef302f;
    color: $white;
}

.message_info,
.info-message {
    background: #fdf0d0;
    color: #ef1d1c;
}

.message_success,
.success-message,
.message_success_custom {
    background: #34cc67;
    color: $white;
}

::-webkit-input-placeholder {
    color: $input-placeholder-color;
}

:-ms-input-placeholder {
    color: $input-placeholder-color;
}

::placeholder {
    color: $input-placeholder-color;
}

.rounded {
    border-radius: $border-radius !important;
}

.rounded-lg {
    border-radius: $border-radius-lg !important;
}

.rounded-sm {
    border-radius: $border-radius-sm !important;
}

.line-height-sm {
    line-height: 1.5rem;
}

.shadow {
    box-shadow: 0 1px 7px rgba(0, 0, 0, 0.08);
}

.shadow-lg {
    box-shadow: 0 3px 29px rgba(0, 0, 0, 0.08);

    @include media-breakpoint-down(xs) {
        box-shadow: 0 3px 7px rgba(0, 0, 0, 0.08);
    }
}

.shadow-sm {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.img-cover {
    object-fit: cover;
}

select.form-control {
    min-height: 50px;
    padding-right: 35px;

    @include media-breakpoint-down(md) {
        min-height: 42px !important;
    }
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    text-indent: 1px;
    text-overflow: "";
}

.select {
    position: relative;
}

.select:after {
    content: "";
    border-right: #757575 2px solid;
    border-bottom: #757575 2px solid;
    width: 7px;
    height: 7px;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    position: absolute;
    html[dir="ltr"] & {
        right: 20px;
    }
    html[dir="rtl"] & {
        left: 20px;
    }
    top: 20px;
    display: block;
}

body {
    overflow-x: hidden;
}

.field-error {
    border: 2px solid #d9534f !important;
}

.pop_loader {
    background: rgba(255, 255, 255, 0.8);
    position: fixed;
    width: 100%;
    height: 100%;
    white-space: nowrap;
    text-align: center;
    color: gray;
    z-index: 99000;
}

.hide {
    display: none !important;
}

.mndty {
    font-size: 16px;
    color: #f51b1b;
}

.image-icon-animate {
    position: relative;

    &:before,
    &:after {
        content: "";
        width: 140px;
        height: 140px;
        display: inline-block;
        position: absolute;
        opacity: 0;
        transition: all 0.5s ease-in-out;
        z-index: 1;
    }

    &:before {
        border-top: 50px solid $primary;
        border-right: 50px solid $primary;
        top: 0;
        right: 10%;
        transform: translate(60px, -60px);
    }

    &:after {
        border-bottom: 50px solid $primary;
        border-left: 50px solid $primary;
        bottom: 10%;
        left: 15px;
        transform: translate(-60px, 60px);
    }

    @include media-breakpoint-down(sm) {

        &:before,
        &:after {
            width: 100px;
            height: 100px;
        }

        &:before {
            border-top: 30px solid $primary;
            border-right: 30px solid $primary;
        }

        &:after {
            border-bottom: 30px solid $primary;
            border-left: 30px solid $primary;
        }
    }

    @include media-breakpoint-down(xs) {

        &:before,
        &:after {
            width: 70px;
            height: 70px;
        }

        &:before {
            border-top: 24px solid $primary;
            border-right: 24px solid $primary;
        }

        &:after {
            border-bottom: 24px solid $primary;
            border-left: 24px solid $primary;
        }
    }

    &.active {

        &:before,
        &:after {
            transform: translate(0px, 0px);
            opacity: 1;
        }
    }
}

.image-icon-animate-onHover {
    position: relative;

    &:before,
    &:after {
        content: "";
        width: 60px;
        height: 60px;
        display: inline-block;
        position: absolute;
        opacity: 0;
        transition: all 0.5s ease-in-out;
    }

    &:before {
        border-top: 20px solid $primary;
        border-right: 20px solid $primary;
        top: 0;
        right: 0;
    }

    &:after {
        border-bottom: 20px solid $primary;
        border-left: 20px solid $primary;
        bottom: 0;
        left: 0;
    }

    &:hover {

        &:before,
        &:after {
            opacity: 1;
        }
    }
}

.slick-active {
    .image-icon-animate-onHover {
        @include media-breakpoint-down(xs) {

            &:before,
            &:after {
                opacity: 1;
            }
        }
    }
}

.image-right-corner-box {
    position: relative;
    padding: rem(50) rem(35);
    min-height: 397px;

    @include media-breakpoint-down(lg) {
        padding: rem(40) rem(32);
        min-height: 350px;
    }

    @include media-breakpoint-down(sm) {
        min-height: 280px;
    }

    @include media-breakpoint-down(xs) {
        padding: rem(40) rem(40);
        min-height: 320px;
    }

    p {
        line-height: rem(26);

        @include media-breakpoint-down(xs) {
            font-size: 16px;
        }
    }

    a:not(.btn) {
        color: $gray-400;

        @include media-breakpoint-down(xs) {
            padding-bottom: 15px;
        }
        &:focus{
            outline: 0;
        }
    }

    * {
        position: relative;
        z-index: 1;
    }

    .image-right-corner {
        bottom: 0;
//        html[dir="ltr"] &{
            right: 0;
//        } 
//        html[dir="rtl"] &{
//            left: 0;
//            transform: scaleX(-1);
//        }
        z-index: 0;
        width: auto;
        height: auto;
    }
}

.cms-main-head {
    position: relative;
    font-size: rem(18);
    padding-bottom: rem(9);

    &:before {
        content: '';
        position: absolute;
        bottom: 0;
        @include media-breakpoint-up(md) {
            html[dir="ltr"] &{
              left: 0;
            }
            html[dir="rtl"] &{
              right: 0;
            }
        }
        width: 61px;
        height: 5px;
        background: $primary;
        display: inline-block;

        @include media-breakpoint-down(sm) {
            width: 77px;
            height: 3px;
              right: 0;left:0;
            margin: 0 auto;
        }
    }
}

.slick-dots {
    top: 10px;
    position: relative;

    @include media-breakpoint-up(lg) {
        top: 80px;
        text-align: left;
    }

    li {
        &.slick-active {
            button {
                background-color: #373a36 !important;
                transform: scale(1);
            }
        }

        button {
            width: 10px;
            height: 10px;
            border-radius: 50% !important;
            background-color: rgba(#373a36, 0.3);
        }
    }
}

.get-started-floating-btn {
    bottom: 30px;
    right: 30px;
    z-index: 9;
    @include media-breakpoint-down(sm) {
        bottom:35px;
    }

    &::before {
        content: "";
        width: 50px;
        height: 50px;
        display: inline-block;
        border-radius: 50%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        box-shadow: 4px 4px 18px rgba(0, 0, 0, 0.6);
        z-index: -1;
    }

    img {
        max-width: 70px;
    }
}



div#popup_container {
    background: #fff;
    padding: 20px !important;
    border-radius: 10px;

    h1 {
        font-size: 2rem;
        line-height: 1;
    }
}

div#popup_message {
    line-height: 1.2;
    margin: 0 0 10px;
    padding: 10px 0;
}

input#popup_ok {
    background: $primary;
    border: 0;
    padding: 0 16px;
    border-radius: 500px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    height: 30px;
}

.mobile-box-slider,
.web-box-slider,
.trading-app-slider,
.testimony-slider {
    &:not(.slick-initialized) {
        display: flex;
        flex-wrap: nowrap;
        overflow: hidden;
    }
}


.trading-app-slider {
    &:not(.slick-initialized) {
        .trading-app-slide {
            max-width: 33.33333%;
            flex: 0 0 33.33333%;
        }
    }
}

.LiveDemoAccount {
    .live {
        @include media-breakpoint-up(md) {
            html:not(.onlyltr)[dir="ltr"] & {
                border-right: 1px solid darken(desaturate(adjust-hue($tertiary, -1), 16.62), 14.31);
            }
            html[dir="rtl"] & ,html.onlyltr[dir="ltr"] &{
                border-left: 1px solid darken(desaturate(adjust-hue($tertiary, -1), 16.62), 14.31);
            }
        }

        @include media-breakpoint-down(sm) {
            border-bottom: 1px solid darken(desaturate(adjust-hue($tertiary, -1), 16.62), 14.31);
        }
    }
}
.selectDropdown{
    select{
        display:none;
    }
    span{
        cursor: pointer;
    }
    ul {
        position: absolute;
        top:100%;
        left: 0;
        list-style: none;
        padding: 5px;
        margin: 0;
        border: #ccc 1px solid;
        width: 100%;
        background: #fff;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transform: translate(0, 4px);
        transition: opacity .2s ease, visibility .2s ease, transform .3s;
    }
    &.open ul{
        opacity: 1;
        visibility: visible;
        transform: translate(0, 0);
        transition: opacity .3s ease, visibility .3s ease, transform .3s cubic-bezier(.4, .6, .5, 1.32);
    }
    li{
       padding:2px 0;
         a{
            padding: 4px 10px;
            display: block;
            font-size:14px;
            cursor:pointer;
             &:hover{
                background:#f5f5f5;
                }
         }
         &.active a{
            background:#f7eab9;
        }

    }
}

a:focus{
    outline: 0;
}
img.rotate{
    transform: scaleX(-1);
}
h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6{
    html[dir="ltr"] &{
      font-family:"proxima_nova", sans-serif;
    }
    html[dir="rtl"] &{
          font-family: 'Cairo', sans-serif;
    }
}

.floating-btn {
    right: 15px;
    bottom: 42px;
    box-shadow: 0 10px 5px rgba(0, 0, 0,0.1);
//    &:before {
//        border-left: #f5c300 15px solid;
//        content: "";
//        border-bottom: transparent 15px solid;
//        border-top: transparent 15px solid;
//        position: absolute;
//        bottom: -16px;
//        left: 48px;
//    }
//    &:hover{
//        &:before{
//            border-left: #ffd73b 15px solid;
//        }
//    }
}
html.onlyltr[dir="ltr"]{
    header,.LiveDemoAccount,#footer{
        direction: rtl;
        font-family: 'Cairo', sans-serif;   
        text-align: right
    }
    .lng-nme{
        padding-left: 0!important;
        padding-right: 5px;
    }
    .language-block{
        font-family:"proxima_nova", sans-serif;
    }
    
    
}

.sprite-brainy-bull, .sprite-trade-talks, .sprite-word-week, .sprite-mental-funda { display: inline-block; background: url('../images/sprite-logo.png') no-repeat; overflow: hidden; text-indent: -9999px; text-align: left; }
.sprite-brainy-bull { background-position: -3px -0px; width: 180px; height: 47px; }
.sprite-trade-talks { background-position: -3px -50px; width: 130px; height: 47px; }
.sprite-word-week { background-position: -3px -100px; width: 120px; height: 49px; }
.sprite-mental-funda { background-position: -3px -152px; width: 75px; height: 70px; }


.bread-crumb{
    background: #f8f6f6;
    padding: 3px 0;
    ul{
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        li{
            position: relative;
            color: #666;
            font-size: 14px;
            text-transform: capitalize;
            padding:7px 15px;
            font-weight: $font-weight-semibold;
            &:last-child{
                color: $black;
                font-weight: $font-weight-normal;
                &::after{
                    display: none;
                }
            }
            &:first-child{
                 html[dir="ltr"] &{
                    padding-left: 0;
                } 
                html[dir="rtl"] &{
                   padding-right: 0;
                } 
            }
            &::after{
                content: "";
                border-top:$primary 2px solid;
                border-right:$primary 2px solid;
                width:7px;
                height: 7px;
                display: block;
                position: absolute;
                html[dir="ltr"] &{
                    transform: rotate(45deg);
                    right: -5px;
                    top: 17px;
                } 
                html[dir="rtl"] &{
                    transform: rotate(225deg);
                    left: -3px;
                    top: 16px;
                } 
            }
            a,span{
                color: #373b36;
            }
        
        }
    }
}


.cookiePolicy{
    bottom: 0;
    padding: 10px 30px;
    z-index: 9;
    @include media-breakpoint-down(sm) {
        padding: 15px 29px 6px 5px;
    }
    .icon-close-button{
        position: absolute;
        right: 10px;
        top: 10px;
        font-size: 11px;
        color: $primary;
    }
    .cookie-btn{
        @include media-breakpoint-down(sm) {
        padding: 8px 15px;
        }

    }
}
span.text-highlight.font-semibold {
    background:$primary!important;
    color: #fff;
}

.rounded-one-rem {
    border-radius: 1rem !important;
}

.bordered-transparent {
    border: 1px solid transparent;
}