/* VARIABLES */

:root{
    --modal-speed: 0.3s;
}

/* MENU MODAL */

.modal{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    transition: var(--modal-speed);
    display: flex;
    justify-content: end;
    align-items: center;
    z-index: 9;
}

.modal-hidden{
    opacity: 0;
    pointer-events: none;
}

.modal-menu{
    width: 200px;
    height: 34px;
    background: black;
    color: white;
    transition: var(--modal-speed);
}

.modal-hidden .modal-menu{
    transform: translateX(400px);
}

/* VIDEO MODAL */

.video-modal{
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.5);
    z-index: 980;
    transition: 0.3s;
}

.hiddenvid{
    opacity: 0;
    pointer-events: none;
}

.iframe-container{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    transition: 0.3s;
}

.iframe-container iframe, .iframe-container button{
    pointer-events: all;
}

.hiddenvid .iframe-container{
    transform: translateY(2000px);
}

#xvideo{
    position: fixed;
    top: 80px;
    right: 16px;
    cursor: pointer;
    border: none;
    background: none;
}

#xvideo img{
    aspect-ratio: 1;
    width: 48px;
}

/* RESPONSIVE */

@media (min-width: 1235px){
    .modal{
        display: none;
    }
}
