* {
    margin: 0;
    padding: 0;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Mulish', sans-serif;
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10 and IE 11 */
    user-select: none;
    /* Standard syntax */
}

html,
body {
    position: relative;
    overflow-x: hidden;
    background-color: var(--background);
}

::selection {
    color: white;
    background: #0197d5;
    text-shadow: 1px 1px 2px #0e0e0e;
}

::-webkit-scrollbar {
    background-color: var(--background);
    width: 2vh;
}

::-webkit-scrollbar-thumb {
    background-color: #b7b7b7;
    border-radius: 15px;
}

:root {
    --main: #353261;
    --secondary: #0197d5;
    --text: black;
    --background: #FFFF;
}

#main {
    color: var(--main);
}

#secondary {
    color: var(--secondary);
}

hr {
    width: 90%;
    height: 0.5px;
    align-self: center;
    background-color: rgb(237, 237, 237);
    border: none;
}

hr #hr-footer {
    margin-right: 10%;
}
/*-----------------------------body----------------------------*/

header {
    height: auto;
}

/* Hamburger menu */

.hamburger-menu {
    top: 0;
    display: none;
    z-index: 9999;
    background: var(--background);
    height: 65px;
    position: fixed;
    width: 100%;
    box-shadow:
        0px 0px 2.2px rgba(0, 0, 0, 0.006),
        0px 0px 5.3px rgba(0, 0, 0, 0.008),
        0px 0px 10px rgba(0, 0, 0, 0.01),
        0px 0px 17.9px rgba(0, 0, 0, 0.012),
        0px 0px 33.4px rgba(0, 0, 0, 0.014),
        0px 0px 80px rgba(0, 0, 0, 0.02);
    touch-action: none;
}

.hamburger-menu img {
    width: 50px;
    float: right;
    margin-top: 15px;
    margin-right: 3vh;
}

#menu__toggle {
    opacity: 0;
}

#menu__toggle:checked+.menu__btn>span {
    transform: rotate(45deg);
}

#menu__toggle:checked+.menu__btn>span::before {
    top: 0;
    transform: rotate(0deg);
}

#menu__toggle:checked+.menu__btn>span::after {
    top: 0;
    transform: rotate(90deg);
}

#menu__toggle:checked~.menu__box {
    left: 0 !important;
}

.menu__btn {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1;
}

.menu__btn>span,
.menu__btn>span::before,
.menu__btn>span::after {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--main);
    border-radius: 1px;
    transition-duration: .25s;
}

.menu__btn>span::before {
    content: '';
    top: -8px;
}

.menu__btn>span::after {
    content: '';
    top: 8px;
}

.menu__box {
    display: block;
    position: fixed;
    top: 0;
    left: -100%;
    width: 350px;
    height: 100%;
    margin: 0;
    padding: 80px 0;
    list-style: none;
    background-color: var(--background);
    box-shadow: 2px 2px 6px rgba(0, 0, 0, .2);
    transition-duration: .25s;
}

.menu__box li a i {
    font-size: var(--jr-fs-caption);
}

.menu__item {
    display: block;
    padding: 2vh 24px;
    color: var(--main);
    font-size: var(--jr-fs-lead);
    font-weight: 400;
    text-decoration: none;
    transition-duration: .25s;
}

.dropdown-content {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-height: 0;
    overflow: hidden;
}

.dropdown-content.show {
    opacity: 1;
    transform: translateY(0);
    max-height: 500px;
    transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.2s ease;
}

.dropdown-content ul {
    padding: 0;
    margin: 0;
}

.dropdown-content ul li {
    list-style: none;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-left: 2vh;
}

.dropdown-content ul li a {
    font-size: var(--jr-fs-subtitle);
}

.dropdown-content.show ul li {
    opacity: 1;
    transform: translateY(0);
}

@keyframes rotateChevron {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(180deg);
    }
}

.dropbtn i {
    transition: transform 0.3s ease;
}

.dropbtn i.rotated {
    transform: rotate(180deg);
}

