:root{
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 400;
    height: auto;
    width: auto;

    background-color:#333;

    color: #fff;
    --color1: #835;
    --colorA: #f5a425;
    -webkit-font-smoothing: antialiased;
    
}

div, body, header, content, footer{
    box-sizing: border-box;
}
body {
    width:100%;
    padding:0; margin:0;
    background: url("images/backHome.jpg");
    background-repeat: none;
    background-size: cover;
    background-position-x: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
a {color: var(--colorA); font-weight: normal; text-decoration:none;}
a:link {color: var(--colorA); text-decoration:none;}
a:visited {color: var(--colorA); text-decoration:none;}
a:hover {color: #fff; text-decoration:none;}
a:active {color: var(--colorA); text-decoration:none;}
h1, span.h1 {font-size: 18pt; font-weight: bold; line-height: 1.2;}

h1{
    width:100%;
    text-align: right;
}
h1::after{
    position:absolute;
    content:"";
    display:block;
    width:50%;
    border-bottom:2px solid #fff;
    right:4vw;
}
section.intro h1{
    width:auto;
    text-align:left;
}
section.intro h1::after{
    display:none;
}

header{
    display:block;
    width:100%;
    background-color:rgba(250, 250, 250, 0.15);
}
#menuIcon {display:none;}
header>div{
    letter-spacing:2px;
    font-size: .8em;
    width:100%;
    text-align:left;
    color: white;
    display:flex;
    flex-direction:row;
    justify-content: space-between;
    margin-bottom:0;
    white-space: nowrap;
    line-height:1.5em;
    background-color:#222;
    padding:5px 4vw;
}
header>div strong{margin-left:2rem; color: #f5a425; font-weight:normal;}
footer>p strong{color: #f5a425; font-weight:normal;}

header a,header a:link, header a:visited,
footer a,footer a:link, footer a:visited{color:#fff}
header nav{
    padding: 30px 4vw;
    text-transform: uppercase;
    display: flex;
    flex-direction: row;
    justify-content: end;
    column-gap: 4vw;    
    letter-spacing:2px;
}
header nav a:nth-child(6){
    display:none;
}
footer{
    display:flex;
    flex-direction: row;
    color:#fff;
    background-color:#111;
    width:100%;
    font-size:.8em;
    justify-content:space-between;
    place-items: center;
    padding: 0 20px;
    margin-top:auto;
}
main{
    padding: 1rem 4vw;
    background-color: #3338;
    flex-grow:1;
}
main>section{
/*    width: max(800px, 50%);*/
    width:100%;   
}

section.intro{
    display:flex;
    flex-direction:row;
    justify-content: space-between;
    place-items:center;
}
component-news{
    max-width:100%;
    display:flex;
    flex-direction:row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    row-gap: 2rem;
    background-image: linear-gradient(to bottom, #3338 6rem, #222 6rem);
    padding-bottom:3rem;
}


dialog article, component-news article{
    flex-shrink:0;
    flex-grow:1;
    display:block;
    width:250px;
    margin: 0 3rem;
    background-color: var(--color1);
    max-height:300px;
    overflow:hidden;
    border: 2rem solid var(--color1);
    border-top:.5em solid var(--color1);
    border-bottom:.5em solid var(--color1);
    border-bottom:none;
}
dialog>article{
    margin:0;
    width:auto;
    height:auto;
    color:white;
    max-height:none;
}

component-news article[is-over]::after{
    display:block;
    font-size:.8em;
    content:"... Číst celé";
    text-align: right;
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    height: auto;
    width: 100%;
    padding:0;
    margin:0;
    background-color: inherit;
    box-shadow: 0 0 10px 8px var(--color1);
}
component-news article>h3{
    width:100%;
    height:35%;
    display:flex;
    place-content: center;
    place-items: center;
    text-align: center;
    border-bottom: solid .5px white;
    margin:0;
    
}
component-news article>div{
    display: block;
}

article>var{
    display: none;
}

div.animLectors{
    display:flex;
    width:400px;
    height:400px;
    place-items: center;
    place-content: end;
    flex-shrink:0;
    
}
div.animLectors>a{
    visibility:hidden;
    animation: animLectors 40s infinite;
    display:block;
    text-align:center;
    position:absolute;
    margin:0;
    padding:0;
    flex-shrink:1;
    max-width:380px;
    color:#fff;
}
div.animLectors>a>figure{
    display:flex;
    flex-direction:column;
    text-align:center;
    margin:0;
    padding:0;
    text-align:center;
    flex-shrink:1;
    max-width:380px;
}

div.animLectors figure>img{
    height:355px;
    width:320px;
    object-fit: contain;
    margin:0;
}
@keyframes animLectors {
    0% {transform: scale(0,1); visibility:visible}
    2% {transform: scale(1);visibility:visible}
    17% {transform: scale(1);visibility:visible}
    19% {transform: scale(0,1);visibility:visible}
    100% {transform: scale(0,1);visibility:visible}
}
div.animLectors a:nth-child(1){
}
div.animLectors a:nth-child(2){
    animation-delay:8s;
}
div.animLectors a:nth-child(3){
    animation-delay:16s;
}
div.animLectors a:nth-child(4){
    animation-delay:24s;
}
div.animLectors a:nth-child(5){
    animation-delay:32s;
}
main>article{
    margin-bottom:4rem;
}
main>article>h2{
    width:100%;
    text-align: left;
    box-sizing:border-box;
}
main.bigH2 h2{
    background-color:var(--color1);
    color:#fff;
    padding-left:.5em;
}
main.bigH2>article{
    clear:both;
}
article>aside{
    display:flex;
    flex-direction:column;
    width:250px;
    float: right;
    background-color: var(--colorA);
    color:#000;
    padding: 0 1rem .5rem 1rem;
    margin:0 -10px 2rem 2rem;
    place-content:center;
    text-align:center;
}

article>aside>h3{
    width:100%;
    border-bottom: 1px solid #000;
    text-align:center;
    font-weight: 600;
    font-size: 1.1em;
}
article>aside a,article>aside a:link, article>aside a:visited{font-weight:bold;color:var(--color1)}

main.center{
    text-align:center;
}
main.center h1{
    text-align: center;
    margin-bottom:3rem;
}
main.center h1::after{
    position:absolute;
    content:"";
    display:block;
    width:50px;
    height:1rem;
    border-bottom:3px solid #fff;
    left:calc(50% - 25px);
}
    
main.ponesicky img{
    float:right;
    margin: 1rem 0 0 1rem;
    width: 13%;
}
/*
main>article>h2::after{
    position:absolute;
    content:"";
    display:block;
    width:50%;
    border-bottom:1px solid #fff;
    left:2rem;
}
*/
main>article>img{
    float:left;
/*    width:20%;*/
    margin: 0 2rem 2rem 0;
}

div.flexAndImage{
    display: grid;
    gap: 3rem;
    grid-template-columns: auto minmax(250px, 500px);
}

div.flexAndImage>*{
    width: 100%;
    height: 100%;
    
}

div.flexAndImage>*:nth-child(2){
}

div.imageRight{
    display: grid;
    gap: 3rem;
    grid-template-columns: auto 1fr;
}
/*
div.imageRight>*{
    flex-shrink:1;
    flex-grow:1;
}
*/
div.imageRight>*:nth-child(2){
    aspect-ratio: 1;
}
div.image{
    background-size: contain;
    background-repeat: no-repeat;
}
/* ------------------- Send email ---------- */
form{
    background-color: var(--color1);
    padding:1rem 2rem;
    text-align:center;
    max-width: 1060px;
    margin: 3rem auto;
}
form>fieldset{
    display: grid;
    gap: 0 3rem;
    padding: 1rem 2rem;    
    grid-auto-flow: column;
    text-align:left;
    grid-template-rows: .5fr 1fr .5fr 1fr;
    grid-template-columns: 1fr 1fr;
}
form>fieldset>legend{
    padding: 0 .5rem;
    margin-left: -.5rem;
}
    
form>fieldset:last-of-type{
    grid-template-rows: .5fr 1fr .5fr 5fr;
    grid-template-columns: 1fr;
}

input, select{
    font-size: 14px;
    border-radius: 5px;
    border: 1.5px solid #aaa;
    padding:5px;
    margin:5px;
}

input[notValid="1"]:invalid, input[badInput="1"], div[notValid="1"]{
    border-color:red;
}
textarea{
    font-size: 15px;
    border-radius: 7px;
    border: 1.5px solid #aaa;
    padding:5px 10px;
    box-sizing:border-box;
}
fieldset{
    margin: 0 0 20px 0;
}
form button{
    color:#000;
    background-color: var(--colorA);
    padding: 10px 20px;
    border-radius:10px;
    font-weight:500;
    border:none;
    font-size:1.2em;
    width:33%;
}
/* ------------------- Dialog --------------
/*   Open state of the dialog  */
dialog[open] {
  opacity: 1;
  transform: scaleY(1);
}

/*   Closed state of the dialog   */
dialog {
  opacity: 0;
  position:fixed;
  inset:0;
  padding:0;
  transform: scaleY(0);
  transition: all 0.7s allow-discrete;
  border: none;
  box-shadow:#000 10px 10px 15px;
  overflow:visible;
}
dialog::before{
    content:"✕";
    display:block;
    position:fixed;
    float:right;
    margin-left:calc(100% - 40px);
    margin-top:0px;
    font-size:36px;
    width:40px;
    height:40px;
    color:#fff;
    line-height:40px;
    text-align:center;
    vertical-align:top;
/*    background-color:#222a;*/
}

dialog::backdrop {
  background-color: rgb(0 0 0 / 0%);
  transition:
    display 0.5s allow-discrete,
    overlay 0.5s allow-discrete,
    background-color 0.7s;
}

dialog[open]::backdrop {
  background-color: #6668;
}
dialog.alert, dialog.error, dialog.info, dialog.dialog{
    padding: 1rem;
    border-radius: 10px;
}
dialog.alert, dialog.error, dialog.info{
    background-color: var(--colorA);
    color:#000;
}
dialog.dialog{
    background-color: var(--color1);
    color:#fff;
}
dialog.alert::before, dialog.error::before, dialog.info::before, dialog.dialog::before{
    margin-left:calc(100% - 40px - 2rem);
}

 

@starting-style {
  dialog[open] {
    opacity: 0;
    transform: scaleY(0);
  }
  dialog[open]::backdrop {
    background-color: rgb(0 0 0 / 0%);
  }
}


@media only screen and (max-width: 960px) {
    header>div>span:first-child{
        display:none;
    }
    header>div:first-child:before{
        display:inline;
        content:'LIPPP';
    }
}
@media only screen and (max-width: 750px) {
    body{
        background: #333;
    }
    header{
        position:sticky;
        top:0;
        z-index:1;
        background-color:transparent;
        overflow: hidden;
        box-shadow: 0px 0 5px 5px #000;
    }
    body[menuOpened] header{
        box-shadow: none;
    }
    header>div:first-child{
        padding:0 0 0 1rem;
/*        box-shadow: 0px 0 5px 5px #000;*/
    }
    header>div:first-child:before{
        font-size:36px;
        font-weight:600;
        line-height:50px;
    }
    header>div:first-child>span{
        display:none;
    }
    header nav{
        padding:2vh 4vw;
        display:none;
        flex-direction:column;
        row-gap:2vh;
    }
    body[menuOpened] header nav{
        display:flex;
    }
    header nav a{
        border-bottom: 1px solid var(--colorA);
        padding: .5vh 0 1vh 0;
/*        line-height:min(24px, 4vh);*/
        font-size:min(20px,4vh);
    }
    header nav a:nth-child(6){
        display:inherit;
    }
    
    #menuIcon {
        display: block;
        cursor: pointer;
        color:#000;
        background-color:#fff;
        width:50px;
        height:50px;
        text-align:center;
        padding: 5px 0 0 0;
        box-sizing:border-box;
        margin:0;
    }

    #menuIcon>div {
        display:block;
        width: 35px;
        height: 5px;
        background-color: #222;
        margin: 6px 7.5px;
        transition: 0.4s;
        
    }
    footer>a:last-child{
        display:none;
    }
    body[menuOpened] #menuIcon>div:nth-child(1) {
        transform: translate(0, 11px) rotate(-45deg);
    }
    body[menuOpened] #menuIcon>div:nth-child(2) {opacity: 0;}
    
    body[menuOpened] #menuIcon>div:nth-child(3) {
        transform: translate(0, -11px) rotate(45deg);
    }


    body[menuOpened]>main, body[menuOpened]>component-news{
        display:none;
    }

    div.animLectors{
        display:none;
    }
    div.imageRight>div.image{
        display:none;
    }
    div.flexAndImage{
        grid-template-columns: 1fr;
    }
    form{
        padding: .5rem 0;
        margin: 1rem -1rem;
    }
    form>fieldset{
        grid-template-columns: 1fr;
        grid-template-rows: .5fr 1fr .5fr 1fr .5fr 1fr .5fr 1fr;
        border-left:none;
        border-right:none;
        border-bottom:none;
    }
    form>button{
        width:auto;
    }
    dialog article, component-news article {
        margin: 0 0rem;
    }
    article>aside{
        float:none;
        margin: 0 auto 1rem auto;
    }
    main.bigH2 h2{
        margin: 2rem -4vw 1rem -4vw;
        width: calc(100% + 8vw);
        padding-right:1em;
        box-sizing:border-box;
    }
}
