/* ============================= */
/* Lucky Spin General Styles */
/* ============================= */
.lucky-spin {
    position: relative;
    overflow: hidden;
}
.lucky-spin .lucky-spin-wrapper {
    position: relative;
}
.lucky-spin .lucky-spin-wrapper .stand {
    position: absolute;
    bottom: -130px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}
.lucky-spin .lucky-spin-wrapper .frame {
    display: block;
    margin: auto;
    max-width: 100%;
}
.lucky-spin .lucky-spin-wrapper .winwheel {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 100%;
}
.lucky-spin .lucky-spin-wrapper .pointer {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    z-index: 1;
}
.lucky-spin .lucky-spin-wrapper .spin {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.lucky-spin-wrapper canvas {
    z-index: -1;
}
.spin-wheel-shadow {
    width: 308px;
    height: 308px;
    background: transparent;
    position: absolute;
    left: 50%;
    transform: translateX(-59%);
    box-shadow: inset 4px 2px 18px 7px #000000ad;
    border-radius: 50%;
    z-index: 0;
    scale: 0.85;
}
.treasures-background {
    padding-top:1rem !important;
    background-image: url("../icon/luckyspin/grow.png");
    background-size: cover;
    background-repeat: no-repeat;
}
.treasures-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
}

/* ============================== */
/* Button Styling for More 3D Effect */
/* ============================== */

.pushable {
    position: relative;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    outline-offset: 4px;
    transition: filter 250ms;
    min-width: 95px;
    margin-left: 2px;
    margin-right: 2px;
}

/* Shadow Effect to Create 3D Depth */
.btn-spin-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25); /* Dark shadow for depth */
    will-change: transform;
    transform: translateY(4px);
    transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

/* Button Edge Styling */
.btn-spin-edge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    filter: brightness(80%); /* Darker edge to make it pop */
}

/* Button Front (Main Front) */
.btn-spin-front {
    display: block;
    position: relative;
    padding: 5px 15px;
    border-radius: 12px;
    font-size: 1rem; /* Adjust font size */
    color: #FFF;  /* White text for contrast */
    font-weight: bold;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Soft outer shadow */
    will-change: transform;
    transform: translateY(-4px);
    transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
    text-shadow: 3px 1px 0px rgb(78 66 31 / 18%);
}