.dropbtn:hover i.rotated {
    animation: rotateChevron 0.3s forwards;
}

.menu__item:hover {
    background-color: var(--main);
    color: var(--background);
}

#kontakt {
    margin-top: 5vh;
    padding: 1.5vh;
    margin-left: 1.5vh;
    border-radius: 2px;
    background: rgb(0, 0, 0);
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(53, 50, 97, 1) 0%, rgba(1, 151, 213, 1) 100%);
    color: white;
    transition: 0.2s;
    cursor: pointer;
    border: 1px rgba(0, 0, 0, 0) solid;
    width: 300px;
}

#kontakt:hover {
    background: none;
    border: 1px solid var(--main);
    transition: 0.2s;
    color: var(--main);
}

#active-link {
    background-color: #ededed;
    color: var(--secondary);
}

@media screen and (max-width: 1100px) {
    .hamburger-menu {
        display: block;
    }
}

/* Navbar section */

.nav {
    width: 100%;
    height: 65px;
    background-color: var(--background);
    position: fixed;
    line-height: 65px;
    text-align: center;
    z-index: 9999;
    top: 0;
    box-shadow:
        0px 0px 2.2px rgba(0, 0, 0, 0.006),
        0px 0px 5.3px rgba(0, 0, 0, 0.008),
        0px 0px 10px rgba(0, 0, 0, 0.01),
        0px 0px 17.9px rgba(0, 0, 0, 0.012),
        0px 0px 33.4px rgba(0, 0, 0, 0.014),
        0px 0px 80px rgba(0, 0, 0, 0.02);

}

.nav div.logo {
    float: left;
    padding-left: 10vw;
}

.nav div.main_list {
    height: 100%;
    float: right;
    margin-top: -3vh;
}

.nav div.main_list ul {
    width: 100%;
    height: 65px;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    padding-right: 5vw;
}

.nav div.main_list ul li {
    width: auto;
    height: 65px;
    padding: 0;
    padding-right: 3rem;
    margin-top: 3vh;
}

.nav div.main_list ul li a {
    text-decoration: none;
    color: var(--main);
    line-height: 65px;
    font-size: var(--jr-fs-prose);
    transition: 0.3s;
}

.nav div.main_list ul li a:hover {
    transition: 0.3s;
    color: var(--main);
}

.navTrigger {
    display: none;
}

.nav {
    padding-top: 20px;
    padding-bottom: 20px;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

@media screen and (max-width: 1100px) {
    .nav {
        display: none;
    }
}

.affix {
    padding: 0;
    background-color: var(--background);
    box-shadow:
        0px 2.3px 1.9px rgba(0, 0, 0, 0.008),
        0px 5.4px 4.3px rgba(0, 0, 0, 0.011),
        0px 9.7px 7.7px rgba(0, 0, 0, 0.014),
        0px 16.1px 12.8px rgba(0, 0, 0, 0.016),
        0px 26.5px 21.2px rgba(0, 0, 0, 0.019),
        0px 46.2px 37px rgba(0, 0, 0, 0.022),
        0px 100px 80px rgba(0, 0, 0, 0.03);
}

#dropdown {
    margin-right: -4vh;
    margin-left: -4vh;
}

.doprava:hover .dropdown {
    transform: translateY(0%);
    transition: 0.2s all;
    opacity: 1;
}

.dropdown {
    display: flex;
    flex-direction: column;
    background: var(--background);
    padding: 1.5vh;
    transform: translateY(-15%);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border: none;
    box-shadow:
        0px 33.3px 5.3px rgba(0, 0, 0, 0.008),
        0px 111.7px 17.9px rgba(0, 0, 0, 0.012),
        0px 500px 80px rgba(0, 0, 0, 0.02);
    transition: 0.2s all;
    opacity: 0;
}

.dropdown .doprava a {
    color: var(--main);
}

.dropdown .doprava a:hover {
    color: var(--secondary) !important;
}

