
@font-face {
    font-family: "Zawi-Bold";
    src: url(../fonts/Zawi-Bold.otf);
}

@font-face {
    font-family: "Zawi-Medium";
    src: url(../fonts/Zawi-Medium.otf);
}

@font-face {
    font-family: "Zawi-Light";
    src: url(../fonts/Zawi-Light.otf);
}


@font-face {
    font-family: "Larken-Bold";
    src: url(../fonts/Larken-Bold.otf);
}

@font-face {
    font-family: "Larken-Medium";
    src: url(../fonts/Larken-Medium.otf);
}

@font-face {
    font-family: "Larken-Light";
    src: url(../fonts/Larken-Light.otf);
}

*,
* button:focus {
    outline: 0;
}

:root {
    --main-color: #B99558;
    --subColor: #00263E;
    --cr-blue: #0445AF;
    --cr-green: #75AB03;
    --cr-red: #BF4D4E;
}

// ------------------ colors -------------------
.main-color {
    color: var(--main-color) !important;
}

.main-back {
    background-color: var(--mainColor) !important;
    border-color: var(--mainColor) !important;
}


.cr-blue {
    color: var(--cr-blue) !important;
}

.back-blue {
    background-color: var(--cr-blue) !important;
    border-color: var(--cr-blue) !important;
}


.cr-green {
    color: var(--cr-green) !important;
}

.back-green {
    background-color: var(--cr-green) !important;
    border-color: var(--cr-green) !important;
}


.cr-red {
    color: var(--cr-red) !important;
}

.back-red {
    background-color: var(--cr-red) !important;
    border-color: var(--cr-red) !important;
}


html::-webkit-scrollbar {
    height: 20px;
    width: 10px;
    background: #f1f1f1;
    border-radius: 10px;
}

html::-webkit-scrollbar-thumb {
    background: #999;
    -webkit-border-radius: 0;
    border-radius: 10px;
}

html::-webkit-scrollbar-corner {
    background: #999;
    border-radius: 10px;
}

body {
    font-family: "Zawi-Medium";
    // font-family: "Larken-Medium";
    // font-family: "Larken-Light";
    text-decoration: none;
    font-size: 0.9em;
    overflow-x: hidden;
    position: relative;
    // background-color: #ecf2fc;
    // background: linear-gradient(45deg , #ecf2fc , transparent);
    background-image: url(../images/body_bg.png);
    background-size: cover;
    background-position: top;
    background-attachment: fixed;
    color: #627883;
}

h1,
h2,
h3,
h4,
h5,
h6{
    font-family: "Zawi-Bold";
    // font-family: "Larken-Bold";
    // font-weight: 500;
    margin: 0;
    line-height: 1.6;
    color: #00263E;
}

body a:hover {
    text-decoration: none;
}

body a:focus {
    outline: 0;
}

body ul {
    list-style-type: none;
    margin: 0;
}

[type=email], [type=number], [type=tel], [type=url] {
    direction: inherit;
}

.btn-default:active,
.btn-default:active:focus,
.btn-default:active:hover,
.btn-default:focus,
.btn-default:hover,
.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn:not(:disabled):not(.disabled).active,
.btn:not(:disabled):not(.disabled):active {
    -webkit-appearance: none;
}

.btn:active,
.btn:active:focus,
.btn:active:hover,
.btn:focus,
.btn:hover,
.btn:not(:disabled):not(.disabled).active,
.btn:not(:disabled):not(.disabled):active {
    -webkit-transition: all 0.6s ease;
    -moz-transition: all 0.6s ease;
    transition: all 0.6s ease;
    outline: 0;
}




/* ==================== global style ============================== */

a,
span,
img {
    display: inline-block;
    transition: all 0.3s ease;
    color: inherit;
    text-decoration: none;
}

a:hover {
    // color: #999;--+++
}

ul {
    padding: 0;
}

img {
    max-width: 100%;
    max-height: 100%;
}