.btn-winner {
    display: block;
    position: relative;
    padding: 5px 15px;
    border-radius: 12px;
    font-size: 1rem; /* Adjust font size */
    color: #FFF;  /* White text for contrast */
    font-weight: bold;
    background: linear-gradient(145deg, #f4a261, #e76f51); /* Lighter, vibrant color */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Soft outer shadow */
    will-change: transform;
    transform: translateY(-4px);
    transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
    text-shadow: 3px 1px 0px rgb(78 66 31 / 18%);
}

/* Inactive Button Color */
.pushable:not(.active) .btn-winner {
    background: linear-gradient(145deg, #d4b8a0, #b37e60); /* Dimmed color for inactive */
    filter: brightness(90%); /* Slightly dimmed color for inactive */
}

/* Active Button Color */
.pushable.active .btn-winner {
    background: linear-gradient(145deg, #f4a261, #e76f51); /* Brighter for active */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Stronger shadow for active */    
}

/* Hover Effect */
.pushable:hover .btn-spin-front {
    filter: brightness(110%);
}

.pushable:hover .btn-winner {
    filter: brightness(120%);
}

.pushable:hover .btn-spin-front {
    transform: translateY(-4px); 
    transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5); 
}

.pushable:active .btn-spin-front,
.pushable.active .btn-spin-front {
    /* transform: translateY(-2px); */
    transition: transform 34ms;
}

/* Shadow Effect on Hover */
.pushable:hover .btn-spin-shadow {
    transform: translateY(4px);
    transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

.pushable:active .btn-spin-shadow,
.pushable.active .btn-spin-shadow {
    transform: translateY(2px);
    transition: transform 34ms;
}

/* Make it more vibrant with lighter gradients on active */
.pushable:focus:not(:focus-visible) {
    outline: none;
}

.pushable:active {
    filter: brightness(140%);
}

/* ============================= */
/* Lucky Spin Container */
/* ============================= */
.lucky-spin-container {
    margin:auto;
    padding-top:50px;
    background-image: url("../icon/luckyspin/shining.gif");
    background-size: 500px;
    background-repeat: no-repeat;
    background-position: center center;
    z-index: 1;
    position: relative; 
    max-width:600px;
}
.coindrop {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 2000;
    display: none;
}
.coindrop img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}
.lucky-info {
    max-width:500px;
    margin:auto;
    background-image: url('../icon/luckyspin/gold.png');
    background-repeat: no-repeat;
    background-size: 50%;
    background-position: center right -15px;
} 

/* ============================= */
/* Lucky Spin History Tables */
/* ============================= */
.lucky-spin-history {
    display: flex;
    align-items: center;
    margin: auto;
    position: relative;
    box-sizing: border-box;
    color: #FFF;
    background-clip: padding-box;
    border: 2px solid #c3ac19d6;
    border-radius: 1em; 
}
.lucky-spin-history::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1;
    margin: -5px;
    border-radius: inherit;
    background: linear-gradient(to right, #FFD700, orange);
}
.lucky-spin-history > div {
    width:100%;
    position:relative;
}
.winnerList thead th, .winningRecord thead th {
    background-color:#0089ff;
    color:#fff;
}
/* .winnerList thead th:first-child, .winningRecord thead th:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
.winnerList thead th:last-child, .winningRecord thead th:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
} */
/* .winnerList thead .date-column {
    width:150px;
} */

.table > :not(caption) > * > * {
    background-color: transparent;
}
.trophies {
    background:url('../icon/luckyspin/treasure.png') 0 0 no-repeat;
    background-size:cover;
    opacity:0.4;
    position:absolute;
    bottom:13px;
    right:25px;
    height:10rem;
    width:16rem;
    z-index:1;
}

.winnerList, .winningRecord {
    position: relative;
    z-index: 1;
    height: 350px;
    overflow: hidden;
    background-color: #f0ebe124; /* add background so content stands out */
    border-radius: 1em;
    padding: 10px;
}

.winnerList table, .winningRecord table {
    width: 100%;
    border-collapse: collapse;
}

.winnerList tbody, .winningRecord tbody {
    display: block;
    max-height: 320px;
    overflow-y: auto;

    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}
.winnerList tbody::-webkit-scrollbar, .winningRecord tbody::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.winnerList thead, .winningRecord thead {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.winnerList tbody tr, .winningRecord tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

/* ============================= */
/* Auto Slide Table */
.auto-slide tbody {
    display: block;
    max-height: 350px;
    overflow: hidden;
    animation: scrollTable 20s linear infinite;
}

.auto-slide tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

@keyframes scrollTable {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* ============================= */
/* Misc / Other Styles */
.inactive-container {
    display: flex;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}
.inactive-container img {  
    width: 200px;
}
.lucky-spin-btn {
    min-width:110px;
}
/* .small-lucky-spin-icon {
    position:fixed;bottom:60px;left:10px;z-index:100;width:80px;
}
.small-lucky-spin-icon .lucky-spin-close {
    position:absolute;right:0px;top:5px;padding-left:5px;padding-bottom:5px;
}
.small-lucky-spin-icon .lucky-spin-close > i {
    background-color:#fff;font-size:20px;color:#A52A2A;border-radius:50%;text-align:right;
}
.small-lucky-spin-icon > a > img {
    width:100%;
} */
.hide-lucky-spin {
    left:-100%;
    animation-duration: 2s;
    animation-name: slide-left;
}
@keyframes slide-left {
    from { 
        left:10px; 
    }
    to {
        left:-100%;
    }
}
.lucky-spin-terms {
    margin-top:20px;
    text-align:center;
    font-weight: bolder;
}
.lucky-spin-terms a {
    color:#BACDF9 !important;
}
.lucky-spin-terms a:hover {
    color:#FFCD29 !important;
}

/* ============================= */
/* Responsive Adjustments */
@media (max-width: 500px) {
    .lucky-spin .lucky-spin-wrapper .pointer {
        width: 2rem;
    }
    .lucky-spin-container {
        padding-top:50px;
    }
    .lucky-spin-history {
        margin-top:20px;
    }
    .lucky-spin-btn {
        margin-bottom:13px;
    }
    .winnerList thead .date-column {
        width:100px;
    }
    .lucky-spin-terms {
        margin-top:5px;
    }
}

/* LOBBY */
.small-lucky-spin-icon {
    position: fixed;
    bottom: 60px;
    left: 10px;
    z-index: 100;
    width: 80px;

    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));

    animation:
        floatSpinIcon 2.5s ease-in-out infinite,
        shakeSpinIcon 5s infinite;
}

.small-lucky-spin-icon .lucky-spin-close {
    position: absolute;
    right: 0;
    top: 5px;
    padding-left: 5px;
    padding-bottom: 5px;
    z-index: 2;
}

.small-lucky-spin-icon .lucky-spin-close > i {
    background-color: #fff;
    font-size: 20px;
    color: #A52A2A;
    border-radius: 50%;
    text-align: right;
}

.small-lucky-spin-icon > a > img {
    width: 100%;
    display: block;

    animation: pulseSpinIcon 1.8s infinite;
}

/*
|--------------------------------------------------------------------------
| FLOAT
|--------------------------------------------------------------------------
*/
@keyframes floatSpinIcon {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/*
|--------------------------------------------------------------------------
| PULSE
|--------------------------------------------------------------------------
*/
@keyframes pulseSpinIcon {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

/*
|--------------------------------------------------------------------------
| SHAKE
|--------------------------------------------------------------------------
*/
@keyframes shakeSpinIcon {
    0%, 90%, 100% {
        transform: translateX(0);
    }

    92% {
        transform: translateX(-3px);
    }

    94% {
        transform: translateX(3px);
    }

    96% {
        transform: translateX(-3px);
    }

    98% {
        transform: translateX(3px);
    }
}

.hide-lucky-spin {
    animation: hideLuckySpin 0.5s forwards !important;
}

@keyframes hideLuckySpin {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-200px);
        opacity: 0;
    }
}

.lucky-spin-terms {
    margin-top:20px;
    text-align:center;
    font-weight: bolder;
}
.lucky-spin-terms a {
    color:#BACDF9 !important;
}
.lucky-spin-terms a:hover {
    color:#FFCD29 !important;
}
@media (max-width: 500px) {
    .lucky-spin .lucky-spin-wrapper .pointer {
        width: 2rem;
    }
    .lucky-spin-container {
        padding-top:50px;
        /* background-size: cover; */
    }
    .lucky-spin-history {
        margin-top:20px;
    }
    .lucky-spin-btn {
        margin-bottom:13px;
    }
    .winnerList thead .date-column {
        width:100px;
    }
    .lucky-spin-terms {
        margin-top:5px;
    }
}

@media (min-width: 992px) {

    .small-lucky-spin-icon {
        width: 120px;
        left: 20px;
    }

    .small-lucky-spin-icon {
        bottom: 80px;
    }

    .small-lucky-spin-icon .lucky-spin-close > i {
        font-size: 26px;
    }
}
