// 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;
$gold-gradient: linear-gradient(90deg, #faf39a 0%, #efe089 2%, #dcc16c 5%, #cca654 8%, #c09242 12%, #b88435 16%, #b37c2d 22%, #b1792b 30%, #b88535 39%, #caa351 54%, #e8d57e 73%, #faf39a 84%, #fff 98%, #fff 100%);
$black: #242428;
$error_red: #cf3339;

$color-danger : #dc3545 !important;
$yellow: #fde501;
$yellow-orange: #FFD24F;

$transition : .3s ease !important;

$main-color: #b21414;
// $bg-nav-color : #8b0d0ded;
$main-color-50: #b21414aa;
// $main-color-00: #b2141400;
// $main-bg: url('/assets/images/suubalm/dummy-bg.png');

@mixin bg-img-layer-style {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 0%;
}


@mixin body-style {
    background: $background;
    background-attachment: fixed;
    background-size: cover;
    //color: $font-white;
}

@mixin popup-style {
    background: $anchor-blue-gradient;
    color: $font-white;
    background-size: cover;
}

@mixin primary-btn {
    //background: $gold-gradient;
    //color: $font-white;
    font-family: $font-family;
    //font-weight: bold;
    border: none;

}

@mixin footer-style {
    color: #fff;
    background: $black;
}

body {
    //@include body-style;
    //background-color: $main-color;
    font-family: $font-family;
    //font-weight: normal;
    overflow-x: hidden;
    //line-height: 1.2;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-size: .9rem;

    @media screen and (max-width: 320px) {
        font-size: 12px;
    }

    .bg-color {
        background-color: $main-color;
    }

    .bg-color-50 {
        background-color: $main-color-50;
    }

    .bg-nav {
        //background-color: $bg-nav-color;
    }

    .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 {
            @include bg-img-layer-style //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:not(.daterangepicker td) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    //color: $main-text-color;
}

button {
    transition: $transition;

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

    a {
        text-decoration: none;
    }
}


.btn-primary:not(.applyBtn) {
    @include primary-btn;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.25rem;
    padding: .5em 2.5em;
    line-height: unset;
    font-size: 0.9rem;
    font-weight: bold;

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

        &:hover {
            background: #989898;
            opacity: 1;
        }
    }

    &:hover,
    &:focus,
    &:target,
    &:active {
        @include primary-btn;
        opacity: .5;
    }
}


// masthead
.masthead-main {
    max-height: 400px;
    max-width: 80%;
}

@media screen and (min-width: 560px) and (max-width: 880px) {
    .masthead-main {
        max-width: 70%;
    }
}

@media screen and (min-width: 881px) {
    .masthead-main {
        max-width: 40%;
    }
}

// modal
.modal-theme {
    .modal-header {
        @include bg-img-layer-style;

        img.masthead-popup {
            max-height: 200px;
        }

        button[data-dismiss="modal"] {
            position: absolute;
            right: 15;
        }
    }

    .modal-header,
    .modal-footer {
        border: 0;
    }

    .modal-content {
        background: transparent;
        border: 0;
        @include bg-img-layer-style;
    }

    .modal-masthead {
        width: 75%;
        max-width: 250px;
        z-index: 1;
        margin: 0 auto;
        margin-bottom: -100px;
    }

    .modal-body {
        background-size: cover;
        border-radius: 1rem;

        .status_item_message {
            width: 80%;
            margin-left: 10%;
            margin-right: 10%;
        }
    }

}

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

.receipt-feedback-container {
    margin: 15px auto;
    display: block;

    .receipt-feedback-component {
        background-color: #2b96af;
        border-radius: 1em;
        color: #fff;
        font-size: .8em;
        height: 1.6em;
        line-height: 1.6em;
        padding: 0 .6em 0 0.3em;
        text-align: left;
        width: auto;
        display: inline-block;
        white-space: nowrap;
        margin: 4px;
        font-size: 11.5px;

        i {
            width: 12px;
            display: inline-block;
        }

        span {
            //width: 60%;
            text-align: center;
            display: inline-block;
        }

        &.invalid {
            background-color: #e9e9e9;
            color: $black;

            i {
                color: red;

                &[state=valid] {
                    display: none;
                }

                &[state=invalid] {
                    display: inline-block;
                }
            }

        }

        &.valid {
            i[state=invalid] {
                display: none;
            }

            i[state=valid] {
                display: inline-block;
            }
        }
    }
}

// registration otp stuff
.form-group {
    label {
        font-size: 0.8rem;
        margin-bottom: 0.125rem;
    }
}

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;

    label {
        position: relative;
        cursor: pointer;

        &: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: 25px;
            width: 25px;
            border-radius: 5px;
            transition: $transition;
        }
    }

    input {
        &:checked+label:before {
            //background: $main-color;
        }

        &:checked+label:after {
            content: '';
            display: block;
            position: absolute;
            top: 5px;
            left: 9px;
            width: 6px;
            height: 14px;
            border: solid #fff;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }
    }
}

