@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
html{
    width:100%;
    height: 100%;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    margin: 0;
    padding: 50px 0;
    color: #ffcc00;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width:100%;
    background-color: #252525;
}
.wrapper{
    display: flex;
    flex-direction: column;
    width:100%;
    box-sizing: border-box;
    padding-top:25px;
}
.wrapper:before {
    content: ' ';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    background-image: url('./img/bg_map.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    z-index:-1;
  }
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 25px;
}
.logo {
    font-size: 3em;
}
.contact-info {
    flex-grow: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap:10px;
}
.contact-info h1 {
    margin: 0;
    font-size: 2.5em;
}
.contact-info h2.pisek{
    margin-top: 10px;
    font-size: 1.5em;
}
.contact-info p {
    margin: 10px 0;
    font-size: 1.5em;
}
.contact-info .pisek{
    font-weight: 900;
    margin:0;
}
.contact-info .pisek span{
    font-weight: 400;
    font-size: 16px;
}
h1{
    font-weight: 900;
}
.ybg{
    margin: 0 10px;
    background-color: #ffcc00;
    color: #252525;
    padding: 10px 20px;
    border-radius: 5px;
}
.info-list {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.info-list div {
    margin: 0 10px;
    background-color: #ffcc00;
    color: #252525;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.2em;
}


.taxi-image img {
    height: 100px;
}
.autoinfo{
    flex-grow: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.autoinfo p{
    color:#ffcc00;
    font-size: 1.2em;
    font-weight: 600;
}
.contact {
    margin: 20px 0;
    text-align: center;
}
.contact a {
    font-size: 50px;
    margin:0;
    color:#ffcc00;
    text-decoration: none;
    font-weight: 900;
}
.contact a:hover {
    opacity: 0.8;

}
.divider {
    position: relative;
    width: 100%;
    height: 50px;
    overflow: hidden;

}
.road {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px;
    background: transparent;
    overflow: hidden;
}

.lane {
    position: absolute;
    bottom: 20px;
    width: 100%;
    height: 2px;
    /*background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        white 10px,
        white 20px
    );*/
    
}

.car {
    position: absolute;
    bottom: 0;
    line-height: 1;
    left: 50%;
    font-size: 50px;
    transform: translateX(-50%);
    width: 100px;
    height: 50px;
    animation: idle 0.5s ease-in-out 1s infinite alternate, drive 10s linear infinite;
}
.car img{
    width: 60px;
    height:auto;
}

@keyframes idle {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-2px);
    }
}

@keyframes drive {
    0% {
        left: 50%;
    }
    10% {
        left: 50%;
    }
    30% {
        opacity:1;
        left: 110%;
    }

    31% {
        opacity:0;
    }
    50% {
        opacity:0;
        left: -100px;
    }
    55% {
        opacity:1;
        left: 0;
    }
    75% {
        left: 50%;
    }
    100% {
        left: 50%;
    }
}

.dust {
    position: absolute;
    bottom: 0;
    left: 55%;
    transform: translateX(-55%);
    width: 0;
    height: 0;
    animation: dust 10s linear infinite;
}

.dust .particle {
    position: absolute;
    bottom: 0;
    background-color: #eaeaea;
    border-radius: 50%;
    opacity: 0;
}

.dust .particle:nth-child(1) {
    width: 10px;
    height: 10px;
    animation: particle1 10s linear infinite;
}

.dust .particle:nth-child(2) {
    width: 8px;
    height: 8px;
    animation: particle2 10s linear infinite;
}

.dust .particle:nth-child(3) {
    width: 6px;
    height: 6px;
    animation: particle3 10s linear infinite;
}

@keyframes dust {
    0%, 10%, 75%, 100% {
        opacity: 0;
    }
    30%, 35% {
        opacity: 1;
    }
    40%, 45% {
        opacity: 0;
    }
}

@keyframes particle1 {
    0%, 10%, 75%, 100% {
        opacity: 0;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    12% {
        opacity: 1;
        transform: translateX(-70%) translateY(-10px) scale(1.2);
    }
    30% {
        opacity: 0;
        transform: translateX(-200%) translateY(-15px) scale(1.5);
    }
}

@keyframes particle2 {
    0%, 10%, 75%, 100% {
        opacity: 0;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    15% {
        opacity: 1;
        transform: translateX(-80%) translateY(-8px) scale(1.1);
    }
    30% {
        opacity: 0;
        transform: translateX(-250%) translateY(0px) scale(1.3);
    }
}

@keyframes particle3 {
    0%, 10%, 75%, 100% {
        opacity: 0;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    13% {
        opacity: 1;
        transform: translateX(-120%) translateY(-6px) scale(1.05);
    }
    30% {
        opacity: 0;
        transform: translateX(-300%) translateY(-4px) scale(1.2);
    }
}
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}
.gallery img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.2s;
    cursor: pointer;
}
.gallery img:hover {
    transform: scale(1.1);
}
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}
.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 5px;
}
.lightbox .close, .lightbox .prev, .lightbox .next {
    position: absolute;
    top: 50%;
    color: #fff;
    font-size: 2em;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
}
.lightbox .handle {
    padding: 25px;
    z-index: 10;
}
.lightbox .close {
    right: 10px;
    top: 10px;
}
.lightbox .prev {
    left: 20px;
}
.lightbox .next {
    right: 20px;
}
.footer-deads{
    flex-grow: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.footer-deads .socials{
    display: flex;
    justify-content: center;
    margin: 0;
    gap: 10px;
}
.footer-deads .socials img{
    width:32px;
}

@media(max-width: 600px) {
    .info-list div{
        font-size: 1em;
        padding: 5px 10px;
    }
    .contact a{
        font-size: 30px;
    }
  }