* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

body { 
    font-family: sans-serif; 
    padding: 40px; /* marginesy, żeby karuzela nie dotykała krawędzi ekranu */
    background-color: #171A21;
    margin: 0%;
    padding: 0%;
    overflow-x: hidden;
    }

    h2 {
      text-align: center;
      color: #333;
    }

    .gallery {
        padding: 20px 0; /* Dodatkowy odstęp od góry i dołu */
        border-radius: 10px;
        height: 80vh; /* For 100% screen height */
        width:  100vw; /* For 100% screen width */
    }
    
    .gallery-cell img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* sprawia, że zdjęcie wypełnia kafelek bez zniekształceń */
    border-radius: 10px; /* dopasowanie do rogów kafelka */
}

    .gallery-cell {
      width: 66vw;
      height: 60vh;
      margin-top: 5vh;
      margin-right: 10px;
      background-color: white;
      border-radius: 10px; /* Zaokrąglone rogi kafelków */
      box-shadow: 0 4px 8px rgba(0,0,0,0.5); /* Delikatny cień */
    }

    #twitch-cell {
        background-color: #0e0e10;
        overflow: hidden;
        display: flex;
        align-items: stretch;
        justify-content: center;
    }
    

    
    
#gora-pasek {
    background-color: #101214;
    height: 3em;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 100;
    
   
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 20px; 
    box-sizing: border-box; 
}
    
.menu-ikona {
    cursor: pointer;
    font-size: 30px;
    color: #888;
    user-select: none;
}


.side-menu {
    position: fixed;
    top: 3em;
    left: -250px;
    width: 250px;
    
 
    height: auto; 
    
   
    background-color: #101214;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 99;
    border-right: 1px solid #1f2226;
    border-bottom: 1px solid #1f2226; 
}

.side-menu.active {
    left: 0;
}


.side-menu a {
    padding: 20px;
    color: white;
    text-decoration: none;
    font-family: Arial, sans-serif;
    border-bottom: 1px solid #1f2226;
    cursor: pointer;
}

.side-menu a:hover {
    background-color: #1f2226;
}


.menu-ikona {
    cursor: pointer;
}
.znaczek-logo {
    background-color: #D2DADB;
    width: 30px;
    height: 30px;
    border-radius: 100px; 
    font-weight: bold;
    text-align: center;
    line-height: 30px;
    left: 48%;
    top: 10px;
}

.kolko-awatar {
    background-color: #2a475e;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #66c0f4;
}
.steam-avatar-overlay {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ważne: wypełnia kółko bez rozciągania */
    display: block;
}
.glowa {
    background-color: #ffffff;
    width: 10px;
    height: 10px;
    border-radius: 50px;
    margin-left: 10px;
    margin-top: 5px;
    opacity: 0.7;
}

.ramiona {
    background-color: #ffffff;
    width: 20px;
    height: 15px;
    border-radius: 10px;
    margin-left: 5px;
    margin-top: 1px;
    opacity: 0.7;
}

.pierwszy-panel {
    height: 100vh; /* For 100% screen height */
    width:  100vw; /* For 100% screen width */
    p{
        margin-left: 20px;
    }
    margin-top: 3em;
    background-color: #1B2838;
}

/* zawartość panelu 2 */


.czwarty-panel {
    height: 800px;
}
html {
  scroll-behavior: smooth;
}
.main-footer {
    background-color: #171a21; 
    color: #8f98a0;
    padding: 60px 0 30px 0; /* Więcej oddechu */
    border-top: 1px solid #2a2d32;
    font-family: 'Arial', sans-serif;
}

.footer-content {
    max-width: 1100px; /* Nieco węższy niż gra dla elegancji */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 40px;
}

