@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

* {
    box-sizing: border-box;
    font-family: 'Inter', 'Open Sans', sans-serif;
}

:root {
    --menu-color: #8D9F35;
    --logo-L: #2c6c0c;
    --logo-S: #413205;
    --color-footer: #35351b;
    --color-header-bkg: #8f8b53;
    --color-headlines: #35351B;
    scroll-behavior: smooth;
}

/* Custom ScrollBar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #444444;
}

::-webkit-scrollbar-thumb {
    background: rgb(39, 39, 39);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(46, 46, 46);
}

body {
    margin: 0;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 1);
    z-index: 1000;
    transition: opacity .5s .2s ease, visibility .5s .2s ease;
}

#overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

#container {
    /*kontejner, který zajišťuje to, že bude footer vždy úplně dole*/
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: auto;
    background-color: white;
    min-height: 100vh;
    min-width: 400px;
}

#content {
    /*vlastní obsah kromě patičky*/
    background-color: #eeeeee;
}

.fixed-width {
    max-width: 1200px;
    margin: auto;
}

.logo-L {
    color: var(--logo-L);
}

.logo-S {
    color: var(--logo-S);
}

#logoLS {
    height: 100px;
    margin-right: 20px;
}

#logoHead {
    display: flex;
}

#logoText {
    font-family: 'Open Sans', sans-serif !important;
}

#linkLogo {
    text-decoration: none;
    margin: auto;
}

nav {
    min-width: fit-content;
    max-width: fit-content;
    margin: auto;
}

header {
    background-color: var(--color-header-bkg);
    padding: 5px;
    padding-bottom: 15px;
}

#header {
    display: flex;
    flex-direction: column;
}

#titleImage {
    /*titulní obrázek, pomocí js vždy zaplnuje zbytek stranky*/
    background-image: linear-gradient(to bottom, rgba(132, 134, 131, 1), transparent),
        url("img/titleImage.jpg");
    background-position: top, top;
    background-size: 100% 100px, cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    padding: 20px 20px;
}


#titleImage svg path {
    fill: var(--menu-color);
}

#titleImage svg {
    animation: scale-up 1s infinite alternate ease-in-out;
    transform-origin: center;
    margin-bottom: 100px;
}

#titleImage h2 {
    color: var(--menu-color);
    background-color: rgba(53, 53, 27, .8);
    font-size: 1.8rem !important;
    padding: 10px;
    border-radius: 10px;
    margin: 0 0 120px 0;
    font-size: 1.5rem;
}

@keyframes scale-up {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.5);
    }
}

#ourAccount {
    color: red;
    text-align: center;
}

#ourAccount:hover {
    text-decoration: underline;
    cursor: pointer;
}

/*MENU ve formě seznamu*/
#menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    list-style-type: none;
    /* background-color: rgba(0, 0, 0, 0.45); */
    border-radius: 10px;
    /* box-shadow: 2px 2px 10px 3px rgba(0, 0, 0, .2); */
    font-size: 1.25em;
    font-weight: bold;
    margin: 0 auto;
    padding: 0;
    /* gap: 5px; */
}

/*dekorace prvku menu, animace*/
#menu li {
    padding: 10px;
    transition: transform .1s;
    border-radius: 10px;
    margin: 5px;
    box-shadow: 2px 2px 6px 1px rgba(0, 0, 0, .2);
    background-color: rgba(0, 0, 0, 0.35);
}

#menu li:hover {
    transform: scale(1.035);
    background: rgba(0, 0, 0, 0.25);
}

/*dekorace odkazu v menu + při najetí*/
#menu li a {
    color: var(--menu-color);
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

#menu li a:hover {
    text-decoration: underline;
}

#current-page {
    /*identifikátor aktuální stránky (pokud je v menu) a zvýrazní ji*/
    color: rgba(0, 0, 0, 0.685);
    background-color: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
}

