:root {
    --navsize: 8vh;
}

/* global style */
html {
    scroll-behavior: smooth !important;
    scroll-padding-top: 8vh;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Merriweather', sans-serif;
    background-color: #F2F8FB;
    font-size: 1em;
    line-height: 1.5;
}
.blue-text p, .blue-text li{
    color: rgba(24, 49, 83, 0.8) !important;
}
/*global elements style*/
a {
    text-decoration: none;
}
p{
    text-wrap: pretty;
    text-align: justify;
}

/*my global classes*/
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.flex-column{
    flex-direction: column;
}
.unstyled-list {
    list-style: none;
    padding-left: 0;
}

.heading {
    color: #17498B;
    font-size: 2.5em;
    font-weight: normal;
    margin: 2vh 0 0 0;
}

.heading-center {
    justify-content: center;
}

.heading-side {
    margin-left: 0.5vw;
}

.heading-wrap {
    text-align: center;
    width: fit-content;
}
.heading-publikace{
    margin-left: 0.5vw;
}
.heading-small{
    font-size: 1.5em;
}
.public-section {
    padding: 0 0 0 1vw;
    margin: 5vh 0;
}
.public-section a{
    text-decoration: underline;
}
.diagonal-underline {
    margin: 0 auto;
    width: 130%;
    background-color: #183153;
    transform: translate(-10%, 0);
    height: 5px;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0% 100%);
}
.diagonal-publikace{
    transform: translate(-3%, 0);
    width: 105%;
}

.page {
    padding: 1vh 2vw;
    margin: 3vh 0;
}

.button {
    margin-top: 2vh;
    background-color: #183153;
    color: white;
    height: 5vh;
    padding: 0 2vw;
}

.button > p {
    margin: 0;
}

.button:hover {
    background-color: #c6cedb;
    color: #183153;
    filter: drop-shadow(0px 4px 37px rgba(0, 0, 0, 0.2));
}

.pointer {
    cursor: pointer;
}

.text-center{
    text-align: center;
}
.tex-bold{
    font-weight: bold;
}
/*site components*/

