html {
    background-color: #000;
}

html,
body {
    color: #fff;
    min-height: 100vh;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
}

[v-cloak] {
    display: none;
}

main {
    position: relative;
    user-select: none;
    padding-top: 450px;
    background-image: url('../images/main_bg.webp');
    background-repeat: no-repeat;
    background-size: auto 850px;
    background-position: 67% top;
    /* border: 1px dashed red; */
}

.ghost-coat, .ghost-red, .ghost-mako, .ghost-flower  {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: auto 850px;
    background-position: 67% top;
}

.ghost-red {
    background-image: url('../images/ghost_red.webp');
}

.ghost-coat {
    background-image: url('../images/ghost_coat.webp');
}

.ghost-mako {
    background-image: url('../images/ghost_mako.webp');
}

.ghost-flower {
    background-image: url('../images/ghost_flower.webp');
}

.container {
    position: relative;
    width: 100%;
    height: 600px;
    margin-right: auto;
    margin-left: auto;
    /* border: 1px dashed green; */
}

.video-box {
    text-align: center;
    height: 490px;
}
video {
    width: 100%;
    height: auto;
}

.ghost-hand {
    position: absolute;
    top: -60px;
    right: 80px;
    z-index: 2;
    transform: scale(0.75) rotate(-30deg);
    transform-origin: top left;
}

.ghost-button {
    position: absolute;
    width: 225px;
    height: 75px;
    top: -90px;
    right: 100px;
    z-index: 2;
    transform-origin: top left;
    /* border: 1px dashed yellow; */
}

.carousel-3d-slide {
    border: 2px solid #00f000;
    padding: 6px;
    background: #000;
    border-radius: 6px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .75);
}

.carousel-3d-controls a {
    color: #00f000 !important;
}

.carousel-3d-controls a.next {
    right: 5px;
}

.carousel-3d-controls a.prev {
    left: 5px;
}

.download {
    display: block;
    gap: 8px;
    align-items: center;
    justify-content: center
}
.download img {
    max-width: 160px;
    height: auto;
}

.logo {
    position: absolute;
    width: 88px;
    top: 16px;
    left: 16px;
    z-index: 2;
}

.copyright {
    text-align: center;
    color: rgba(0, 255, 0, .4);
    padding: 16px 0;
}

dialog {
    width: 100%;
    height: auto;
    max-width: 1280px;
    aspect-ratio: 16 / 9;
    position: fixed;
    background: #000;
    border-radius: 8px;
    border: 1px solid #00f000;
    padding: 6px 0px 1px 0px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .75);
    overflow: visible;
    box-sizing: border-box;
}

dialog video {
    display: block;
    width: 560px;
    height: 315px;
}

dialog video {
    display: block;
    width: 100%;
    max-width: 1120px;
    height: auto;
}

dialog::backdrop {
    background: rgba(0, 0, 0, .8);
}

.show-dialog {
    position: absolute;
    color: rgba(0, 240, 0, .8);
    left: 48%;
    bottom: 12px;
    margin-left: 90px;
    z-index: 10;
    cursor: pointer;
    /* border: 1px dashed cyan; */
}

.close-dialog {
    position: absolute;
    top: -36px;
    right: 0;
    appearance: none;
    border: none;
    background: none;
    outline: none;
    cursor: pointer;
    color: #00f000;
}

#fog {
    position: absolute;
    inset: 0;
    z-index: -1;
}

@media (min-width: 576px) {
    main, .ghost-coat, .ghost-red, .ghost-mako, .ghost-flower {
        position: absolute;
        padding-top: 0;
        inset: 0;
        min-height: 100vh;
        background-size: auto;
        background-position: top center;
        z-index: 1;
    }
    .container {
        padding-right: 0;
        padding-left: 0
    }
    .ghost-hand {
        top: 500px;
        right: 130px;
    }
    .ghost-button {
        height: 100px;
        top: 450px;
        right: 180px;
    }
    .video-box {
        margin-top: 0;
        position: absolute;
        top: auto;
        bottom: 0;
        left: 40px;
        z-index: 5;
    }
    .carousel-3d-container {
        overflow: visible !important;
    }
    .download {
        display: flex;
    }
    .download img {
        max-width: 140px;
    }
}

@media (min-width: 1000px) {
    .container {
        max-width: 1000px;
    }
    .carousel-3d-controls a.next {
        right: 20px;
    }
    .carousel-3d-controls a.prev {
        left: 20px;
    }
    .logo {
        left: 50%;
        transform: translateX(-500px);
    }
}

@media (min-width: 1920px) {
    main, .ghost-coat, .ghost-red, .ghost-mako, .ghost-flower {
        background-size: cover;
    }
    .container {
        max-width: 100%;
        height: 100vh;
    }
    .ghost-hand {
        top: calc(500px + ((100vw - 1920px) / 1920) * 500);
        right: 31vw;
    }
    .ghost-button {
        width: 300px;
        height: 125px;
        top: calc(450px + ((100vw - 1920px) / 1920) * 500);
        right: 32vw;
    }
    .video-box {
        top: calc(110px + ((100vw - 1920px) / 1920) * 200);
        left: 26vw;
    }
    .logo {
        top: calc(50px + ((100vw - 1920px) / 1920) * 150);
        left: 50%;
        transform: translateX(-26vw);
    }
}