.button {
    padding: 1.5vh;
    border-radius: 2px;
    background: rgb(0, 0, 0);
    background: var(--secondary);
    color: white;
    transition: 0.2s;
    cursor: pointer;
    border: 1px rgba(0, 0, 0, 0) solid;
}

.button:hover {
    background: none;
    border: 1px solid var(--main);
    transition: 0.2s;
    color: var(--main);
}

/*-------------------section2---------------------------*/

#section2 {
    height: auto;
    min-height: min(72vh, 40rem);
    /* Po kompaktních drobečkách bez banneru stačí menší mezera pod headerem */
    margin-top: clamp(0.35rem, 1.5vh, 1rem);
}

#section2 .obal-auta {
    display: flex;
    flex-direction: row;
}

/*---------------------left-side----------------------*/

#section2 .obal-auta .left-side {
    width: 60%;
    margin-right: 2%;
    height: auto;
    background-color: var(--background);
    display: flex;
    flex-direction: column;
}

/*-------fotky---------*/

.slider-wrapper {
    margin: 1rem;
    position: relative;
    overflow: hidden;
}

.slides-container {
    height: calc(min(55vh, 32rem) - 2rem);
    width: 100%;
    display: flex;
    overflow: scroll;
    scroll-behavior: smooth;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.slide-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    height: 4rem;
    background: #f1f1f1;
    color: var(--main);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 100ms;
}

#slide-arrow-prev {
    left: 0;
    border-radius: 50px;
    height: 50px;
    width: 50px;
    margin-left: 1rem;
}

#slide-arrow-next {
    height: 50px;
    width: 50px;
    right: 0;
    border-radius: 50px;
    margin-right: 1rem;
}

.slide-arrow p {
    text-align: center; 
    font-size: var(--jr-fs-subtitle);
    margin-bottom: 5%;
}

#slide {
    width: 100%;
    height: 100%;
    flex: 1 0 100%;
    display: block;
}

/*--------------------------right-side----------------------*/

#section2 .obal-auta .right-side {
    width: 30%;
    height: min(55vh, 32rem);
    background-color: var(--background);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#section2 .obal-auta .right-side h1 {
    margin-top: 2vh;
    font-size: var(--jr-fs-block-title);
    color: var(--main);
}

#section2 .obal-auta .right-side h2 {
    margin-top: 2vh;
    font-size: var(--jr-fs-prose);
    color: var(--main);
    font-weight: 500;
}

#section2 .obal-auta .right-side .vykon p {
    background: #ddd;
    width: max-content;
    padding: 0.75vh;
    border-radius: 2px;
}

#section2 .obal-auta .right-side p {
    margin-top: 1vh;
}

#section2 .obal-auta .right-side ul {
    list-style: none;
}

#section2 .obal-auta .right-side ul li {
    margin-top: 3vh;
}

#section2 .obal-auta .right-side ul li .sediva {
    background: #dadada;
    width: max-content;
    padding: 0.75vh;
    border-radius: 2px;
}

#section2 .obal-auta .right-side .cena p {
    font-size: var(--jr-fs-lead);
    margin-right: 3.5%;
    padding-right: 5%;
    margin-top: 5vh;
    color: var(--background);
    background: var(--main);
    text-align: right;
    font-weight: 800;
    border-radius: 2px;
}

/*------------------------section-desclong-----------------------------*/

#desclong {
    height: auto;
    margin-left: 10%;
    margin-bottom: 6vh;
    margin-top: 0;
}

#desclong h2 {
    margin-bottom: 2vh;
    font-size: var(--jr-fs-block-title);
    color: var(--main);
    font-weight: 500;
}

#desclong pre {
    margin-bottom: 6vh;
}

#desclong a {
    align-self: center;
    text-decoration: none;
    margin-top: 6vh;
    padding: 1.5vh;
    background: transparent;
    width: max-content;
    color: var(--secondary);
    border: 1px solid var(--secondary);
    font-size: var(--jr-fs-lead);
    border-radius: 2px;
    transition: 0.2s;
}

