@import url('https://fonts.googleapis.com/css2?family=Gowun+Dodum&display=swap');
* {
    margin: 0;
    padding: 0;
    font-family: 'Gowun Dodum', sans-serif;
    box-sizing: border-box;
}
html, body {
    height: 100%;
}
body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
label {
    display: block;
    width: 100%;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    flex: 0 0 auto;
}
input {
    height: 32px;
    padding: 0 10px;
    border: 1px solid #333;
    font-size: 20px;
    text-align: center;
    border-radius: 0;
    outline: 0;
}
button {
    outline: 0;
    border: none;
    border-radius: 0;
    cursor: pointer;
}
.yutplay {
    position: relative;
    border: 3px solid #252525;
    background: #fff;
    border-radius: 5px;
    z-index: 2;
}
canvas {
    display: block;
}

.custom_wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.custom_wrap .input_row {
    width: 50%;
    padding: 0 20px;
}
.custom_wrap .input_row input {
    display: block;
    width: 100%;
}
.custom_wrap .horse_row input {
    display: inline-block;
    width: 50px;
    margin: 0 10px;
    vertical-align: middle;
}
.custom_wrap .horse_row .plus_btn,
.custom_wrap .horse_row .minus_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #fff;
    font-size: 24px;
    background: #333;
    vertical-align: middle;
}
.custom_wrap .start_btn {
    display: block;
    width: 100%;
    height: 40px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    background: #333;
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    perspective: 700px;
    overflow: hidden;
    z-index: 1;
}
.confetti {
    position: absolute;
    top: -10px;
}
.confetti.slow {
    animation: confetti-slow 2.2s linear 1 forwards;
}
.confetti.medium {
    animation: confetti-medium 1.75s linear 1 forwards;
}
.confetti.fast {
    animation: confetti-fast 1.25s linear 1 forwards;
}

@keyframes confetti-slow {
    0% { transform: translate3d(0, 0, 0) rotateX(0) rotateY(0); }
    100% { transform: translate3d(25px, 105vh, 0) rotateX(360deg) rotateY(180deg); }
}

@keyframes confetti-medium {
    0% { transform: translate3d(0, 0, 0) rotateX(0) rotateY(0); }
    100% { transform: translate3d(100px, 105vh, 0) rotateX(100deg) rotateY(360deg); }
}

@keyframes confetti-fast {
    0% { transform: translate3d(0, 0, 0) rotateX(0) rotateY(0); }
    100% { transform: translate3d(-50px, 105vh, 0) rotateX(10deg) rotateY(250deg); }
}
.catch {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 50px;
    font-weight: 700;
    color: red;
    transform: translate(-50%, -50%) scale(0.9);
    animation: catchAni 1.5s ease forwards;
}

@keyframes catchAni {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
    }
    10% {
        transform: translate(-50%, -50%) rotate(-25deg) scale(1.4);
    }
    90% {
        transform: translate(-50%, -50%) rotate(-25deg) scale(1.4);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }

}