@charset "UTF-8";

:root {
    --arrow-speed: 1s;
    --trail-delay: 0.1s;
    --burst-speed: 1.15s;
    --ready-fade: 1s;
}

body {
	font-size: 0;
    transition: none var(--ready-fade) linear 0.5s;
}

body::before {
    content: '';
    width: 100vw;
    height: 100vh;
    z-index: 10000000;
    opacity: 1;
    position: absolute;
    background-color: #FFF;
    pointer-events: none;
    transition: opacity var(--ready-fade) linear 0.5s;
}
body.ready::before {
    opacity: 0;
}

h1 {
	font-size: 5em;
}

p, button {
	font-size: 3em;
}

button {
	padding: .25em .5em;
	line-height: 1;
}

input {
	border: 1px solid #000;
}

.page {
    top: 0;
    left: 0;
    display: none;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    position: absolute;
    overflow: hidden;
    color: var(--pokemon-red);
    font-size: 2vw;
    background-color: #FFF;
}

#idle {
    display: block;
}

#invalid-code p,
#invalid-code h5 {
    display: none;
    margin: 0 auto;
    font-size: 2.86vw;
    line-height: 1.5;
}

#invalid-code p {
    width: 70vw;
    text-align: center;
    position: relative;
    font-family: 'Inter-Bold';
}

#invalid-code p::after,
#invalid-code p::before {
    top: 50%;
    content: '';
    width: 6.6vw;
    height: 6.6vw;
    display: block;
    position: absolute;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("../images/x.png");
    transform: translateY(-50%);
}
#invalid-code p::before {
    right: 100%;
}
#invalid-code p::after {
    left: 100%;
}

#invalid-code h5 {
    font-family: 'Anton-Regular';
    text-transform: uppercase;
}

.arrow {
    width: 4.7vw;
    height: auto;
    position: absolute;
    transform: translateX(-50%);
}

.bouncing.arrow {
    left: 91%;
    animation: bouncing 2s infinite alternate;
}

.climbing {
    left: 50%;
    bottom: 0vh;
    z-index: 10;
    position: absolute;
    transform: translate(-50%, 100%) rotate(-180deg);
    transition: bottom var(--arrow-speed) ease-out;
}

.dash {
    left: 50%;
    width: 4.7vw;
    height: 36vh;
    bottom: 0vh;
    position: absolute;
    transform: translateX(-50%);
    background-image: url("../images/dash.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.dash .cover {
    top: -1%;
    content: '';
    width: 100%;
    height: 102%;
    position: absolute;
    background-color: #FFF;
    transition: height var(--arrow-speed) ease-out var(--trail-delay);
}

.climbing.open {
    bottom: 40vh;
}
.cover.open {
    height: 0%;
}



@keyframes bouncing {
    0% {
        bottom: 6vh;
        animation-timing-function: ease-out; /* Slows down at the top */
    }
    50% {
        bottom: 1.5vh; /* Adjust this value for desired bounce height */
        animation-timing-function: ease-in; /* Speeds up as it falls */
    }
    100% {
        bottom: 6vh;
        animation-timing-function: ease-out; /* Slows down at the top */
    }
}


#success .container {
    position: relative;
}

.burst {
    top: 50%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%) scale(0);
    width: 102.55vw;
    height: 130vh;
    background-image: url('../images/burst.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--burst-speed) cubic-bezier(0.2, -0.17, 0.27, 3);
}

#congrats,
#grand-congrats {
    background-color: rgb(255 255 255 / 60%);
}

#congrats .burst,
#grand-congrats .burst {
    color: #FFF;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    background-image: url('../images/congrats-burst.png');
    transition-delay: .25s;
}

#grand-congrats .burst {
    width: 96vw;
    height: 122.5vh;
    background-image: url('../images/grand-burst.png');
}

#congrats .burst h3,
#congrats .burst h4,
#grand-congrats .burst h3,
#grand-congrats .burst h1 {
    margin: 0;
    text-transform: uppercase;
}

#grand-congrats .burst h1 {
    font-size: 12vw;
    line-height: 1;
    margin-bottom: 0.4em;
}
    
#congrats .burst h3,
#grand-congrats .burst h3 {
    font-size: 4.95vw;
    line-height: 1.21;
    margin-top: 0.5em;
}
#grand-congrats .burst h3 {
    margin: 0;
}

#congrats .burst h4 {
    font-size: 3.28vw;
    line-height: 1.2;
}

.down.arrow {
    position: static;
    transform: none;
    margin-top: 3vw;
}


.burst.open {
    transform: translate(-50%, -50%) scale(1);
}

#success h3 {
    font-size: 6.77vw;
    line-height: 1.5;
    text-transform: uppercase;
}

#instructions {
    width: 80vw;
    height: 70vh;
    position: relative;
    display: flex;
    align-items: center;
    align-content: space-around;
    justify-content: center;
    flex-direction: column;
    border: 0.5vw solid var(--pokemon-red);
}

#instructions h1,
#instructions h2,
#instructions h3 {
    margin: 0;
    text-align: center;
    color: var(--pokemon-red);
}

