@font-face {
    font-family: birdgo;
    src: url(Birdgo.otf);
}

@font-face {
    font-family: ComicNeue;
    src: url(ComicNeue-Regular.ttf);
    font-weight: normal;
}

html {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    filter: gray;
    filter: grayscale(100%);
    animation: toColor 4s ease-in;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    font-size: 1vw;
}

body {
    display: flex;
    align-items: center;
    flex-direction: column;
    font-family: "ComicNeue";
    background-image: linear-gradient(to top, #d7dde6 40%, #2EB5E5 80%);
    background-size: 100vw, 100vh;
    background-attachment: fixed;
    overflow-x: hidden;
}

@keyframes toColor {
    0% {
        -webkit-filter: grayscale(100%);
        -moz-filter: grayscale(100%);
        filter: grayscale(100%);
        filter: gray;
    }

    100% {
        -webkit-filter: grayscale(0%);
        -moz-filter: grayscale(0%);
        filter: grayscale(0%);
    }
}

.spacer1 {
    height: 1rem;
}

.spacer {
    height: 2rem;
}

.spacer4 {
    height: 4rem;
}

.navbarContainer {
    font-size: min(6vw, 30px);
}

.navbar {
    display: flex;
    align-items: stretch;
    flex-direction: row;
    background: rgb(2, 0, 36);
    background: linear-gradient(90deg, rgba(9, 9, 121, 1) 0%, rgba(0, 121, 255, 1) 100%);
    border: white;
    border-style: solid;
    border-width: 0.5em;
    border-radius: 0.75em 1.5em;
    box-shadow: 1em 1em 1em gray;
    padding: 0.3em;
}

.navbar a {
    color: #f2f2f2;
    text-align: center;
    padding: 0.5em 1em;
    text-decoration: none;
    border: rgba(0, 0, 0, .0);
    border-radius: 1.5em 0.75em;
    border-width: 0.3em;
    border-style: solid;
    transition: 0.5s;
    margin: 0.2em;
    display: block;
    font-weight: bold;
}

.navbar a:hover {
    border: white;
    border-style: solid;
    border-width: 0.3em;
    border-color: white;
    border-radius: 0.75em 1.5em;
    color: black;
    animation: shake 0.2s;
    animation-iteration-count: 1;
    background-color: color-mix(in srgb, yellow 90%, white);
}

.subnav-content {
    background: rgb(2, 0, 36);
    background: linear-gradient(90deg, rgba(9, 9, 121, 1) 0%, rgba(0, 121, 255, 1) 100%);
    font-size: 1em;
    padding: 4px;
    width: 100%;
    z-index: 2;
    overflow: hidden;
    position: absolute;
    display: block;
    width: max-content;
    border: white;
    border-style: solid;
    border-width: 0.5em;
    border-radius: 0.75em 1.5em;
    padding: 0;
    max-height: 0;
    opacity: 0;
    transition: 0.5s;
    transform: translateX(-25%);
}

.subnav:hover .subnav-content {
    max-height: 100%;
    opacity: 1;
}

.subnavItem {
    color: white;
    text-decoration: none;
    transition: 0.5s;
}

.subnavItem:hover {
    background-color: #ccc;
    color: black;
}

.headerAndNavbarBelow {
    display: contents;
}

.main {
    text-align: left;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
    width: min(80vw, 900px);
    margin: 0;
}

.offer li {
    font-size: min(5vw, 1.5em);
    padding-bottom: 15px;
    font-weight: bolder;
}

@keyframes move {
    50% {
        transform: translateY(-10px);
    }
}

.introContainer {
    background-color: lightgreen;
    rotate: -2deg;
    z-index: 1;
}

.intro {
    text-align: left;
    padding: 30px;
    width: min(80vw, 900px);
    margin: 0;
}

.motto {
    font-weight: bold;
    font-style: oblique;
    font-size: min(3vw, 2em);
}

.marian {
    float: right;
}

.regionContainer {
    background-color: #331800;
    rotate: 1deg;
}

.region {
    color: #ccc;
    text-align: center;
    font-weight: bold;
    padding: 30px;
    margin: 0;
    width: min(80vw, 900px);
    font-size: min(5vw, 1.5em);
}

.kontaktAObjednavka {
    color: #ccc;
    padding: 30px;
    margin: 0;
    width: min(80vw, 900px);
}

.footerContainer {
    background-color: #331800;
    rotate: -1deg;
}

.footer {
    color: #ccc;
    text-align: center;
    padding: 30px;
    margin: 0;
    width: min(80vw, 900px);
}

.footer a {
    color: white;
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

@media screen and (max-width: 900px) {
    .navbar {
        flex-direction: column;
        background: linear-gradient(0deg, rgba(9, 9, 121, 1) 0%, rgba(0, 121, 255, 1) 100%);
    }

    /*.navbarContainer {
        font-size: 4rem;
    }*/

    .subnav {
        flex-direction: column;
    }
}

.gallery {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.gallery img {
    border-radius: 0.5em 0.25em;
}

.popup-image {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .9);
    height: 100%;
    width: 100%;
    z-index: 100;
    display: none;
}

.popup-image span {
    position: absolute;
    top: 0;
    right: 5%;
    font-size: 10vh;
    font-weight: bolder;
    color: #fff;
    cursor: pointer;
    z-index: 100;
}

.popup-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid #fff;
    border-radius: 0.75em 1.5em;
    max-width: 90%;
    max-height: 90%;
    object-fit: cover;
}

.pricelist {
    text-align: center;
    max-width: fit-content;
    border: black;
    border-color: black;
    border-radius: 1.5em 0.75em;
    border-width: 0.3em;
    border-style: solid;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5em;
}

table {
    margin-left: auto;
    margin-right: auto;
}

th,
td {
    text-align: center;
    padding: 2px;
}

a {
    white-space: nowrap;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}