/*navbar*/
.navbar {
    position: fixed;
    top: 0;
    height: var(--navsize);
    min-height: 60px;
    width: 100%;
    background: linear-gradient(to right, #102036, #183153);
    z-index: 1000;
}

.nav-wrap {
    margin: 0 2vw;
    display: flex;
    justify-content: space-between;
    height: 100%;
    align-items: center;
}

.logo-nav {
    height: 6vh;
    width: 6vh;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-nav {
    display: flex;
    gap: 3vw;
}

.menu-nav > li > a {
    color: white;
}

.menu-nav > li > a:hover {
    color: white;

    background-image: linear-gradient(#ffffff, #ffffff);
    background-size: 70% 2px;
    background-position: bottom left;
    background-repeat: no-repeat;

}

.contact-button {
    background-color: white;
    color: #164D97 !important;
    padding: 0.8em 1vw
}

.contact-button:hover {
    background-color: #164D97;
    color: white !important;
    padding: 0.8em 1vw;
    background-size: 0 2px !important;
}

/*banner*/
.banner {
    position: relative;
    margin-top: var(--navsize);
    height: calc(95vh - var(--navsize));
}

.banner > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0;
}

.main-screen-div-name {
    color: white;
    font-size: 1.5em;
    padding: 2vh 3vw 2vh 4vw;
    background: linear-gradient(to right, #102036, #183153);
    position: absolute;
    bottom: 10vh;
    right: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%);
}
.main-screen-div-name h1{
    font-size: 1em;
}
.main-screen-div-name p, h1{
    margin: 0;
}

.main-screen-div-name p.small{
    font-size: 0.7em;
}

/*services*/
.sluzby-canvas {
    margin-top: 2vh;
    flex-wrap: wrap;
    gap: 2vw;
    height: 60%;
}

.box {
    width: 23%;
    min-width: 250px;
    min-height: 20vh;
    background-color: white;
    border-radius: 25px;
    box-shadow: -5px 8px 40px #CCC;
}
.box:not(.person):hover {
    background: linear-gradient(to right, #102036, #183153);
    box-shadow: -5px 8px 40px #6b6b6b;
    cursor: pointer;
    color: #F2F8FB;
    transition: all 0.25s ease-out;

}

.box p {
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
}
.person{
    margin-top: 5vh;
    /*border: 3px solid #183153;*/
    width: fit-content;
    color: #183153;
    padding: 1.5vw 3vw;
}
.person p{
    margin-top: 0;
    font-size: 0.8em;
}
.person h3{
    margin: 0;
}

/*about*/

.about-info {
    flex: 70%;
}

.about-year-text {
    font-size: 1.5em;
}

.about-year-text-detail {
    color: rgba(24, 49, 83, 0.8);
}

.about-text {
    height: 20%;
    font-size: 19px;
    text-align: justify;
}

.line {
    width: 4px;
    background-color: rgba(24, 49, 83, 0.41);
    margin: 2vh 0;
}

.timeline-list {
    padding-left: 1em;
}

.timeline-list li {
    position: relative;
}

.timeline-list li:after {
    content: url('files/icons/blue_dot.svg.svg');
    position: absolute;
    left: calc(-1 * calc(1.5em + 3px));
    top: 5px;
    padding: 0;
}

.about-photo {
    width: 40vw;
    align-items: center;
}

.about-photo > img {
    width: 80%;
    height: auto;
    object-fit: contain;
}

/*reward*/
.odmena-list {
    width: 80vw;
    padding-left: 0;
}

.odmena-list > li {
    margin: 2vh 0;
}

/*contact*/
.contact {
    min-height: calc(100vh - var(--navsize));
    margin: 5vh 0 0 0;
    position: relative;
    padding: 3vw 0;
}

.contact-image {
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    filter: brightness(40%);
    width: 100%;
    height: 100%;
}

.kontakt-content {
    padding: 3vh 1vh;
    flex-direction: column;
}

.list {
    flex: 90%
}

.contact-info {
    background-color: white;
    height: 70%;
    width: 60%;
    border-radius: 25px;
    z-index: 100;
}

.contact-info > div {
    width: 50%;
}

.contact-list {
    height: 100%;
    margin: 0;
    justify-content: space-around;
}

.contact-list > li {
    margin: 1vh 0;
}

.contact-list, .contact-list > li {
    flex-direction: column;
    text-align: center;
}

.contact-heading {
    font-weight: bold;
    font-size: 1.2em;
    margin: 0.5vh 0;
}
.contact-list a {
    color: #17498B;
}
.contact-list > li > p {
    margin: 0;
}

.icon {
    height: 30px;
    width: 30px;
}

.map > iframe {
    border: 0;
    border-radius: 0 25px 25px 0;
}

/*footer*/
footer {
    padding: 1vh 0;
    background-color: #183153;
    font-size: 0.7em;
}

.footer-text {
    width: 80%;
    text-align: center;
    color: white;
}

.footer-text > p > a {
    color: white;
    text-decoration: underline;
}

.footer-links {
    justify-content: space-evenly;
}

.footer-link {
    display: inline-block;
    color: white;
    text-decoration: underline;
}

/*modals*/
.modal {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: modals 0.5s ease-in-out reverse;
}

.modal-content {
    background-color: #F2F8FB;
    padding: 2% 4%;
    max-height: 80%;
    width: 65%;
    overflow-y: auto;
    border-radius: 25px;
}
.modal-content li, .modal-content ul{
    margin: 1vh 0;
}
.modal-content h2 {
    color: #17498B
}

.modal-show {
    animation: modals 0.5s ease-in-out;
}

.content-flex {
    justify-content: space-between;
    align-items: center;
}

.content-flex > img {
    width: 1.5vw;
    height: auto;
    margin: 0 0 1vw 0;
}
.boxes-wrap{
    flex-wrap: wrap;
}

/*media queries*/
@media screen and (min-width: 900px){
    .box:not(.person):hover {
        font-size: 1.3em;
    }
}
@media screen and (max-width: 900px) {
    .person{
        padding: 2vw 4vw;
    }
    .boxes-wrap{
        display: flex;
        justify-content: center;
    }
    .page {
        padding: 0 6vw;
    }

    .about-wrap {
        flex-direction: column;
        align-items: center;
    }

    .main-screen-div-name {
        font-size: 1.2em;
    }

    .button {
        padding: 0 5vw;
    }
}

@media screen and (max-width: 700px) {
    .main-screen-div-name {
        padding: 2vh 5vw 2vh 2em;
    }

    .sluzby-canvas {
        margin-top: 4vh;
        gap: 3vh;
    }

    .contact-info {
        width: 80%;
        height: 90%;
        flex-direction: column;
        font-size: 0.8em;
    }

    .mobile-heading-center {
        justify-content: center;
    }

    .heading-publikace .heading{
        font-size: 1.5em;
    }

    .about-photo > img {
        width: 120%;
    }

    .contact-info > div {
        width: 100%;
    }

    .kontakt-content {
        flex: 60%
    }

    .map {
        min-height: 40%;
        margin-top: 2vh;
    }

    .map > iframe {
        border-radius: 0 0 25px 25px;
    }

    .contact-button {
        padding: 0.8em 2vw
    }

    .modal-content {
        padding: 5% 6%;
    }

    .content-flex > img {
        width: 3vw;
    }
}
.bars{
    display: none;
    flex-direction: column;
    gap: 1vh;
    cursor: pointer;
}
.cross{
    display: none;
    cursor: pointer;
}
.bar{
    height: 3px;
    background-color: white;
    width: 30px;
}

@media screen and (max-width: 700px) {
    .menu-nav{
        display: none;
    }
    .bars {
        display: flex;
    }
    .menu-show .bars{
        display: none;
    }
    .menu-show .nav-wrap{
        justify-content: space-evenly;
    }
    .menu-show .menu-nav{
        display: flex;
        flex-direction: column;
        gap: 4vh;
        align-items: center;
    }
    .menu-show{
        height: auto;
    }
    .menu-show .cross{
        display: block;
        filter: invert(100%);
    }
    .menu-show .cross img{
        height: 20px;
    }
}

.public-section a.mobile-href{
    display: none;
}

@media screen and (max-width: 400px) {
    .public-section a.mobile-href{
        display: initial;
    }
    .public-section a:not(.mobile-href){
        display: none;
    }
}

@keyframes modals {
    0% {
        display: flex;
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}