@charset "UTF-8";

/* ESTILOS DEFINIDOS PARA LA PÁGINA DE CESTOMANO - H */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    font: 1em "Droid Sans", arial, sans-serif, tahoma, verdana;
}

body {
	display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #2447b9;
    background-image: url("fondo_h.png");
    background-repeat: repeat;
}

body.espera-clic {
    cursor: pointer;
}

/* --------------------------------
   DISCO
-------------------------------- */

.disco-container {
    position: relative;
    width: min(800px, 100vw, 100vh);
    height: min(800px, 100vw, 100vh);
}


.disco {
    width: 100%;
    height: 100%;
    display: block;
}


.disco.girando {
    animation:
        girar 3s linear infinite;
}


@keyframes girar {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* --------------------------------
   TRIÁNGULO PLAY
-------------------------------- */

.play-inicial {
    position: absolute;
    left: 50%;
    top: 50%;
    transform:
        translate(-50%, -50%);
    width: 50%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: min(18vw, 180px);
    line-height: 1;
    cursor: pointer;
    user-select: none;
    text-shadow:
        0 3px 15px rgba(0,0,0,0.7);
    transition:
        opacity 0.5s ease;
    pointer-events: none;
}


.play-inicial.oculto {
    opacity: 0;
    pointer-events: none;
}


/* --------------------------------
   ZONA CENTRAL
-------------------------------- */

.zona-central {
    position: absolute;
    width: 100px;
    height: 100px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: none;
}


/*
   Cuando el disco ya está activo,
   la zona central sí puede recibir clics.
*/

.disco-container.activo .zona-central {
    pointer-events: auto;
}


/* --------------------------------
   CONTROL DE SONIDO
-------------------------------- */

.control-sonido {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    color:
        rgba(255,255,255,0.8);
    cursor: pointer;
    user-select: none;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.5s ease;
}

.control-sonido.visible {
    opacity: 0.5;
    pointer-events: auto;
}

.control-sonido:hover {
    opacity: 1;
}


/* --------------------------------
   MODAL
-------------------------------- */

#modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        rgba(0,0,0,0.75);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
}

#modal.visible {
    opacity: 1;
    visibility: visible;
}


/* --------------------------------
   PANEL
-------------------------------- */

.panel {
    position: relative;
    width: min(600px, 80vw);
    padding: 45px 50px;
    box-sizing: border-box;
    background:
        rgba(20,20,20,0.75);
    color:
        rgba(255,255,255,0.9);
    border-radius: 4px;
    box-shadow:
        0 10px 50px rgba(0,0,0,0.5);
}


/* --------------------------------
   CERRAR
-------------------------------- */

.cerrar {
    position: absolute;
    right: 18px;
    top: 10px;
    font-size: 28px;
    color:
        rgba(255,255,255,0.6);
    cursor: pointer;
    user-select: none;
}


.cerrar:hover {
    color: white;
}


/* --------------------------------
   PISTAS
-------------------------------- */

.tracks {
    font-size: 16px;
    line-height: 2.2;
    letter-spacing: 0.03em;
}

.tracks a {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color:
        rgba(255,255,255,0.9);
    border-bottom:
        1px solid rgba(255,255,255,0.08);
    transition:
        color 0.2s ease;
}

.tracks a:hover {
    color: white;
    text-decoration: underline;
}

.duracion {
    color:
        rgba(255,255,255,0.5);
}


/* --------------------------------
   ACCESO AL DISCO
-------------------------------- */

.acceso {
    margin-top: 2em;
    margin-bottom: 2em;
    text-align: center;
    color: rgba(255,255,255,0.75);
}

.acceso div {margin-top: 1em}

.acceso a {
    color: rgba(255,255,255,0.75);
    text-decoration: underline;
}

.acceso a:hover {
    color: white;
    text-decoration: none;
}


/* --------------------------------
   CONTACTO
-------------------------------- */

.contacto {
    margin-top: 35px;
    padding-top: 20px;
    border-top:
        1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 14px;
    line-height: 1.8;
}

.contacto div {
    color:
        rgba(255,255,255,0.5);
}

.contacto a {
    color:
        rgba(255,255,255,0.85);
    text-decoration: none;
}

.contacto a:hover {
    color: white;
    text-decoration: underline;
}


/* --------------------------------
   PANTALLAS MUY PEQUEÑAS
-------------------------------- */

@media (max-width: 300px),
       (max-height: 300px) {


    .zona-central {
        width: 33.333%;
        height: 33.333%;
    }

    .control-sonido {
        right: 10px;
        bottom: 10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .panel {
        width: 120vw;
        padding: 35px 25px;
    }

}

@media (max-width: 600px) {

    .control-sonido {
        right: auto;
        bottom: auto;
        left: 15px;
        top: 15px;
    }

}