html {
    -ms-touch-action: none;
}

/* @media screen and (min-aspect-ratio: 9/16) {
    body {
        width: calc(100vh * 9 / 16);
        height: 100vh;
        background-image: url('res/bg1.webp');
        background-position: 50% 0%;
        background-repeat: no-repeat;
        background-size: auto 100vh;
    }
}

@media screen and (max-aspect-ratio: 9/16) {
    body {
        width: 100vw;
        height: calc(100vw * 16 / 9);
        background-image: none;
    }
} */

body {
    background-image: url('res/bg1.webp');
    background-position: 50% 0%;
    /* 画像を中央に配置 */
    background-repeat: no-repeat;
    /* 画像を繰り返さない */
    background-size: auto 100vh;
}

.likeemoji{
    vertical-align: middle;
    width: auto;
    height: 1em;
}

@keyframes slideIn {
    0% {
        right: calc(var(--achievementW) * -1.5);
    }

    100% {
        right: 0;
    }
}

@keyframes slideOut {
    0% {
        right: 0;
    }

    100% {
        right: calc(var(--achievementW) * -1.5);
    }
}

.slide-in {
    animation: 1s ease-out 0s 1 slideIn;
    animation-fill-mode: forwards;
}

.slide-out {
    animation: 1s ease-in 0s 1 slideOut;
    animation-fill-mode: forwards;
}

@keyframes yuyutaIn {
    0% {
        right: calc(var(--announceYuyutaW) * -1.5);
    }

    100% {
        right: 0;
    }
}

@keyframes yuyutaOut {
    0% {
        right: 0;
    }

    100% {
        right: calc(var(--announceYuyutaW) * -1.5);
    }
}

.yuyuta-in {
    animation: 1s ease-out 0s 1 yuyutaIn;
    animation-fill-mode: forwards;
}

.yuyuta-out {
    animation: 1s ease-in 0s 1 yuyutaOut;
    animation-fill-mode: forwards;
}

@keyframes takadaIn {
    0% {
        right: calc(var(--announceTakadaW) * -1.5);
    }

    100% {
        right: 0;
    }
}

@keyframes takadaOut {
    0% {
        right: 0;
    }

    100% {
        right: calc(var(--announceTakadaW) * -1.5);
    }
}

.takada-in {
    animation: 1s ease-out 0s 1 takadaIn;
    animation-fill-mode: forwards;
}

.takada-out {
    animation: 1s ease-in 0s 1 takadaOut;
    animation-fill-mode: forwards;
}

.marquee {
    position: absolute;
    white-space: nowrap;
    overflow: hidden;
    pointer-events: none;
}

.selectbgm{
    color: white;
    background-color: transparent;
    padding: 1em 0;
    font-family: 'DotGothic16', sans-serif;
    border: none;
}

.choices {
    color: white;
    background-color: transparent;
    padding: 1em 0;
    font-family: 'DotGothic16', sans-serif;
    border: none;
}

@keyframes correct {
    0% {
        background-color: transparent;
        transform: scale(1);
    }

    50% {
        background-color: yellow;
        transform: scale(1.2);
    }

    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

@keyframes incorrect {
    0% {
        background-color: transparent;
        transform: scale(1);
    }

    50% {
        background-color: red;
        transform: scale(1.2);
    }

    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

.choices.correct {
    animation: correct 1s;
}

.choices.incorrect {
    animation: incorrect 1s;
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

.damage {
    animation: shake 0.5s;
}

body,
canvas,
div {
    display: block;
    outline: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Remove spin of input type number */

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0;
    /* <-- Apparently some margin are still there even though it's hidden */
}

body {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
    border: 0;
    margin: 0;
    cursor: default;
    color: #888;
    background-color: black;
    text-align: center;
    font-family: Helvetica, Verdana, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    /* fix bug: https://github.com/cocos-creator/2d-tasks/issues/791 */
    /* overflow cannot be applied in Cocos2dGameContainer, 
  otherwise child elements will be hidden when Cocos2dGameContainer rotated 90 deg */
    overflow: hidden;
}

#Cocos2dGameContainer {
    position: absolute;
    margin: 0;
    left: 0px;
    top: 0px;
    display: -webkit-box;
    -webkit-box-orient: horizontal;
    -webkit-box-align: center;
    -webkit-box-pack: center;
}

canvas {
    background-color: rgba(0, 0, 0, 0);
}

a:link,
a:visited {
    color: #666;
}

a:active,
a:hover {
    color: #666;
}

p.header {
    font-size: small;
}

p.footer {
    font-size: x-small;
}

#splash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff url(./singleColor.png) no-repeat center;
    background-size: 100%;
}

.progress-bar {
    background-color: #1a1a1a;
    position: absolute;
    left: 25%;
    top: 80%;
    height: 15px;
    padding: 5px;
    width: 50%;
    /*margin: 0 -175px;         */
    border-radius: 5px;
    box-shadow: 0 1px 5px #000 inset, 0 1px 0 #444;
}

.progress-bar span {
    display: block;
    height: 100%;
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
    transition: width .4s ease-in-out;
    background-color: #34c2e3;
}

.stripes span {
    background-size: 30px 30px;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
    animation: animate-stripes 1s linear infinite;
}

@keyframes animate-stripes {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 60px 0;
    }
}