.slide-up {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUpAnim 0.9s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes slideUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #cfe8fc;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* Bílý obdélník inspirací podle předlohy */
.header-background {
    width: 100vw;
    height: 220px;
    background: white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    margin-top: 30px;
    box-sizing: border-box;
    padding-top: 40px;
}

/* Květinové dekorace v rozích obdélníku */
.header-background::before,
.header-background::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 200px;
    top: 10px;
    background: url('frame.jpg') no-repeat center/contain;
    z-index: 2;
}

.header-background::before {
    left: 30px;
    transform: scaleX(-1);
}

.header-background::after {
    right: 30px;
}

.header-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: center;
    justify-content: center;
    z-index: 5;
    position: relative;
}

.header-content > div:first-child {
    font-size: 80px;
    display: flex;
    gap: 80px;
    margin-top: 30px;
}

.header-content > div:last-child {
    font-size: 40px;
    display: flex;
    gap: 180px;
    margin-bottom: 10px;
    margin-top: 0;
}

main {
    margin-top: 0;
    padding-top: 40px;
}

main section > div {
    font-size: 20px;
    font-family: 'Montserrat', Arial, sans-serif;
    margin-bottom: 40px;
    color: black;
    text-align: center;
}

h1 {
    text-align: center;
    font-size: 35px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: normal;
    border-radius: 30px;
    padding: 20px;
    display: inline-block;
    background: #f0f0f0;
    margin: 30px auto;
    color: royalblue;
}

nav {
    display: flex;
    margin-top: 100px;
    margin-bottom: 80px;
    justify-content: center;
    align-items: center;
    gap: 100px;
}

nav > button {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 25px;
    padding: 10px;
    height: 80px;
    width: 160px;
    border-radius: 30px;
    cursor: pointer;
    border: none;
}

nav > button:hover {
    color: steelblue;
    animation: btnPulse 0.5s;
}

@keyframes btnPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.07);
    }
    100% {
        transform: scale(1);
    }
}


table {
    border-collapse: collapse;
    font-size: 30px;
    width: 1000px;
    margin-bottom: 100px;
    margin-left: 350px;
    border-color: #cfe8fc;
}

td {
    font-family: 'Montserrat', Arial, sans-serif;
    text-align: center;
    padding: 8px 16px;
    color: black;
}

.headline-img,
.barvy,
.qr {
    display: block;
    margin: 40px auto;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.headline-img {
    width: 90%;
    max-width: 600px;
    height: 300px;
    background-image: url('nadpis.png');
}

.barvy {
    width: 90%;
    max-width: 400px;
    height: 110px;
    background-image: url('colors.png');
}

.qr {
    width: 90%;
    max-width: 300px;
    height: 300px;
    background-image: url('qr.jpg');
}


p {
    font-size: 20px;
    max-width: 700px;
    margin: 20px auto;
    padding: 0 20px;
    line-height: 1.6;
    text-align: center;
    color: black;
}

@media only screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    .headline-img,
    .barvy,
    .qr {
        width: 90%;
        max-width: 400px; /* můžeš upravit */
        height: 300px; /* pokud to nestačí, nastav pevnou výšku, třeba 200px */
        min-height: 150px; /* aby měl box nějakou minimální výšku */
        margin-left: auto;
        margin-right: auto;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        display: block;
    }

    main section > div {
        flex-direction: column;
        font-size: 20px;
        gap: 10px;
        margin-bottom: 30px;
        text-align: center;
        padding: 0 10px;
    }

    p {
        font-size: 18px;
        margin: 20px auto;
        padding: 0 16px;
        max-width: 90%;
        line-height: 1.6;
        text-align: center;
    }

    h1 {
        font-size: 26px;
        padding: 12px;
        margin: 20px auto;
        text-align: center;
    }

    table {
        width: 90%;
        font-size: 18px;
        margin: 20px auto 40px;
    }

    td {
        padding: 10px;
    }

    .header-background {
        width: 100%; /* menší než full šířka */
        max-width: 400px; /* nebo jakákoliv rozumná šířka pro mobil */
        margin: 30px auto 0 auto; /* nahoře 30px, vlevo a vpravo auto pro centrování */
        height: 200px; /* nebo pevná výška, pokud chceš */
        padding-top: 20px; /* můžeš zmenšit odsazení nahoře */
        box-sizing: border-box;
    }

    .header-background::before,
    .header-background::after {
        width: 70px; /* zmenšeno z 500px */
        height: 90px; /* zmenšeno z 200px */
        top: 15px; /* upravená pozice shora */
        background-size: contain;
    }

    .header-background::before {
        left: 10px; /* blíž ke kraji, aby to nepřesahovalo */
        transform: scaleX(-1);
    }

    .header-background::after {
        right: 10px; /* blíž ke kraji */
    }

    .header-content > div:first-child {
        font-size: 40px; /* menší text, aby se vešel */
        gap: 40px; /* menší mezery mezi prvky */
        margin-top: 10px;
    }

    .header-content > div:last-child {
        gap: 80px;
        margin-bottom: 5px;
        margin-top: 0;
    }

    .slide-up {
        opacity: 0;
        transform: translateY(40px);
        animation: slideUpAnim 0.9s cubic-bezier(.4, 0, .2, 1) forwards;
    }

    nav {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        align-items: center !important;
        margin: 40px 0 !important;
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    nav > button {
        font-size: 30px !important;
        width: 90% !important;
        max-width: 220px !important;
        height: 80px !important;
        padding: 0 20px !important;
        border-radius: 50px !important;
        cursor: pointer !important;
        border: none !important;
        display: block !important;
        text-align: center !important;
        transition: background-color 0.3s ease, color 0.3s ease;
        font-family: 'Montserrat', Arial, sans-serif !important;
        font-weight: 400 !important; /* nebo 700 podle toho, co používáš */
        outline: none; /* zruší modrý okraj po kliknutí/focuse */
    }

    nav > button:focus,
    nav > button:active {
        font-family: 'Montserrat', Arial, sans-serif !important;
        font-weight: 400 !important; /* stejné jako normální stav */
        outline: none !important;
        transform: scale(1);
    }

    nav > button.clicked {
        color: steelblue !important;
        transform: scale(0.95) !important;
        transition: transform 0.3s ease, color 0.3s ease;
    }

}




