* {
    margin: 0;
    padding: 0;
}

header,
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1em 0;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dummy {
    padding: 20px;
    text-align: center;
    line-height: 35px;
}

button {
    margin: 30px 0;
    padding: 50px;
    font-size: 16px;
    cursor: pointer;
}

dialog[open] {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: none;
}

dialog[open] video {
    width: 100%;
}

html.no-over,
body.no-over {
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

.gashaponHolder .prizesHolder {
    width: 100%;
    margin: 0;
}

img.machine-bot {
    z-index: 100;
    position: relative;
    margin-left: -11px;
    margin-right: -11px;
    width: -webkit-fill-available !important;
}

.gashaponHolder .machineHolder {
    position: relative;
    margin-top: -1px;
}

.gashaponHolder.layout2 .machineButton {
    left: 32%;
    top: -11%;
    width: 36%;
    z-index: 100;
}

.gashaponHolder.layout2 .machineDrop {
    width: 108px;
    z-index: 100;
    top: 130px;
    left: 50%;
    transform: translate(-50%, 0);
    height: 333px;
}

.bg-cover {
    display: none;
    background-color: rgb(0 0 0 / 40%);
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: -5px;
    left: 0;
    z-index: 200;
    overflow: hidden;
}

img.prize.small {
    display: none;
    width: 40px;
}

.bg-cover>img {
    opacity: 0;
    width: 250%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dropResult .item img.prize.small {
    position: absolute;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
}

#confetti-canvas {
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    pointer-events:none;
    z-index:1;
}

.finalResult {
    position: absolute;
    top: -5px;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    /* transform: scale(1.5); */
    overflow: hidden;
}

.finalResult .item {
    position: relative;
    width: 100%;
    left: 0;
    top: 0%;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    justify-content: center;
    /* transition: all 0.3s linear; */
    overflow: hidden;
}

.finalResult .item>img {
    width: 40px;
}

.finalResult .coverA.cover {
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    width: 80px;
}

.finalResult .coverB.cover {
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    width: 80px;
}

.finalResult .coverA.cover>img,
.finalResult .coverB.cover>img {
    width: 100%;
}

.finalResult .item.scaleup {
    transform: scale(2);
}

div.bg-cover>div.white-circle {
    position: absolute;
    top: -25%;
    left: -50%;
    border-radius: 50%;
    width: 200vw;
    height: 150vh;
    transform: scale(0);
    z-index: 1001;

}

div.bg-cover.showing-circle>div.white-circle {
    background: white;
    border-radius: 50%;
    box-shadow: 0px 0px 300px 700px #ffffff;
    animation-name: whiteShow;
    animation-duration: 3s;
    animation-iteration-count: 1;
}

div.bg-cover.showing-circle-standby>div.white-circle {
    background: white;
    border-radius: 50%;
    box-shadow: 0px 0px 300px 700px #ffffff;
    transform: scale(0.1);
    display: none;
}

div.bg-cover.showing-circle>img {
    opacity: 0;
}

.bg-cover.toWhite {
    background-color: white;
}

div.bg-cover>div.image-rotate {
    opacity: 0;
    position: relative;
    scale: 2.4;
    width: 100%;
    height: 100%;
    /* background: url(../assets/bg-slide-sun.jpg);
    background-size: cover;
    background-position: center;
    animation: spin 15s linear infinite; */
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

div.bg-cover>div.image-rotate.show {
    opacity: 1;
    transition: all 1s ease;
}

.textResult {
    display: none;
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    left: 0;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.textResult.showing {
    display: flex;
}

.textResult img {
    opacity: 0;
    transition: all 1s ease;
    transform: scale(0) rotate(0deg);
}

.textResult.showing img.now {
    opacity: 1;
    transform: scale(1);
}

.textResult.showing h2 {
    opacity: 0;
    transition: all 0.4s ease-out;
    transform: scale(0);
    padding: 40px;
    color: white;
    background: transparent;
    /* font-size: 50px;
    max-width: 65vw;
    min-width: 65vw; */
}
.textResult h2 {
    position: relative;
    z-index: 2;
}

.textResult.showing h2.now {
    opacity: 1;
    transform: scale(1);
}

#mainHolder {
    position: relative;
    width: 100vw;
    height: 100vh;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}
.single {
    padding: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 5px;
}

.container-light-concentrate {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.glowing-circle {
    position: absolute;
    text-align: center;
    border: 1em solid #ffffff;
    color: #ffffff;
    width: 6em;
    height: 6em;
    font-size: 2em;
    border-radius: 100%;
    display: flex;
    animation: power-up-one 900ms ease-out infinite;
    box-shadow: 0px 0px 10px 10px #ffffff, #ffffff 0px 0px 3px inset;
    overflow: hidden;
}

.glowing-circle1 {
    position: absolute;
    text-align: center;
    border: 0.5em solid #ffffff;
    color: #ffffff;
    width: 6em;
    height: 6em;
    font-size: 2em;
    border-radius: 100%;
    display: flex;
    animation: power-up-two 900ms ease-out infinite;
    animation-delay: 0.33s;
    box-shadow: 0px 0px 10px 10px #ffffff, #ffffff 0px 0px 3px inset;
    overflow: hidden;
}

.glowing-circle2 {
    position: absolute;
    text-align: center;
    border: 0.5em solid #ffffff;
    color: #ffffff;
    width: 6em;
    height: 6em;
    font-size: 2em;
    border-radius: 100%;
    display: flex;
    animation: power-up-three 900ms ease-out infinite;
    animation-delay: 0.6s;
    box-shadow: 0px 0px 10px 10px #ffffff, #ffffff 0px 0px 3px inset;
    overflow: hidden;
}

.circle-center {
    background: #ffffff;
    width: 110px;
    height: 110px;
    box-shadow: 0px 0px 10px 10px #ffffff, #ffffff 0px 0px 3px inset;
    border-radius: 80%;
}

.tadar {
    -webkit-animation-name: tadar;
    animation-name: tadar;
}

.bounce-machine {
    -webkit-animation-name: bounceMachine;
    animation-name: bounceMachine;
}

.before-spin {
    width: auto;
    position: absolute;
    bottom: -15%;
    z-index: 100;
    opacity: 1;
}

.before-spin > img {
    width: 100%;
}

div.frame {
    /*background: url(../assets/gacha-v2/bg_machine.png);*/
    width: 100%;
    height: 100%;
    background-size: cover;
    overflow: hidden;
}

.before-spin .idle {
    height: auto;
    width: 19%;
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
img.bottom-gray {
    width: 100%;
    height: 66px;
    /* position: absolute;
    left: 0;
    bottom: 0; */
}
.arrow-idle .triangel {
    position: relative;
    height: 18px;
    animation: idleUpDown 2s ease-in-out infinite;
    left: 50%;
    transform: translateX(-50%);
}
.arrow-idle .triangel:last-child {
    animation-delay: 0.1s;
}
.arrow-idle .triangel span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    width: 0;
	height: 0;
}
.arrow-idle .triangle-shadow {
    border-left: 21px solid transparent;
    border-right: 21px solid transparent;
    border-bottom: 18px solid rgba(0, 0, 0, 0.7);
    top: 2px;
    z-index: 0;
    filter: blur(4px);
}
.arrow-idle .triangel .triangle-border {
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 18px solid #fff;
    z-index: 1;
}
.arrow-idle .triangel .triangle-inner {
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 13px solid #d70c25;
    display: block;
    margin: auto;
    top: 3px;
    z-index: 2;
}
.mt-4 {
    margin-top: 4px;
}
.shadow-machine {
    position: absolute;
    min-width: 100%;
}
.hide-fr-spin {
    width: auto;
    position: relative;
    z-index: 1;
}
.hide-fr-spin img {
    width: 100%;
}
.bottom-stay {
    position: absolute;
    bottom: 0;
    left: 0;
}
.bg-light {
    opacity: 0;
    position: fixed;
    overflow: hidden;
    transition: all 1s ease;
}
.bg-light:nth-last-child(1) > img {
    opacity: 1;
    width: 100vh;
    height: 100vh;
    scale: 0.5;
    animation: spin 15s linear infinite;
}
.bg-light:nth-last-child(2) > img {
    opacity: 1;
    width: 100vh;
    height: 100vh;
    scale: 0.8;
    animation: spinReverse 15s linear infinite;
}

#tapPrompt {
    position: fixed;
    top: 60%;
    width: 100%;
    text-align: center;
    z-index: 2000;
}

#tapPrompt span {
    /* 庁 繝輔か繝ウ繝医ヵ繧。繝溘Μ繝シ繧定ソス蜉  */
    font-family: 'Helvetica Neue', 'Arial', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    color: #ffffff;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

#resultTopimage, #resultTopimageHazure {
    position: absolute; 
    width: 100%;
    text-align: center;
    z-index: 2000;
    top: 45%;
}

#resultTopimage {
    transform: translateY(-160%);
}

