html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    position: relative;
}

nav .nav-link {
    color: #ffffff;
}
 
.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: #ffcc00;
}

section {
    padding: 60px 0 30px 0;
}

.nadpis {
    position: relative;
    width: fit-content;
    margin: 0 auto 30px auto;
    margin-right: auto;
    font-size: 2rem;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 1px 1px 4px black;
}

section .nadpis::after,
section .nadpis::before {
    content: '';
    position: absolute;
    top: 50%;
    display: block;
    width: 40px;
    height: 1px;
    border-radius: 2px;
    background-color: #007bff;
    box-shadow: 0px 0px 2px black;
}
section .nadpis::before {
    right: -70px;
}
section .nadpis::after {
    left: -70px;
}
 
header {
    min-height: 60vh;
}

header .row {
    height: 60vh;
    width: 100%;
    margin: 0;
}

header .header-pozadi {
    display: flex;
    position: absolute;
    height: 60vh;
    margin: 0;
    padding: 0;
    & img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
}

header .vlevo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
    padding: 80px;
    text-shadow: 2px 2px 10px black;
    background-color: rgba(0, 0, 0, 0.5);
}

header .vpravo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 15vh 10vw;
    & .kontaktovat {
        padding: 18px 22px 22px 22px;
        line-height: 1.5rem;
        font-size: 2rem;
        font-weight: 700;
        border-radius: 0 30px 0 30px;
        -webkit-border-radius: 0 30px 0 30px;
        -moz-border-radius: 0 30px 0 30px;
        -ms-border-radius: 0 30px 0 30px;
        -o-border-radius: 0 30px 0 30px;
        justify-items: center;
        margin-bottom: 50px;
    }
    & .kontaktovat:hover {
        box-shadow: 2px 2px 4px white, 0 0 20px white;
    }
    & img {
        width: 300px;
        align-self: flex-end;
        animation: prijet-zleva 1s ease-out;
        -webkit-animation: prijet-zleva 1s ease-out;
}
}

@keyframes prijet-dolu {
0% {
    opacity: 0;
    transform: translate(0%, -100%);
    -webkit-transform: translate(0%, -100%);
    -moz-transform: translate(0%, -100%);
    -ms-transform: translate(0%, -100%);
    -o-transform: translate(0%, -100%);
}
100% {
    opacity: 1;
    transform: translate(0%, 0%);
    -webkit-transform: translate(0%, 0%);
    -moz-transform: translate(0%, 0%);
    -ms-transform: translate(0%, 0%);
    -o-transform: translate(0%, 0%);
}
}

@keyframes prijet-nahoru {
0% {
    opacity: 0;
    transform: translate(0%, 100%);
    -webkit-transform: translate(0%, 100%);
    -moz-transform: translate(0%, 100%);
    -ms-transform: translate(0%, 100%);
    -o-transform: translate(0%, 100%);
}
100% {
    opacity: 1;
    transform: translate(0%, 0%);
    -webkit-transform: translate(0%, 0%);
    -moz-transform: translate(0%, 0%);
    -ms-transform: translate(0%, 0%);
    -o-transform: translate(0%, 0%);
}
}

@keyframes prijet-zleva {
0% {
    opacity: 0;
    transform: translate(-100%, 0%);
    -webkit-transform: translate(-100%, 0%);
    -moz-transform: translate(-100%, 0%);
    -ms-transform: translate(-100%, 0%);
    -o-transform: translate(-100%, 0%);
}
100% {
    opacity: 1;
    transform: translate(0%, 0%);
    -webkit-transform: translate(0%, 0%);
    -moz-transform: translate(0%, 0%);
    -ms-transform: translate(0%, 0%);
    -o-transform: translate(0%, 0%);
}
}

@keyframes prijet-zprava {
0% {
    opacity: 0;
    transform: translate(100%, 0%);
    -webkit-transform: translate(100%, 0%);
    -moz-transform: translate(100%, 0%);
    -ms-transform: translate(100%, 0%);
    -o-transform: translate(100%, 0%);
}
100% {
    opacity: 1;
    transform: translate(0%, 0%);
    -webkit-transform: translate(0%, 0%);
    -moz-transform: translate(0%, 0%);
    -ms-transform: translate(0%, 0%);
    -o-transform: translate(0%, 0%);
}
}

@media only screen and (max-width: 767px) {
    header .vpravo img {
        align-self: center;
        width: 200px;
}
    header .vpravo .kontaktovat {
        font-size: 1.5rem;
        padding: 10px 20px;
    }
    header .vpravo {
        padding: 20px;
        background-color: rgba(0, 0, 0, 0.5);
    }
    header .vlevo {
        padding: 40px;
    }
}

@media only screen and (max-height: 960px) {
    header .vpravo img {
        align-self: center;
        width: 200px;
    }
    header .vpravo .kontaktovat {
        font-size: 1rem;
        padding: 10px 20px;
        margin-bottom: 0;
    }
    header .vpravo {
        justify-content: center;
        padding: 20px;
        background-color: rgba(0, 0, 0, 0.5);
    }
    header .vlevo {
        padding: 40px;
        & h5 {
            font-size: 1.2rem;
        }
        & h1 {
            font-size: 2rem;
        }
        & p {
            font-size: 1rem;
        }
    }
}

@media only screen and (max-height: 590px) {
    header .vlevo {
        padding: 40px 20px 20px 20px;
        text-align: center;
        & h5 {
            font-size: 1rem;
        }
        & h1 {
            font-size: 1.4rem;
        }
        & p {
            font-size: 0.8rem;
        }
    }
    header .vpravo {
        padding: 10px;
        & img {
            width: 150px;
        }
        flex-direction: row;
        justify-content: space-around;
    }
}

@media only screen and (max-height: 390px) {
    header .vlevo {
        padding: 40px 20px 0 20px;
    }
    header .vpravo {
        padding: 0 20px 10px 20px;
        & img {
            width: 100px;
        }
        flex-direction: row;
        justify-content: space-around;
    }
    header .vpravo .kontaktovat {
            font-size: 0.8rem;
            font-weight: 400;
            padding: 5px 20px;
            margin-bottom: 0;
    }
}

footer {
    padding: 30px 0;
    margin: 0;
}

footer p {
    padding: 0;
    margin: 0;
}

footer a {
    color: #dbdbdb;
    text-decoration: none;
}

footer h5 {
    text-decoration: underline;
}

.kontakty-grid {
    display: grid;
    gap: 30px 80px;
    justify-content: center;
    grid-template-columns: repeat(4, auto);
    grid-template-rows: repeat(auto,auto);
    padding: 0;
    margin: 0;
    width: 100%;
}

@media only screen and (max-width: 1200px) {
    .kontakty-grid {
        grid-template-columns: repeat(3, auto);
        grid-template-rows: repeat(auto,auto);
    }
}

@media only screen and (max-width: 930px) {
    .kontakty-grid {
        grid-template-columns: repeat(2, auto);
        grid-template-rows: repeat(auto,auto);
    }
}

@media only screen and (max-width: 620px) {
    .kontakty-grid {
        grid-template-columns: repeat(1, auto);
        grid-template-rows: repeat(auto,auto);
    }
}