// THEME
$font-family: "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

$font-white: #fff;
$font-white-50: rgb(255 255 255 / 50%);
$font-white-75: rgb(255 255 255 / 75%);
$font-black: #222;
$black: #000;

$main-text-color: #fff;
$color-danger : #dc3545!important;
$red : #ec1c24;
$yellow: #fcf070;
$yellow-orange: #FFD24F;

$transition : .3s ease !important;


$main-color: #a00c10;
$main-color: #444;
$main-color-50: #a00c1080;
$main-color-50: #4448;
$main-color-00: #a00c1000;
$main-color-00: #4440;
$main-text-color: #222;
$main-masthead: url('/assets/images/cl/_main/Plant-Rewards_Masthead.png');
$main-bg:  url('/assets/images/cl/_main/CL_PR_BG.png');



@mixin background-default{
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-color: transparent;
    background-size: contain;
}


@mixin primary-btn {
    background-color: $main-color;
    color: $black;
    font-family: $font-family;
    font-weight: bold;
    border: none;
}

@mixin plant-ui-default {
    width: 100%;
    height: 100%;
    margin:0
}


// general styles
body {
    //@include background-default;
    background-color: $main-color;
    //background-image: $main-bg;
    font-family: $font-family;
    color: $main-text-color;
    font-weight: normal;
    overflow-x: hidden;
    line-height: 1.2;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-size: 0.9rem;
    @media screen and (max-width: 320px) {
        font-size: 12px;
    }
    .text-red{
        color : $red;
    }
    .text-main{
        //color: $main-color;
        color:#fff;
    }

    .bg-layer-gradient {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: $main-color;
        background:linear-gradient(90deg, $main-color 0%, $main-color-00 10%, $main-color-00 90%, $main-color 100%);
        //background: radial-gradient(closest-side, #a20c1100 70%, #a20c1180 100%);
    }
    .bg-color{
        background-color : $main-color !important;
    }
    .bg-pink-gradient{
        background: rgb(245,148,119);
        background:linear-gradient(0deg, #f59477 0%, #fcdacb 100px,#fcdacb calc(100% - 100px), #dc6c53 100%);
    }

    .masthead-img{
        margin: 0 auto;
        max-width: 400px;
        height: 25vw;
        max-height: 250px;
        min-height: 150px;
        @include background-default;
        background-position: 50% 100%;
        background-image: $main-masthead !important;
        &.big{
            height: 60vw;
        }
    }


    .bg-layer {
        //background-image: $main-bg;
        background-size: cover;
        background-position: 50% 50%;
        //background-color : $main-color-50;
        z-index: -9999;
        position: fixed;
        height: 100vh;
        top: 0;
        left: 50%;
        transform: translateX(-50%);

        .bg-layer-gradient {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            //background: $main-color;
            //background: linear-gradient(90deg, $main-color 0%, $main-color-00 2%, $main-color-00 98%, $main-color 100%);
        }

        .bg-layer-img {
            width: 100%;
            height: 100%;
            background-size: cover;
            background-repeat: no-repeat;
            background-position: 50% 0%;
            //background-color: $main-color;
            //background-image: $main-bg ;
        }
    }

    .navbar-nav .nav-link{
        position: relative;
    }
    input, select {
        font-family: $font-family;
    }

    h1, h2, h3, h4, h5, h6 {
        margin: 10px auto;
        font-weight: 700;
        //font-family: 'Josefin Sans', sans-serif;
    }

    b, .bold , .text-bold{
        font-weight: bold;
    }

    a {
        color: inherit;
        transition: $transition;

        &:hover {
            color: inherit;
            opacity: .5;
        }
    }

    //small, .small {
    //    margin: 10px auto;
    //    display: block;
    //    font-size: .7rem;
    //    color: $font-white-75;
    //}
    .text-underline{
        text-decoration: underline;
    }

    img {
        object-fit: contain;
    }
    .cursor-pointer {
        cursor: pointer;
        transition: $transition;
        &:hover{
            opacity: .7;
        }
    }
    .-z-1{
        z-index: 0;
    }
    .z-0{
        z-index: 0;
    }
    .z-1{
        z-index: 1;
    }
    .z-2{
        z-index: 2;
    }
    .z-10{
        z-index:10;
    }
    .rounded-sm{
        border-radius: 0.125rem;
    }
    .rounded{
        border-radius: 0.375rem;
    }
    .rounded-md{
        border-radius: 0.375rem;
    }
    .rounded-lg{
        border-radius: 0.5rem;
    }

    .opacity-50{
        opacity: .5;
    }
    .opacity-100{
        opacity: 1;
    }

}

#app{
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
}

