/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #ffffff; /* Texto en blanco */
    overflow: hidden; /* Evita el scroll en el body */
    background-color: #1a1a1a; /* Fondo gris oscuro por si el video no carga */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Video de fondo */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Imagen GIF multiplicada sobre el video */
.screen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('pixel.gif'); /* Imagen GIF de un punto */
    background-repeat: repeat;
    opacity: 0.1; /* Transparencia para simular una pantalla */
    pointer-events: none; /* Permite interactuar con el contenido debajo */
}

/* Encabezado fijo */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo semitransparente */
    padding: 10px 0;
    z-index: 1000;
    text-align: center;
}

header .logo img.animated-logo {
    height: 80px; /* Tamaño del logo animado */
    animation: float 3s infinite ease-in-out; /* Animación CSS adicional */
}

/* Animación CSS para el logo */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Contenedor principal para el contenido desplazable */
.main-content {
    position: absolute;
    top: 100px; /* Ajusta según la altura del encabezado */
    bottom: 100px; /* Ajusta según la altura del pie de página */
    left: 0;
    right: 0;
    overflow-y: auto; /* Permite el desplazamiento vertical */
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Alinea el contenido al inicio */
}

/* Contenido centrado */
.construction-content {
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.construction-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8); /* Sombra para mejorar legibilidad */
}

.construction-content p {
    font-size: 1.5rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8); /* Sombra para mejorar legibilidad */
}

/* Estilos para el reproductor */
#player {
    width: 90%; /* Ajuste para móviles */
    max-width: 400px; /* Ancho máximo en pantallas grandes */
    border: 1px solid #a0b3c4;
    padding: 20px 20px 0 20px;
    border-radius: 8px;
    position: relative;
    background-color: rgba(0, 0, 0, 0.7);
    margin-top: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.player-title {
    position: absolute;
    background: #1a1a1a;
    display: inline-block;
    padding: 0 5px;
    color: #ffffff;
    top: -21px;
    left: 15px;
    font-size: 24px;
    text-align: center;
}

/* Estilos para los controles */
#controls {
    display: flex;
    flex-wrap: wrap; /* Permite que los elementos se ajusten en pantallas pequeñas */
    gap: 10px; /* Espacio entre los botones */
    justify-content: center;
    align-items: center;
}

/* Estilos para la barra de volumen */
#volumeSlider {
    width: 100%; /* Ocupa todo el ancho disponible */
    max-width: 150px; /* Ancho máximo para la barra de volumen */
    margin: 10px auto; /* Centrar la barra de volumen */
}

/* Estilos para los botones */
#controls button {
    background: none;
    border: none;
    color: #00b3f6; /* Color azul para los botones */
    font-size: 24px;
    cursor: pointer;
    flex: 1 1 auto; /* Permite que los botones se ajusten */
}

#btnBack,
#btnStop,
#btnMute,
#btnShuffle,
#btnFor,
#btnPause {
    border: none;
    background: transparent;
    color: #00b3f6; /* Color azul para los botones */
    font-size: 24px;
    cursor: pointer;
}

/* Estilos para el botón de play */
#btnPlay {
    background: #00b3f6;
    color: #fff;
    border: none;
    width: 47px;
    height: 47px;
    border-radius: 50%;
    line-height: 44px;
    font-size: 24px;
    cursor: pointer;
}

/* Estilos para el LCD */
#lcd {
    padding: 0 20px;
    font-family: roboto;
    font-size: 14px;
    background: #fff;
    color: #00b3f6;
    white-space: nowrap;
    border-radius: 20px;
    height: 36px;
    line-height: 36px;
    margin-bottom: 10px;
    text-align: center;
    overflow: hidden; /* Evita que el texto se salga */
    text-overflow: ellipsis; /* Muestra "..." si el texto es demasiado largo */
}

/* Pie de página fijo */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo semitransparente */
    padding: 10px 0;
    text-align: center;
    z-index: 1000;
}

footer p {
    margin: 5px 0;
    font-size: 0.9rem;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Imagen .webp pequeña en el pie de página */
footer .footer-image {
    width: 150px; /* Ancho máximo de 150px */
    height: auto; /* Altura proporcional */
    margin-top: 10px; /* Espacio entre el texto y la imagen */
}

/* Estilos para la sección de sponsors */
.sponsors-section {
    text-align: center;
    margin: 50px 0;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
}

.sponsors-section h2 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #00b3f6;
}

.carousel {
    position: relative;
    width: 50%;
    max-width: 300px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.carousel-item img {
    max-width: 40%;
    height: auto;
    transition: transform 0.3s ease;
}

.carousel-item img:hover {
    transform: scale(1.1);
}

/* Responsive para dispositivos móviles */
@media (max-width: 768px) {
    header .logo img.animated-logo {
        height: 60px; /* Tamaño del logo en móviles */
    }

    body {
        padding-bottom: 100px; /* Más espacio para el footer en móviles */
    }

    .construction-content h1 {
        font-size: 2rem;
    }

    .construction-content p {
        font-size: 1rem;
    }

    #player {
        width: 90%; /* Ajuste para móviles */
        padding: 15px; /* Menos padding en móviles */
    }

    #controls button {
        font-size: 20px; /* Botones más pequeños en móviles */
    }

    #volumeSlider {
        max-width: 100px; /* Barra de volumen más corta en móviles */

    footer p {
        font-size: 0.8rem; /* Tamaño de fuente más pequeño en móviles */
    }

    footer .footer-image {
        width: 80px; /* Ancho más pequeño en móviles */
    }
}

/* Estilo para el efecto de escritura */
#typing-effect {
    font-size: 3rem; /* Tamaño del texto */
    color: #ffffff; /* Color del texto (blanco) */
    font-weight: bold; /* Negrita */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8); /* Sombra para mejorar legibilidad */
    margin-bottom: 20px; /* Espacio inferior */
}
