/* Estilos generales */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.video-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    overflow: hidden;
}

video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.controls {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    transition: opacity 0.3s ease;
    opacity: 0;
    z-index: 2; /* Asegura que esté por encima del video */
}

.video-container:hover .controls {
    opacity: 1;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
    transition: color 0.3s ease;
}

.control-btn:hover {
    color: #800080;
}

#progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    margin: 0 10px;
}

#progress-bar {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: #800080;
    cursor: pointer;
    margin-right: 10px;
}

#progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

#currentTime, #duration {
    color: white;
    font-size: 14px;
}

#volume-bar {
    width: 100px;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: #800080;
    cursor: pointer;
}

#volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

/* Botón para saltar intro */
#skipIntro {
    position: absolute;
    bottom: 10%;
    right: 1%;
    background-color: black;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    display: none;
    z-index: 3; /* Asegura que esté por encima del video */
}

#skipIntro:hover {
    background-color: #333;
}


/* Fullscreen */
#fullscreen {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

#fullscreen:hover {
    color: #800080;
}

/* Settings button (gear icon) */
#settings-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

#settings-button:hover {
    color: #800080;
}

/* Language menu */
#language-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 5px;
    padding: 5px;
    z-index: 3;
}

#language-dropdown button {
    display: block;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
    text-align: left;
    width: 100%;
}

#language-dropdown button:hover {
    background-color: #800080;
}