button {
    transition: $transition;

    &:focus, &:hover {
        outline: none;
        webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        opacity: .9;
    }

    a {
        text-decoration: none;
    }

    &.btn-collect {
        &.disabled {
            display: none;
        }

        &.claimable {
            font-size: 16px;
            line-height: 32px;
            background-color: $yellow-orange;
            border: 0px;
            color: #3A2178;
            cursor: pointer;
            width: 100%;
            border-radius: 0 5px 5px 0;
        }
    }
}

.btn-primary {
    @include primary-btn;
    display: block;
    margin: 0 auto;
    padding: .5em 2.5em;

    &[disabled], &.disabled {
        background: #989898;
        cursor: default;

        &:hover {
            opacity: 1;
        }
    }

    &:hover, &:focus, &:target, &:active {
        @include primary-btn;
        opacity: .5;
    }
}
.footer {
    //background: rgb(248,150,39);
    //background: linear-gradient(90deg, rgba(248,150,39,1) 0%, rgba(249,201,73,1) 100%);
}



/// popup stuff
.modal-theme {
    .modal-header, .modal-footer{
        border: 0;
    }
    .modal-content{
        background: transparent;
        border: 0;
    }
    .modal-masthead{
        width: 75%;
        max-width: 250px;
        z-index: 1;
        margin: 0 auto;
        margin-bottom: -100px;
    }
    //.modal-close{
    //    position: absolute;
    //    width: 40px;
    //    justify-content: center;
    //    align-items: center;
    //    height: 40px;
    //    right: 0;
    //    top: 0;
    //    transform: translate(40%, -40%);
    //    background: #fff;
    //    border-radius: 50%;
    //    display: flex;
    //    cursor :pointer;
    //    transition: $transition;
    //    i{
    //
    //        transition: $transition;
    //    }
    //    &:hover{
    //        i {
    //            color: #971b26 !important;
    //        }
    //    }
    //}
    .modal-body{

        //padding-top: 65px;
        //background: #faba00 url('/assets/images/cl/_main/plant-reward-popup-bg.png') no-repeat 50% 100%;
        background-size: cover;
        border-radius: 1rem;
        //border: .5rem solid #fff;
        background: #444;
        //background: $main-color;
    }

}

.popup {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0px;
    left: 0px;
    background-color: RGBA(0, 0, 0, 0.8);
    z-index: 3;
}


// registration otp stuff
label {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}
input.codebox, input[type=number] {
    width: 11vw;
    height: 11vw;
    max-height: 45px !important;
    max-width: 45px !important;
    margin: 2px;
    padding: 5px !important;
    font-size: 18px !important;
    text-align: center;
    font-weight: 800 !important;
}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}
.form-check{
    //background: #f4f4f44d;
    display: block;
    padding: 5px;
    border-radius: 5px;
    transition: $transition;
}

.form-check label {
    position: relative;
    cursor: pointer;
}

.form-check label:before {
    content:'';
    -webkit-appearance: none;
    background-color: transparent;
    border: 2px solid #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0px -15px 10px -12px rgba(0, 0, 0, 0.05);
    padding: 10px;
    display: block;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
    margin-right: 10px;
    height: 35px;
    width: 35px;
    border-radius: 7px;
    transition: $transition;
}
.form-check input:checked + label:before{
    background: $main-color;
}
.form-check input:checked + label:after {
    content: '';
    display: block;
    position: absolute;
    top: 10px;
    left: 13px;
    width: 6px;
    height: 14px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.install-toast{
    z-index: 10;
    position: absolute;
    bottom: 70px;
    color: $font-black;
    text-shadow: none;

    #install-app{
        display:flex;
        border-radius: 5px;
        padding: 10px;
        color: $font-black;
        background: $font-white-50;
        text-shadow: none;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }
}

// main ui stuff

.main-content{
    border-radius:  50px;
    margin-top: -25px;
    box-shadow: 2px 2px 11px #0000003b;
    padding: 20px 0;
    margin-bottom: 25px;
    width: calc(100% - 10px);
}