.flicker {
    animation: flicker-animation .2s infinite;
}

@keyframes flicker-animation {
    0%, 50%, 100% {
        filter: brightness(100%);
    }
    25%, 75% {
        filter: brightness(80%);
    }
}

.shake-slow {
    animation-name: shake-slow;
    animation-duration: 10s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite
}

@keyframes shake-slow {
    2% {
        transform: translate(-2px, 9px) rotate(-1.5deg)
    }

    4% {
        transform: translate(-7px, 10px) rotate(2.5deg)
    }

    6% {
        transform: translate(-5px, -9px) rotate(0.5deg)
    }

    8% {
        transform: translate(-4px, 6px) rotate(-1.5deg)
    }

    10% {
        transform: translate(8px, 9px) rotate(1.5deg)
    }

    12% {
        transform: translate(10px, 5px) rotate(-1.5deg)
    }

    14% {
        transform: translate(-1px, 5px) rotate(-0.5deg)
    }

    16% {
        transform: translate(2px, -2px) rotate(-0.5deg)
    }

    18% {
        transform: translate(1px, 10px) rotate(0.5deg)
    }

    20% {
        transform: translate(9px, 5px) rotate(-1.5deg)
    }

    22% {
        transform: translate(8px, -6px) rotate(2.5deg)
    }

    24% {
        transform: translate(-5px, -5px) rotate(3.5deg)
    }

    26% {
        transform: translate(-3px, -8px) rotate(2.5deg)
    }

    28% {
        transform: translate(5px, 0px) rotate(-0.5deg) scale(0.9)
    }

    30% {
        transform: translate(5px, -8px) rotate(3.5deg) scale(1)
    }

    32% {
        transform: translate(3px, -4px) rotate(0.5deg) scale(0.9)
    }

    34% {
        transform: translate(5px, 0px) rotate(1.5deg) scale(1)
    }

    36% {
        transform: translate(8px, -3px) rotate(2.5deg)
    }

    38% {
        transform: translate(5px, 5px) rotate(2.5deg)
    }

    40% {
        transform: translate(9px, 2px) rotate(-0.5deg)
    }

    42% {
        transform: translate(6px, -7px) rotate(2.5deg)
    }

    44% {
        transform: translate(10px, -8px) rotate(3.5deg)
    }

    46% {
        transform: translate(6px, -1px) rotate(1.5deg)
    }

    48% {
        transform: translate(2px, 7px) rotate(-1.5deg)
    }

    50% {
        transform: translate(5px, 6px) rotate(1.5deg)
    }

    52% {
        transform: translate(8px, 10px) rotate(-1.5deg)
    }

    54% {
        transform: translate(-8px, 6px) rotate(-0.5deg)
    }

    56% {
        transform: translate(3px, 7px) rotate(-0.5deg)
    }

    58% {
        transform: translate(9px, 4px) rotate(2.5deg)
    }

    60% {
        transform: translate(3px, -7px) rotate(-0.5deg)
    }

    62% {
        transform: translate(-5px, 1px) rotate(3.5deg)
    }

    64% {
        transform: translate(9px, 0px) rotate(2.5deg)
    }

    66% {
        transform: translate(-1px, -4px) rotate(1.5deg)
    }

    68% {
        transform: translate(7px, -1px) rotate(-2.5deg)
    }

    70% {
        transform: translate(-5px, 5px) rotate(1.5deg)
    }

    72% {
        transform: translate(8px, 5px) rotate(2.5deg)
    }

    74% {
        transform: translate(-9px, 8px) rotate(-0.5deg)
    }

    76% {
        transform: translate(-8px, -6px) rotate(-0.5deg)
    }

    78% {
        transform: translate(-8px, 9px) rotate(-0.5deg)
    }

    80% {
        transform: translate(-8px, -2px) rotate(2.5deg)
    }

    82% {
        transform: translate(-8px, -1px) rotate(-1.5deg)
    }

    84% {
        transform: translate(-2px, 4px) rotate(0.5deg)
    }

    86% {
        transform: translate(-5px, 4px) rotate(-0.5deg)
    }

    88% {
        transform: translate(1px, 5px) rotate(-2.5deg)
    }

    90% {
        transform: translate(7px, 6px) rotate(3.5deg)
    }

    92% {
        transform: translate(-4px, 7px) rotate(-2.5deg)
    }

    94% {
        transform: translate(-6px, 10px) rotate(1.5deg)
    }

    96% {
        transform: translate(-1px, 1px) rotate(-1.5deg)
    }

    98% {
        transform: translate(-5px, 0px) rotate(1.5deg)
    }

    0%,
    100% {
        transform: translate(0, 0) rotate(0)
    }
}