@import url('https://fonts.googleapis.com/css2?family=Acme&family=Lexend+Exa&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #000000;
    color: #ffffff;
    font-family: 'Lexend Exa', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Background layer handling the dark shading tint */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* THE FIRST VALUE CONTROLS THE SHADING TINT */
    /* 0.5 means fifty percent black shade over the image */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('/images/episode1/room.png') no-repeat center center fixed;
    background-size: cover;
    
    z-index: -1;
}

.vnViewport {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: 1280px;
    max-height: 720px;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
}

.characterLayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.spriteElement {
    position: absolute;
    bottom: 40px; /* Sunk down from 180px to sit perfectly on and behind the text box */
    max-height: 520px; /* Increased slightly so they still loom large over the interface */
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Position left, shift inward to hide the edge behind the text box, and apply horizontal flip */
#ziziusSprite {
    left: 89px;
    transform: scaleX(-1);
}

/* Position right facing inward naturally */
#asmodeusSprite {
    right: 60px;
}

.spriteElement.active {
    opacity: 1;
}

.dialogueContainer {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    z-index: 10;
}

.speakerLabel {
    font-family: 'Acme', sans-serif;
    font-size: 2rem;
    color: #ff3838;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding-left: 10px;
    min-height: 38px;
    text-shadow: 0 0 10px rgba(255, 56, 56, 0.4);
}

.dialogueWindow {
    width: 100%;
    background: #06060e;
    border: 2px solid #291f22;
    border-radius: 12px;
    padding: 30px 40px;
    min-height: 150px;
    cursor: pointer;
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.dialogueWindow:hover {
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.15);
}

.dialogueWindow:active {
    transform: scale(0.995);
}

#sceneText {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
    color: #ffffff;
    opacity: 0;
}

.actionPrompt {
    position: absolute;
    bottom: 12px;
    right: 20px;
    font-size: 0.65rem;
    color: #ffffff;
    letter-spacing: 1px;
    opacity: 0.5;
    text-transform: uppercase;
}