html,
body {
    min-height: 100%;
    width: 100%;
    margin: 0;
    font-family: "Roboto";
    color: #333333;
}

a {
    text-decoration: none;
    color: #ffaf2c;
}

a:hover {
    color: #9ee366;
}

.welcome {
    background-image: url("images/welcome.webp");
    height: 400px;
    max-width: 100%;
    max-height: 100vh;
    margin-top: 75px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.header {
    background-image: url("images/logo.webp");
    height: 75px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    margin-bottom: 10px;
}

.story {
    height: 400px;
    max-width: 100%;
    max-height: calc(100vh - 100px);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transition: background-image 0.8s ease-in-out;
    -o-transition: background-image 0.8s ease-in-out;
    transition: background-image 0.8s ease-in-out;
}

.story.intro1 {
    background-image: url("images/intro1.webp");
}

.story.intro2 {
    background-image: url("images/intro2.webp");
}

.story.intro3 {
    background-image: url("images/intro3.webp");
}

.story.outro1 {
    background-image: url("images/outro1.webp");
}

.story.outro2 {
    background-image: url("images/outro2.webp");
}

.meta {
    padding: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
}

.start-button {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.75);
    font-weight: bold;
    border-radius: 10px;
    font-size: 20px;
    -webkit-animation: 2s ease-out showButton;
    animation: 2s ease-out showButton;
    cursor: pointer;
}

.start-button:hover {
    background: rgba(255, 255, 255, 0.85);
}

.end {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.75);
    font-weight: bold;
    border-radius: 10px;
    font-size: 20px;
    -webkit-animation: 2s ease-out showButton;
    animation: 2s ease-out showButton;
}

@-webkit-keyframes showButton {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 100;
    }
}

@keyframes showButton {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 100;
    }
}

.scene {
    height: 400px;
    width: 800px;
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
    background-color: #f0fff9;
    position: relative;
    pointer-events: none;
}

.background {
    height: 100%;
    width: 3200px;
    background-image: url("images/background.webp");
    background-repeat: repeat-x;
    background-size: contain;
    -webkit-animation: slide 120s linear infinite;
    animation: slide 120s linear infinite;
}

@-webkit-keyframes slide {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(calc(-100% + 800px));
        transform: translateX(calc(-100% + 800px));
    }
}

@keyframes slide {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(calc(-100% + 800px));
        transform: translateX(calc(-100% + 800px));
    }
}

.character {
    background-image: url("images/bee.webp");
    width: 100px;
    height: 70px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    top: 165px;
    left: 20px;
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    -webkit-transition: 0.3s ease;
    -o-transition: 0.3s ease;
    transition: 0.3s ease;
    z-index: 99;
}

.mandarin {
    background-image: url("images/mandarin.webp");
    width: 30px;
    height: 30px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    top: 0;
    left: 830px;
    z-index: 98;
}

.score {
    position: absolute;
    top: 5px;
    left: 5px;
    font-weight: bold;
    background: #ffffff;
    padding: 2px 5px;
    border-radius: 5px;
}

.mobile-controls {
    padding: 10px;
    position: absolute;
    bottom: 0;
    right: 0;
    text-align: right;
}

.control-up,
.control-down {
    background-image: url("images/control.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 50px;
    width: 50px;
    -webkit-box-shadow: 0px 0px 5px 0px #404040;
    box-shadow: 0px 0px 5px 0px #404040;
    border-radius: 5px;
    opacity: 0.3;
}

.control-up {
    margin-bottom: 10px;
}

.control-down {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

.controls-hint {
    position: absolute;
    top: 85px;
    right: 0;
    left: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 100;
}

.controls-hint-text {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 10px;
    padding: 2px 10px;
    margin: 5px;
}

@media (max-width: 400px) {
    .meta {
        font-size: 12px;
    }
}

.hidden {
    display: none;
}
