/* --- Alapértelmezett (mobil álló) --- */
* {
    box-sizing: border-box; /* Minden elemre alkalmazzuk a box-sizing: border-box; stílust */
}
html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    font-family: Arial, sans-serif;
    color: #333;
    overflow: hidden;
    background: #d0d0a3;
}

#background-container {
    display: none; /* Csak mobil fekvőben lesz látható */
}

.video-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.video-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 220px;
    height: 140px;
    background: url("Images/film_slide_clean.png") no-repeat center center;
    background-size: contain;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border: none;
    border-radius: 0;
    animation: move-around 60s infinite linear;
    overflow: hidden;
}

.video-card::before,
.video-card::after {
    content: "";
    display: block;
    position: absolute;
    left: 10px;
    right: 10px;
    height: 10px;
    background: repeating-linear-gradient(
        to right,
        #fff 0 6px,
        #222 6px 12px
    );
    border-radius: 6px;
    z-index: 1; /* kisebb, mint a slideshow vagy overlay */
}

.video-card::before {
    top: -16px;
}

.video-card::after {
    bottom: -16px;
}

.video-card img,
.video-card iframe {
    width: 63%;
    height: 75%;
    object-fit: cover;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    z-index: 1;
}

.video-card p {
    display: none;
}

/* --- Slideshow és videó overlay --- */
#slideshow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: auto;
    display: none;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 10; /* vagy nagyobb, hogy mindig felül legyen */
}

#slideshow img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

#video-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1280px;
    aspect-ratio: 16 / 9;
    display: none;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

#video-overlay iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* --- Mobil fekvő (max. 1024px szélesség ÉS max. 600px magasság) --- */
@media (max-width: 1024px) and (max-height: 600px) {
    html, body {
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        background: #000;
    }

    #background-container {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 200vw; /* Kétszeres szélesség a mozgáshoz */
        height: 100vh;
        background: url("Images//tabloFullHD.jpg") no-repeat center center;
        background-size: cover;
        animation: scroll-horizontal 20s linear infinite alternate;
        z-index: 0;
    }

    @keyframes scroll-horizontal {
        0% { transform: translateX(0); }
        100% { transform: translateX(-100vw); }
    }

    .video-container {
        position: relative;
        width: 100vw;
        height: 100vh;
        z-index: 1;
    }

    .video-card {
        transform: rotate(90deg);
        animation: move-around 30s infinite linear;
    }

    #slideshow {
        width: 80%;
        rotate: 90deg;
    }

    #video-overlay iframe {
        rotate: 90deg;
    }
}

/* --- Nagyfelbontású fekvő (min. 1025px szélesség) --- */
@media (min-width: 1025px) {
    html, body {
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        background: #d0d0a3;
    }

    body {
        background: url("Images//tablo4K.jpg") no-repeat center center;
        background-size: contain;
        background-color: rgb(208, 208, 163);
    }

    #background-container {
        display: none;
    }

    .video-card {
        transform: none;
        animation: move-around 60s infinite linear;
        width: 275px;   /* 220px + 25% = 275px */
        height: 175px;  /* 140px + 25% = 175px */
    }

    #slideshow {
        width: 60%; 
        rotate: none;
    }

    #slideshow img {
        width: 50%;
        height: auto;
    }

    #video-overlay iframe {
        rotate: none;
    }
}

/* --- Animáció a kártyák körkörös mozgásához --- */
@keyframes move-around {
    0%   { top: 2vh; left: 0; }
    25%  { top: 2vh; left: calc(95vw - 200px); }
    50%  { top: calc(94vh - 100px); left: calc(95vw - 200px); }
    75%  { top: calc(94vh - 100px); left: 0; }
    100% { top: 2vh; left: 0; }
}

