 * {
  box-sizing: border-box;
  }
  

 html {
    scroll-behavior: smooth;
  }

  body {
    font-family: Arial, sans-serif;
    padding: 20px 20px 20px 20px;
    display: grid;   
    place-items: center;
    background-color: black;
    color: #FFF1E6;
  }

  .cute-font-regular {
    font-family: "Cute Font", sans-serif;
    font-weight: 400;
    font-style: normal;
    margin: -100px;
    gap: 0px;
  } 


  img{
      max-width: 100%;   /* aby se obrázek zmenšoval spolu s rodičem */
  width: 700px;      /* výchozí max velikost, pokud je místo */
  height: auto;      /* zachování poměru stran */
  display: block;
  margin: 0 auto;    /* volitelné – zarovnání na střed */
  }

  li{
    font-size: 19px;
    margin-left: 10px;
    padding-bottom: 10px;
    list-style: disc;
    max-width: 660px;
  }

  h1{
    text-align: center;
    font-size: 30px;
    margin: 0px;
    margin-top: 50px;
    margin-bottom: 20px;
  }

  h2{
    font-family: "Cute Font";
    text-align: center;
    font-size: 50px;
    margin: 0px;
    margin-top: 20px;
  }

  h3{
    margin: 0px 0px 0px 0px;
    font-size: 21px;
    margin: 0px;
    margin-bottom: 5px;
    max-width: 700px;
  }

  p{
    max-width: 700px;
    font-size: 19px;
    margin: 0px 0 15px 0;
  }
  a{
    font-size: 19px;
    margin: 0px;
  }
  #qrcode {
    background-color: white;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: white;
    display: block;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.6s ease;
  }

  #qrcode.visible {
    opacity: 1;
  }
  
  button {
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 10px 20px;
    width: 200px;
    font-size: 18px;
    display: block;
    border-radius: 8px;
    border-style: none;
    background-color: rgb(33, 240, 255);
    font-weight: 700;
  }

  input {
    width: 276px;
    padding: 10px;
    font-size: 18px;
    border-radius: 8px;
    border-style: none;
    display: grid;
    margin-top: 25px;
    margin-bottom: 0px;
  }

  .wrap{
      align-items: center;
      justify-content: center;
      place-items: center;
      max-width: 700px;
  }

  #downloadBtn {
    display: none;              /* tlačítko se chová jako blokový prvek */
    margin: 5 auto 0 auto;    /* automatické zarovnání na střed */
  }

  .downloadBtn.visible{
    display: block;
    background-color: rgb(33, 240, 255);
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
  }

.page-container h3{
  text-align: center;
}

footer{
  margin-top: 20px;
  padding: 30px;
  text-align: center;
  width: 100%;
}

footer p{
  margin: 0;
  padding: 0px;
  max-width: 100%;
}

nav button{
  width: 70px;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
}

#logoimg{
  margin-top: 40px;
  max-width: 320px;
  height: auto;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 50px;
  padding: 5px;
  font-weight: 600;
  font-size: 20px;
}

.nav-links a {
  color: #FFF1E6;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: rgb(33, 240, 255);
}

.menu-toggle {
  display: none;
  font-size: 1.5em;
  background: none;
  border: none;
  color: #FFF1E6;
  cursor: pointer;
}

nav {
  padding: 0;
  margin: 0;
  width: 70px;       /* ⬅ zmenšená šířka */
  position: absolute;            /* ⬅ zarovná doprava */
  top: 0;
  border-radius: 0 0 8px 8px; /* ⬅ volitelné: zaoblení levého dolního rohu */
  z-index: 999; 
  background-color: #1a1a1a;
  margin-left: 600px;
}

.menu-toggle {
  display: block;
  margin: 0px;
}
#modeToggle {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
}

#modeToggle button {
  display: inline-block;
  width: auto;
  padding: 10px 20px;
  font-size: 1.1em;
}

#modeToggle button.active {
  background-color: #6e6e6e; /* tmavší zelená pro aktivní */
}

/* Odpovídající grid-like chování */
#urlSection,
#wifiSection {
  max-width: 600px;
  margin: 0 auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}


#toggleBtns{
  grid-template-columns: 1 1;
  display: block;
}

input, select, button {
  font-family: inherit;
  font-size: 1.2em;
  padding: 10px;
  margin: 5px auto;
  border-radius: 8px;
  display: block;
  width: 100%;
  max-width: 250px;
  box-sizing: border-box;
}

.nav-links {
  flex-direction: column;
  background-color: #1a1a1af9;
  position: absolute;
  top: 40px;

  right: 0;
  gap: 0;
  border-radius: 5px;
  text-align: center;
  width: 190px;

  /* Animace */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 10px;
  transition:
    max-height 0.4s ease-in-out,
    opacity 0.3s ease-in-out,
    padding 0.3s ease-in-out,
    gap 0.3s ease-in-out;
}

.nav-links.active {
  max-height: 500px;
  opacity: 1;
  padding: 10px;
  gap: 15px;
}

@media screen and (max-width: 800px){
  nav{
    margin-right: 1%;
    margin-left: 80%;
  }
  
  #logoimg{
    max-width: 280px;
    margin-top: 50px;
  }
  h1{
    font-size: 26px;
  }
}