// install toast
.install-toast {
    z-index: 10;
    position: sticky;
    font-size: 12px;
    //top: calc(100vh - 220px );
    //color: $font-black;
    text-shadow: none;
    bottom: 0;

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

.iconify {
    font-size: 18px;
    margin-top: -7px;
}


/* FOOTER */
.footer {
    @include footer-style;
    width: 100%;
    text-align: center;
    margin: 100px auto 0;
    //display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    white-space: nowrap;
    padding: 10px 0;


    .container {
        margin: 0 auto;
        width: 100%;
        max-width: 1200px;
        display: flex;
        padding: 10px 0;
        align-items: center;
        justify-content: center;

        &>div {
            width: calc(100% / 3) !important;
            margin: 5px auto;
            display: flex;
            justify-content: center;
            align-items: center;

            &:first-child {
                justify-content: flex-start;
                align-self: flex-start;
                margin-top: 15px;
                padding-left: 20px;
            }

            &:last-child {
                justify-content: flex-end;
                align-self: flex-start;
                margin-top: 15px;
                padding-right: 20px;
            }
        }

        .fab {
            font-size: 2em;
            margin: 0 10px;
        }

        &.space-between {
            justify-content: space-between;
        }

        @media screen and (max-width: 768px) {
            flex-direction: column;
            align-items: center;

            &>div,
            &>div:first-child,
            &>div:last-child {
                width: 100%;
                justify-content: center;
                padding-left: 0;
                padding-right: 0;
            }
        }
    }

    .left {
        display: inline-flex;
        justify-content: flex-start;
        align-items: center;
        margin-left: 10px;

    }

    .right {
        display: inline-flex;
        justify-self: right;
        margin-right: 10px;
    }

    span {
        margin: 0 5px;
        display: inline;
        justify-content: center;
        text-align: right;

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

            text-align: center;
        }

        a,
        a:hover {
            color: #fff;
            text-decoration: none;
            transition: .3s;
        }

        a:hover {
            opacity: .9;
        }
    }

    .skale {
        font-size: 1rem;
        font-weight: 600;
        margin-left: 5px;
    }
}

.loading-content {
    color: white;

    .spinner-border {
        -webkit-animation: spinner-border .75s linear infinite;
        animation: spinner-border .75s linear infinite;
        border: .25em solid;
        border-radius: 50%;
        border-right: .25em solid transparent;
        display: inline-block;
        vertical-align: text-bottom;
        border-width: .2em;
        height: 1rem;
        width: 1rem;
    }

    @-webkit-keyframes spinner-border {
        0% {
            -webkit-transform: rotate(0deg);
        }

        100% {
            -webkit-transform: rotate(360deg);
        }
    }

    @keyframes spinner-border {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }
}


// main ui stuff
.reward-code {
    word-wrap: break-word;
}

// scratch card
.voucher_card-scratchcard {
    display: none;

    .scratch-container {
        border: 0px;
        position: relative;
        width: calc(100% - 20px);
        max-width: 330px;
        height: 200px;
        margin: 10px auto;
        text-align: left;
        border-radius: 10px;
        overflow: hidden;
    }

    .scratch-container,
    .scratch-result {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        -o-user-select: none;
        user-select: none;
    }

    .scratch-header {
        color: #095B92;
        padding: 10px;
    }

    .scratch-canvas {
        position: absolute;
        top: 0;
        width: 100%;
        height: 200px;
        z-index: 2;
    }

    .scratch-result {
        display: flex;
        justify-content: center; //flex-end;
        align-items: center;
        height: 100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.25);
        padding: 10px;

        .scratch-result-text {
            text-align: center;
            background: linear-gradient(90deg, #faf39a 0%, #efe089 2%, #dcc16c 5%, #cca654 8%, #c09242 12%, #b88435 16%, #b37c2d 22%, #b1792b 30%, #b88535 39%, #caa351 54%, #e8d57e 73%, #faf39a 84%, #fff 98%, #fff 100%);
            border-radius: 5px;
            z-index: 1;
            padding: 10px;
            color: #0008;
            width: 100%;

            h5 {
                margin: 0 auto;
            }

            input {
                background: transparent;
                margin: 0;
                color: #fff;
                text-align: center;
                display: inline;
                font-size: 1.7em;
                padding: 0;
                margin: 0;
                border: 0;
                width: 200px;
                font-weight: 700;
                text-shadow: 2px 2px 2px #00000080;
            }
        }

        img {
            height: 60%; //85%;
            margin-bottom: auto;
            margin-top: auto;
            // position: absolute;
            width: 100%;
            top: 0;
            left: 0;

            &.full {
                height: 100%;
            }

            &.bg {
                background-position: center;
                background-size: contain;
                background-repeat: no-repeat;
            }
        }
    }
}

// 
.select2-selection__rendered {
    line-height: 35px !important;
}

.select2,
.select2-selection,
.select2-selection__arrow,
.select2-container .select2-selection--single {
    color: #222;
    font-size: 0.9em;
    height: 35px !important;
    text-align: left;
}

.select2-choices {
    min-height: 150px;
    max-height: 150px;
    overflow-y: auto;
}

/* registration page */
#register_page {
    padding: 60px;
}

#forgot_password_page {
    color: $font-black;
}