﻿
/*#region Lucky-Spinner*/

#wrapper {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    position: relative;
    align-items: center;
}

#spin {
    width: 20%;
    height: 20%;
    position: absolute;
    border-radius: 50%;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 3px 0px;
    z-index: 1000;
    background: #fff;
    cursor: pointer;
    user-select: none;
}

    #spin:before {
        content: "";
        position: absolute;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 0 0.7em 1em 0.7em;
        border-color: #ffffff transparent;
        top: -17%;
        left: 0;
        right: 0;
        margin: auto;
    }

#inner-spin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 17%;
    /*height: 17%;*/
    padding: .25rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 1029;
    box-shadow: rgba(255, 255, 255, 1) 0px -2px 0px inset, rgba(0, 0, 0, 0.4) 0px 0px 5px;
    background: rgb(255, 255, 255);
}

#spin:active #inner-spin {
    box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 5px inset;
}

#spin:active:after {
    font-size: 15px;
}

/*ANIMATION*/
@-webkit-keyframes hh {
    0%, 100% {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
    }

    50% {
        transform: rotate(7deg);
        -webkit-transform: rotate(7deg);
    }
}

@keyframes hh {
    0%, 100% {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
    }

    50% {
        transform: rotate(7deg);
        -webkit-transform: rotate(7deg);
    }
}

.spin {
    -webkit-animation: hh 0.1s;
    animation: hh 0.1s;
}

#result {
    text-align: center;
    margin: 1em 0;
}

    #result #result-text {
        border-radius: 5px;
        visibility: hidden;
        color: rgb(43 41 41);
        background-color: rgb(187 187 187);
        font-size: 0.7em;
        font-weight: 600;
        padding: 5px 10px;
    }

.spin-logo {
    height: 70%;
    z-index: 999;
}

#drawing-canvas {
    display: none;
    z-index: 99999999;
    width: 170% !important;
    position: absolute;
    top: -12%;
}

.sppiner {
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: rgb(255, 255, 255);
    border-radius: 50%;
    box-shadow: 0px 0px 9px #7d7b7b;
}

.circle {
    rotate: 270deg;
    position: relative;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #666;
    -webkit-transition: all 6s cubic-bezier(0, 0.99, 0.44, 0.99);
    -moz-transition: all 6s cubic-bezier(0, 0.99, 0.44, 0.99);
    -o-transition: all 6s cubic-bezier(0, 0.99, 0.44, 0.99);
    -ms-transition: all 6s cubic-bezier(0, 0.99, 0.44, 0.99);
    transition: all 6s cubic-bezier(0, 0.99, 0.44, 0.99);
}

.slice .background {
    border: 1px solid;
    border-color: transparent;
    right: 0;
    transform-origin: left;
}

.slice {
    border-color: transparent;
    border-left-width: 0;
    display: flex;
    align-items: center;
    position: absolute;
    right: -0.7em;
    transform-origin: left;
}

#wrapper .title {
    position: absolute;
    width: 96%;
    margin-right: 2%;
    font-size: 0.6em;
    font-weight: 600;
    /*right: 0;*/
    user-select: none;
    z-index: 999999;
    display: flex;
    align-items: center;
}

.inner-title {
    text-align: center;
    rotate: 270deg;
    width: 160% !important;
}

.text-overflow-ellipsis-3 {
    white-space: break-spaces;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.lamp {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}

.inner-lamp {
    width: 0.3em;
    height: 0.3em;
    margin: 2px;
    border-radius: 50%;
    background-color: #b3a6a6;
    position: absolute;
    left: 0.1em;
}

.lamp-on {
    background-color: var(--primary);
    box-shadow: 0px 0px 5px 2px var(--primary);
}

.txt-img {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

.slice-img {
    rotate: 270deg;
    width: 75% !important;
}


#center-pointer {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lucky-spinner {
    visibility: hidden
}

@keyframes myfirst {
    0% {
        font-size: 15px;
    }

    60% {
        font-size: 20px;
    }

    80% {
        font-size: 10px;
    }

    100% {
        font-size: 15px;
    }
}

@keyframes rotate {
    0% {
        rotate: 0deg;
    }

    20% {
        rotate: 50deg;
    }

    40% {
        rotate: 100deg;
    }

    50% {
        rotate: 360deg;
    }

    60% {
        rotate: 100deg;
    }

    80% {
        rotate: 50deg;
    }

    100% {
        rotate: 0deg;
    }
}

.circle:has(.selected) .slice:not(.selected), .circle:has(.selected) .title:not(.selected) {
    filter: blur(2px);
}

.selected {
    z-index: 10;
}

@media (min-width: 550px) {
    #wrapper {
        font-size: 25px !important;
    }
}

