* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #fff;
}

.accordion {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 10px;
    grid-auto-flow: dense;
}
.horizontal {
    grid-column: span 2;
}
.big {
    grid-column: span 2;
    grid-row: span 2;
}

.accordion a {
    display: block;
    overflow: hidden;
}

.accordion > a > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 10px;
    background-color: #fff;
}

html, body {
    height: 100%;
    font-family:"Roboto Slab", sans-serif;
    scroll-behavior: smooth;
}

.carousel-bg {
    font-family:"Roboto Slab", sans-serif;
    position: relative;
    width: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: 0.2s linear;
}

h1 {
    font-size:30px;
    color:#fff;
    position: absolute;
}

h1 span {
    color: orange;
}

h2 {
    font-size: 28px;
    margin: 30px 20px 50px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.carousel_shader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background-color: #444;
}

.carousel_content {
    position: absolute;
    width: 100%;
    padding: 20px 5% 20px;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.5);
    transition: 0.2s linear;
    opacity: 1;
}

.carousel_content h1 {
    display: block;
}

.carousel_content.hidden {
    opacity: 0;
}

.carousel_content.fixed {
    position: fixed !important;
}

.scrolldown {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    border: 5px solid #fff;
    padding: 20px 40px;
    font-weight: 400;
    font-size: 40px;
    background-color: rgba(0, 0, 0, 0.35);
    text-align: center;
}

.content {
    padding: 90px 5% 20px;
    background-color: #e0e0e0;
    text-align: center;
    width: 100%;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    overflow-x: hidden;
}

.down-arrow {
    display:block;
    position: absolute;
    bottom:0%;
    left:50%;
    transition: 1.5s ease-in-out;
    translate: -50%;
}

.down-arrow .arrow {
    position: relative;
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 20px solid rgb(255, 255, 255);
    margin: 5px auto; /* Center the arrow */
}


.contact_link.tophome {
    opacity: 0;
}

.carousel_content .menu {
    display: flex;
    flex-direction: row-reverse;
}

.carousel_content .menu a {
    font-size: 20px;
    margin: 5px 10px;
    padding: 5px;
}


#contact a {
    display: block;
    color: #000;
    text-align: center;
    font-size: 20px;
    margin: 20px auto;
}

.bold {
    font-weight: 700;
}

.horizontal-scroll img {
    display: block;
    max-height: 80vh;
    height: auto;
    width: auto;
} 

.content p{
    margin: 20px;
    font-size: 20px;
    text-align: left;
}

#aboutme img {
    max-width: 100%;
    border-radius: 10%;
    max-height: 50vh;
    float:left;
    margin-right:50px;
}

#contact p {
    text-align: center;
}

@media (max-width: 1200px) {
    .horizontal-scroll img {  
        max-height: 60vh;
        scroll-snap-align: start;
    }
    .vertical-gallery h3 {
        font-size:30px;
    }
    .accordion {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 20px;
    }
    .carousel_content .menu a {
        font-size: 14px;
        padding:5px;
        margin:2px;
    }

    #aboutme img {
        float:none;
        margin-right:auto;
    }
    .carousel_content {
        padding: 20px 5px;
        display: flex;
    }

    .menu {
        width: 100%;
        justify-content: space-between;
    }

    .carousel_content h1 {
        display: none;
    }

    .contact_link.tophome {
        opacity: 1;
    }.accordion {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Kontener na wszystkie dni - to odpowiada za układanie się bloków */
.kalendarz-kontener {
    display: flex;
    flex-wrap: wrap; /* Pozwala elementom spadać niżej, gdy brak miejsca */
    justify-content: center; /* Wyśrodkowanie */
    gap: 20px; /* Odstęp między dniami */
    max-width: 1200px;
    margin: 0 auto;
}

/* Pojedynczy dzień (karta) */
.dzien-karta {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 20px;
    flex: 1 1 300px; /* Flex: rośnij, malej, baza 300px szerokości */
    max-width: 400px; /* Nie szersze niż 400px */
    border-top: 5px solid #c0392b; /* Czerwony pasek na górze */
}

.dzien-naglowek {
    text-align: center;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Siatka slotów wewnątrz dnia */
.sloty-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Responsywne kafelki */
    gap: 10px;
}

/* Wygląd pojedynczego slotu */
.slot {
    background-color: #27ae60; /* Zielony dostępny */
    color: white;
    padding: 10px 5px;
    text-align: center;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.slot:hover {
    transform: scale(1.05); /* Lekkie powiększenie po najechaniu */
    background-color: #219150;
}

/* Klasa dla zajętych terminów - ZMIENIA KOLOR NA CZERWONY */
.slot.zajety {
    background-color: #e74c3c;
    color: #ffdcdc;
    text-decoration: line-through;
    cursor: not-allowed;
    opacity: 0.7;
}

.slot.platnosc {
    background-color: #19ace6;
    color: #ffdcdc;
    opacity: 0.7;
}

.slot.zajety:hover {
    transform: none;
    background-color: #c0392b;
}

/* Stopka */
.info-footer {
    text-align: center;
    margin-top: 40px;
    color: #7f8c8d;
    font-style: italic;
}