body {
    background: #F2EFD9;
}

.page-container {
    display: flex;
    align-content: center;
    justify-content: center;
    width: 100%;
    padding: 50px 0;
}

.new-page-container {
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    max-width: 1200px;
    width: 95%;
    background-color: #F7F6ED;
    border-radius: 25px;
    padding: 35px 0;
}


h1 {
    font-family: "Cherry Bomb One", system-ui;
    font-weight: 400;
    font-size: 40px;
    font-style: normal;
    color: #353851;
    margin: 0 0;
}

h2 {
    font-family: "Cherry Bomb One", system-ui;
    font-weight: 400;
    font-size: 30px;
    font-style: normal;
    color: #353851;
    margin: 0 0;
}

p {
    font-size: 18px !important;
}


/* COLORS */
.green {
    color: #76A98F;
    font-style: normal !important;
}

.black {
    color: #353851;
    font-style: normal !important;
}


/* buttons */
.button-row {
    display: flex;
    flex-direction: row;
    justify-content: start;
    gap: 20px;
}

.button-row .button {
    margin: 0;
}

.button {
    font-size: 22px;
    font-weight: 700;

    text-decoration: none;

    padding: 7px 24px;
    border-radius: 10px;

    width: fit-content;
    margin: 35px auto 0;

    transition: all 0.15s ease-in-out;
}

.b_black {
    color: white;
    outline: solid 2px #59607c;
    background-color: #353851;
}

.b_black:hover {
    background-color: #282c40;
}

.b_red {
    color: white;
    outline: solid 2px #fdac97;
    background-color: #DB6F54;
}

.b_red:hover {
    background-color: #a3432f;
}


/* FOOTER */
.new_footer {
    display: flex;
    width: 100%;
    justify-content: center;
    background: #F2EFD9;
    color: #0a1620;
}


/* HEADER */
.header-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.header-container h1 {
    font-size: 110px;
    font-style: normal !important;
    line-height: 85%;
    text-align: center;
    margin: 0 0 70px;
}

.header-container p {
    width: 80%;
    max-width: 650px;
    text-align: center;
    margin: -25px auto 0;
}

.header-floating-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    height: 100%; /* ⬅️ Tohle je klíčové */
    z-index: 99999;
    pointer-events: none;
}
.floating-img {
    position: absolute;
    max-width: 220px; /* nebo podle potřeby */
    pointer-events: none; /* neblokuje klikání */
    transition: transform 0.2s ease-out;

    --parallax-x: 0px;
    --parallax-y: 0px;
    --float-offset: 0px;
    transform: translate3d(var(--parallax-x), calc(var(--parallax-y) + var(--float-offset)), 0);

    -webkit-filter: drop-shadow(0px 15px 24px rgba(0, 0, 0, 0.35));
    filter: drop-shadow(0px 15px 24px rgba(0, 0, 0, 0.35));
}

/* Levitační efekt */
@keyframes floatY {
    0% { --float-offset: 0px; }
    50% { --float-offset: -10px; }
    100% { --float-offset: 0px; }
}

@media (max-width: 800px) {
    .floating-img {
        display: none;
    }


    .header-container h1 {
        font-size: 12vw;
        min-font-size: 50px;
    }
}



/* about section */
.about {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    gap: 40px;

    padding: 40px;
    box-sizing: border-box;
}

.about_separator {
    display: block;
    width: 2px;
    height: 100%;
    margin: 0 auto 0;
    background: #353851;
}

.about_text {
    font-size: 16px;
    line-height: 18px;
    text-align: left;
}

.about_opening_block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 30%;
    min-width: 350px;
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
    background-color: #76A98F;

    gap: 20px;
    border-radius: 25px;
}

.opening_section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    background: white;
    color: #353851;
    border-radius: 15px;
}

.opening_section p {
    font-size: 18px;
    line-height: 0px;
    text-align: left;
}

.opening_section h3 {
    font-size: 20px;
    line-height: 0px;
    font-weight: bold;
    font-style: normal;
    text-align: right;
}