@media (max-width: 550px) {
    #wrapper {
        margin: 15% auto 0;
        font-size: 13px !important;
    }

    #drawing-canvas {
        width: 135% !important;
        height: 55vh !important;
    }

    #wrapper .title {
        font-size: 0.8em;
    }

    #result #result-text {
        font-size: 0.8em !important;
    }
}

/*#endregion*/



/*#region Lucky-Machine*/

/*body {
    margin: 0 auto;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}
*/
img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.holder {
    /*margin-top: 38px !important;*/
    user-select: none;
    width: fit-content !important;
    transform: translate(0, 50%);
    max-width: 85% !important;
    /*font-size: 14px !important;*/
    /*  top: 50%;
    left: 42%;
    width: 280px;*/
}

.stage {
    /*position: relative;*/
    display: inline-block;
    /*width: 32%;*/
    height: 7em;
    width: 7em;
    perspective: 1000px !important;
    margin-left: 2px;
    max-width: 31%;
}

.perspective-on {
    -webkit-perspective: 1000px;
    -moz-perspective: 1000px;
    perspective: 1000px;
    Setting the perspective of the contents of the stage but not the stage itself
}

.rotate {
    /*margin: 0 auto;*/
    position: absolute;
    width: 100%;
    /*height: 81px;*/
    height: 100%;
    /*top: 50%;*/
    left: 50%;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
}

.ring {
    /*    margin: 0 auto;
    font-size: 2em;*/
    width: 100%;
    height: 100%;
    /*float: center;*/
    transform-style: preserve-3d;
    transition: 2s;
}

.slot {
    position: absolute;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    color: #123456;
    background: #e3e3e3;
    border: solid 2px rgba(255, 255, 255, 0.2);
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
}

.button {
    height: 100px;
    background: none;
    border: none;
    max-width: 15% !important;
    /*margin-bottom:12em;*/
    margin: 0 !important;
    transform: translate(0, -5%);
}

