*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@font-face {
    font-family: "golden";
    src: url("./fonts/golden.ttf");
  }

body{
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
   
    font-family: "golden";
}
canvas{

    min-width: 320px;
    max-width: 450px;
    height: 100%;
    max-height: 500px;
    z-index: 1;

}
.bg_screen{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.bg_screen img{
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
    object-position: center;

}

.container{

    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 2;

}

.container .start{
    display: flex;
    height: 100%;

    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 80px;

}


.container .start-top img{
   width: 220px;
}
.container .start-button{
    padding-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.container .start-button img{
    width: 180px;
    cursor: pointer;
    margin-top: 50px;
}


.container .gameover{
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    position: relative;
}
.container .gameover-back img{
    width: 360px;
    
}

.container .gameover-content{
    width: 70%;
    height: 50%;
    margin-top: 30%;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:center;
    gap: 20px;
}

.container .gameover-button img{
    width: 150px;
    cursor: pointer;
}
.swing {
    -webkit-animation: sw 2s ease-in-out alternate infinite;
    animation: sw 2s ease-in-out alternate infinite;
}   
.content-cupon{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 4px dotted white;
    padding: 10px 20px;
    cursor: pointer;
}
.content-cupon img{
    width: 24px;
    height: 28px;

}
.content-text{
    color: white;
    text-align: justify;
}
.content-text strong{
    color: #2ec4ff;

}
.msn-cupon{
    color: #ffffff;
    font-size: 20px;
    letter-spacing: 0.1em;
   
 
}
.p-check{
    padding-left: 100%;
    position: absolute;
    display: none;
    color: black;
    font-size: 15px;
}

@-webkit-keyframes sw {
    0% {
        transform: rotate(5deg);
        transform-origin: top center;
    }
    100% {
        transform: rotate(-5deg);
        transform-origin: top center;
    }
}

@keyframes sw {
    0% {
        transform: rotate(5deg);
        transform-origin: top center;
    }
    100% {
        transform: rotate(-5deg);
        transform-origin: top center;
    }
}

.slideTop{
    -webkit-animation: st 1s ease-in-out;
    animation: st 1s ease-in-out;
}

@-webkit-keyframes st{
    0%{
        transform: translateY(0);
    }
    100%{
        transform: translateY(-100%);
    }
}

@keyframes st{
    0%{
        transform: translateY(0);
    }
    100%{
        transform: translateY(-100%);
    }
}
.slideBottom{
    -webkit-animation: sb 1s ease-in-out;
    animation: sb 1s ease-in-out;
}

@-webkit-keyframes sb{
    0%{
        transform: translateY(0);
    }
    100%{
        transform: translateY(200%);
    }
}

@keyframes sb{
    0%{
        transform: translateY(0);
    }
    100%{
        transform: translateY(200%);
    }
}
@media screen and (max-width:640px){
    canvas{
        max-height: 600px;
    }
    .container{
        width: 100%;
    }
    .container .start{
        width: 100%;
        align-items: center;
    }
}

@media  screen and (max-width:430px) {
    body{
        height: 100%;
        max-height: 600px;

    }
    canvas{
        height:auto;
        min-width: 320px;
        max-height: 600px;
    }

    .container .start-top{
        display: flex;
        justify-content: center;
        align-items: center;
        width:100%;
    }
    .container .start-top img{
        width:50%;
    }
    .container .start-button {
        display: flex;
        justify-content: center;
        align-items: center;
        width:100%;
     
    }
    .container .start-button img{
        width: 60%;
    }
}