@font-face {
    font-family: 'Brawler';
    src: url("./Brawler-Regular.ttf");
}

html {
    background-color: #130d11;
}

body {
    height: 100vh;
    width: 100vw;
    color: #fffaf5;
    font-family: 'Brawler';
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    align-items: center;
    margin: 0;
    overflow: hidden;
}

body::after {
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    width: 1px;
    height: 1px;
    display: block;
    background-image: url("images/BG_anod.webp"), url("images/BG_cass.webp"), url("images/BG_clap.webp"), url("images/BG_clin.webp"), url("images/BG_face.webp"), url("images/BG_fin.webp"), url("images/BG_hear.webp"), url("images/BG_heart.webp"), url("images/BG_line.webp"), url("images/BG_muff.webp"), url("images/BG_need.webp"), url("images/BG_none.webp"), url("images/BG_post.webp"), url("images/BG_recum.webp"), url("images/BG_ribs.webp"), url("images/BG_taste.webp"), url("images/BG_track.webp"), url("images/BG_trans.webp"), url("images/BG_tug.webp"), url("images/BG_wait.webp");
}

.gamebody {
    box-sizing: border-box;
    height: 100%;
    width: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    overflow: hidden;
    gap: 1rem;
    cursor: pointer;
}

#game {
    z-index: -1;
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.dialog,
.dialog3 {
    min-width: 10%;
    flex: 1;
    height: auto;
    font-size: 4.5vh;
    font-size: 4.5vmin;
    font-size: max(1rem, 4.5vmin);
    width: 75%;
    display: flex;
    align-items: center;
    font-style: italic;
}

.dialog3 {
    flex: 3;
    font-style: normal;
}

.gamebody a {
    color: #f1d0af;
}

.gamebody a:visited {
    color: #f1d0af;
}

/* CHARACTER SPEAKING TAGS 1/2 */
/* add any new character tags into the below */

#text1,
#text2,
#text3 {
    width: 100%;
    text-align: center;
    display: block;
    text-shadow: 2px 2px 4px #000000, 2px 2px 4px #000000, 0 0 8px #000000;
}

#text1 {
    opacity: 0.25;
}

#text2 {
    opacity: 0.5;
}

/* CHARACTER SPEAKING TAGS 2/2 */
/* replace the below with whatever characters you have set up in code.js */

#text3.n {
    color: #93fcff;
}

#text3.p {
    color: #ff93aa;
}

@keyframes popup1 {
    from {
        opacity: 0;
        margin-top: 0.5rem;
    }

    20% {
        opacity: 1;
    }
}

@keyframes popup2 {
    from {
        opacity: 0;
        margin-top: 0.5rem;
    }

    20% {
        opacity: 1;
    }
}

#text3 {
    animation: popup1 0.5s ease-out;
}

body[data-idx$="1"] #text3,
body[data-idx$="3"] #text3,
body[data-idx$="5"] #text3,
body[data-idx$="7"] #text3,
body[data-idx$="9"] #text3 {
    animation-name: popup2;
}

em {
    font-style: inherit;
    letter-spacing: 10%;
    font-variant: small-caps;
}