#resultTopimageHazure {
    transform: translateY(-170%);
}

#redirectButtonAtari {
    position: absolute; 
    width: 100%;
    text-align: center;
    z-index: 99999;
    top: 62%;
    left: 0;  
}

#redirectButtonHazure {
    position: absolute; 
    width: 100%;
    text-align: center;
    z-index: 99999;
    top: 50%;
}

#redirectButtonAtari {
    transform: translateY(40%);
}

#redirectButtonHazure {
    transform: translateY(140%);
}

/* ANIMATIONS */
@keyframes tadar {
    0% {
        -webkit-transform: scaleX(2);
        transform: scaleX(2);
    }

    10%,
    20% {
        -webkit-transform: scale3d(1.8, 1.8, 1.8) rotate(-3deg);
        transform: scale3d(1.8, 1.8, 1.8) rotate(-3deg);
    }

    30%,
    50%,
    70%,
    90% {
        -webkit-transform: scale3d(2.1, 2.1, 2.1) rotate(3deg);
        transform: scale3d(2.1, 2.1, 2.1) rotate(3deg);
    }

    40%,
    60%,
    80% {
        -webkit-transform: scale3d(2.1, 2.1, 2.1) rotate(-3deg);
        transform: scale3d(2.1, 2.1, 2.1) rotate(-3deg);
    }

    100% {
        -webkit-transform: scale(2);
        transform: scale(2);
    }
}

