/*
.roboto-flex-<uniquifier> {
    font-family: "Roboto Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
    font-variation-settings:
      "slnt" 0,
      "wdth" 100,
      "GRAD" 0,
      "XOPQ" 96,
      "XTRA" 468,
      "YOPQ" 79,
      "YTAS" 750,
      "YTDE" -203,
      "YTFI" 738,
      "YTLC" 514,
      "YTUC" 712;
}
*/

:root {
    --primary-blue: #007bff;
    --light-blue: #449eff;
    --dark-blue: #004da0;
    --white: #f3f3f3;
    --black: #000;
    --grey: #575757;
    --light-grey: #cecece;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /*pri odkazovani na id tak se scrolne a bude uproster obrazovky*/
}

body {
    font-family: "Roboto Flex", sans-serif;
    font-weight: 400;
    font-size: 16px;
    text-align: center;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    background-color: var(--white);
}

body.show {
    overflow: hidden;
}

sup {
    font-size: 0.7em;
}

li {
    list-style: none;
}

ul {
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--white);
}

h1 {
    margin: 0;
    font-size: 2rem;
    color: var(--white);
    z-index: 5;
    font-weight: 900;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

h4 {
    margin: 0;
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 500;
}

section {
    margin-bottom: 25px;
    padding: 5vw;
}

section a {
    color: var(--primary-blue);
}

.first a {
    font-weight: 600;
    text-decoration: underline;
}

.first a:visited {
    color: var(--dark-blue);
}

bold {
    font-weight: 600;
}

header::before,
header::after {
    z-index: 10;
}

header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
    margin: 0;
    background-color: var(--primary-blue);
    z-index: 10;
}

.menu-icon {
    font-size: 25px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    z-index: 10;
}


nav li {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1vh;
}

nav li a {
    margin-bottom: 20px;
    text-transform: uppercase;
    padding: 5px;
    display: block;
    width: 100%;
    border-bottom: 2px solid var(--white);
}

.nav {
    filter: drop-shadow(0 2px 5px rgba(black, 0.5));
    border-radius: 0 0 50px 50px;
    padding-bottom: 5vh;
    width: 100%;
    position: absolute;
    top: -100vh;
    transition: top 0.3s ease-in-out;
    background-color: var(--primary-blue);
    z-index: 10;
}

.nav.show {
    top: calc(100px + 77.5px);
}

.overlay {
    position: fixed;
    top: calc(100px + 79px);
    left: 0;
    width: 100%;
    height: calc(100%);
    background: rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s ease-in-out;
    visibility: hidden;
    opacity: 0;
    z-index: 5;
    padding: 0;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 2px 2px 2px #00000055,
        -2px -2px 2px #00000055;
    margin: 25px auto;
    width: 70%;
    text-align: center;
    border: 3px solid var(--primary-blue);
    border-radius: 10px;
}

.card ul {
    margin: 10px auto;
    margin-top: 0;
    max-width: 90%;
}

.card li {
    margin: 10px;
    text-align: left;
    list-style-position: outside;
    list-style-type: disc;
}

.card li::marker {
    color: var(--light-blue);
}

.card>div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.card>div>div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

span {
    white-space: nowrap;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.2rem;
}

.icon {
    width: 50px;
    height: 50px;
}

.icons {
    display: flex;
    justify-content: center;
    align-items: center;
}

.arrow {
    font-size: 20px;
    font-weight: bolder;
}

