// 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;
$yellow: #fde501;
$yellow-orange: #ffd24f;

$transition: 0.3s ease !important;

$main-color: #3ab49a;
$main-color-50: #3ab49aaa;
$main-color-00: #3ab49a00;
$main-text-color: #fff;
$main-masthead: ""; // url('/assets/images/cl/_main/Plant-Rewards_Masthead.png');
$main-bg: ""; // url('/assets/images/cl/_main/CL_PR_BG.png');

$main-color-cny: #8b131a;
$main-color-cny-50: #8b131aaa;
$main-color-cny-00: #8b131a00;
$main-text-color-cny: #fff;
$main-masthead-cny: ""; // url('/assets/images/cl/_main/Plant-Rewards_Masthead_CNY.png') !important;
$main-bg-cny: ""; // url('/assets/images/cl/_main/CL_PR_Default_BG_CNY.png');
// $main-bg-cny:  url('/assets/images/singpost/main/Singpost_AR_BG.png');

$main-color-xmas: #144e47;
$main-color-xmas-50: #144e47aa;
$main-color-xmas-00: #144e4700;
$main-text-color-xmas: #fff;
$main-masthead-xmas: ""; // url('/assets/images/cl/_main/Plant-Rewards_Masthead-xmas.png') !important;
$main-bg-xmas: ""; // url('/assets/images/cl/_main/CL_PR_BG_Xmas.png');

$nutrient-sun-name: "Sun";
$nutrient-fertilizer-name: "Fertilizer";
$nutrient-water-name: "Water";

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

@mixin primary-btn {
    background-color: $yellow !important;
    color: $font-black !important;
    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;
    text-shadow: 1px 1px 3px rgb(0 0 0 / 25%);
    font-weight: normal;
    overflow-x: hidden;
    line-height: 1.2;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    @media screen and (max-width: 320px) {
        font-size: 12px;
    }

    .bg-layer {
        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 ;
        }
    }
    .bg-color {
        background-color: $main-color-50;
    }

    .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;
        }
    }

    &.cny-theme {
        background-color: $main-color-cny;
        //background-image: $main-bg-cny;
        color: $main-text-color-cny;
        .bg-layer-gradient {
            background: $main-color-cny;
            background: linear-gradient(
                90deg,
                $main-color-cny 0%,
                $main-color-cny-00 2%,
                $main-color-cny-00 98%,
                $main-color-cny 100%
            );
        }

        .bg-layer-img {
            background-color: $main-color-cny;
            background-image: $main-bg-cny;
        }

        .masthead-img {
            background-image: $main-masthead-cny;
        }

        .bg-color {
            background-color: $main-color-cny-50;
        }
        .bg-nav-top {
            background: linear-gradient(
                0deg,
                $main-color-cny-00 0%,
                $main-color-cny 100%
            );
        }
        .bg-nav {
            background: #8b131aee;
        }
    }

    &.xmas-theme {
        background-color: $main-color-xmas;
        //background-image: $main-bg-xmas;
        color: $main-text-color-xmas;

        .bg-layer-gradient {
            background: $main-color-xmas;
            background: linear-gradient(
                90deg,
                $main-color-xmas 0%,
                $main-color-xmas-00 2%,
                $main-color-xmas-00 98%,
                $main-color-xmas 100%
            );
        }

        .bg-layer-img {
            background-color: $main-bg-xmas;
            background-image: $main-bg-xmas;
        }

        .masthead-img {
            background-image: $main-masthead-xmas;
        }

        .bg-color {
            background-color: $main-color-xmas-50;
        }
        .bg-nav-top {
            background: linear-gradient(
                0deg,
                $main-color-xmas-00 0%,
                $main-color-xmas 100%
            );
        }
        .bg-nav {
            background: rgb(7 54 40 / 87%);
        }
    }

    input,
    select {
        font-family: $font-family;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        margin: 10px auto;
        font-weight: bold;
    }

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

    a {
        color: inherit;
        transition: $transition;
        &:hover {
            color: inherit;
            opacity: 0.5;
        }
    }

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

    img {
        object-fit: contain;
    }
    .cursor-pointer {
        cursor: pointer;
        transition: $transition;
        &:hover {
            opacity: 0.7;
        }
    }
}

#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: 0.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: 0.5em 2.5em;

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

        &:hover {
            opacity: 1;
        }
    }

    &:hover,
    &:focus,
    &:target,
    &:active {
        @include primary-btn;
        opacity: 0.5;
    }
}
.footer {
    background: #0d1122;
    //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: 40px;
        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;
        padding-bottom: 80px;
        background: url("/assets/images/singpost/main/Scroll.png") no-repeat
            center top;
        background-size: auto 100%;
        border-radius: 2.5rem;
        display: flex;
        position: relative;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        //border: .5rem solid #fff;
    }
}

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