.img_cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img_contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

p {
    font-size: 15px;
    // color: #666;
    line-height: 1.7;
    margin: 0;
}

// .card{
//     border: 0;
//     padding: 30px;
//     border-radius: 10px;
// }

.text,
.text * {
    font-size: 14px;
    line-height: 1.8;
    // color: #757575;
}

small.text {
    font-size: 12px;
}

.section_padding {
    padding: 80px 0;
}


.dropdown {
    .dropdown-menu {
        border-radius: 10px;
        padding: 10px;
        border: 0;
        box-shadow: 15px 15px 30px #0001;
        .dropdown-item {
            font-size: 14px;
            padding: 0.5rem 1rem;
            border-radius: 10px;
        }
    }
}


/* --------------- to_top button --------------- */


.progress-wrap {
    position: fixed;
    left: 20px;
    bottom: 20px;
    height: 50px;
    width: 50px;
    cursor: pointer;
    display: block;
    border-radius: 50px;
    box-shadow: inset 0 0 0 2px #0001;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transform: translateX(-100px);
    z-index: 99;
    transition: all 200ms linear;

    &::after {
        background: url(../images/top-arrow.png);
        background-size: contain;
        background-repeat: no-repeat;
        content: '';
        display: flex;
        align-items: center;
        align-content: center;
        justify-content: center;
        font-style: normal;
        font-variant: normal;
        text-rendering: auto;
        -webkit-font-smoothing: antialiased;
        position: absolute;
        color: #000;
        left: 13px;
        top: 13px;
        height: 25px;
        width: 25px;
        display: block;
    }

    svg {
        path {
            fill: #f8f8f8;
        }
        &.progress-circle{
            path {
                stroke: #000;
                stroke-width: 5;
                box-sizing: border-box;
            }
        }
    }

    &.active-progress{
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* --------------- buttons --------------- */
.butn {
    position: relative;
    padding: 15px 40px;
    border-radius: 50px;
    background-color: var(--main-color);
    color: #fff;
    &:hover {
        background-color: var(--subColor);
    }
    &.butn-line {
        background-color: transparent;
        border: 1px solid var(--main-color);
        color: var(--main-color);
        &:hover {
            background-color: var(--main-color);
            * {
                color: #fff;
            }
        }
    }
    &.butn-blue {
        color: #fff;
        background-color: var(--subColor);
        &:hover {
            background-color: var(--main-color);
        }
    }
    &.disabled {
        opacity: 0.2;
        pointer-events: none;
    }
}


/* --------------- page-content --------------- */
.page-content {
    position: relative;
    padding: 80px 0;
    border-top: 5px solid var(--main-color);
}

.main-title {
    font-size: 34px;
    // margin-bottom: 15px;
}

.dash-line {
    position: relative;
    height: 1px;
    width: 100%;
    background-color: #b9955844;
    &::before {
        position: absolute;
        content: "";
        left: 0;
        bottom: 0;
        width: 35px;
        height: 4px;
        background-color: var(--main-color);
    }
}

.challenge-det {
    position: relative;
    padding-top: 100px;

    .circle-timer {
        width: 120px;
        height: 120px;
        position: relative;
        margin-bottom: 30px;
        &.done {
            background-color: #fff;
            border-radius: 50%;
            border: 5px solid var(--main-color);
            svg {
                display: none;
            }
        }
        svg {
            max-width: 100%;
        }
        .timer-text {
            position: absolute;
            left: 0;
            right: 0;
            top: 10%;
            bottom: 10%;
            margin: auto;
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
            color: #B99558;
        }
        #remaining {
            font-size: 25px;
            color: #B99558;
            transition: color 3s linear;
        }
        #stop1,
        #stop2 {
            transition: all 3s linear;
        }
        #ticker {
            transition: all 1s linear;
        }
    }
}

