/* ===== GLOBAL ===== */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fffef5;
  color: #3E2510;
}

/* ===== HEADER ===== */
.header{
    height: 120px;
    width: auto;
    border: 1px solid #f7f139;
    background-color: #f7f139;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    border-radius: 5px;
    box-shadow: 10px 10px 5px #3E2510;
    background: linear-gradient(to top, #fff6a8, #ffffff);
}

.logo {
  height: 60px;
  width: auto;
}

.nav {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.a{
  text-decoration: none;
  color: #3E2510;
  font-size: 35px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bold;
  margin-left: 10px;
  padding-left: 0;
  margin-top: 0;
  margin-right: 20px;
}

.a:hover{
  color: white;
  background-color: #3E2510;
  border-radius: 5px;
  transition: 0.3s;
}

/* ======== HLAVNÁ SEKCIA ======== */
.main {
    width: 100%;
    min-height: 800px;
    border: 1px solid #fff6a8;
    background-color: #fff6a8;
    margin-top: 20px;
    border-radius: 5px;
    box-shadow: 10px 10px 5px #3E2510;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 40px 0;
}

/* Animované pozadie */
.main::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('pozadie.png') no-repeat center;
    background-size: 50%;
    opacity: 0.2;
    z-index: -1;
    animation: lietaj 6s ease-in-out infinite alternate;
}

@keyframes lietaj {
    0%   { transform: translateX(0px) translateY(0px); }
    50%  { transform: translateX(15px) translateY(-10px); }
    100% { transform: translateX(-15px) translateY(10px); }
}

/* ======== HLAVNÁ SEKCIA ======== */
.main {
  width: 100%;
  background-color: #fff6a8;
  margin-top: 20px;
  border-radius: 5px;
  box-shadow: 10px 10px 5px #3E2510;
  padding: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Kontajner pre produkty */
.produkty {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap; /* aby sa prispôsobili na menších obrazovkách */
  max-width: 1200px;
}

/* Jednotlivý produkt */
.produkt {
  width: 300px;
  text-align: center;
  border: 1px solid #3E2510;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(62, 37, 16, 0.3);
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.produkt:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(62, 37, 16, 0.4);
}

/* Obrázky medov – rovnaká veľkosť */
.main-img {
  width: 100%;
  height: 250px;
  object-fit: cover; /* udrží proporcie a oreže pre rovnaký vzhľad */
  display: block;
}

/* Názov medu */
.main-nadpis {
  color: #3E2510;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 22px;
  font-weight: bold;
  margin: 15px 0;
  text-decoration: none;
  transition: color 0.3s;
}

.main-nadpis:hover {
  color: black;
  text-shadow: #3E2510 1px 0 10px;
}

/* ======== RESPONSÍVNY DIZAJN ======== */
@media (max-width: 900px) {
  .produkty {
    gap: 25px;
  }
  .produkt {
    width: 45%; /* 2 vedľa seba na tablete */
  }
}

@media (max-width: 600px) {
  .produkt {
    width: 90%; /* 1 na riadok na mobile */
  }
}


/* ======== PÄTIČKA ======== */
.footer{
  position: relative; 
  height: 100px; 
  width: 100%;
  background-color: #3E2510;
  border: 1px solid #3E2510;
  border-radius: 5px;
  box-shadow: 10px 10px 5px #3E2510;
  margin-top: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
}

/* Hexagónové vzory */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='34.641' height='40'><polygon points='17.32,0 34.64,10 34.64,30 17.32,40 0,30 0,10' fill='none' stroke='%236b4d34' stroke-width='1.2'/></svg>");
    background-repeat: repeat-x;
    background-size: 34.64px 40px;
    pointer-events: none;
    z-index: 1;
}

.footer::after {
    content: '';
    position: absolute;
    top: 30px; 
    left: 17.32px; 
    width: 100%;
    height: 50%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='34.641' height='40'><polygon points='17.32,0 34.64,10 34.64,30 17.32,40 0,30 0,10' fill='none' stroke='%236b4d34' stroke-width='1.2'/></svg>");
    background-repeat: repeat-x;
    background-size: 34.64px 40px;
    pointer-events: none;
    z-index: 1;
}

.hex-row3 {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: 50%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='34.641' height='40'><polygon points='17.32,0 34.64,10 34.64,30 17.32,40 0,30 0,10' fill='none' stroke='%236b4d34' stroke-width='1.2'/></svg>");
    background-repeat: repeat-x;
    background-size: 34.64px 40px;
    pointer-events: none;
}

.footer::before, .footer::after, .hex-row3 {
    filter: brightness(0.4) contrast(1.2);
}

/* Logo vľavo */
.footer-logo {
  position: relative;
  z-index: 2;
  height: 80px;
  width: auto;
  flex-shrink: 0;
}

/* Text presne v strede stránky */
.footer-text {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 18px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  margin: 0;
  flex: 1;
}

/* ======== RESPONSÍVNY DIZAJN ======== */
@media (max-width: 1024px) {
    .a {
        font-size: 24px;
        margin: 10px;
    }
    .logo {
        height: 100px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px 0;
    }

    .logo {
        height: 90px;
        margin: 10px auto;
    }

    .a {
        display: block;
        font-size: 22px;
        margin: 5px 0;
    }

    .main {
        flex-direction: column;
        align-items: center;
        padding: 20px 10px;
    }

    .main-oramovanie-cely {
        width: 100%;
        margin: 10px 0;
    }

    .main-img {
        width: 100%;
        height: auto;
    }

    .main-nadpis {
        font-size: 20px;
    }

    .footer-text {
        font-size: 16px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .a {
        font-size: 20px;
    }

    .main-nadpis {
        font-size: 18px;
    }

    .footer-logo {
        height: 70px;
    }

    .footer-text {
        font-size: 14px;
    }
}