#get-free-seed {
    img {
        animation: shake-animation 7.5s ease infinite;
        transform-origin: 50% 50%;
    }

    @keyframes shake-animation {
        0% {
            transform: translate(0px, 0px) rotate(0deg);
        }
        1% {
            transform: translate(-1px, -2px) rotate(-1deg);
        }
        2% {
            transform: translate(-3px, 0px) rotate(1deg);
        }
        3% {
            transform: translate(3px, 2px) rotate(0deg);
        }
        4% {
            transform: translate(1px, -1px) rotate(1deg);
        }
        5% {
            transform: translate(-1px, 2px) rotate(-1deg);
        }
        6% {
            transform: translate(-3px, 1px) rotate(0deg);
        }
        7% {
            transform: translate(3px, 1px) rotate(-1deg);
        }
        8% {
            transform: translate(-1px, -1px) rotate(1deg);
        }
        9% {
            transform: translate(1px, 2px) rotate(0deg);
        }
        10% {
            transform: translate(1px, -2px) rotate(-1deg);
        }
        10.1% {
            transform: translate(0px, 0px) rotate(0deg);
        }
    }

    /* Shine */
    .shine {
        position: relative;
        display: block;
        overflow: hidden;
    }
    .shine:after {
        content: "";
        top: 0;
        left: 0;
        transform: translateX(100%);
        width: 100%;
        height: 100%;
        position: absolute;
        z-index: 1;
        animation: 5s slide 5s infinite;

        /*
        CSS Gradient - complete browser support from http://www.colorzilla.com/gradient-editor/
        */
        background: -moz-linear-gradient(
            left,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(128, 186, 232, 0) 99%,
            rgba(125, 185, 232, 0) 100%
        ); /* FF3.6+ */
        background: -webkit-gradient(
            linear,
            left top,
            right top,
            color-stop(0%, rgba(255, 255, 255, 0)),
            color-stop(50%, rgba(255, 255, 255, 0.8)),
            color-stop(99%, rgba(128, 186, 232, 0)),
            color-stop(100%, rgba(125, 185, 232, 0))
        ); /* Chrome,Safari4+ */
        background: -webkit-linear-gradient(
            left,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(128, 186, 232, 0) 99%,
            rgba(125, 185, 232, 0) 100%
        ); /* Chrome10+,Safari5.1+ */
        background: -o-linear-gradient(
            left,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(128, 186, 232, 0) 99%,
            rgba(125, 185, 232, 0) 100%
        ); /* Opera 11.10+ */
        background: -ms-linear-gradient(
            left,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(128, 186, 232, 0) 99%,
            rgba(125, 185, 232, 0) 100%
        ); /* IE10+ */
        background: linear-gradient(
            to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(128, 186, 232, 0) 99%,
            rgba(125, 185, 232, 0) 100%
        ); /* W3C */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#007db9e8',GradientType=1 ); /* IE6-9 */
    }

    /* animation */

    @keyframes slide {
        0% {
            transform: translateX(-100%);
        }
        50% {
            transform: translateX(100%);
        }
    }
}
.footer-cloud {
    width: 100%;
    height: 100px;
    margin-bottom: -2px;
}
// registration otp stuff
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: inline-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);
}

// main ui stuff

.capitastar-status {
    position: relative;
    &:after {
        content: "";
        position: absolute;
        right: -25%;
        bottom: 1px;
        width: 15px;
        height: 15px;
        @include background-default;
    }
    &.check-success:after {
        background-image: url("/assets/images/cl/token_icons/check-circle-solid.svg");
    }
    &.check-fail:after {
        background-image: url("/assets/images/cl/token_icons/times-circle-solid.svg");
    }
}

.top_layer_ui {
    z-index: 10;
    opacity: 1;
    &.inactive {
        z-index: 0;
        opacity: 0.5;
    }
}

