@font-face
{
    font-family: 'PatrickHand';
    src: url('../fuente/PatrickHand-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

*
{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body
{
    background:#111;
    width:100vw;
    height:100vh;
    overflow:hidden;
    display:flex;
    justify-content:center;
    align-items:center;
    font-family:Arial, Helvetica, sans-serif;
}

#loader
{
    color: #fff;
    width: 100%;
    text-align: center;
}


#player-container
{
    width: 100%;
    background: black;
    display: none;
    align-items: center;
    justify-content: center;
}

#player-container:fullscreen 
{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
}

.player
{
    position: relative;
    container-type: size;
    width: min(100vw, calc(100vh * 16 / 9));
    height: min(100vh, calc(100vw * 9 / 16));
    background: black;
    overflow: hidden;
}


.ready
{
    display: flex !important;
}

#playInit
{
    position: absolute;
    top:50%;
    left: 50%;
    transform:translate(-50%, -50%);
    background-color: rgb(12, 76, 159);
    width: 20%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
}

#playInit i
{
    font-size: 20cqmin;
    color: #fff;
}

/* VIDEO */
video
{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* OVERLAY */
.overlay
{
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(0);
}

#teacher
{
    display: none;
    width: 60%;
    text-align: center;
    -webkit-transform: translateZ(0) scale(1);
    transform: translateZ(0) scale(1);
    animation: escalar 7s linear forwards;
}

#nom
{
    margin: 0;
    font-size: 5.6cqmin;
    white-space: normal; 
    word-break: keep-all; 
    overflow-wrap: normal;
    font-style: italic;
}

#rol
{
    font-size: 3cqmin;
    white-space: normal; 
    word-break: keep-all; 
    overflow-wrap: normal;
}

#unit
{
    color: #fff;
    opacity: 0;
    margin: 0;
    margin-top: 5%;
    margin-left: 1%;
    animation: aparecer 1s ease forwards;
    width: 51%;
    max-height: 85%;
    overflow: hidden;
    transform: translateZ(0) perspective(60vw) rotateX(9deg);
    display: none;
}

#unit h3
{
    font-size: 5cqmin;
    margin-bottom: 3%;
}

#uni
{
    font-size: 4cqmin;
}

li
{
    padding: 0;
    margin: 0;
    margin-left: 5%;
}

.word
{
    display: inline-block;
}

.handwriting span span
{
    opacity: 0;
    display: inline-block;
    filter: blur(4px);
    animation: aparecer 0.5s ease forwards;
}

@keyframes aparecer
{
    to 
    {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes escalar
{
    to
    {
        transform:scale(1.6);
    }
}

/* CONTROLES */

.controls
{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    padding:16px;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.8),
        rgba(0,0,0,0)
    );
    z-index:10;
    opacity: 0;
}

.controls.show
{
    opacity:1;
    pointer-events:auto;
}

/* TIMELINE */

.timeline-container
{
    width:100%;
    margin-bottom:14px;
    cursor:pointer;
}

.timeline
{
    width:100%;
    height:6px;
    background:rgba(255,255,255,.2);
    border-radius:999px;
    overflow:hidden;
}

.timeline-progress
{
    width:0%;
    height:100%;
    background:white;
}

/* FILA CONTROLES */

.controls-row
{
    display:flex;
    align-items:center;
    gap:16px;
}

/* BOTONES */

.control-btn
{
    background:none;
    border:none;
    color:white;
    font-size:22px;
    cursor:pointer;
}

/* TIEMPO */

.time
{
    color:white;
    font-size:14px;
    min-width:110px;
}

/* SLIDER */

.volume-slider
{
    width:120px;
}

/* SELECT */

.speed-select
{
    background:#222;
    color:white;
    border:none;
    padding:6px 10px;
    border-radius:6px;
}

/* FULLSCREEN */

/*.player:fullscreen
{
    height:100%;
    border-radius:0;
}

.player:-webkit-full-screen
{
    width:100%;
    height:100%;
    border-radius:0;
}*/

/*MOVIMIENTOS*/
.mo1
{
    animation-delay: .3s;
}

.mo2
{
    animation-delay: .6s;
}

.mo3
{
    animation-delay: .9s;
}

.mo4
{
    animation-delay: 1.2s;
}

.mo5
{
    animation-delay: 1.5s;
}

.mo6
{
    animation-delay: 1.8s;
}

.mo7
{
    animation-delay: 2.1s;
}

.mo8
{
    animation-delay: 2.4s;
}

.mo9
{
    animation-delay: 2.7s;
}

.mo10
{
    animation-delay: 3s;
}

.mo11
{
    animation-delay: 3.3s;
}

.mo12
{
    animation-delay: 3.6s;
}

.mo13
{
    animation-delay: 3.9s;
}