.shoulder {
    position: relative;
    margin-right: auto;
    width: 100%;
    max-width: 90px;
    height: 100px;
    border-radius: 10px;
    background-color: #333;
    background-image: -webkit-linear-gradient(#666 0%, #333 60%, #666 100%);
    background-image: -moz-linear-gradient(#666 0%, #333 60%, #666 100%);
    background-image: -ms-linear-gradient(#666 0%, #333 60%, #666 100%);
    background-image: -o-linear-gradient(#666 0%, #333 60%, #666 100%);
    box-shadow: inset 2px 2px 2px rgba(255, 255, 255, 0.2);
}

.arm {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    width: 75%;
    height: 85%;
    border-radius: 10% / 50%;
    background-color: #666;
    background-image: -webkit-linear-gradient( left, rgba(0, 0, 0, 0.3) 0%, transparent 15%, rgba(255, 255, 255, 0) 50%, transparent 85%, rgba(0, 0, 0, 0.3) ), -webkit-linear-gradient(top, #333 0%, #666 10%, #999 30%, rgba( 255, 255, 255, 0.8 ) 60%, #999 70%, #666 90%, #333 100%);
    background-image: -moz-linear-gradient( left, rgba(0, 0, 0, 0.3) 0%, transparent 15%, rgba(255, 255, 255, 0) 50%, transparent 85%, rgba(0, 0, 0, 0.3) ), -moz-linear-gradient(top, #333 0%, #666 10%, #999 30%, rgba( 255, 255, 255, 0.8 ) 60%, #999 70%, #666 90%, #333 100%);
    background-image: -ms-linear-gradient( left, rgba(0, 0, 0, 0.3) 0%, transparent 15%, rgba(255, 255, 255, 0) 50%, transparent 85%, rgba(0, 0, 0, 0.3) ), -ms-linear-gradient(top, #333 0%, #666 10%, #999 30%, rgba( 255, 255, 255, 0.8 ) 60%, #999 70%, #666 90%, #333 100%);
    background-image: -o-linear-gradient( left, rgba(0, 0, 0, 0.3) 0%, transparent 15%, rgba(255, 255, 255, 0) 50%, transparent 85%, rgba(0, 0, 0, 0.3) ), -o-linear-gradient(top, #333 0%, #666 10%, #999 30%, rgba( 255, 255, 255, 0.8 ) 60%, #999 70%, #666 90%, #333 100%);
    background-image: linear-gradient( to right, rgba(0, 0, 0, 0.3) 0%, transparent 15%, rgba(255, 255, 255, 0) 50%, transparent 85%, rgba(0, 0, 0, 0.3) ), -webkit-linear-gradient(top, #333 0%, #666 10%, #999 30%, rgba( 255, 255, 255, 0.8 ) 60%, #999 70%, #666 90%, #333 100%);
}

    .arm:before {
        content: "";
        position: absolute;
        top: -46%;
        left: 37%;
        width: 16px;
        height: 70px;
        border-radius: 8px;
        box-shadow: 0px 2px 0px #333;
        background-color: #999;
        -webkit-transform: rotate(5deg);
        -moz-transform: rotate(5deg);
        transform: rotate(5deg);
        background-image: -webkit-linear-gradient( left, #666 0%, rgba(255, 255, 255, 0.7) 50%, #666 100% );
        background-image: -moz-linear-gradient( left, #666 0%, rgba(255, 255, 255, 0.7) 50%, #666 100% );
        background-image: -ms-linear-gradient( left, #666 0%, rgba(255, 255, 255, 0.7) 50%, #666 100% );
        background-image: -o-linear-gradient( left, #666 0%, rgba(255, 255, 255, 0.7) 50%, #666 100% );
        background-image: linear-gradient( to right, #666666 0%, rgba(255, 255, 255, 0.7) 50%, #666666 100% );
        -webkit-transition: all 0.5s ease-in-out 0s;
        -moz-transition: all 0.5s ease-in-out 0s;
        -o-transition: all 0.5s ease-in-out 0s;
        -ms-transition: all 0.5s ease-in-out 0s;
        transition: all 0.5s ease-in-out 0s;
    }

    .arm:after {
        content: "";
        position: absolute;
        top: -71%;
        left: 24%;
        /*transform: translate(62%, 0);*/
        width: 40px;
        height: 40px;
        border-radius: 100%;
        background-color: var(--primary);
        border: 1px solid var(--primary);
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        background-image: -webkit-radial-gradient( closest-corner at 50% 40%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) );
        background-image: -moz-radial-gradient( closest-corner at 50% 40%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) );
        background-image: -ms-radial-gradient( closest-corner at 50% 40%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) );
        background-image: -o-radial-gradient( closest-corner at 50% 40%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) );
        background-image: radial-gradient( closest-corner at 50% 40%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) );
        -webkit-transition: all 0.5s ease-in-out 0s;
        -moz-transition: all 0.5s ease-in-out 0s;
        -o-transition: all 0.5s ease-in-out 0s;
        -ms-transition: all 0.5s ease-in-out 0s;
        transition: all 0.5s ease-in-out 0s;
    }

    .arm.clicked:before {
        top: -20px;
        left: 20px;
        -webkit-transform: rotate3d(-80, 10, 0, 180deg);
        -moz-transform: rotate3d(-80, 10, 0, 180deg);
        transform: rotate3d(-80, 10, 0, 180deg);
        -webkit-transform-origin: 0% 100%;
        -moz-transform-origin: 0% 100%;
        transform-origin: 0% 100%;
        -webkit-transition: all 0.5s ease-in-out 0s;
        -moz-transition: all 0.5s ease-in-out 0s;
        -o-transition: all 0.5s ease-in-out 0s;
        -ms-transition: all 0.5s ease-in-out 0s;
        transition: all 0.5s ease-in-out 0s;
    }

    .arm.clicked:after {
        top: 90px;
        left: 23px;
        -webkit-transition: all 0.5s ease-in-out 0s;
        -moz-transition: all 0.5s ease-in-out 0s;
        -o-transition: all 0.5s ease-in-out 0s;
        -ms-transition: all 0.5s ease-in-out 0s;
        transition: all 0.5s ease-in-out 0s;
    }

.cash {
    font-size: 2em;
    position: absolute;
    opacity: 0.7;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

.img-link {
    display: flex;
    justify-content: center;
    align-items: center;
}

#lucky-machine {
    visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 50px;
    margin-bottom: 15%;
}

#lucky-machine-hover {
    visibility: hidden;
    width: fit-content;
    margin: 1.5em auto;
    font-size: 1.2em;
    border-radius: 5px;
    color: rgb(43 41 41);
    background-color: rgb(187 187 187);
    font-weight: 600;
    padding: 5px 10px;
    min-height: 35px;
}

.up-header {
    align-self: start;
}

.LM {
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/*@media (min-width: 550px) {
    #lucky-machine {
        margin-top: 10% !important;
    }
}*/

/*#endregion*/