#main_ui {
    width: 98%;
    height: calc(100vh - 50px - 30px);
    position: relative;
    margin: 0 auto 10px;

    .ui_msg {
        width: 100%;
    }
    .check_in_ui,
    .bottom_ui,
    .plant_ui,
    .nutrition_ui,
    .progress_ui {
        @include background-default;
        margin: 5px;
        cursor: pointer;
        position: relative;
    }
    .bottom_section {
        position: absolute;
        top: calc(100vh - 150px);
        @media screen and (max-width: 468px) {
            top: calc(100vh - 140px);
        }
        left: 0;
        width: 100%;
        text-align: center;

        .bottom_ui_wrapper {
            display: flex;
            justify-content: space-evenly;
            align-items: center;
        }
        .bottom_ui {
            width: 15vw;
            height: 15vw;
            max-width: 50px;
            max-height: 50px;
            transition: $transition;
            &:hover {
                opacity: 0.5;
            }
            &.unread {
                position: relative;
                &:after {
                    content: "";
                    position: absolute;
                    top: 0;
                    right: 0;
                    width: 15px;
                    height: 15px;
                    border-radius: 50%;
                    background: $color-danger;
                    border: 2px solid #fbc107;
                }
            }
            &#core_ar_btn:before {
                content: "AR";
            }
            &#daily_challenge_btn:before {
                content: "Challenge";
            }
            &#reward_redemption_btn:before {
                content: "Reward";
            }
            &#notification_btn:before {
                content: "Notice";
            }
            &#share_btn:before {
                content: "Share";
            }
            &:last-child:before {
                position: relative;
                top: -12;
                left: 2%;
            }
        }
        #core_ar_btn {
            background-image: url("/assets/images/cl/token_icons/Gold Token_AR Game.png");
        }
        #daily_challenge_btn {
            background-image: url("/assets/images/cl/token_icons/Gold Token_Challenge.png");
        }
        #reward_redemption_btn {
            background-image: url("/assets/images/cl/token_icons/Gold Token_Rewards.png");
        }
        #notification_btn {
            background-image: url("/assets/images/cl/token_icons/Gold Token_Notifications.png");
        }
        #share_btn {
            background-image: url("/assets/images/cl/token_icons/Gold Token_Refer a Friend.png");
        }
    }
    div.nutrition_ui:before,
    div.bottom_ui:before,
    div.check_in_ui:before {
        font-size: 10px;
        font-weight: bold;
        position: absolute;
        overflow: hidden;
    }
    div.bottom_ui:before,
    div.check_in_ui:before {
        text-align: left;
        right: 50%;
        transform: translate(50%, -100%);
    }
    div.check_in_ui#check_in_btn:before {
        content: "Daily";
    }
    @media only screen and (max-width: 287px) {
        div.nutrition_ui:before,
        div.bottom_ui:before,
        div.check_in_ui:before {
            font-size: 8px;
            top: -3;
        }
    }
    @media only screen and (min-width: 450px) {
        div.nutrition_ui:before,
        div.bottom_ui:before,
        div.check_in_ui:before {
            font-size: 12px;
        }
        div.nutrition_ui:before {
            top: 0;
        }
    }

    .top_left_section {
        position: absolute;
        top: 0;
        left: 0;
        width: 50%;
        .nutrition_ui {
            width: 25vw;
            height: 10vw;
            background-position: 0% 50%;
            position: relative;
            max-width: 125px;
            max-height: 50px;

            .progress_box_wrap {
                position: absolute;
                left: 37%;
                top: 50%;
                transform: translate(0%, -50%);
                width: 59%;
                height: 13px;
                border-radius: 11px;
                overflow: hidden;
                display: flex;
                flex-direction: row;
                justify-content: start;
                align-items: center;
                background: #5d3725;

                .progress_box {
                    height: 100%;
                    width: calc(100% / 10);
                    background: #5d3725;
                    &:last-child {
                        border-radius: 0 0.5em 0.5em 0;
                        background-color: yellow;
                    }
                }
            }
            &:after {
                content: "";
                position: absolute;
                top: 0;
                left: 50%;
                transform: translate(-50%, 0);
                width: 100%;
                height: 100%;
                @include background-default;
                background-position: 0% 50%;
            }
            .nutrition_add {
                position: absolute;
                right: -5px;
                top: 50%;
                width: 5vw;
                height: 5vw;
                max-width: 25px;
                max-height: 25px;
                z-index: 1;
                transform: translate(50%, -50%);
                cursor: pointer;
                @include background-default;
                background-image: url("/assets/images/cl/bars/Nutrition_Plus Button.png");
            }
            &:before {
                width: 100%;
                z-index: 1;
                top: -1;
                transform: translate(38%, 0%);
            }
            &#fertilizer_bar:before {
                content: $nutrient-fertilizer-name;
            }
            &#sunlight_bar:before {
                content: $nutrient-sun-name;
            }
            &#water_bar:before {
                content: $nutrient-water-name;
            }
        }

        #water_bar {
            //background-image: url('/assets/images/cl/bars/Nutrition_Water_BG.png') ;
            .progress_box {
                background: rgb(34, 130, 202);
                background: linear-gradient(
                    0deg,
                    rgba(34, 130, 202, 1) 15%,
                    rgba(69, 218, 255, 1) 60%,
                    rgba(69, 219, 247, 1) 80%
                );
            }

            &:after {
                background-image: url("/assets/images/cl/bars/Nutrition_Water.png");
            }
        }
        #sunlight_bar {
            //background-image: url('/assets/images/cl/bars/Nutrition_Sun_BG.png') ;
            .progress_box {
                background: rgb(247, 118, 15);
                background: linear-gradient(
                    0deg,
                    rgba(247, 118, 15, 1) 15%,
                    rgba(250, 181, 0, 1) 60%,
                    rgba(252, 205, 29, 1) 80%
                );
            }
            &:after {
                background-image: url("/assets/images/cl/bars/Nutrition_Sun.png");
            }
        }
        #fertilizer_bar {
            //background-image: url('/assets/images/cl/bars/Nutrition_Fertilizer_BG.png') ;
            .progress_box {
                background: rgb(77, 138, 29);
                background: linear-gradient(
                    0deg,
                    rgba(77, 138, 29, 1) 15%,
                    rgba(119, 204, 69, 1) 60%,
                    rgba(153, 223, 103, 1) 80%
                );
            }
            &:after {
                background-image: url("/assets/images/cl/bars/Nutrition_Fertilizer.png");
            }
        }
    }
    .top_right_section {
        position: absolute;
        top: 0;
        right: 5px;
        width: 25%;
        display: flex;
        justify-content: flex-end;
        -webkit-justify-content: flex-end;
        align-items: flex-end;
        -webkit-align-items: flex-end;
        flex-direction: column;
        text-align: right;
        .check_in_ui {
            width: 10vw;
            height: 10vw;
            max-width: 50px;
            max-height: 50px;
            transition: $transition;
            position: relative;
            &:hover {
                opacity: 0.5;
            }
            #check-status {
                position: absolute;
                left: 47%;
                top: 59%;
                transform: translate(-50%, -50%);
                width: 40%;
                height: 40%;
                @include background-default;
                background-image: url("/assets/images/cl/token_icons/times-circle-solid.svg");
                &.check-success {
                    background-image: url("/assets/images/cl/token_icons/check-circle-solid.svg");
                }
                &.check-fail {
                    background-image: url("/assets/images/cl/token_icons/times-circle-solid.svg");
                }
            }
        }
        #check_in_btn {
            background-image: url("/assets/images/cl/token_icons/Calendar_no tick.png");
        }

        #progress_bar {
            //background-image: url('/assets/images/cl/bars/Progress_Bar_BG.png') ;
        }
        .progress_ui {
            width: 10vw;
            height: 60vw;
            max-width: 50px;
            max-height: 200px;
            position: relative;
            &:after {
                content: "";
                position: absolute;
                top: 0;
                left: 50%;
                transform: translate(-50%, 0);
                width: 100%;
                height: 100%;
                @include background-default;
                background-image: url("/assets/images/cl/bars/Progress_Bar.png");
            }
            .progress_box_wrap {
                position: absolute;
                left: 50%;
                bottom: 13%;
                transform: translate(-50%, 0);
                width: 15px;
                height: 85%;
                border-radius: 1.5em;
                overflow: hidden;
                display: flex;
                flex-direction: column-reverse;
                justify-content: end;
                align-items: center;
                background: #5d3725;
                background: linear-gradient(
                    180deg,
                    #5d3725 0%,
                    #5d3725 calc(calc(100% / 8 * 1) - 1%),
                    #9e4d34 calc(100% / 8 * 1),
                    #5d3725 calc(calc(100% / 8 * 1) - 1%),
                    #5d3725 calc(calc(100% / 8 * 2) - 1%),
                    #9e4d34 calc(100% / 8 * 2),
                    #5d3725 calc(calc(100% / 8 * 2) + 1%),
                    #5d3725 calc(calc(100% / 8 * 3) - 1%),
                    #9e4d34 calc(100% / 8 * 3),
                    #5d3725 calc(calc(100% / 8 * 3) + 1%),
                    #5d3725 calc(calc(100% / 8 * 4) - 1%),
                    #9e4d34 calc(100% / 8 * 4),
                    #5d3725 calc(calc(100% / 8 * 4) + 1%),
                    #5d3725 calc(calc(100% / 8 * 5) - 1%),
                    #9e4d34 calc(100% / 8 * 5),
                    #5d3725 calc(calc(100% / 8 * 5) + 1%),
                    #5d3725 calc(calc(100% / 8 * 6) - 1%),
                    #9e4d34 calc(100% / 8 * 6),
                    #5d3725 calc(calc(100% / 8 * 6) + 1%),
                    #5d3725 calc(calc(100% / 8 * 7) - 1%),
                    #9e4d34 calc(100% / 8 * 7),
                    #5d3725 calc(calc(100% / 8 * 7) + 1%),
                    #5d3725 100%
                );

                .progress_box {
                    border-bottom: 2px solid #5d3725;
                    width: 100%;
                    height: calc(calc(100% / 7) - 3px);
                    &:nth-child(1) {
                        background: #f51519;
                    }
                    &:nth-child(2) {
                        background: #f5271a;
                    }
                    &:nth-child(3) {
                        background: #f53b1b;
                    }
                    &:nth-child(4) {
                        background: #f54d1d;
                    }
                    &:nth-child(5) {
                        background: #f66120;
                    }
                    &:nth-child(6) {
                        background: #f77524;
                    }
                    &:nth-child(7) {
                        background: #f9ad2e;
                    }
                    &:nth-child(8) {
                        background: #cdb52c;
                    }
                }
            }
        }
    }
    .middle_section {
        position: absolute;
        transform: translate(-50%, 0%);
        display: block;
        justify-content: center;
        bottom: 17%;
        left: 50%;
        width: 80vw;
        min-width: 250px;
        max-width: 400px;
        height: 80vw;
        min-height: 250px;
        max-height: 400px;

        .plant_ui {
            @include plant-ui-default;
            background-position: 50% 100%;
        }
        // #plant_pot{
        //     background-image: url('/assets/images/cl/plants/Amaryllis/Amaryllis_L1_Happy.png') ;
        // }

        .growth-container {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            display: block;
            cursor: pointer;

            .grown_plant_star {
                position: absolute;
                transform: translate(-50%, -50%) scale(1);
                bottom: 22%;
                left: 70%;
                width: 30%;
                animation: slide-fwd-center 1s ease-in-out infinite forwards;
            }
            @keyframes slide-fwd-center {
                0% {
                    transform: translate(-50%, -50%) scale(1);
                }
                50% {
                    transform: translate(-50%, -50%) scale(1.05);
                }
            }
            .grown_plant_refresh {
                position: absolute;
                transform: translate(-50%, -50%) rotate(0deg);
                left: 65%;
                bottom: -10%;
                width: 15%;
                animation: 10s spin 3s ease infinite;
            }
            @keyframes spin {
                0% {
                    transform: translate(-50%, -50%) rotate(0deg);
                }
                20% {
                    transform: translate(-50%, -50%) rotate(180deg);
                }

                50% {
                    transform: translate(-50%, -50%) rotate(180deg);
                }
                70% {
                    transform: translate(-50%, -50%) rotate(360deg);
                }
                70.1% {
                    transform: translate(-50%, -50%) rotate(0deg);
                }
            }
            .grown_plant_coin {
                position: absolute;
                transform: translate(-50%, -50%);
                width: 20%;
                min-width: 50px;
                max-width: 80px;

                &:nth-child(1) {
                    bottom: 8%;
                    left: 20%;
                }
                &:nth-child(2) {
                    transform: translate(-50%, -50%) rotate(340deg);
                    bottom: -2%;
                    left: 10%;
                }

                &:nth-child(3) {
                    bottom: -4%;
                    left: 35%;
                }
                &:nth-child(4) {
                    transform: translate(-50%, -50%) rotate(340deg);
                    bottom: 8%;
                    right: 2%;
                }
                &:nth-child(5) {
                    bottom: -3%;
                    right: -10%;
                }
            }
        }
    }
}

