body {
  background: rgb(13, 42, 56);
  color: rgb(240, 240, 240);
  font-family: Roboto, Helvetica, Arial, sans-serif;
  padding: 0;
  margin: 0;
  text-align: center;
}

.prvý_nadpis {
  color: orange;
  font-family: "Poetsen One", sans-serif;
  margin-top: 100px;
  margin-bottom: 20px;
  font-size: 40px;
  text-decoration: underline;
}

.h2_1 {
  margin-bottom: 15px;
  font-family: "Josefin Sans";
  font-size: 30px;
}

.kontajner {
  display: flex;
  flex-wrap: wrap; /* štvorce sa zalomia, keď sa nezmestia */
  justify-content: center;
  gap: 10px;
  padding: 50px;
}

.stvorec {
  width: 230px;
  height: 200px;
  margin: 0 10px;
  background: linear-gradient(to right, #e85d04, #f48c06);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-family: "Anton", sans-serif;
  font-style: italic;
  font-size: 25px;
  border-radius: 10px;
}

a {
  text-decoration: none;
}

.stvorec:hover {
  cursor: pointer;
  transition: 0.3s;
  transform: translateY(-10px);
}

.stvorec:active {
  cursor: pointer;
  transition: 0.3s;
  transform: translateY(-10px);
}

.btn1 {
  /* 1. Reset a základné nastavenia */
  font-family: "Josefin Sans", sans-serif;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;

  /* 2. Vzhľad */
  padding: 35px 95px;
  margin: 50px 0;
  background-color: orange;
  color: rgb(27, 39, 51);
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;

  /* 3. Prechody a tiene */
  transition: all 0.3s ease-in-out;
  box-shadow: 0 5px 15px rgba(240, 160, 0, 0.4);
}

/* 4. Interakcia (Hover a Active) */
.btn1:hover {
  background-color: rgb(255, 140, 0); /* Mierne stmavnutie pri prechode */
  transform: translateY(-3px); /* Mierne posunutie hore pre 3D efekt */
  box-shadow: 0 10px 25px rgba(240, 160, 0, 0.6); /* Výraznejší tieň */
}

.btn1:active {
  transform: translateY(0); /* Návrat, simuluje stlačenie */
  box-shadow: 0 3px 10px rgba(240, 160, 0, 0.4); /* Menší tieň */
}

.kon1 {
  display: grid;
  grid-template-columns: repeat(3, 270px); /* 3 stĺpce */
  gap: 25px;
  justify-content: center;
  max-width: 900px;

  /* PRIDANÝ PRIESTOR: Odstráni pocit natlačenia na okraje obrazovky */
  margin: 50px auto; /* 50px hore a dole, "auto" v strede horizontálne */
  padding: 0 20px; /* Malý padding pre prípad, že je obrazovka extrémne úzka */
}

.stvorec2 {
  /* Nastavenie Flexboxu pre vertikálne centovanie obsahu */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Kľúč pre vertikálne centovanie obsahu */
  align-items: center; /* Horizontálne centovanie obsahu */
  width: 270px;
  height: 200px;
  background: rgb(255, 255, 255);

  /* PRIDANÝ PRIESTOR: Rovnomerný padding vo vnútri boxu */
  padding: 20px;
  box-sizing: border-box;

  /* Vizuálny štýl */
  text-decoration: none;
  color: #333;

  /* DIZAJN */
  border-top: 5px solid orange;
  border-radius: 5px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.stvorec2:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 20px rgba(239, 176, 3, 0.614);
  transition: 0.3s;
}

.stvorec2:active {
  transform: translateY(-10px);
  box-shadow: 0 20px 20px rgba(239, 176, 3, 0.614);
  transition: 0.3s;
}

.stvorec2 h3 {
  font-family: "Josefin Sans", sans-serif;
  color: #cc0000; /* Výraznejšia červená farba */
  font-size: 24px;
  margin: 0 0 10px 0;
  padding: 0;
  text-align: center;
}

.stvorec2 p {
  font-size: 14px;
  line-height: 1.4;

  margin: 0px;
  padding: 0px;
  text-align: center;
}

.nadpiss {
  font-family: "Poetsen One", sans-serif;
  font-size: 40px;
}
.clanky_nadpis {
  font-family: "Poetsen One", sans-serif;
  font-size: 40px;
  margin-bottom: 20px;
  margin-top: 10px;
}

.clanky {
  display: grid;
  grid-template-columns: repeat(3, 270px); /* 3 stĺpce */
  gap: 40px;
  justify-content: center;
  max-width: 900px;

  /* PRIDANÝ PRIESTOR: Odstráni pocit natlačenia na okraje obrazovky */
  margin: 50px auto; /* 50px hore a dole, "auto" v strede horizontálne */
  padding: 0 20px; /* Malý padding pre prípad, že je obrazovka extrémne úzka */
}

.clanok {
  /* Nastavenie Flexboxu pre vertikálne centovanie obsahu */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Kľúč pre vertikálne centovanie obsahu */
  align-items: center; /* Horizontálne centovanie obsahu */
  width: 290px;
  height: 200px;
  background: white;

  /* PRIDANÝ PRIESTOR: Rovnomerný padding vo vnútri boxu */
  padding: 20px;
  box-sizing: border-box;

  /* Vizuálny štýl */
  text-decoration: none;
  color: #333;

  /* DIZAJN */
  border-top: 5px solid rgb(0, 255, 255);
  border-radius: 5px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.clanok:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 20px rgba(7, 148, 190, 0.614);
  transition: 0.3s;
}

.clanok:active {
  transform: translateY(-10px);
  box-shadow: 0 20px 20px rgba(7, 148, 190, 0.614);
  transition: 0.3s;
}

.clanok h3 {
  font-family: "Josefin Sans", sans-serif;
  color: #cc0000; /* Výraznejšia červená farba */
  font-size: 24px;
  margin: 0 0 10px 0;
  padding: 0;
  text-align: center;
}

.clanok p {
  font-size: 14px;
  line-height: 1.4;

  margin: 0px;
  padding: 0px;
  text-align: center;
}

.clanok a {
  color: black;
}

.animacia {
  opacity: 0; /* články sú na začiatku neviditeľné */
  transform: translateY(20px); /* posunuté dole o 20px */
  animation: slideUp 0.6s ease forwards; /* spustí animáciu */
}

@keyframes slideUp {
  to {
    opacity: 1; /* stanú sa viditeľné */
    transform: translateY(0); /* vrátia sa do pôvodnej pozície */
  }
}

.stvorec8 {
  width: 230px;
  height: 200px;
  margin: 0 10px;
  background: gray;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-family: "Anton", sans-serif;
  font-style: italic;
  font-size: 25px;
  border-radius: 10px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .stvorec {
    width: 100px;
    height: 100px;
    font-size: 13px;
    text-align: center;
    justify-items: center;
    align-items: center;
  }

  .kontajner {
    margin-top: 0px;
  }

  .stvorec8 {
    width: 100px;
    height: 100px;
    font-size: 13px;
    text-align: center;
  }

  .prvý_nadpis {
    font-size: 20px;
  }

  .h2_1 {
    font-size: 18px;
  }

  .btn1 {
    padding: 20 10px;
    margin: 10px;
  }

  .stvorec2 {
    width: 190px;
    height: 190px;
    gap: 0px;
  }

  .kon1 {
    display: grid;
    grid-template-columns: repeat(2, 190px); /* 3 stĺpce */
    gap: 20px;
  }

  .clanky {
    display: grid;
    grid-template-columns: repeat(2, 170px); /* 3 stĺpce */
    gap: 10px;
  }

  .clanok {
    width: 170px;
    height: 170px;
  }

  .nadpiss {
    font-size: 30px;
  }
}