/*WHEEL*/


.wheel-container{
    margin: 0 auto;
    width: 100vw;
    height: 100vw;
    max-width: 450px;
    max-height: 450px;
    .wheel-art{
        position: absolute;
        top:50%;
        left:50%;
        width: 100%;
        height: 100%;
        transform: translate(-50%, -50%);
        background-repeat: no-repeat;
        background-size:contain;
        background-position: 50% 50%;

    }
    .wheel{
        margin: auto;
        background: #ccc;
        width: 400px;
        height: 400px;
        border-radius: 100%;
        position: relative;
        //transition:all 7s cubic-bezier(0.075, 0.820, 0.165, 1.000);
    }
    .wheel-center{
        position: absolute;
        top:50%;
        left:50%;
        transform:translate(-50%,-50%);
        width: 15%;
        height: 15%;
        background: url('/assets/images/yeos/wheel-center.png') no-repeat 50% 50%;;
        background-size: contain;
    }
    .wheel-outer{
        width: 80vw;
        height:80vw;
        max-width: 350px;
        max-height: 350px;
        overflow: hidden;

        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);

        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        &::after {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: url('/assets/images/yeos/wheel-ring.png') no-repeat 50% 50%;
            background-size: contain;
        }
        &.off{
            &::after {
                background: url('/assets/images/yeos/wheel-ring-off.png') no-repeat 50% 50%;
                background-size: contain;
            }

        }
    }
    .wheel-wrap{
        width: 85%;
        height: 85%;
        overflow: hidden;
        border-radius: 50%;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .wheel-shadow{
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        margin:auto;
        width:400px;
        height:400px;
        border-radius:100%;
        box-shadow:4px 8px 0px rgba(0,0,0,.2);
    }

    .slat{
        position:absolute;
        top:0;
        left:0;
        transform-origin:50% 50%;
        width:100%;
        height:100%;

        .shape{
            width:100%;
            height:100%;
        }

        .label{
            color:#000;
            font-size:20px;
            height:50px;
            width: 100%;
            position:absolute;
            bottom:0;
            left:50%;
            text-align: center;
            background: white;
            transform:rotate(calc(360deg / 6)) //change according to slices
        }
    }

}


.help_group {
    margin: 20px auto;
    max-width: 350px;
    //display: none;
    &-title{
        margin: 0px auto;
    }
    &-wrap{
        display:flex;
        justify-content: center;
        align-items: center;
        img {
            width: 100%; margin: 5px auto;
        }

    }
    &-hide{
        font-size: 12px;
    }
}

.tabs-list {
    display: flex;
    justify-content: space-evenly;
    align-content: center;

    width: 100%;
    padding: 0;

    text-align: center;
    list-style: none;

    transition: .3s ease;
    font-size: .8em;
    font-weight: 700;
    margin: 10px auto;
    li {
        font-size: 12px;
        padding: 5px;
        margin: 0;
        border-bottom: 2px solid rgba(255, 255, 255, .25);

        &:hover {
            border-bottom: 2px solid rgba(255, 255, 255, .5);
            transition: .3s ease;
        }

        &.active {
            border-bottom: 2px solid white;
            transition: .3s ease;

            &:hover {
                opacity: 1;
            }
        }
    }


    &.leaderboard_page {
        font-size: 1.2em;
        font-weight: 700;
        margin: 50px auto 25px;

        li {
            padding: 10px 20px;
            margin: 0 20px;
        }
    }


    a {
        text-decoration: none;
    }

}

.demo-receipt-box {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    transition: .3s ease!important;
    z-index: 0;

    .img-demo {
        max-width: 350px;
    }
    .img-wrapper {
        cursor: pointer;
        border-radius: 10px;
        box-shadow: 1px 1px 3px rgb(0 0 0 / 50%);
        padding: 5px;
    }
    .img-wrapper:hover, .img-wrapper:target {
        box-shadow: none;
    }
}

#how-to-participate{
    object-position: 50% 100%;
    @media screen and (max-width: 768px) {
        object-fit: cover;
        height: 100px;
    }
    @media screen and (max-width: 576px) {
        height: 70px;
        object-fit: cover;
    }
}

//tutorial force flex
.tutorial-main{
    display: flex !important;
    flex-direction: column;
}