.icon-list {
    position: relative;
    li {
        display: flex;
        margin-bottom: 20px;
        font-size: 16px;
        color: #00263E;
        .icon {
            width: 20px;
            height: 20px;
            margin-inline-end: 15px;
            flex-shrink: 0;
        }
    }
}

.congrat-card {
    position: relative;
    padding: 30px;
    background: #FFFFFF;
    box-shadow: -4px 12px 24px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    .happy-img {
        height: 100%;
        img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
    }
    .bars {
        .progress-bar-half {
            margin-top: 30px;
        }
        .row {
            .col-lg-4 {
                &:nth-of-type(1) {
                    .progress-bar-half {
                        .bar {
                            border-bottom-color: #8D5DA7;
                            border-right-color: #8D5DA7;
                        }
                        .small {
                            color: #8D5DA7;
                        }
                    }
                }
                &:nth-of-type(2) {
                    .progress-bar-half {
                        .bar {
                            border-bottom-color: #4B6073;
                            border-right-color: #4B6073;
                        }
                        .small {
                            color: #4B6073;
                        }
                    }
                }
                &:nth-of-type(3) {
                    .progress-bar-half {
                        .bar {
                            border-bottom-color: #75AB03;
                            border-right-color: #75AB03;
                        }
                        .small {
                            color: #75AB03;
                        }
                    }
                }
            }
        }
    }
}


/* --------------- logo-menu --------------- */
.logo-menu {
    position: relative;
    .logo {
        height: 80px;
    }
}


/* --------------- challenge-wrapper --------------- */
.challenge-wrapper {
    position: relative;
    padding-top: 30px;

    .start-wrapper {
        margin-top: 100px;
        .top-cont {
            position: relative;
            padding-bottom: 30px;
            border-bottom: 4px solid #b995583a;
        }
        .progress-circls {
            display: flex;
            justify-content: space-between;
            .progress-card {
                position: relative;
                text-align: center;
                margin-top: 20px;
                h6 {
                    margin-bottom: 15px;
                }
            }
        }
    }
}

.progress-bar-half{
    position: relative;
    // margin: 4px;
    // float:left;
    text-align: center;
    .small {
        font-size: 12px;
        margin-top: 10px;
    }
    .barOverflow{
        position: relative;
        overflow: hidden;
        width: 90px;
        height: 45px;
        margin: 0 auto -20px;
    }
    .bar{
        position: absolute;
        top: 0;
        left: 0;
        width: 90px;
        height: 90px;
        border-radius: 50%;
        box-sizing: border-box;
        border: 5px solid #eee;
        border-bottom-color: #00263ec9;
        border-right-color: #00263ec9;
    }
    &.no-progress {
        .bar {
            border-bottom-color: #eee;
            border-right-color: #eee;
        }
    }
    
    &.purple-progress {
        .bar {
            border-bottom-color: #8D5DA7;
            border-right-color: #8D5DA7;
        }
        .small,
        .text {
            color: #8D5DA7;
        }
    }
    &.green-progress {
        .bar {
            border-bottom-color: #75AB03;
            border-right-color: #75AB03;
        }
        .small,
        .text {
            color: #75AB03;
        }
    }
}


.ques-number {
    position: relative;
    display: flex;
    align-items: flex-end;
    .num {
        font-size: 18px;
        font-weight: bold;
        margin: 0 10px -8px -10px;
        color: var(--main-color);
    }
    .point {
        position: relative;
        padding: 7px 15px;
        background-color: #EEE6DA;
        color: var(--main-color);
        flex-shrink: 0;
        white-space: nowrap;
        margin-bottom: 14px;
        &::after {
            position: absolute;
            content: "";
            left: 0;
            bottom: -14px;
            width: 10px;
            height: 14px;
            border-top: 7px solid #EEE6DA;
            border-left: 7px solid #EEE6DA;
            border-right: 7px solid transparent;
            border-bottom: 7px solid transparent;
        }
    }
}