#desclong a:hover {
    transition: 0.2s;
    background: var(--main);
    color: var(--background);
    border: transparent 1px solid;
}

/*------------responsivity-------------*/

@media screen and (max-width: 1100px) {
    #section2 {
        height: auto;
        min-height: 0;
        margin-top: clamp(0.35rem, 1.5vh, 1rem);
        align-items: center;
    }

    #section2 .obal-auta {
        flex-direction: column;
        height: auto;
    }

    #section2 .obal-auta .left-side {
        width: 100%;
        height: 85vw;
    }

    #section2 .obal-auta .right-side {
        width: 100%;
        height: auto;
        margin-left: 2vh;
        margin-right: 2vh;
    }

    #section2 .obal-auta .right-side p {
        margin-right: 2vh;
    }

    #section2 .obal-auta .right-side .cena {
        margin-right: 2vh;
    }

    #desclong {
        margin-left: 2vh;
        margin-top: clamp(1rem, 4vh, 2.25rem);
    }
}

/*---------------------display-fullscreen------------------------------*/

#fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    text-align: center;
    z-index: 9999;
  }
  
  #fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: var(--jr-fs-prose);
    color: #fff;
    cursor: pointer;
    z-index: 1;
  }
  
  #fullscreen-image {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    box-sizing: border-box;
  }
@media screen and (max-width: 500px) {
    #section5 {
        padding-bottom: 5vh;
    }
}

/*----------------------footer--------------------------*/

footer {
    background: var(--background);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    width: 100%;
    height: auto;
    padding-bottom: 5vh;
}

.upper-footer {
    display: flex;
    flex-direction: row;
}

.left-side-footer {
    width: 50%;
    margin-top: 12vh;
    margin-left: 10%;
}

.adresa {
    display: flex;
    flex-direction: row;
    margin-bottom: 4vh;
}

.adresa h1 {
    margin-left: 2vh;
    color: var(--main);
}

.email {
    display: flex;
    margin-bottom: 4vh;
    margin-top: 4vh;
    color: var(--main);
}

.email img {
    padding-right: 2.5vh;
}

.email .email-text {
    display: flex;
    flex-direction: row;
    margin-top: 1vh;
}

.email .email-text h1 {
    margin-right: 2vh;
}

.email .email-text h2 a {
    color: var(--secondary);
    text-decoration: none;
    transition: 0.2s;
}

.email .email-text h2 a:hover {
    color: var(--main);
    transition: 0.2s;
}

.kontakt {
    display: flex;
    flex-direction: row;
    padding-top: 4vh;
}

.druhy-kontaktu {
    margin-left: 2vh;
    flex: 1;
    min-width: 0;
}

.right-side-footer {
    width: 50%;
    margin: 8vh 0vh 0vh 4vh;
}

.absolute-bottom h2 {
    color: var(--background);
}

.absolute-bottom h2 a {
    color: var(--background);
    text-decoration: none;
}

footer .steveosyka {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 3vh;
    margin-bottom: -1vh;
    opacity: 0.8;
}

footer .steveosyka a {
    color: var(--secondary);
    text-decoration: none;
    transition: 0.2s;
}

footer .steveosyka a:hover {
    transition: 0.2s;
    color: var(--main);
    text-decoration: underline;
}

@media screen and (max-width: 1000px) {
    footer {
        height: auto;
        justify-content: center;
        align-items: center;
        background: var(--background);
        background-size: cover;
    }

    .upper-footer {
        flex-direction: column;
    }

    .left-side-footer {
        width: 100%;
        margin-bottom: 10vh;
        margin-top: 10vh;
        margin-left: 5%;
    }

    .adresa {
        margin-left: 5%;
        margin-right: 10%;
    }

    .email {
        margin-left: 5%;
    }

    .email .email-text {
        margin-top: 0;

    }

    .email .email-text {
        flex-direction: column;
    }

    .kontakt {
        margin-left: 5%;
        border-top: none;
    }

    .right-side-footer {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        width: 100%;
        margin-bottom: 5vh;
    }
}