@keyframes floating {
    0% {
        transform: translate(0, 0px);
    }
    50% {
        transform: translate(0, 5px);
    }
    100% {
        transform: translate(0, 0px);
    }
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }
    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }
    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }
    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }
    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }
    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }
    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }
    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }
    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }
    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }
    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

@keyframes bang {
    from {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

.floating {
    animation-name: floating;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.shaking {
    animation: shake 0.5s;
    animation-iteration-count: infinite;
}

.small {
    transition: 0;
    transform: scale(0.4);
}

audio,
embed {
    position: absolute;
    z-index: -9999;
    opacity: 0;
}
body {
    background-image: url(https://storage.googleapis.com/parkinggacor/celengan/desktop/bg-d.png);
    background-size: cover;
    background-position: bottom;
}

.container {
    padding-top: 26vh;
}
.reward-bg {
    position: absolute;
    top: 0;
    width: 100%;
}
.buddha {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 30vw;
}

.logo-center {
    position: absolute;
    top: 0;
    left: 50%;
    width: 25vw;
    transform: translate(-50%, 20%);
}
.btn-orange {
    background-color: orange;
}
.btn,
.btn:hover,
.btn:active {
    color: white !important;
}
.modal.fade .modal-dialog {
    transform: translate3d(0, 0%, 0);
}
.modal.in .modal-dialog {
    transform: translate3d(0, 0, 0);
}
.modal-backdrop {
    background-color: rgb(202, 202, 202);
}
.modal-content {
    background: transparent;
    border: 0;
}
.angpao-wrapper {
    width: 60vw;
}
.angpao-item {
    transition: 0.5s;
    position: relative;
    cursor: pointer;
    text-align: center;
}
.angpao-item img {
    max-width: 18vw;
    margin-top: -4vw;
    transition: 0.3s;
    position: relative;
    width: 100%;
    z-index: 1;
    left: 0;
    top: 0;
}
.angpao-value {
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
}
.ingame-start {
    display: flex;
}
.show-value .angpao-value {
    z-index: 100;
}
#wonMoney {
    font-size: 60px;
    color: yellow;
    padding: 10px 30px;
    border: 2px solid yellow;
    border-radius: 10px;
    background-color: red;
}
.volume-wrapper img {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 8px;
    left: 8px;
}
.error-text {
    display: block;
    width: 100%;
    color: red;
}

.angpao-item img {
    position: relative;
    transition: 0.3s;
}
.angpao-wrapper.shuffling .angpao-item:first-child img {
    top: 50%;
    left: 100%;
}
.angpao-wrapper.shuffling .angpao-item:nth-child(2) img {
    top: 50%;
    left: 0;
}
.angpao-wrapper.shuffling .angpao-item:nth-child(3) img {
    top: 50%;
    left: -100%;
}
.angpao-wrapper.shuffling .angpao-item:nth-child(4) img {
    top: -50%;
    left: 100%;
}
.angpao-wrapper.shuffling .angpao-item:nth-child(5) img {
    top: -50%;
    left: 0;
}
.angpao-wrapper.shuffling .angpao-item:nth-child(6) img {
    top: -50%;
    left: -100%;
}
.mobile {
    display: none;
}

@media only screen and (max-width: 990px) {
    .desktop {
        display: none;
    }
    .mobile {
        display: block;
    }
    .buddha {
        display: none;
    }
    body {
        background-image: url(https://storage.googleapis.com/parkinggacor/celengan/mobile/bg-m.png);
        background-size: cover;
        background-position: bottom;
    }
    .logo-center {
        top: 0;
        left: 50%;
        width: 50vw;
        transform: translate(-50%, 20%);
    }
    .container {
        padding-top: 17vh;
    }
    .angpao-wrapper {
        width: 70vw;
    }
    .angpao-item img {
        max-width: 40vw;
        margin-top: -4vh;
    }
    .angpao-wrapper.shuffling .angpao-item:first-child img {
        top: 50%;
        left: 100%;
    }
    .angpao-wrapper.shuffling .angpao-item:nth-child(2) img {
        top: 50%;
        left: 0;
    }
    .angpao-wrapper.shuffling .angpao-item:nth-child(3) img {
        top: 50%;
        left: -100%;
    }
    .angpao-wrapper.shuffling .angpao-item:nth-child(4) img {
        top: -50%;
        left: 100%;
    }
    .angpao-wrapper.shuffling .angpao-item:nth-child(5) img {
        top: -50%;
        left: 0;
    }
    .angpao-wrapper.shuffling .angpao-item:nth-child(6) img {
        top: -50%;
        left: -100%;
    }
}

@media only screen and (max-width: 768px) {
    .angpao-wrapper.shuffling .angpao-item:first-child img {
        top: 100%;
        left: 50%;
    }
    .angpao-wrapper.shuffling .angpao-item:nth-child(2) img {
        top: 100%;
        left: -50%;
    }
    .angpao-wrapper.shuffling .angpao-item:nth-child(3) img {
        top: 0;
        left: 50%;
    }
    .angpao-wrapper.shuffling .angpao-item:nth-child(4) img {
        top: 0;
        left: -50%;
    }
    .angpao-wrapper.shuffling .angpao-item:nth-child(5) img {
        top: -100%;
        left: 50%;
    }
    .angpao-wrapper.shuffling .angpao-item:nth-child(6) img {
        top: -100%;
        left: -50%;
    }
}