.question-card {
    position: relative;
    margin-top: 30px;
    &.disabled {
        pointer-events: none;
    }
    .question {
        position: relative;
        font-size: 24px;
        margin: 15px 0 20px;
        // font-family: "Larken-Light";
    }
    .answers {
        position: relative;
        .form-check {
            position: relative;
            padding: 0;
            .form-check-label {
                position: relative;
                background-color: #0445AF05;
                // padding: 10px 10px 10px 44px;
                padding: 14px 10px 10px 44px;
                border-radius: 50px;
                border: 1px solid #0445AF44;
                margin-top: 10px;
                display: flex;
                align-items: center;
                cursor: pointer;
                width: 100%;
                font-size: 16px;
                color: var(--cr-blue);
            }
            .form-check-input {
                float: none;
                margin: 0;
                flex-shrink: 0;
                width: 24px;
                height: 24px;
                background-color: transparent;
                border: 1px solid rgba(4, 69, 175, 0.6);
                position: absolute;
                left: 10px;
                top: calc(50% - 12px);
                box-shadow: none;
                &:checked {
                    background-color: var(--cr-blue);
                    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
                    &~.form-check-label {
                        background-color: #0445AF11;
                        border-color: var(--cr-blue);
                    }
                }
            }
            &.correct {
                .form-check-input {
                    background-color: var(--cr-green) !important;
                }
                .form-check-label {
                    background-color: #75AB0311 !important;
                    border-color: var(--cr-green) !important;
                    color: var(--cr-green) !important;
                }
            }
            &.incorrect {
                .form-check-input {
                    background-color: var(--cr-red) !important;
                }
                .form-check-label {
                    background-color: #BF4D4E11 !important;
                    border-color: var(--cr-red) !important;
                    color: var(--cr-red) !important;
                }
            }
        }
    }
}

.incorrect-card {
    position: relative;
    padding: 10px 10px 10px 30px;
    background-color: #FFEAEB;
    border-radius: 10px;
    color: var(--cr-red);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    // display: none;
    &::before {
        position: absolute;
        content: "";
        left: 10px;
        top: 10px;
        border-radius: 5px;
        width: 5px;
        height: calc(100% - 20px);
        background-color: var(--cr-red);
    }
    .text {
        padding: 10px 0;
        font-size: 16px;
        .txt {
            font-style: italic;
        }
    }
    .icon {
        font-size: 20px;
        cursor: pointer;
        width: 32px;
        height: 32px;
    }
    &.show {
        display: flex;
    }
}

.correct-card {
    position: relative;
    padding: 10px 10px 10px 30px;
    background-color: #DEF4F0;
    border-radius: 10px;
    color: #479F8D;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    // display: none;
    &::before {
        position: absolute;
        content: "";
        left: 10px;
        top: 10px;
        border-radius: 5px;
        width: 5px;
        height: calc(100% - 20px);
        background-color: #479F8D;
    }
    .text {
        padding: 10px 0;
        font-size: 16px;
        .txt {
            font-style: italic;
        }
    }
    .icon {
        font-size: 20px;
        cursor: pointer;
        width: 32px;
        height: 32px;
    }
    &.show {
        display: flex;
    }
}

.fsz-16 {
    font-size: 16px;
}

.disable {
    pointer-events: none;
    opacity: 0.5;
}


/* Preloader
-----------------------------------------------------------------*/
// ----------- loader -----------
#preloader {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: fixed;
    z-index: 9999999;
    pointer-events: none;
    .logo_img{
        width: 300px;
        max-width: 70%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50% , -50%);
        z-index: 20;
        opacity: 0.5;
    }

    
}
#loading-wrapper {
    transition: all 1s ease;
}
#preloader .top-half,
#preloader .btm-half {
    content: "";
    position: fixed;
    left: 0;
    height: 50%;
    width: 100%;
    background: #f9f9f9;
    // background: linear-gradient(to right, #7491f8 , #80d3ff );
    -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
    -o-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
    transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

