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

html, body {
    height: 100%;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: #000;
    color: #fff;
}

/* video as background */
#background-video {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Ensure the video covers the area */
    z-index: 0;
    pointer-events: none; /* clicks go through to content */
    -webkit-transform: translate(-50%, -50%);
}

/* darken to make text readable */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
    pointer-events: none;
}

/* content above video */
.content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    gap: 0.5rem;
}

h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    letter-spacing: 0.06em;
}

p { font-size: clamp(1rem, 2.5vw, 1.25rem); }

/* tap-to-play button */
.tap-to-play {
    position: fixed;
    z-index: 3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-size: 1rem;
    display: none; /* default hidden; JS zobrazí pokud autoplay selže */
}

/* Small adjustments for very small screens */
@media (max-width: 420px) {
    .content { padding: 3rem 1.5rem; }
    h1 { font-size: 2rem; }
    p { font-size: 1rem; }
}

/* Fallback: if you prefer to hide video on very small devices, uncomment below:
@media (max-width: 360px) {
    #background-video { display: none; }
}
*/
