/* Variables prefixed with --m- to avoid conflicts */
/* add colors IN THE JSON FILE <span style="color:red">Text</span> */

:root {
    --m-panel-bg: rgba(60, 100, 180, 0.4); 
    --m-neon-blue: #00f2ff;
    --m-text-color: #ffffff;
    --m-border-light: rgba(0, 242, 255, 0.3);
}

/* Scoped specifically to the mission container */
#m-viewport {
    display: none; /* Keeps everything hidden until you call the function */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 540px;
    height: 960px;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, sans-serif;
	
    /* This creates a dark "dimmer" over the map when the dialog is active */
    background-color: rgba(0, 0, 0, 0.4); 
	outline: 3px solid red !important;
    /* Ensures this layer sits on top of your map */
    z-index: 23; 
}

#m-reset-btn {
    display: none !important;
}
.m-glass-panel {
    position: absolute;
    bottom: 250px; 
    left: 20px;
    width: 500px;
    min-height: 120px;
    max-height: 520px;
    background: var(--m-panel-bg);
    backdrop-filter: blur(4px);
    border: 1px solid var(--m-border-light);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
}

.m-portrait {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border: 1px solid var(--m-neon-blue);
    border-radius: 4px;
    object-fit: cover;
}

.m-text-area {
    flex-grow: 1;
    min-width: 0;
    width: 100%;
    color: var(--m-text-color);
}

.m-speaker-name {
    font-size: 0.90rem;
    color: var(--m-neon-blue);
    margin-bottom: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

#m-typewriter-container {
    white-space: pre-wrap; /* This makes \n act like a real line break */
    /* font-size: 0.95rem; */
    line-height: 1.3;
}

/* Side Logic */
.m-side-left .m-portrait { margin-right: 12px; order: 1; }
.m-side-left .m-text-area { order: 2; text-align: left; }

.m-side-right .m-portrait { margin-left: 12px; order: 2; }
.m-side-right .m-text-area { order: 1; text-align: left; }

/* Buttons */
#m-choices-container {
    position: absolute;
    bottom: 40px;
    left: 20px;
    width: 500px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.m-btn {
    background: var(--m-panel-bg);
    border: 1px solid var(--m-border-light);
    color: white;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.02rem;
    text-align: left;
    transition: 0.2s;
}

.m-btn:hover {
    background: rgba(0, 242, 255, 0.2);
    border-color: var(--m-neon-blue);
}
