* {
    margin: 0;
    padding: 0;

    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
}

body {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    user-select: none;
    font-family: "pop";
    background-image: url("illust_3721871_20250122_154510.jpg");
    background-size: 50%;
    background-color: rgba(127, 255, 255, 0.4);
    background-blend-mode: lighten;

    -webkit-user-drag: none;

    user-select: none;

    -webkit-user-select: none;

    cursor: default;
}

#container {
    position: relative;
    height: 90%; /* 可変幅 */
    /* max-width: 90%; */
    aspect-ratio: 4 / 3; /* 固定比率 */

    margin: auto;
    background-color: #282c34;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-radius: 5%;
    border: grey 0.5vh solid;

    /* box-shadow: inset 0px 0px 8vh 2vh rgba(255, 255, 255, 0.3); */

    background-image: url("illust_40215676_20250122_153050.png");

    background-size: 50%;

    overflow: hidden;
}

i-element,
i-text,
i-command {
    position: absolute;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

a {
    color: inherit;
}

@keyframes fadeout {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.fadeout {
    animation-name: fadeout;
    animation-duration: 1s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

.rolling {
    animation: rolling 1s ease-out;
}

@keyframes rolling {
    0% {
        transform: rotateY(0);
    }

    100% {
        transform: rotateY(360deg);
    }
}

/* 揺れるアニメーション */
@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    20%,
    60% {
        transform: translateX(-3px);
    }
    40%,
    80% {
        transform: translateX(3px);
    }
}

/* 揺れを適用するクラス */
.shake {
    animation: shake 0.3s ease;
}

@font-face {
    font-family: "pop";
    src: url(keifont.ttf);
}

.wave {
    animation: wave-text 6s ease-in-out infinite;
}

@keyframes wave-text {
    00% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-6vh);
    }
    50% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(0);
    }
}

.focus {
    object-fit: cover;
    opacity: 0.5;
}

#error {
    display: none;
    font-size: 6vw;
}

@media screen and (orientation: portrait) {
    #container {
        display: none;
    }
    #error {
        display: flex;
    }
}