#popup_notifications .msg-container::-webkit-scrollbar,
#popup_plant_progress .progress-matured .plants-box::-webkit-scrollbar,
#popup_rewards .reward-body-container::-webkit-scrollbar,
#popup_attempt_plant_reward_redemption_confirmation
    .reward-body-container::-webkit-scrollbar {
    display: none;
}

#popup_notifications {
    .msg-container {
        min-height: 300px;
        max-height: 60vh;
        overflow-y: scroll;
    }

    .msg-box {
        text-align: left;
        color: black;
        margin-bottom: 10px;

        .date {
            border-radius: 5px;
            background-color: $yellow-orange;
            text-align: center;
            width: 100px;
            padding: 5px;
            font-size: 12px;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .status_item {
            margin-bottom: 10px;
            margin-top: 10px;
            text-align: justify;
        }

        hr {
            border: 1px dashed grey;
        }
    }

    .content.have-unread-icon {
        width: 90%;
        display: inline-block;
    }

    .unread-icon {
        width: 10%;
        vertical-align: middle;
        display: inline-block;
        padding-left: 10px;
    }
}

#popup_nutrition {
    .nutrient-caption label,
    .act-text label,
    .nutrient-content .nutrient-item {
        display: block;
    }
    .nutrient-content .nutrient-item {
        padding: 5px;
        cursor: pointer;

        div,
        .balance {
            display: inline-block;
        }
        div {
            &.nutrient-icon {
                background-position: 0 50%;
                height: 35px;
                transform: translate(-10%);
                width: 35px;
                position: fixed;
            }

            &.nutrient-sun-icon {
                background-image: url("/assets/images/cl/token_icons/Gold Token_Sun.png");
            }

            &.nutrient-water-icon {
                background-image: url("/assets/images/cl/token_icons/Gold Token_Water.png");
            }

            &.nutrient-fertilizer-icon {
                background-image: url("/assets/images/cl/token_icons/Gold Token_Fertilizer.png");
            }
        }
        .balance {
            margin-top: 3px;
        }
        .nutrient-txt {
            // min-width: 35%;
            text-align: left;
            margin-left: 40px;
        }
        .nutrition_add {
            background-image: url("/assets/images/cl/bars/Nutrition_Plus Button.png");
            @include background-default;
            height: 5vw;
            max-height: 15px;
            width: 15px;
            margin-left: 5px;
        }
    }
    .nutrient-confirmation .icon,
    .nutrient-content .nutrient-item div.nutrient-icon {
        background-color: transparent;
        background-repeat: no-repeat;
        background-size: contain;
        content: "";
    }
    .nutrient-confirmation {
        .icon {
            height: 200px;
            width: 100%;
            background-position: center;
        }

        .nutrient-water-icon {
            background-image: url("/assets/images/cl/token_icons/Bubbles_Water_01.png");
        }

        .nutrient-sun-icon {
            background-image: url("/assets/images/cl/token_icons/Bubbles_Sun_01.png");
        }

        .nutrient-fertilizer-icon {
            background-image: url("/assets/images/cl/token_icons/Bubbles_Fertilizer_01.png");
        }
    }
    .act-text {
        margin-top: 20px;
        margin-bottom: 20px;

        .important {
            font-size: 18px;
            font-weight: bold;
        }
    }
}

