/* ====== Globálne nastavenia ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html, body {
  height: 100%;
  font-family: Arial, sans-serif;
  color: white;
  overflow-x: hidden;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.page-wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}
/* ====== Banner v pozadí ====== */
.banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;                  /* vždy celá obrazovka */
  z-index: -1;
  background-image: url("images/hero.jpg"); /* cesta k obrázku */
  background-size: cover;         /* vyplní celú plochu */
  background-position: center center;
  background-repeat: no-repeat;
}

/* ====== Hero sekcia ====== */
.hero {
  height: 66vh; /* na PC zaberie 2/3 výšky */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-text {
  background: rgba(0,0,0,0.5);
  padding: 2rem 3rem;
  border-radius: 12px;
  max-width: 66vw;   /* max 2/3 šírky */
  display: inline-block;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.hero-buttons .btn {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  background: rgba(255,255,255,0.2); /* nevýrazné pozadie */
  color: white;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid transparent;     /* zatiaľ neviditeľný rámček */
  transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
  background: transparent;           /* priehľadné pozadie */
  border: 2px solid white;           /* biele orámovanie */
  color: white;                      /* text biely */
}


/* ====== Galéria ====== */
.gallery {
  width: 66vw; /* obmedzené na 2/3 šírky monitora */
  margin: 0 auto;
  padding: 40px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Hover efekt cez celú fotku */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
  text-align: center;
  padding: 20px;
  border-radius: 10px;  /* pridané – kopíruje zaoblenie fotky */
}

.overlay h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.overlay p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.overlay .btn {
  padding: 0.7rem 1.5rem;
  background: rgba(255,255,255,0.2); /* nevýrazné pozadie */
  color: white;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid transparent;     /* zatiaľ neviditeľný rámček */
  transition: all 0.3s ease;
}

.overlay .btn:hover {
  background: transparent;           /* priehľadné pozadie */
  border: 2px solid white;           /* biele orámovanie */
  color: white
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* ====== Footer ====== */
.site-footer {
  background: linear-gradient(to top, #000, #333);
  color: #ccc;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ====== Mobilná verzia ====== */
@media (max-width: 700px) {
  /* Hero */
  .hero {
    height: 60vh;
    padding: 0 1rem;
  }

  .hero-text {
    max-width: 90vw;
    padding: 1.5rem 1rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-buttons .btn {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    width: 100%;
  }

  /* Galéria */
  .gallery {
    width: 95vw;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .gallery-item .overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
  }
  
  .overlay h3 {
    font-size: 1rem;
  }

  .overlay p {
    font-size: 0.8rem;
  }

  .overlay .btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

/* Pre menšie výšky obrazovky (napr. mobil na šírku) */
@media (max-width: 700px) and (orientation: landscape) {
  /* Hero */
  .hero {
    height: 50vh; /* zmenšíme výšku, aby sa zmestil obsah */
    padding: 0 1rem;
  }

  .hero-text {
    max-width: 95vw;
    padding: 1rem 1rem;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .hero-buttons {
    flex-direction: row; /* tlačidlá vedľa seba na šírku */
    gap: 8px;
  }

  .hero-buttons .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    width: auto; /* nech tlačidlá nezaberajú celú šírku */
  }
}

/* Pre tablety – menší text a lepšie usporiadanie */
@media (min-width: 600px) and (max-width: 1024px) {
  /* Hero */
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons .btn {
    padding: 10px 20px;
    font-size: 1rem;
  }
  
  /* Galéria */
  .gallery {
    width: 95vw;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
  }
  
    .gallery-item .overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
  }

  .overlay h3 {
    font-size: 1rem;
  }

  .overlay p {
    font-size: 0.8rem;
  }

  .overlay .btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}
}