#preloader .top-half {
    top: 0;
    object-fit: cover;
    object-position: bottom;
}

#preloader .btm-half {
    bottom: 0;
    object-fit: cover;
    object-position: top;
}

#preloader.isdone {
    visibility: hidden;
    opacity: 0;
    transition: all 1s ease;
    -webkit-transition-delay: 1.5s;
    -o-transition-delay: 1.5s;
    transition-delay: 1.5s;
}

#loading-wrapper{
    // transition: all 1s ease;
    transition-delay: 0.5s;
    // &.isdone {
    //     opacity: 0;
    //     transform: scale(3);
    //     filter: blur(2px);
    //     transition-delay: 1s;
    // }
}

#preloader.isdone .top-half{
    transform: translateY(-100%);
    -webkit-transition: all 0.7s cubic-bezier(1, 0, 0.55, 1);
    -o-transition: all 0.7s cubic-bezier(1, 0, 0.55, 1);
    transition: all 0.7s cubic-bezier(1, 0, 0.55, 1);
    -webkit-transition-delay: 1s;
    -o-transition-delay: 1s;
    transition-delay: 1s;
}

#preloader.isdone .btm-half {
    transform: translateY(100%);
    -webkit-transition: all 0.7s cubic-bezier(1, 0, 0.55, 1);
    -o-transition: all 0.7s cubic-bezier(1, 0, 0.55, 1);
    transition: all 0.7s cubic-bezier(1, 0, 0.55, 1);
    -webkit-transition-delay: 1s;
    -o-transition-delay: 1s;
    transition-delay: 1s;
}

// #loading-text {
//     color: #fff;
//     position: fixed;
//     top: 50vh;
//     left: 50vw;
//     transform: translate(-50%, -100%);
//     font-size: 30px;
//     text-transform: uppercase;
//     letter-spacing: 20px;
// }



// -------- another loader --------
.loader {
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    background-image: url(../images/body_bg.png);
    background-size: cover;
    background-position: top;
    background-attachment: fixed;
    transition: all 1s ease;
    pointer-events: none;
    .video-wrapper {
        position: relative;
        mask: url(../images/fav_lg.png);
        mask-size: contain;
        mask-repeat: no-repeat;
        mask-position: center;
        height: 40vh;
        width: 40vh;
        left: calc(50% - 20vh);
        top: 30vh;
        animation: rotate-center 20s linear infinite both;
        .video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            animation: rotate-center 20s linear infinite reverse both;
        }
    }
    &.loaded {
        opacity: 0;
        transform: scale(1.3);
        visibility: hidden;
    }
}

/**
 * ----------------------------------------
 * animation rotate-center
 * ----------------------------------------
 */
 @-webkit-keyframes rotate-center {
    0% {
      -webkit-transform: rotate(0);
              transform: rotate(0);
    }
    100% {
      -webkit-transform: rotate(360deg);
              transform: rotate(360deg);
    }
  }
  @keyframes rotate-center {
    0% {
      -webkit-transform: rotate(0);
              transform: rotate(0);
    }
    100% {
      -webkit-transform: rotate(360deg);
              transform: rotate(360deg);
    }
  }
  

/* --------------- to_top --------------- */
/* --------------- to_top --------------- */
/* --------------- to_top --------------- */
/* --------------- to_top --------------- */
/* --------------- to_top --------------- */
/* --------------- to_top --------------- */
/* --------------- to_top --------------- */


/* ======== */

@media screen and (max-width: 991px) {
    .question-card .answers .form-check .form-check-label {
        font-size: 13px;
    }
    .question-card .question {
        font-size: 20px;
    }
}

@media screen and (max-width: 787px) {
}

/* ======= */

@media screen and (max-width: 480px) {
}

// -------- en direction --------
html[dir="ltr"]{

    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

    body{
        direction: ltr;
        font-family: 'Poppins', sans-serif;
    }
}
