/* css/intro-video.css -- the window of the introductory video (2026-10-11),
   made by js/intro-video.js. The public site carries the same file. Its colours
   are its own, so it looks the same in the light and in the dark theme. */

html.pmw-video-open { overflow: hidden; }

.pmw-video-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000000;   /* over the application's top bar (999999) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 16px 16px;
    background: rgba(8, 18, 38, .86);
    box-sizing: border-box;
}

/* As wide as the window allows, never taller than it: 16 by 9 throughout. */
.pmw-video-box {
    position: relative;
    width: min(100%, 1100px, calc((100vh - 88px) * 16 / 9));
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .55);
}

.pmw-video-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
}

.pmw-video-close {
    position: absolute;
    top: -46px;
    right: 0;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    font: 400 26px/1 Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.pmw-video-close:hover,
.pmw-video-close:focus-visible {
    background: rgba(255, 255, 255, .28);
    outline: 2px solid #fff;
    outline-offset: 2px;
}