@media (max-width: 800px) {
    .about {
        flex-direction: column;
    }

    .about_opening_block {
        max-width: 100% !important;
        margin: 0 auto 0;
    }
}



/* AKTUALITY/POSTCARDS */
.new-posts-container {
    display: flex;
    flex-direction: row;

    gap: 20px;

    width: 90%;
    max-width: 90%;
    margin: 10px auto;

    overflow-x: clip;
}

.new-post-card {
    position: relative;

    display: block;
    padding: 20px;

    background-color: #F7F6ED;
    border-radius: 15px;

    width: 100%;
    max-width: 31%;
    min-width: 300px;

    cursor: pointer;

    text-align: left;

    text-decoration: none;
}

.new-post-card::after {
    position: absolute;

    width: 100%;
    height: 100%;
    top: 0;
    left: 0;

    border-radius: 15px;
    content: "";
    z-index: -1;
    background-color: #4C8669;

    transform: rotateZ(-2deg);
    transition: transform 0.3s ease-in-out;
}

.new-post-card:hover::after {
    transform: rotateZ(-7deg);
}

.new-post-card img {
    width: 100%;
    height: auto;
    /* ratio */
    object-fit: cover;
    aspect-ratio: 3 / 2;
    border-radius: 8px;
}

.new-post-card h3 {
    font-size: 25px !important;;
    font-weight: bold;
    color: black;
    margin: 14px 0 5px;
}

.post-desc {
    font-size: 16px !important;
    color: black;
    margin: 0 0 22px;
}

.post-cta {
    font-size: 10px !important;
    color: #535353;
    margin: auto 0 0;
    align-self: end;
}


.post-long-card {
    display: flex;
    flex-direction: row;
    gap: 20px;

    padding: 15px;
    width: 80%;
    box-sizing: border-box;
    background: white;

    border-radius: 14px;

    margin: 0 auto;

    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.05);
}


@media (max-width: 800px) {
    .post-long-card {
        flex-direction: column;
        align-items: center;
        width: 90%;
        justify-content: center;
        padding: 35px;
    }
}

.post-long-card img {
    max-width: 300px;
    aspect-ratio: 3 / 2;
    object-fit: cover;

    border-radius: 8px;
}

.post-long-card div {
    display: flex;
    flex-direction: column;
    justify-content: start;

    text-align: left;
}

.post-long-card div h3 {
    text-decoration: none;
    color: black;

    font-size: 24px !important;
    line-height: 25px;
    font-weight: bold;

    margin: 0 0 3px;
}

.post-date {
    font-size: 12px !important;
    color: black !important;
    text-decoration: none;
    margin: 0;
}


.article-img {
    aspect-ratio: 3/2;
    object-fit: cover;
    max-width: 50%;
    border-radius: 20px;
    margin: 0 auto 0;
}


@media (max-width: 800px) {
    .new-posts-container {
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        align-items: center;
    }

    .new-post-card {
        width: 80%;
        max-width: 100%;
    }
}



/* INFO SECTION */

.info-section {
    justify-content: start;
    padding: 40px 50px;
    box-sizing: border-box;
}

.info_text {
    max-width: 60%;
}

.info-section img {
    position: absolute;
    height: 120%;

    /* center right */
    right: 30px;
    top: 50%;
    transform: translateY(-50%); /* ✅ vystředění na výšku */
}


@media (max-width: 1000px) {
    .info-section{
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .info_text {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;

        text-align: center;
    }

    .info_text .button-row {
        margin: 0 auto 0;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .info-section img {
        position: unset;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 0;

        right: unset;
        top: unset;
        transform: unset; /* ✅ vystředění na výšku */
    }
}


.hover-rotate {
    transition: rotate 0.3s ease-in-out;
}
.hover-rotate:hover {
    rotate: 5deg;
}



.gallery {
    display: flex;
    flex-direction: row;

    justify-content: start;
    gap: 20px;

    overflow-x: hidden;
    width: 100%;
}

.photo-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);

    height: 300px;
    width: 300px;
    min-height: 300px;
    min-width: 300px;

    aspect-ratio: 1 / 1;
    background-color: white;
}
.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}
.photo-item:hover img {
    transform: scale(1.15) rotate(5deg) !important;
}