#popup_plant_progress {
    .progress-guide {
        .guide-caption,
        .guide-content,
        .guide-footer {
            width: 90%;
        }
        .guide-caption {
            margin-bottom: 30px;
        }
        .guide-content {
            margin-bottom: 15px;
        }
        .guide-footer {
            margin: 0px auto;
            margin-bottom: 20px;
        }
    }
    .white-bg-opacity {
        color: #000000;
        background-color: rgba(255, 255, 255, 0.35);
        backdrop-filter: blur(0px);
        position: absolute;
        left: 0;
        padding: 10px;
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
        bottom: 0;
        right: 0;
    }
    .plant_ui,
    .tp-app-logo {
        @include background-default;
        cursor: pointer;
        margin: 5px;
    }
    .plant_ui {
        @include plant-ui-default;
        cursor: default;
        height: 150px;
        margin-bottom: 15px;
    }
    .link-learn-more {
        cursor: pointer;
        margin-top: 5px;
        margin-bottom: 10px;
    }
    .tp-app-logo {
        height: 100px;
        cursor: default;
    }
    .progress-tab {
        width: 100%;
        margin-bottom: 15px;
        display: flex;

        div.tab {
            display: inline-block;
            width: 50%;
            cursor: pointer;
            padding: 10px;
            background-color: $yellow-orange;
            border-radius: 5px;

            &.selected {
                font-weight: bold;
                border-top: 2px solid;
                background-color: inherit;
            }
        }
    }
    .progress-matured {
        .no-item {
            height: 100%;
        }

        .plants-box {
            min-height: 300px;
            max-height: 57vh;
            overflow-y: scroll;
            &.no-item {
                height: 150px;
            }
        }

        .plant-box {
            width: 42%;
            display: inline-block;
            margin-bottom: 10px;

            &:nth-child(even) {
                margin-left: 10px !important;
            }

            .plant_ui {
                background-color: #ffffff !important;
            }

            .plant-info {
                align-items: center;
                height: 30px;
                // overflow: hidden;

                i {
                    &.fa-times {
                        color: red;
                    }
                    &.fa-check-square {
                        color: #48df48;
                    }
                }
            }
        }
    }
}

