@import url('https://fonts.googleapis.com/css2?family=Acme&family=Lexend+Exa&display=swap');

* {
    box-sizing: border-box;
}

/* Overriding viewport setup to act as a layout overlay block inside Fear Nexus */
#story-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.vnViewport {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;                       /* no extra offset */
    padding: 0;                      /* no vertical push */

    background: url('../images/novelbackground.png') no-repeat center center;
    background-size: cover;
    
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.characterLayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.spriteElement {
    position: absolute;
    bottom: 0; 
    max-height: 520px; 
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Left position orientation placement rules */
#ziziusSprite {
    left: 90px;
    transform: scaleX(-1);
}

/* Right position orientation placement rules */
#asmodeusSprite {
    right: 60px;
}

.spriteElement.active {
    opacity: 1;
}

.dialogueContainer {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1100px;
    margin: 0;
    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;
}

/* Combined and optimized to cover both elements and disable highlights */
canvas, 
#game-container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    -webkit-touch-callout: none;
    touch-action: none;
}

/* Insurance policy for any accidental selection */
::selection {
    background: transparent;
}
::-moz-selection {
    background: transparent;
}