main {
    /* background-color: rgba(0, 0, 0, .05); */
    border-radius: 5px;
    margin-top: 20px;
    padding: 5px 20px;
    /* max-width: 90vw; */
    margin: auto;
}

/*styly pro obsah*/
main>h3 {
    /* styl nadpisu obsahu*/
    color: var(--color-headlines);
    font-weight: bolder;
}

main article {
    /*selektor sourozence/následníka, vybere článek následující názvu obsahu */
    border-radius: 5px;
    color: rgb(0, 32, 91);
    font-size: 1rem;
    font-weight: 400;
    text-align: justify;
    /* padding-bottom: 20px; */
}

/*obrázek s popiskem*/
.img-container {
    margin: 10px auto;
}

.img-container img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 5px 2px rgba(0, 0, 0, .5);
}

.clear-float {
    clear: both;
}

.articleImage-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/*patička*/
footer {
    min-height: 30px;
    background-color: var(--color-footer);
    padding: 10px;
    color: #ddd;
}

#footerColumns {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    max-width: 90vw;
}

.footerInline {
    display: inline-block;
    margin-left: 8px;
}

footer>div {
    margin: 0 5px;
}

footer svg path {
    fill: var(--menu-color)
}

.footerIconsFlex {
    display: flex;
    align-items: center;
}

.hide {
    display: none;
}

a:visited {
    text-decoration: none;
}

/*univerzální třída pro odkazy*/
.link {
    color: rgb(0, 98, 179);
    text-decoration: none;
    transition: font-weight .1s;
}

.link:hover {
    font-weight: bold;
}

/*třída pro tlačítko nahoru*/
.up {
    text-align: right;
}


/*responsivita*/



@media screen and (min-width: 650px) {
    #footerColumns {
        flex-direction: row;
        align-items: start;
    }

    main article .img-container {
        max-width: 650px;
    }

    .hide {
        display: block;
    }

    .show {
        display: inline;
    }

}

@media screen and (min-width: 700px) {}

@media screen and (min-width: 800px) {
    #header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .articleImage-wrap {
        flex-direction: row;
        gap: 25px;
    }

    .articleImage-wrap>.img-container {
        min-width: 35%;
    }

    #titleImage h2 {
        margin: 0 0 80px 0;
    }
}

@media screen and (min-width: 1000px) {
    .secLansperk {
        max-width: 1000px;
        margin: auto;
    }
}

@media screen and (min-width: 1100px) {
    #titleImage {
        background-image: linear-gradient(to bottom, rgba(132, 134, 131, 1), transparent), url(img/titleImageWide.jpg);
    }
}

@media screen and (min-width: 1200px) {
    .secLansperk .article-wrap {
        max-width: 450px;
    }

    .secLansperk__Hrad.articleImage-wrap {
        flex-direction: row-reverse;
    }

    .secLansperk__Hrad {
        margin-left: -8%;
    }

    .secLansperk__Kaple {
        margin-right: -8%;
    }
}

@media screen and (min-width: 1400px) {
    .secLansperk__Hrad {
        margin-left: -19%;
    }

    .secLansperk__Kaple {
        margin-right: -19%;
    }
}

@media screen and (min-width: 1500px) {
    .secLansperk__Hrad {
        margin-left: -25%;
    }

    .secLansperk__Kaple {
        margin-right: -25%;
    }
}

@media screen and (max-height: 550px) {
    #titleImage {
        background-position: top, center -50px;
    }

    #titleImage svg {
        margin-bottom: 50px;
    }

    #titleImage h2 {
        margin-bottom: 50px;
    }

    header {
        padding-bottom: 0px;
    }
}

@media screen and (max-height: 450px) {
    #titleImage {
        background-position: top, center -100px;
    }

    #titleImage svg {
        margin-bottom: 25px;
        width: 40px;
        height: 40px;
    }

    #titleImage h2 {
        margin-bottom: 30px;
        font-size: 1.5rem !important;
    }
}