@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;
    }
}

@keyframes woweffect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

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

.woweffect {
    animation-name: woweffect;
    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.9);
}

audio,
embed {
    position: absolute;
    z-index: -9999;
    opacity: 0;
}
body {
    background-image: url(https://storage.googleapis.com/parkinggacor/mgolotteryticket/desktop-background.jpg);
    background-size: 100% 100%;
    background-position: center;
}
.logo-center {
    position: absolute;
    top: 1vh;
    left: 1vw;
    width: 25vw;
}
.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-item {
    transition: 0.5s;
    position: relative;
    cursor: pointer;
}
.angpao-wrapper {
    width: 75vw;
}
.angpao-item img {
    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,
.tap-message {
    font-size: 16px;
    color: gold;
    padding: 10px 30px;
    border: 2px solid darkgoldenrod;
    border-radius: 10px;
    background-color: darkred;
    box-shadow: 0 0 50px 15px gold;
    text-align: center;
}
.volume-wrapper img {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 8px;
    left: 8px;
}
.error-text {
    display: block;
    width: 100%;
    color: bisque;
    margin-top: 16px;
}
.angpao-item img {
    position: relative;
    transition: 0.3s;
}
.code-form {
    position: absolute;
    top: 50%;
    right: 3vw;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30vw;
}
.form-background {
    width: 100%;
}
.code-form form {
    position: absolute;
    top: 2.8vw;
    text-align: center;
}
.code-input {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 1.6vw;
    text-align: center;
    color: bisque;
}
#scratch {
    position: relative;
    display: inline-block;
    opacity: 0;
    transition: 0.3s;
    max-width: 30vw;
    border-radius: 16px;
    overflow: hidden;
}
.opacity-1 {
    opacity: 1 !important;
}
#scratch img {
    width: 100%;
    max-width: 916px;
    height: auto;
    padding: 8px;
}
.reward-row {
    position: absolute;
    top: 0;
    left: 0;
}
.scratch-reward {
    width: 30% !important;
}
#scratch canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    cursor: pointer;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    -ms-touch-action: none;
    -webkit-touch-action: none;
    -moz-touch-action: none;
    touch-action: none;

    transition: opacity 500ms ease-out 0ms, height 0ms linear 500ms;
}
#scratch.revealed canvas {
    opacity: 0;
    height: 0;
}

@media only screen and (max-width: 1024px) {
    body {
        background-size: cover;
        background-position: left;
    }
    .logo-center {
        top: 0;
        left: 50%;
        width: 50vw;
        transform: translate(-50%, 20%);
    }
    .angpao-wrapper {
        width: 100%;
    }
    .code-form {
        top: initial;
        bottom: 15vw;
        right: 50%;
        transform: translate(50%, 0);
        width: 100vw;
    }
    .code-form form {
        top: 9.4vw;
    }
    .code-input {
        font-size: 5vw;
    }
    #scratch {
        max-width: initial;
    }
}

@media only screen and (max-width: 600px) {
    .code-form {
        bottom: 30vw;
    }
}
