* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    margin:0;
    height:100vh;
    display:grid;
    place-items:center;
    background-color:#010101;
  }
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 3rem;
    font-family: Arial, sans-serif;
    background: rgba(0, 0, 0, 0.4);
}
h1 {
    text-shadow: 5px 5px 8px rgba(0, 0, 0, 1);
}

.button-container {
  display: flex; /* Umožní, aby tlačítka byla vedle sebe */
  gap: 10px; /* Mezera mezi tlačítky */
  margin-top: 20px; /* Odsazení od nadpisu */
}

.btn {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.5rem;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}
.btn:hover {
    background: rgba(255, 255, 255, 0.5);
    color: crimson;
}

.image-section {
    position: relative;
    top: 100vh;
    width: 100%;
    height: 100vh;
    background: url('/auticka/vse.png') no-repeat center center;
    background-size: cover;
    z-index: 0;
}


  
  .gallery{
    position:relative;
    top: 40vh;
    left: 40vw;
    width: 300px;
    height: 200px;
    transform-style:preserve-3d;
    animation:rotate 35s linear infinite;
  }
  
  @keyframes rotate{
    from{
      transform:perspective(1200px) rotateY(0deg);
    }
    
    to{
      transform:perspective(1200px) rotateY(360deg);
    }
  }
  
  .gallery span{
    position:absolute;
    width:100%;
    height:100%;
    transform-origin:center;
    transform-style:preserve-3d;
    transform:rotateY(calc(var(--i) * 45deg)) translateZ(380px);
  }
  
  .gallery span img{
    position:absolute;
    width:100%;
    height:100%;
    object-fit:cover;
  }

  
  .footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: black;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 1rem;
}

@keyframes wave {
  0%, 100% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-10px);
  }
}

.overlay h1 {
  animation: wave 3s infinite ease-in-out;
}