body {
    font-family: 'Ari-W9500', sans-serif;
    padding: 0%;
    margin: 0%;
    background: #000;
    height: 100vh;
    overflow: hidden;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

h1 {
    text-align: center;
    font-weight: lighter;
}

.container {
    position: absolute;
    display: block;
    margin: 0 auto;
    height: 100%;
    width: 100%;
    box-sizing: content-box;
    font-size: 18pt;
    color: white;
}


#background {
    /* background-image: url('../img/test-bg.gif'); */
    background-color: #000;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* IE, only works on <img> tags */
    -ms-interpolation-mode: nearest-neighbor;
    /* Firefox */
    image-rendering: crisp-edges;
    /* Chromium + Safari */
    image-rendering: pixelated;
    height: 100%;
    width: 100%;
    position: absolute;
}

#characters {
    position: absolute;
    width: 100%;
    display: flex;
    min-width: 80vh;
    justify-content: stretch;
    justify-items: stretch;
    align-items: center;
    top: 7em;
    bottom: 9em;
    position: absolute;
    transform: translateX(0);
    transition: transform 0.3s ease-in-out;
}

#characters.float-left {
    transform: translateX(0);
}

#characters.float-right {
    transform: translateX(100vw) translateX(-100%);
}

.character-fader {
    opacity: 0;
    flex: auto;
    height: 100%;
    transition: opacity 0.3s ease-in-out;
}

.character-position {
    height: 100%;
    width: 100%;
    filter: brightness(100%);
    background-size: contain;
    background-repeat: no-repeat;
    /* IE, only works on <img> tags */
    -ms-interpolation-mode: nearest-neighbor;
    /* Firefox */
    image-rendering: crisp-edges;
    /* Chromium + Safari */
    image-rendering: pixelated;
    transition: filter 0.3s ease-in-out;
}

#character-left {
    background-position: bottom left;
}

#character-right {
    background-position: bottom right;
    transform: scaleX(-1);
}

#textboxes {
    position: absolute;
    width: 100%;
    bottom: 0;
    padding-bottom: 5em;
    overflow: hidden;
    line-height: 1.1em;
    background-color: black;
    overflow-y: hidden;
    transition: height 0.4s ease-out;
}

#wrapper {
    padding: 0;
    margin: 0;
    display: flex;
    flex: auto;
    flex-direction: column;
    gap: 1em;
}


#textbox {
    padding: 0.5em;
    border-color: white;
    border-style: solid;
    border-width: 4px 0 0 0;
    min-height: calc(3em + 1em);
}

#buttons {
    box-sizing: border-box;
    bottom:0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

#choices {
    display: flex;
    flex: auto;
    flex-direction: column;
    overflow: hidden;
    justify-content: stretch;
    gap: 0.5em;
    padding: 0 0.5em;
}


.button {
    position: relative;
    opacity: 1.0;
    border: white solid 4px;
    background-color: black;
    box-sizing: border-box;
    padding: 0.5em;
    flex: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: border-color 0.2s ease-in, background-color 0.2s ease-in, opacity 0.3s ease-in;
}

.button:hover {
    background-color: #222;
}

.button:active {
    background-color: #FFF;
    border-color: #FFF;
    transition: border-color 0.0s ease-in, background-color 0.0s ease-in, opacity 0.3s ease-in;
}

.continue {
    position:absolute;
    bottom: 0.5em;
    left: 0;
    right: 0;
    height: 4em;
    margin: 0 0.5em;
    border-color: greenyellow;
    background-color: green;
}


.continue:hover {
    background-color: rgb(0, 160, 0);
}

.continue:active {
    background-color: rgb(140, 211, 99);
    transition: border-color 0.0s ease-in, background-color 0.0s ease-in, opacity 0.3s ease-in;
}


.button.hidden {
    opacity: 0.0;
    cursor: default;
}

.button.hidden:active {
    background-color: #FFF;
    border-color: #FFF;
    transition: border-color 0.4s ease-in, background-color 0.0s ease-in, opacity 0.3s ease-in;
}

.button.disabled {
    background-color: #333;
    border-color: #888;
    color: #888;
    cursor: not-allowed;
}

.squeezed {
    height: 0px;
    overflow: hidden;

}

p {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: yellow;
}

p.show {
    opacity: 1.0;
}

.hidden {
    color: black;
}

p.choice {
    text-align: center;
    margin: 1em 0;
    padding: 0%;
}

.btn-anim::after {
    content: "";
    opacity: 0.4;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    animation: shine 2s ease-out infinite;
    animation-delay: 3s;
}
.btn-anim:nth-child(1)::after {
    animation-delay: 3.2s;
}
.btn-anim:nth-child(2)::after {
    animation-delay: 3.4s;
}
.btn-anim:nth-child(3)::after {
    animation-delay: 3.6s;
}
@keyframes shine {
    0% {
        background-color: rgba(255, 255, 255, 0.0);
        transition-property: background-color;
    }
    5%{
        background-color: rgba(255, 255, 255, 1.0);
        transition-property: background-color;
    }
    60%{
        background-color: rgba(255, 255, 255, 0.0);
        transition-property: background-color;
    }
}

@media screen and (min-width: 1000px) {
    #characters {
        width: 1000px;
        left:50%;
        transform: translateX(-50%);
    }

    #characters.float-left {
        transform: translateX(-50%);
    }

    #characters.float-right {
        transform: translateX(-50%);
    }

    #textboxes {
        box-sizing: content-box;
        padding-bottom: 6em;
    }
    #wrapper {
        width: 1000px;
        border-width: 4px;
        left:50%;
        position: absolute;
        transform: translateX(-50%);
    }

    #textbox {
        border-width: 4px;
    }

    #choices {
        flex-direction: row;
        padding: 0;
        align-items: stretch;
    }

    .continue {
        left: 50%;
        transform: translateX(-50%);
        width: 1000px;
    }
}

@supports (height: 100svh) {
    body{
        height:100svh;
    }
    #characters {
        min-width: 80svh;
    }
}