/* Estilos generales */
html {
    height: 100%;
    overflow: hidden;
}
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: black;
    color: white;
    overflow: hidden;
    position: relative;
}

.teleprompter-container {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* height y padding-top gestionados por JS */
}

/* Área de Controles */
.controls {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-sizing: border-box;
    padding: 15px;
    background-color: #111;
    text-align: center;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Estilos dentro de controles */
.controls label { margin-left: 10px; }
.controls input[type="range"] { vertical-align: middle; cursor: pointer; }
.controls button { padding: 8px 15px; font-size: 16px; cursor: pointer; border: none; border-radius: 4px; color: white; }
#playPauseBtn { background-color: #4CAF50; }
#playPauseBtn.playing { background-color: #ff9800; }
#stopBtn { background-color: #f44336; }


/* Área de visualización del Teleprompter (Wrapper) */
#teleprompterDisplayWrapper {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    border: 1px solid #222;
    margin: 0 10px 0 10px;
}

/* Área de texto del Teleprompter */
#teleprompterDisplay {
    height: 100%;
    padding: 50% 20px;
    box-sizing: border-box;
    font-size: 40px; /* El tamaño inicial se aplica aquí y luego JS lo modifica */
    line-height: 1.5;
    text-align: center;
    overflow-y: scroll;
    scroll-behavior: smooth;
    &::-webkit-scrollbar { display: none; }
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Línea Guía */
.guide-line {
    position: absolute;
    top: 40%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 0, 0, 0.5);
    pointer-events: none;
    z-index: 10;
}

/* Área de entrada de texto */
#scriptInput {
    height: 250px;
    display: block;
    margin: 10px;
    padding: 10px;
    font-size: 14px;
    background-color: #222;
    color: white;
    border: 1px solid #444;
    resize: none;
    box-sizing: border-box;
    flex-shrink: 0;
}