@import url('https://fonts.googleapis.com/css2?family=Rubik+Distressed&display=swap');

* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
}
html {
    padding: 0;
    margin: 0;
    height: 100vh;
}
body {
    position: relative;
    padding: 0;
    margin: 0;
    height: 100vh;
    background-image: url("./bodybg.jpg");
    background-size: cover;
    background-position: center center;
}
#application {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: top center;
    width: 720px;
    height: 1164px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    overflow: hidden;
    background-image: url("./themes/carnival/bg.jpg");
    background-position: left top;
    background-size: 100% 1000px;
    background-repeat: no-repeat;
}
#game-panel,
#game-cover {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-50px);
}
#game-panel {

}
#game-panel canvas {
    background-color: transparent !important;
}
#game-luckydraw {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 180px;
    left: 50%;
    width: 450px;
    height: 160px;
    transform: translateX(-50%);    
    z-index: -1;
}
#game-luckydraw .draw-panel {
    display: flex;
    flex-direction: row;
    justify-content: center;
    font-size: 4rem;
}
#game-luckydraw .draw-panel > span {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 0 1px;
    width: 100px;
    height: 100px;
    border-radius: 30px;
    background-image: url("./themes/carnival/luckdraw-slot-bg.jpg?2");
    background-size: 200px 160px;
    background-position: -50px 0px;
    box-shadow: inset 0 0 10px rgb(65 104 115);
    border: 5px solid #912718;
}
#game-luckydraw .draw-panel span#draw-slot-0 {
    background-position: 0px 0px;
    border-right-width: 15px;
    /* transform: rotate(-10deg) translateY(8px); */
}
#game-luckydraw .draw-panel span#draw-slot-2 {
    background-position: -100px 0px;
    border-left-width: 15px;
    /* transform: rotate(10deg) translateY(8px); */
}
#game-luckydraw .draw-panel > span > i {
    font-style: normal;
}
#game-luckydraw .luckydraw-count-panel {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 10px;
}
#game-luckydraw .luckydraw-count-panel > span {
    margin: 0 4px;
    width: 16px;
    height: 16px;
    background-color: #7b6f40;
    border-radius: 13px;
    border: 5px solid #912718;   
}
#game-luckydraw .luckydraw-count-panel > span.active {
    background-color: #ffdf5f;
}
#gate-cover {
    position: absolute;
    bottom: 0;
    left: 126px;
    width: 568px;
    height: 50px;
    background-color: #416873;
    background-image: url("./themes/carnival/gatebg.jpg");
    background-size: cover;
    background-position: center center;
    z-index: -1;
}
#drop-indicator {
    position: absolute;
    top: -31px;
    left: 50px;
    width: 62px;
    height: 62px;
    background-image: url("./themes/carnival/coin.png");
    background-size: cover;
    background-position: center center;
    z-index: -1;
}
#buttons-panel {
    position: absolute;
    display: flex;
    top: 1010px;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 0;
    width: 100%;
    height: 134px;
    background-color: #fff;
    background-image: url("./themes/carnival/buttonsbg.jpg");
    background-size: cover;
    background-position: center center;
    border-radius: 0 0 10px 10px;;
}
#buttons-panel .left {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding-left: 20px;
    width: 25%;
}
#buttons-panel .right {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    padding-right: 20px;
    width: 25%;
}
#buttons-panel .center {
    width: 50%;
}
#buttons-panel span.button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 140px;
    height: 100px;
    border-style: solid;
    border-width: 2px;
    border-bottom-width: 6px;
    border-color: #999;
    color: #000;
    font-size: 2rem;
    border-radius: 30px;
    font-family: "Rubik Distressed";
}
#buttons-panel span.button.pressing:not(.disabled) {
    border-bottom-width: 2px;
    transform: translateY(2px);
}
#buttons-panel span.button.disabled {
    opacity: 0.6;
}
#buttons-panel #btn-drop {
    background-color: #ff8cd9;
    color: #6d0b6e;
    border-color: #6d0b6e;
}
#buttons-panel #btn-claim {
    display: flex;
    flex-direction: column;
    background-color: #ffcf00;
    color: #5c5014;
    border-color: #5c5014;
    line-height: 1;
}
#buttons-panel #btn-claim .claimable-prize {
    font-size: 2.8rem;
}
#buttons-panel #btn-claim .text {
    font-size: 1.4rem;
}
#buttons-panel .info {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: 104px;
    background-color: rgb(25 102 122 / 90%);
    border-radius: 30px;
    border: 2px solid rgb(25 102 122 / 100%);
    color: #fff;
    font-family: "Rubik Distressed";
    line-height: 1;
}
#buttons-panel .info .text {
    font-size: 1rem;
    font-weight: 400;
}
#buttons-panel .info .value {
    font-size: 3rem;
}
#buttons-panel .info .coin {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
}
#buttons-panel .info .score {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
}
#give-remain-time-pie {
    position: absolute;
    margin-top: -15px;
    width: 16px;
    height: 16px;
    background-image: conic-gradient(#fff 0deg, #fff 0deg, #416873 0deg, #416873 360deg);
    border-radius: 50%;  
}
#fake-bgimg {
    position: fixed;
    left: calc(100vw + 100px);
    top: calc(100vh + 100px);
}
.jump {
    animation-name: jump;
    animation-duration: 0.3s;
}
.version {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 4px 6px;
    background-color: #416873;
    color: #fff;
    font-family: system-ui;
    font-size: 0.6rem;
    border-radius: 2px;
}
@keyframes jump {
    0%   { transform: scale(1); }
    50%  { transform: scale(2); }
    100% { transform: scale(1); }
}
.test {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
}