a-scene {
    z-index: -1;
    visibility: hidden;
    &.show {
        z-index: 1;
        visibility: unset;
        color: #444;
        text-shadow: none;
    }
    .game-ui {
        display: block;
        position: absolute;
        left: 50vw;
        transform: translateX(-50%);
        text-align: center;
        //bottom: 115px;
        top: 30px;
        z-index: 10;
        color: $main-text-color;
    }
}

.box-content-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.curved-text {
    position: relative;
    display: inline-block;
    margin: 0 auto;
    font-size: 40px;
}

.curved-text span {
    min-width: 0.5em;
    text-align: center;
    padding: 0;
    margin: 0;
}

#popup_daily_challenge {
    #loading_container,
    #msg_container {
        height: 150px;
    }

    #msg_container {
        flex-direction: column;

        .msg-footer {
            width: 100%;
        }
    }

    .challenge-logo,
    .reward-icon {
        @include background-default;
    }
    .challenge-logo {
        height: 150px;
        margin-top: 10px;
        margin-bottom: 5px;
    }
    .challenge-name,
    .box_take_a_pic .challenge-msg {
        color: #000000;
    }
    .challenge-footer,
    .msg-footer,
    .reward-footer {
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .act-panel {
        margin-bottom: 10px;
    }
    .btn-cta-prev,
    .btn-cta-next {
        display: inline-block;
    }
    .box_take_a_pic .challenge-msg {
        width: 80%;
        margin-left: 10%;
    }

    .riddle-tips {
        margin-top: 5px;
        margin-bottom: 15px;
    }
    .riddle-choices span {
        display: block;

        label.btn {
            width: 100%;
            overflow: hidden;
            word-break: break-word;
        }
    }

    .reward-footer .main-msg,
    .reward-caption {
        font-weight: bold;
    }
    .reward-footer {
        margin-top: 10px;

        .main-msg {
            margin-bottom: 10px;
        }
    }
    .reward-icon {
        height: 100px;
    }
    .box_tap_the_plant {
        .plant_wrapper {
            position: relative;
            width: 200px;
            height: auto;
            margin: 10px auto;
        }
        .tap_progress_ui {
            display: block;
            position: relative;
            margin: 10px auto;
            width: 100%;
            height: 10px;
            background: rgb(255, 147, 133);
            background: linear-gradient(90deg, #f53415, #f9ad2e, #7ab500);
            border-radius: 5px;
            border: 2px solid #f1d391;
            overflow: hidden;

            .progress_box {
                background: #5d3725;
                position: absolute;
                right: 0;
                top: 0;
                height: 100%;
                width: 100%;
                transition: 0.3s ease;
            }
        }
        .plant_ui {
            background-repeat: no-repeat;
            width: 100%;
            height: 200px;
            background-size: contain;
            background-position: 50% 50%;
            transform-origin: bottom center;
        }
        .plant_bubble {
            position: absolute;
            left: calc(50% + 32.5px);
            bottom: 80px;
            background-repeat: no-repeat;
            width: 75px;
            height: 50px;
            background-size: contain;
            background-position: 50% 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            transform: scale(0);
            animation-fill-mode: forwards;
            transform-origin: 0% 100%;
            // background-image: url("/assets/images/cl/speech_bubbles/Speech_Bubble_Empty.png");

            .plant_counter {
                font-size: 1.5rem;
                color: $black;
                font-weight: bold;
            }
            &[status="number"] {
                // background-image: url("/assets/images/cl/speech_bubbles/Speech_Bubble_Empty.png");
            }

            &[status="default"] {
                // background-image: url("/assets/images/cl/speech_bubbles/Speech_Bubble_Tap.png");
                .plant_counter {
                    display: none;
                }
            }
            &[status="happy"] {
                // background-image: url("/assets/images/cl/speech_bubbles/Speech_Bubble_Happy.png");
                .plant_counter {
                    display: none;
                }
            }
            &[status="sad"] {
                // background-image: url("/assets/images/cl/speech_bubbles/Speech_Bubble_Sad.png");
                .plant_counter {
                    display: none;
                }
            }
            @keyframes expand-bounce {
                0% {
                    transform: scale(0);
                    opacity: 0;
                }
                50% {
                    transform: scale(1.25);
                    opacity: 1;
                }
                100% {
                    transform: scale(1);
                }
            }

            @keyframes tada {
                0% {
                    transform: scale3d(1, 1, 1);
                }

                10%,
                20% {
                    transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
                }

                30%,
                50%,
                70%,
                90% {
                    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
                }

                40%,
                60%,
                80% {
                    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
                }

                100% {
                    transform: scale3d(1, 1, 1);
                }
            }

            @keyframes shrink {
                0% {
                    transform: scale(1);
                    opacity: 1;
                }
                100% {
                    transform: scale(0);
                    opacity: 0;
                }
            }
        }
        @keyframes shake {
            25% {
                transform: skew(1deg, 1deg) rotate(-2deg);
            }
            75% {
                transform: skew(-1deg, -1deg) rotate(2deg);
            }
            0%,
            100% {
                transform: none;
            }
        }
    }
}
video {
    width: 100vw;
    height: 100vh;
    z-index: -999;
    object-fit: cover;
    position: fixed;
    filter: brightness(0.75);
}

#popup_new_plant_for_mature {
    .new_seed {
        width: 60%;
        display: block;
        margin: 0px auto;
    }
    .new_seed_footer {
        margin-top: 30px;
    }
    .new_seed_footer button.btn-cta {
        background-color: red !important;
        color: white !important;
        border-radius: 30px !important;
        border: 4px solid !important;
    }
}
@mixin calenderdays {
    position: absolute;
    top: 3px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 8px;
}
#popup-daily-checkin-body {
    margin-left: 1%;
    display: grid;
    grid-column-start: 1;
    grid-column-end: 7;
    grid-template-columns: 14% 14% 14% 14% 14% 14% 14%;
    margin: 1em auto;

    .calendar_block {
        display: block;
        padding: 15px 0 5px;
        border-radius: 9px;
        color: white;
        justify-content: center;
        align-items: center;
        margin: 3px;
        font-weight: bold;
        float: left;
        font-size: 1em;
        position: relative;

        &.blank {
            background: transparent;
            opacity: 0;
        }
        &.unchecked {
            background: #8d4d32;
        }
        &.checked {
            background: #7bdd57;
        }
        &:before {
            content: "MON";
            @include calenderdays;
        }
        &:nth-child(7n + 1) {
            &:before {
                content: "MON";
                @include calenderdays;
            }
        }
        &:nth-child(7n + 2) {
            &:before {
                content: "TUE";
                @include calenderdays;
            }
        }
        &:nth-child(7n + 3) {
            &:before {
                content: "WED";
                @include calenderdays;
            }
        }
        &:nth-child(7n + 4) {
            &:before {
                content: "THU";
                @include calenderdays;
            }
        }
        &:nth-child(7n + 5) {
            &:before {
                content: "FRI";
                @include calenderdays;
            }
        }
        &:nth-child(7n + 6) {
            &:before {
                content: "SAT";
                @include calenderdays;
            }
        }
        &:nth-child(7n + 7) {
            &:before {
                content: "SUN";
                @include calenderdays;
            }
        }
    }
}
.install-toast {
    z-index: 10;
    position: absolute;
    top: calc(100vh - 220px);
    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;
    }
}
.register-footer {
    @media only screen and (max-width: 767px) {
        .logo-3d,
        .logo-ecm,
        .logo-tm {
            width: 20%;
        }
        .logo-gp {
            width: 11%;
        }
        .logo-mm {
            width: 12%;
        }
        .logo-sw,
        .logo-qm {
            width: 25%;
        }
    }

    @media only screen and (max-width: 370px) {
        .logo-3d,
        .logo-ecm,
        .logo-tm {
            width: 18%;
        }
        .logo-gp,
        .logo-mm {
            width: 10%;
        }
        .logo-sw,
        .logo-qm {
            width: 23%;
        }
    }

    @media only screen and (max-width: 320px) {
        .logo-3d,
        .logo-ecm,
        .logo-tm {
            width: 17%;
        }
        .logo-mm {
            width: 10%;
        }
        .logo-sw,
        .logo-qm {
            width: 20% !important;
        }
    }
}
#popup_attempt_plant_reward_redemption_confirmation {
    .voucher-tnc-box {
        overflow: hidden;
        display: block;
        width: 100%;
        word-wrap: break-word;
    }
}
#popup_ar_game {
    #popup_ar_game_icon_container {
        label.lbl-nutrition {
            &:before {
                position: absolute;
                font-size: 10px;
                font-size: 12px;
            }
            &.lbl-water:before {
                content: $nutrient-water-name;
                transform: translate(35%, 390%);
            }
            &.lbl-sunlight:before {
                content: $nutrient-sun-name;
                transform: translate(90%, 390%);
            }
            &.lbl-fertilizer:before {
                content: $nutrient-fertilizer-name;
                transform: translate(13%, 390%);
            }
        }
    }
}
#popup_rewards,
#popup_attempt_plant_reward_redemption_confirmation {
    .reward-body-container {
        max-height: 60vh;
        overflow-y: scroll;
        overflow-x: hidden;
    }
}
