* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  background-color: white;
  padding: 20px;
  background-image: url("media/hatter.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff; /* szöveg legyen világos */
}

.videoleiras{
  font-style: italic;
  text-align: right;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.logo img {
  height: 80px;
}


h1 {
  font-size: 3rem;
  flex-grow: 1;
  text-align: center;
}


nav {
  display: flex;
  gap: 10px;
}

.button-overlay {
  position: relative;
  width: 100%;
  height: 100%;
}

.button-overlay a {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.button-overlay img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s ease;
}

.button-overlay .overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 2rem;
  text-shadow: 1px 1px 4px black;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.button-overlay:hover img {
  filter: brightness(50%);
}

.button-overlay:hover .overlay-text {
  opacity: 1;
}

nav a {
  padding: 8px 16px;
  background-color: white;
  border: 1px solid black;
  text-decoration: none;
  color: black;
  font-weight: bold;
  border-radius: 4px;
}

nav a.active {
  background-color: black;
  color: white;
}


main {
  width: 100%;
}


.left h2 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.car {
  text-align: center;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: white;
  border: 1px solid #aaa;
  background-image: linear-gradient(to top left, transparent 49%, #aaa 50%, transparent 51%),
                    linear-gradient(to top right, transparent 49%, #aaa 50%, transparent 51%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.top-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  width: 100%;
  align-items: stretch;
}


.video-placeholder {
  flex: 1 1 600px;
  max-width: 100%;
}

.video-placeholder video {
  width: 100%;
  height: auto;
  border: 1px solid white;
  background-color: black;
}

.right {
  flex: 1 1 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 100%;
  gap: 10px;
}

.nav-button {
  width: 100%;
  height: 90%;
  border: 2px solid #000;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 0px;
  box-sizing: border-box;
}

.nav-button2 {
  width: 100%;
  height: 100%;
  border: 2px solid #000;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 0px;
  box-sizing: border-box;
}

.nav-button:hover,
.nav-button2:hover {
  transform: scale(1.05);
}


#ugras {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  
}

.ugras-nav nav ul {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ugras-nav nav ul li a {
  text-decoration: underline black;
  color: black;
  font-weight: bold;
  padding: 10px 16px;
  background-color: #ddd;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.ugras-nav nav ul li a:hover {
  background-color: #b3b3b3;
}

.car-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;

}

.car-row {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 20px;
}


.car-row img {
  width: 800px;
  height: 500px;
  object-fit: cover;
  border: 2px solid #000;
}

.car-row p {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.5;
}

.thumbnail-gallery {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}

.thumbnail {
  width: 200px;
  border: 2px solid #444;
  border-radius: 6px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.thumbnail:hover {
  transform: scale(1.05);
}


footer{
  text-align: center;
}


@media (max-width: 768px) {
  .top-section {
    flex-direction: column;
    align-items: center;
  }

  .video-placeholder,
  .right {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .nav-button,
  .nav-button2 {
    width: 90%;
    margin: 0 auto;
  }

  .car-row {
    flex-direction: column;
    text-align: center;
  }

  .car-row img {
    width: 100%;
    height: auto;
  }

    header {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    nav {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 10px;
    }
  
    nav a {
      width: 100%;
      max-width: 200px;
      text-align: center;
    }
  
    .logo img {
      height: 60px;
    }
  
    h1 {
      font-size: 2rem;
    }
}


