@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Texturina:ital,opsz,wght@0,12..72,100..900;1,12..72,100..900&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html::-webkit-scrollbar{
    display: none;
}
html {
  scroll-behavior: smooth;
  scroll-padding: 6rem;
}
.main{
    background-image: url(obrazky/main-background.jpg);
    opacity: 0.8;
    width: 72%;
    color: white;
    padding-left: 55px;
    padding-right: 55px;
    position: fixed;
    gap: 25px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-radius: 0 0 30px 30px ;
    font-family: "Texturina", serif;
    min-height: 60px;
}
.middle{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    min-height: 60px;
}
.picture--text{
    font-family: "Texturina", serif;
    font-size: 50px;
}
h2{
    font-size: 25px;
}
.main__element{
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
    display: inline-block;
}
.main__element:hover{
    transform: scale(1.2);
}
.container{
    height: 960px;
    width: 100%;
    background-image: url(obrazky/pozadicko2.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    color: rgb(255, 255, 255);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 55px;
    text-shadow: 0 0 50px rgb(160, 160, 160);
    flex-direction: column;
    font-family: "Special Elite", system-ui;
    -webkit-text-stroke-width: 0.5px;
    -webkit-text-stroke-color: black;
    position: relative;
    overflow: hidden;
    z-index: 5000;    
}
.container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 500px;
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0), rgb(17, 17, 17));
    pointer-events: none;
}
.hero{
    width: 100%;
    height: fit-content;
    background-image: url(obrazky/dopozadi.jpg);
    color: white;
    font-size: 22px;
    display: flex;
    justify-content: space-between;
    padding-left: 180px;
    padding-right: 180px;
    padding-bottom: 130px;
    z-index: 1; 
}
.hero::after {
    content: "";
    position: absolute;
    top: 960px;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(to top, rgba(17, 17, 17, 0), rgb(17, 17, 17));
    pointer-events: none;
}
.hero__element1{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    padding-top: 175px;
}
.hero__element2{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    padding-top: 50px;
    padding-bottom: 80px;
}
.picture{
    max-height: 280px;
    max-width: 450px;
    border-radius: 20px 20px 20px 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    box-shadow: 5px 10px 5px black;
    transition: transform 0.8s ease, filter 0.3s ease;
}
.picture:hover{
    transform: scale(1.4);
}
h2{
    padding-top: 10px;
}
.overlay-text{
    position: absolute;
    height: 250px;
    width: 550px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
    font-size: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.267);
    border-radius: 20px 20px 20px 20px;
}
.hero__element1--part:hover .overlay-text{
    opacity: 1;
}
.hero__element2--part:hover .overlay-text{
    opacity: 1;
}
.hero__element1--part{
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: appearLeft linear;
    animation-timeline: view(1%);
    animation-range: entry 0% cover 40%;
    position: relative;
    cursor: pointer;
}
.hero__element2--part{
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: appearRight linear;
    animation-timeline: view(1%);
    animation-range: entry 0% cover 40%;
    position: relative;
    cursor: pointer;
}
@keyframes appearLeft {
    from {
        opacity: 0;
        transform: translateX(-420px);

    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}
@keyframes appearRight {
    from {
        opacity: 0;
        transform: translateX(420px);

    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.car {
  height: 375px;
  width: 375px;
  position: fixed;
  top: 100px;
  left: 50%;      
  transform: translateX(-50%) translateY(0); 
  z-index: 4000;
  opacity: 0;
  transition: transform 0.05s linear, opacity 1.4s ease; 
}
.container__text2{
    opacity: 0;
    transform: translateY(300px);
    animation: slideUp 1.3s ease forwards;
}
.container__text1{
    opacity: 0;
    transform: translateY(-300px);
    animation: slideDown 1.3s ease forwards;
}
.sipka2{
    position: absolute;
    height: 75px;
    width: 90px;
    top: 1125px;
    right: 50px;
    z-index: 100;
    animation: appearRight linear;
    animation-timeline: view(1%);
    animation-range: entry 0% cover 40%;
}
.sipka{
    position: absolute;
    height: 75px;
    width: 90px;
    top: 3330px;
    left: 50px;
    z-index: 100;
    animation: appearLeft linear;
    animation-timeline: view(1%);
    animation-range: entry 0% cover 40%;
}
.sipka3{
    position: absolute;
    height: 75px;
    width: 90px;
    top: 5000px;
    left: 50px;
    z-index: 100;
    animation: appearLeft linear;
    animation-timeline: view(1%);
    animation-range: entry 0% cover 40%;
}
.sipka4{
    position: absolute;
    height: 75px;
    width: 90px;
    top: 5815px;
    right: 70px;
    z-index: 100;
    animation: appearRight linear;
    animation-timeline: view(1%);
    animation-range: entry 0% cover 40%;
}
@keyframes slideUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes slideDown {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
@media (max-width: 1024px) {
    .main {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
        display: none;
    }

    .main__element {
        font-size: 1rem;
        margin: 5px 10px;
    }

    .container {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 80px 40px;
    }

    .picture {
        max-width: 350px;
    }

    .overlay-text {
        font-size: 20px;
    }

    .car {
        display: none;
    }

    html::-webkit-scrollbar{
    display: none;
    }
    .sipka, .sipka2, .sipka3, .sipka4{
        display: none;
    }

}


@media (max-width: 768px) {
    .main {
        flex-direction: column;
        gap: 10px;
        height: auto;
        padding: 10px;
        position: static;
    }

    .main__element {
        font-size: 0.9rem;
        text-align: center;
    }

    .container {
        font-size: 1.8rem;
        padding: 20px;
        text-align: center;
    }

    .hero {
        padding: 60px 20px;
    }

    .picture {
        width: 100%;
        max-width: 300px;
    }

    .overlay-text {
        width: 95%;
        height: auto;
        font-size: 18px;
    }

    .car {
        display: none; 
    }
    .hero__element1{
        padding-top: 60px;
    }
}