@import url('https://fonts.googleapis.com/css2?family=Caudex:wght@400;700&display=swap');

/* Reset okrajů a vnitřního odsazení pro všechny prvky */
*{
  margin: 0;
  padding: 0;
}

/* Nastavení fontu celé stránky */
body{
  font-family: "Caudex", serif;
}

/* Sekce úvodu: nastavení pozadí, výšky a flexbox pro vycentrování obsahu */
#uvod {
  background: url(Fotky/Background_2.png) no-repeat top/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 5%;
}

/* Obal pro text, aby byl uprostřed */
#text-container {
  flex: 1;
  text-align: center;
}

/* Nadpis uprostřed */
h1 {
  font-size: 8rem; /* Mírně zmenšeno pro lepší responzivitu */
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin: 0;
}

/* Obrázek napravo */
.novy-obrazek {
  width: 500px;
  height: auto;
  position: absolute;
  right: 5%;
  bottom: 1%;
}

/* Pro obrazek postavy */
.novy-obrazek, .logo {
  transition: transform 0.3s ease, border 0.3s ease;
}

.novy-obrazek:hover, .logo:hover {
  transform: scale(1.05); 
}

/* Logo v levém horním rohu */
.logo {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 200px;
  height: auto;
}

/* Responzivita pro menší obrazovky */
@media (max-width: 1024px) {
  h1 {
    font-size: 6rem; 
  }
  .novy-obrazek {
    width: 300px; 
    right: 2%;
  }
}

@media (max-width: 768px) {
  #uvod {
    flex-direction: column;
    justify-content: center;
  }
  h1 {
    font-size: 4rem; 
  }
  .novy-obrazek {
    width: 250px;
    position: static;
    margin-top: 20px; 
  }
}

.pergamen {
padding-left: 5%;
}

.mapa img{
  border-radius: 350px;
}

#postava {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 20px;
  color: white;
}

/* Responsivní grid */
.container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  text-align: center;
  max-width: 1200px;
  width: 100%;
}

/* Povolání */
.povolani h2, .postava h2, .schopnosti h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

/* Obrázek postavy */
.postava img {
  width: 300px;
  height: auto;
  transition: transform 0.3s ease;
}

/* Schopnosti */
.schopnost {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.schopnost img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  margin-right: 40px;
}

/* Mobilní úpravy (do 767px) */
@media (max-width: 767px) {
  .container {
    gap: 30px; /* Menší mezery */
  }

  .povolani h2, .postava h2, .schopnosti h2 {
    font-size: 1.8rem; /* Menší nadpisy */
    margin-bottom: 15px;
  }

  .postava img {
    width: 220px; /* Zmenšený obrázek */
    margin-left: 100px;
  }

  .schopnost img {
    width: 45px; /* Menší ikony */
    height: 45px;
    margin-right: 20px; /* Menší mezera */
  }

  .schopnost p {
    font-size: 0.9rem; /* Menší text */
  }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .container {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
  }

  .postava img {
    width: 350px;
  }

  .schopnost img {
    width: 70px;
    height: 70px;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .postava img {
    width: 400px;
  }

  .schopnost img {
    width: 80px;
    height: 80px;
  }
}

/* Sekce o hre s pozadím a rozlozenim sekce*/
#ohre{
  background: url(Fotky/Background.png) no-repeat top/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

#postava{
  background: url(Fotky/Background.png) no-repeat top/cover;
  height: 100vh;
}

/* Sekce o vydání hry s gradientem na pozadí a vycentrovaným textem */

#vydani {
  display: flex;
  justify-content:center;
  align-items:center;
  height: 30vh;
  background: linear-gradient(180deg,rgba(131, 109, 86, 0.664)0%, rgb(18, 157, 175)) 100%;
  color: whitesmoke;
}

#vydani .content {
  text-align: center;
  max-width: 800px;
  padding: 20px;
}

/* Vycentrování ikon */
.icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Nastavení velikosti a barvy ikon */
.icons i {
  font-size: 6em;
  color: #333;
  cursor: default;
}

/* Barva pro ikonu Steam */
#steam{
    background: linear-gradient(to bottom right, #171a21 20%,#3f51b5 100%);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
   -webkit-text-fill-color:transparent;
}

#xbox{
  color: #0e7a0d;
}

/* Nastavení rozložení a velikosti obrázku */
#sponzori{
  background: url(Fotky/Background.png) no-repeat top/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.mapa img {
  width: 100%;
  height: auto;
  max-width: 1500px;
}

/* Sekce s kontakty s gradientem na pozadí a vycentrovaným, upraveným textem */
#kontakty {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 30vh;
  background: linear-gradient(180deg, rgb(18, 157, 175) ,rgba(131, 109, 86, 0.664));
  color: whitesmoke;
  padding: 20px;
}

#kontakty .content {
  text-align: center;
  max-width: 800px;
  width: 100%;
  padding: 20px;
}

/* Responsivní úpravy pro tablety: změna velikosti obrázků, textu a ikon */
@media (max-width: 768px) {
.logo {
    width: 80px;
}

h1{
    font-size: 5rem;
}

h2 {
  font-size: 1.5em;
}

h3 {
  font-size: 1.2em;
}

h4 {
  font-size: 1em;
}

.icons i {
  font-size: 4em;
}

.mapa img {
  max-width: 100%;
}

#kontakty {
    height: auto;
    padding: 10px;
}

#kontakty .content {
    padding: 15px;
}

}

/* Responsivní úpravy pro mobilní zařízení: stejné prvky jako u tabletů */
@media (max-width: 480px) {
.logo {
    width: 50px;
}

h1 {
    font-size: 3rem;
}

h2 {
  font-size: 1.2em;
}

h3 {
  font-size: 1em;
}

h4 {
  font-size: 0.9em;
}

#postava img{
  max-height: 95%;
  max-width: 50%;
}

.icons i {
  font-size: 2em;
}

.mapa img {
  max-width: 100%;
}

#kontakty {
    padding: 5px;
}

}