@keyframes bounceMachine {
    0% {
        -webkit-transform: scaleX(1);
        transform: scaleX(1);
    }

    10%,
    20% {
        -webkit-transform: scale3d(1, 1, 1) rotate(-2deg);
        transform: scale3d(1, 1, 1) rotate(-2deg);
    }

    30%,
    50%,
    70%,
    90% {
        -webkit-transform: scale3d(1, 1, 1) rotate(2deg);
        transform: scale3d(1, 1, 1) rotate(2deg);
    }

    40%,
    60%,
    80% {
        -webkit-transform: scale3d(1, 1, 1) rotate(-2deg);
        transform: scale3d(1, 1, 1) rotate(-2deg);
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes spin {
    0% {
        transform-origin: center;
        transform: rotate(0deg);
    }

    100% {
        transform-origin: center;
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    0% {
        transform-origin: center;
        transform: rotate(360deg);
    }

    100% {
        transform-origin: center;
        transform: rotate(0deg);
    }
}

@keyframes whiteShow {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    1% {
        opacity: 1;
    }

    80% {
        transform: scale(0.7);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes power-up-one { 
    0% {
        transform: scale(2.5);
        opacity: 0;
    }

    5% {
        transform: scale(2.5);
        opacity: 0.01;
    }

    100% {
        transform: scale(0.1);
        opacity: 0.5;
        box-shadow: 0px 0px 20px 20px #ffffff, #ffffff 0px 0px 10px inset;
    }
}

@keyframes power-up-two { 
    0% {
        transform: scale(2.2);
        opacity: 0;
    }

    5% {
        transform: scale(2.2);
        opacity: 0.01;
    }

    100% {
        transform: scale(0.1);
        opacity: 0.45;
        box-shadow: 0px 0px 15px 12px #ffffff, #ffffff 0px 0px 8px inset;
    }
}

@keyframes power-up-three { 
    0% {
        transform: scale(2);
        opacity: 0;
    }

    5% {
        transform: scale(2);
        opacity: 0.01;
    }

    100% {
        transform: scale(0.1);
        opacity: 0.4;
        box-shadow: 0px 0px 8px 6px #ffffff, #ffffff 0px 0px 4px inset;
    }
}

@keyframes idleUpDown {
    0% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}