/* Reset podstawowych marginesów */
body, html {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

/* --- KONTENER WIDEO I SPACER --- */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

video {
    width: 100%; 
    height: 100%;
    object-fit: cover;
}

/* Styl wiadomości o błędzie wczytywania */
.video-error-message {
    position: fixed;
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 5px;
    z-index: 10;
    pointer-events: none;
}

.spacer {
    /* Ustawiamy dużą wysokość strony, aby było po czym przewijać */
    height: 300vh; 
}

/* --- PRZYCISK MENU (Hamburger) --- */
.menu-toggle {
    position: fixed;
    top: 50px;
    left: 30px;
    z-index: 100;
    cursor: pointer;
    opacity: 0; 
    visibility: hidden;
    transition: transform 0.3s ease;
}

.toggle-icon {
    width: 55px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 7px;
    background-color: white;
    border-radius: 0px;
    transition: background-color 0.3s;
}

/* Kiedy menu boczne jest aktywne, hamburger jest czarny */
.menu-toggle.dark span {
    background-color: #333;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

/* --- BOCZNY PANEL MENU Z OBRAZKAMI --- */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background-color: white;
    z-index: 99;
    transform: translateX(-100%);
    transition: transform 0.4s ease-in-out;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    padding-top: 80px; 
    overflow-y: auto; /* Pozwala na przewijanie menu, jeśli obrazków jest dużo */
}

.side-menu.active {
    transform: translateX(0);
}

.side-menu a {
    display: block;
    padding: 0;
    border-bottom: none;
    transition: transform 0.2s;
}

.side-menu img {
    width: 100%;
    height: auto;
    display: block;
}

.side-menu a:hover {
    transform: scale(1.02);
    z-index: 1;
    position: relative; /* Żeby powiększony obrazek był na wierzchu i nie przycięty */
}