#instructions h1 {
    font-size: 9.8vw;
    line-height: 1.06;
}

#instructions h2 {
    font-size: 7.55vw;
    line-height: 1.0001;
}

#instructions h3 {
    font-size: 5.3125vw;
    line-height: 1.43;
}

h3 .lrg {
    font-size: 13.4375vw;
    line-height: 0.775;
}

h3 .sml {
    font-size: 3.85vw;
    line-height: 1.97;
}

.step {
    display: none;
}

#logo,
#scan-here {
    left: 50%;
    width: 30vw;
    height: auto;
    position: absolute;
    background-color: #FFF;
}

#logo {
    top: 0;
    transform: translate(-50%, -60%);
}

#scan-here {
    bottom: 0;
    color: #000;
    font-size: 2.135vw;
    text-align: center;
    text-transform: uppercase;
    transform: translate(-50%, 50%);
}

.container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.container p,
.container h1 {
    margin: 0.5em auto;
    line-height: 1;
} 

#error {
    right: 3vw;
    bottom: 3vw;
    position: absolute;
    color: red;
    font-size: 1.5vw;
    display: none;
    z-index: 2000;
}
#error.show {
    display: block;
}

input[type=number]::-webkit-inner-spin-button {
	opacity: 1
}

#quantity-result {
	color: green;
	font-size: 3em;
}

#quantity-result.error {
	color: red;
}

.slotwrapper {
    overflow: hidden;
    display: flex;
    position: relative;
    border: 1px solid #000;
    height: 1080px;
    width: 100%;
    justify-content: space-between;
}

.slotwrapper::before {
    content: '';
    width: 100vw;
    height: 100vh;
    z-index: 5;
    opacity: 0.75;
    position: absolute;
    background-color: #FFF;
    pointer-events: none;
    transition: opacity .5s linear;
}
.slotwrapper.spinning .copy,
.slotwrapper.spinning::before {
    opacity: 0;
}

.slotwrapper .copy {
    right: 2vw;
    bottom: 9vh;
    z-index: 10;
    display: flex;
    position: absolute;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    transform-origin: 110%;
    transform: rotate(100deg);
    transition: opacity .5s linear, transform 1s linear(0 0%, 0 2.27%, 0.02 4.53%, 0.04 6.8%, 0.06 9.07%, 0.1 11.33%, 0.14 13.6%, 0.25 18.15%, 0.39 22.7%, 0.56 27.25%, 0.77 31.8%, 1 36.35%, 0.89 40.9%, 0.85 43.18%, 0.81 45.45%, 0.79 47.72%, 0.77 50%, 0.75 52.27%, 0.75 54.55%, 0.75 56.82%, 0.77 59.1%, 0.79 61.38%, 0.81 63.65%, 0.85 65.93%, 0.89 68.2%, 1 72.7%, 0.97 74.98%, 0.95 77.25%, 0.94 79.53%, 0.94 81.8%, 0.94 84.08%, 0.95 86.35%, 0.97 88.63%, 1 90.9%, 0.99 93.18%, 0.98 95.45%, 0.99 97.73%, 1 100%);
}
.slotwrapper .copy.drop {
    transform: rotate(0deg);
}
.slotwrapper .copy h5 {
    margin: 0;
    margin-bottom: .15em;
    color: var(--pokemon-red);
    font-size: 6.77vw;
    line-height: 1.5;
    text-transform: uppercase;
}
.slotwrapper .h-dash {
    width: 18.75vw;
    height: 4.75vw;
    right: -1.25vw;
    margin-left: 2vw;
    position: relative;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('../images/h-dash.png');
}
.slotwrapper .arrow {
    position: static;
    transform: rotate(-90deg);
}

.slotwrapper ul {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 1080px;
    font-size: 200px;
    line-height: 200px;
    text-align: center;
}
ul#first {
	text-align: left;
}
#border::after,
#border::before {
    content: '';
    top: 0;
    position: absolute;
    width: 1vw;
    height: 100vh;
    background-color: #F3F2F0;
}
#border::after {
    left: 66.1vw;
}
#border::before {
    left: 32.8vw;
}

ul#third {
	text-align: right;
}
.slotwrapper ul li img {
    vertical-align: top;
}
.slotwrapper li {
    height: 1080px;
    text-align: center;
}
.slotwrapper ul img {
    margin: 48% 0;
    width: 74%;
}
@media screen and (max-width: 1200px) {
    .slotwrapper {
        width: 100%;
    }
    .slotwrapper ul {
        width: 33%;
    }
}
@media screen and (max-width: 768px) {
    .slotwrapper {
        height: 100px;
    }
    .slotwrapper ul {
        height:100px;
        font-size: 100px;
        line-height: 100px;
    }
}

@keyframes bounce { 
  0% { transform: translateY(0); }
  100% { transform: translateY(-50px); }
}

.bounce {
  animation: bounce 0.5s;
  animation-direction: alternate;
  animation-iteration-count: 2;
}

.secret {
	position: absolute;
	bottom: 2px;
	width: 33%;
	left: 50%;
	margin-left: -16.5%;
	height: 100px;
	background-color: transparent;
	z-index: 1000;
}