.line {
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
    margin: 2.5vh auto;
    background-color: var(--light-blue);
    width: 80%;
    height: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.circle {
    border-radius: 50%;
    width: 15px;
    height: 15px;
    background-color: var(--light-blue);
}

footer {
    margin: 0;
    color: var(--white);
    background-color: var(--black);
    padding: 20px;
}

footer>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

footer p {
    color: var(--grey);
    margin: 5px;
}

footer h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

footer ul {
    margin-top: 0;
}

footer a {
    color: var(--grey);
    text-decoration: underline;
}

footer li {
    margin: 10px;
}

text {
    text-align: center;
    line-height: 2;
    font-weight: 600;
    font-size: 50px;
}

.autodoprava {
    display: flex;
    justify-content: center;
    align-items: center;
}

.odkaz {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.callus {
    font-style: italic;
}

.zkratky a {
    color: var(--black);
}


blockquote {
    font-style: italic;
}

table {
    border-collapse: separate;
    border-spacing: 0;
    width: 80%;
    margin: 15px auto;
}

table tr th,
table tr td {
    border-right: 2px solid var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
    padding: 10px;
}

table tr th:first-child,
table tr td:first-child {
    border-left: 2px solid var(--primary-blue);
}

table tr th {
    background: var(--light-blue);
    text-align: center;
    box-shadow: 0 1px 2px var(--grey);
}

/* top-left border-radius */
table tr:first-child th:first-child {
    border-top-left-radius: 6px;
}

/* top-right border-radius */
table tr:first-child th:last-child {
    border-top-right-radius: 6px;
}

/* bottom-left border-radius */
table tr:last-child td:first-child {
    border-bottom-left-radius: 6px;
}

/* bottom-right border-radius */
table tr:last-child td:last-child {
    border-bottom-right-radius: 6px;
}

table tr:first-child th:last-child {
    border-top: 2px solid var(--primary-blue);
}

.sideways tr th {
    box-shadow: 1px 0 2px var(--grey);
}

.sideways tr:first-child td {
    border-top-right-radius: 6px;
    border-top: 2px solid var(--primary-blue);
}

.sideways tr:last-child th {
    border-bottom-left-radius: 6px;
}

.multiple tr:last-child th {
    border-bottom-left-radius: 6px;
}

.multiple tr th {
    box-shadow: 1px 0 2px var(--grey);
}

.multiple tr:first-child th {
    box-shadow: 0 1px 2px var(--grey);
}

.multiple tr th {
    position: sticky;
    left: 0;
}

.multiple tr:first-child th:last-child {
    text-align: left;
    z-index: 0;
}

.multiple tr:first-child th:first-child {
    margin: 5px;
    z-index: 1;
}

.overflow {
    overflow-x: auto;
}

.landingpage {
    width: 80%;
    margin: 0 auto;
}

.landingpage>p {
    margin: 20px;
}

th p {
    width: fit-content;
    position: sticky;
    left: 85px;
    padding: 5px;
    margin: 0;
}

#B:target,
#T:target,
#BT:target,
#C:target,
#CE:target,
#B-T:target,
#C-D:target,
#B-D:target,
#B-CD:target {
    animation: highlight 1.75s ease-out 1;
}

@keyframes highlight {

    0%,
    40% {
        box-shadow: 2px 2px 2px #00000055,
            -2px -2px 2px #00000055;
    }

    50%,
    80% {
        box-shadow: 2px 2px 10px #000000,
            -2px -2px 10px #000000;
        /* Initial highlight */
    }

    100% {
        /* Instantly revert */
        box-shadow: 2px 2px 2px #00000055,
            -2px -2px 2px #00000055;
    }
}

@media screen and (min-width: 768px) {
    text {
        font-size: 75px;
        margin: 100;
    }

    .line {
        width: 70%;
    }

    .kontakty .line {
        height: 20vh;
        width: 3px;
        flex-direction: column;
    }

    section {
        margin: 0 auto;
        width: 80%;
        display: flex;
        gap: 10px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    blockquote {
        margin: 0;
    }

    .nevim {
        width: 100%;
    }

    .kontakty {
        width: 50%;
        display: flex;
        gap: 20px;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .card {
        justify-content: space-between;
        width: 40%;

    }

    .cards {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .overflow-x {
        overflow-x: auto;
        /* Enable horizontal scrolling */
        width: 100%;
    }
}

@media screen and (min-width: 1024px) {
    footer {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
}