/* Stylizacja logo 100 TWARZY GRZYBIARZY */
.footer-logo {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-logo span {
    color: #66c0f4; /* Niebieski akcent Steam */
    text-shadow: 0 0 10px rgba(102, 192, 244, 0.3);
}

.footer-section.about {
    max-width: 500px; /* Żeby tekst opisu się nie rozlewał */
}

.footer-section.about p {
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Stylizacja Kontaktu */
.footer-section.contact h3 {
    color: #66c0f4;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-section.contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    transition: 0.3s;
}

.footer-section.contact p:hover {
    color: #ffffff;
}

/* Ikony społecznościowe */
.social-icons {
    margin-top: 25px;
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: #8f98a0;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #66c0f4;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(42, 45, 50, 0.5);
    font-size: 0.8rem;
    letter-spacing: 1px;
}
#kick-cell {
    background-color: #0b0e0f; /* Ciemne tło Kicka */
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.kick-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #53fc18; /* Zielony kolor Kicka */
    text-align: center;
    font-weight: bold;
}

.kick-card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    color: white;
    text-decoration: none;
}

.kick-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kick-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
}

.kick-status {
    display: inline-block;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 4px;
    background-color: #53fc18; /* Jaskrawa zieleń */
    color: #000; /* Czarny tekst na zielonym tle */
    font-size: 0.85rem;
    font-weight: 800;
}

.kick-meta h3 {
    margin: 0 0 6px;
    font-size: 1.5rem;
    color: #fff;
}

.kick-meta p {
    margin: 0;
    color: #cccccc;
}

/* --- ODTWARZACZ KICK --- */
.kick-embed-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: #0b0e0f;
}

.kick-frame {
    width: 100%;
    height: calc(100% - 110px); /* Zostawia 110px na dolny pasek z info */
    min-height: 0;
    border: 0;
    background-color: #000;
}

.kick-embed-info {
    padding: 14px 18px 18px;
    background: linear-gradient(180deg, #18181b 0%, #0b0e0f 100%);
    color: white;
    height: 110px;
}

.kick-embed-info h3 {
    margin: 8px 0 4px;
    font-size: 1.2rem;
    color: white;
}

.kick-embed-info p {
    display: block;
    margin: 0;
    color: #cccccc;
    font-size: 0.9rem;
}
/* --- WYSZUKIWARKA / DROPDOWN KICK --- */
#kick-cell {
    position: relative; /* Bardzo ważne, żeby wyszukiwarka nie uciekła poza kafelek! */
}

.kick-search-bar {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
    background-color: rgba(11, 14, 15, 0.85); /* Lekko przezroczyste tło */
    border: 2px solid #53fc18; /* Zielona ramka Kicka */
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.8);
    transition: 0.3s;
}

/* Po najechaniu myszką tło robi się zielone */
.kick-search-bar:hover, .kick-search-bar:focus {
    background-color: #53fc18;
    color: black;
}
/* --- GŁÓWNY KONTENER WYSZUKIWARKI --- */
.top-search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #212429; /* Ciemne tło pasujące do paska Steam */
    border-radius: 4px;   /* Lekkie zaokrąglenie */
    padding: 5px 12px;
    width: 250px;
    height: 30px;        /* Stała wysokość, żeby pasek nie skakał */
    transition: all 0.3s ease;
    border: 1px solid #3d4450; /* Delikatna ramka */
    box-sizing: border-box;
}

/* Efekt podświetlenia po kliknięciu wewnątrz */
.top-search-container:focus-within {
    background: #31353c;
    border-color: #66c0f4; /* Niebieski akcent Steam */
    box-shadow: 0 0 8px rgba(102, 192, 244, 0.3);
}

/* --- SAM POLE INPUT (TEKST) --- */
#game-search-input {
    background: transparent !important; /* Usuwamy białe tło */
    border: none !important;
    color: #e5e5e5;
    outline: none;
    width: 100%;
    font-size: 14px;
    padding: 0;
    margin: 0;
}

/* Kolor tekstu pomocniczego */
#game-search-input::placeholder {
    color: #565d64;
}

/* Ikona lupy wewnątrz paska */
.top-search-container i {
    color: #8f98a0;
    margin-left: 10px;
    font-size: 14px;
    cursor: pointer;
}

/* --- WYGLĄD LISTY WYNIKÓW (STEAM STYLE) --- */
.suggestions-box {
    display: none; /* Ukryte domyślnie */
    position: absolute;
    top: 115%;    /* Odstęp od paska */
    left: 0;
    width: 100%;
    background-color: #1b2838; /* Ciemny granat Steam */
    border: 1px solid #2a475e;
    border-radius: 4px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0px 8px 20px rgba(0,0,0,0.6);
}

