body,
html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

#app {
    width: 100%;
    max-width: 1280px;
    /* Limita el ancho máximo del contenedor */
    margin: auto;
    position: relative;
    height: auto;
    /* Ajusta esto según necesites, podría ser un valor fijo o máximo */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centra los elementos hijos */
}

video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: none;
    background-color: transparent;
    z-index: 1;
}

video,
canvas {
    max-width: 100%;
    /* Asegura que no excedan el ancho del contenedor */
    max-height: 420px;
    /* Ejemplo de altura máxima, ajusta según necesites */
    object-fit: contain;
    /* Ajusta el contenido para que se ajuste sin recortar */
    z-index: 1;
}

#start-button-container,
#inputs-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

input[type="text"],
button {
    font-size: 16px;
    padding: 8px;
    margin: 5px;
    width: 80%;
    max-width: 300px;
    text-align: center;
    border: 1px solid #cccccc;
    border-radius: 4px;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    z-index: 10;
}

button:hover {
    background-color: #45a049;
}