/*  VYBER JIDELNY  */

.canteen-sel-box {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 40px 50px;
    box-sizing: border-box;
}

.canteen-sel-card {
    width: 45%;
    max-width: 45%;
    display: block;

    padding: 20px;
    box-sizing: content-box;

    color: black;
    background-color: white;
    border-radius: 10px;
    text-decoration: none;
}

@media (max-width: 800px) {
    .canteen-sel-box {
        flex-direction: column;
        align-items: center;
        width: 100%;
        justify-content: center;
    }
    .canteen-sel-card {
        width: 100% !important;
        max-width: 100%;
    }
}

.canteen-sel-card img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 5px;

}

.canteen-sel-card .canteen-name {
    width: 100%;

    margin-top: 20px;
    font-size: 30px !important;
    font-weight: bold;
    color: black;
}

.canteen-sel-card .canteen-city {
    width: 100%;
    margin-top: 8px;
    font-size: 18px !important;
    font-weight: normal;
    color: black;
}


/* CONTACT */
.contact_cards {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    margin-top: 35px;
}

.contact_card {
    width: 48% !important;
    background-color: white;
    border-radius: 15px;
    box-sizing: border-box;
    padding: 22px;

    display: flex;
    flex-direction: column;
    justify-content: left;
    gap: 10px;
}

.contact_card p {
    margin: 0 0 0 10px;
}

.contact_card p a {
    color: #DB6F54;
}

.contact_member {
    display: flex;
    flex-direction: column;
    justify-content: left;
    border-radius: 8px;
    box-sizing: border-box;
    padding: 12px;
    background-color: #F7F6ED !important;
    width: 100% !important;
}


@media (max-width: 800px) {
    .contact_cards {
        flex-direction: column;
        gap: 20px;
    }
    .contact_card {
        max-width: 100% !important;
        width: 100% !important;
    }
}


/*
-------------------------
ANIMACE
-------------------------
 */
/* 1. Jemné fade-in zespodu */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Jemné fade-in shora */
.fade-in-down {
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.8s ease-out forwards;
}
@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3. Fade-in zleva */
.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    animation: fadeInLeft 0.8s ease-out forwards;
}
@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 4. Fade-in zprava */
.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    animation: fadeInRight 0.8s ease-out forwards;
}
@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 5. Mírný zoom-in s fade */
.zoom-in {
    opacity: 0;
    transform: scale(0.95);
    animation: zoomIn 0.7s ease-out forwards;
}
@keyframes zoomIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 6. Rotace s nástupem (např. pro ikony) */
.rotate-in {
    opacity: 0;
    transform: rotate(-15deg) scale(0.9);
    animation: rotateIn 0.8s ease-out forwards;
}
@keyframes rotateIn {
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* 7. Drop-in jako gravitací */
.drop-in {
    opacity: 0;
    transform: translateY(-200px) scale(0.9);
    animation: dropIn 1s cubic-bezier(0.2, 0.8, 0.4, 1.2) forwards;
}
@keyframes dropIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 8. Drift zprava jako "glide" */
.glide-in-right {
    opacity: 0;
    transform: translateX(80px) skewX(5deg);
    animation: glideInRight 1s ease-out forwards;
}
@keyframes glideInRight {
    to {
        opacity: 1;
        transform: translateX(0) skewX(0);
    }
}

/* 9. Rozmazaný nástup */
.blur-in {
    opacity: 0;
    filter: blur(10px);
    animation: blurIn 0.8s ease-out forwards;
}
@keyframes blurIn {
    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* 10. Reveal s výškou – jakoby "otevření" */
.reveal-down {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    animation: revealDown 0.6s ease-out forwards;
}
@keyframes revealDown {
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-600 { animation-delay: 0.6s; }