/* Pojedynczy element na liście */
.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #2a475e;
    transition: background 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #2a475e; /* Jaśniejszy granat po najechaniu */
}

/* Miniaturka gry na liście */
.suggestion-img {
    width: 80px;
    height: 35px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 2px;
}

/* Nazwa gry na liście */
.suggestion-text {
    color: white;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Przycina zbyt długie nazwy */
}

.a11y-side-panel {
    position: fixed;
    top: 3em; 
    right: -350px; /* Domyslnie schowany po prawej */
    width: 320px;
    height: 100vh;
    background-color: #171a21; /* Ciemne tło Steam */
    border-left: 1px solid #2a475e;
    transition: right 0.3s ease;
    z-index: 9999; /* Zawsze na samym wierzchu */
    box-shadow: -5px 0 20px rgba(0,0,0,0.8);
}

.a11y-side-panel.active {
    right: 0; /* Klasa dodawana przez JS, żeby wyjechał */
}

.a11y-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #101214;
    border-bottom: 1px solid #2a475e;
    color: #66c0f4;
}

.a11y-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-a11y {
    font-size: 28px;
    cursor: pointer;
    color: #8f98a0;
    transition: color 0.2s;
}
.close-a11y:hover { color: #ffffff; }

.a11y-content {
    padding: 25px 20px;
}

.a11y-option {
    display: flex;
    justify-content: space-between; /* Rozsuwa tekst w lewo, a przycisk w prawo */
    align-items: center; /* Idealnie wyrównuje w pionie */
    margin-bottom: 25px;
    color: #c7d5e0;
    font-size: 1rem;
}

.a11y-label-text {
    flex: 1; /* Pozwala tekstowi zająć resztę miejsca */
    padding-right: 15px; /* Odstęp między tekstem a przyciskiem */
}

/* --- MAGIA NOWOCZESNEGO PRZEŁĄCZNIKA (SWITCH) --- */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0; /* Przycisk nigdy się nie zgniata, nawet jak tekst jest długi */
}

/* Ukrywamy ten brzydki, domyślny checkbox ze screena! */
.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

/* Rysujemy tło suwaka */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #3d4450;
    transition: .4s;
}

/* Rysujemy kółeczko w suwaku */
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

/* Co się dzieje, jak klikniesz (zaznaczysz) */
input:checked + .slider { background-color: #66c0f4; }
input:focus + .slider { box-shadow: 0 0 1px #66c0f4; }
input:checked + .slider:before { transform: translateX(24px); } /* Przesunięcie kółka w prawo */

/* Zaokrąglenia */
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }







.test-switch-container {
    display: flex;
    align-items: center;
    margin-left: 20px;
    margin-top: 10px; /* Idealne wyrównanie do paska */
}

.test-label {
    color: #8f98a0;
    font-size: 13px;
    margin-right: 10px;
}

/* Magia CSS: Ukrywamy mały checkbox i rysujemy switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

/* Chowa brzydki, domyślny checkbox ze screena */
.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

/* Tło suwaka */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #3d4450; /* Ciemny, steamowy szary */
    transition: .4s;
}

/* Kółeczko suwaka */
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}
/* Co się dzieje, jak klikniesz (zaznaczysz) */
input:checked + .slider { background-color: #66c0f4; } /* Niebieski Steam */
input:focus + .slider { box-shadow: 0 0 1px #66c0f4; }
input:checked + .slider:before { transform: translateX(26px); } /* Przesunięcie kółka w prawo */

/* Zaokrąglenia */
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }




/* Przycisk kota */
.footer-cat-wrapper {
    position: fixed;
    bottom: 15px;
    right: 15px;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.2s ease-in-out; 
}
.footer-cat-wrapper img { 
    width: 40px; 
    height: 40px; 
}

/* Easter Egg - czarne tło na cały ekran */
#secret-egg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ukrywanie elementu */
#secret-egg.hidden {
    display: none !important;
}

/* Samo zdjęcie bez żadnych filtrów */
.fullscreen-photo {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain; /* pilnuje, żeby zdjęcie się nie rozciągnęło i zachowało proporcje */
}