body {
  margin: 0;
  padding: 0;
  background-color: #0b0a1d;
  color: #e0dede;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  min-height: 200vh;
}

header {
  text-align: center;
  padding: 2rem 1rem;
}

#Main-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
  margin-top: 1rem;

}

.main-h1 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #ffffff;
  /* nebo jakákoliv barva, kterou používáš */
  line-height: 1.2;
}

img {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 2rem;
}

section {
  padding: 2rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

h2,
.content-block h2,
.features-container h2,
.offer-wrapper h2,
.offer-text h2 {
  font-size: 1.6rem;
  font-weight: bold;
  color: #ffffff;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

p {
  margin-bottom: 1rem;
}

/* Horní pruh */
.top-bar {
  position: sticky;
  /* zůstává nahoře při scrollu */
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0b0a1d;
  padding: 1.2rem 2rem;
  /* horní+dolní = 1.2rem, levý+pravý = 2rem */
  border-bottom: 1px solid #222;

}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo a {

  color: #ffffff;
  text-decoration: none;
  font-size: 24px;
  font-style: normal;
  font: orbitron;
  font-weight: bold;
  transition: color 0.3s ease;
}

.logo a:hover {
  color: #AD49B9;
}

/* Navigace */
.main-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  /* rozestupy mezi položkami */
  list-style: none;
  margin: 0;
  padding: 0;

}

.centered-nav {
  display: flex;
  justify-content: center;
  flex: 1;
}




.main-nav li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  font-size: 16px;
}

.main-nav li a:hover {
  color: #AD49B9;
}

/* Mobil: menu pod sebou Řeší rozpad obrázkových sloupců (např. "Ekrany aplikacji") na mobilu */
@media (max-width: 768px) {
  .wp-block-columns {
    flex-wrap: wrap !important;
  }

  .wp-block-columns>.wp-block-column {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}


/* Ten řeší navigační menu – aby se při zmenšení obrazovky položky skládaly pod sebe a nebyly moc natěsno.*/
@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .centered-nav {
    position: static;
    transform: none;
    margin: 1rem auto;
    text-align: center;
  }
}

.footer-grid-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  background-color: #0b0a1d;
  color: #d3d3d3;
  padding: 1rem 2rem 2rem 2rem;
  /* top | right | bottom | left */
  text-align: left;
}

.footer-column {
  flex: 1 1 30%;
  min-width: 240px;
  max-width: 360px;
  font-size: 14px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.footer-column h3 {
  color: #e8cceb;
  margin-bottom: 12px;
  border-bottom: 2px solid #780F66;
  display: inline-block;
  padding-bottom: 5px;
  font-size: 20px;
}

.footer-logo {
  margin-top: 15px;
  max-width: 110px;
}

.footer-bottom {
  width: 100%;
  background-color: #780F66;
  color: #d3d3d3;
  text-align: center;
  padding: 15px 10px;
  font-size: 13px;
  border-top: 1px solid #625f5f;
}


html {
  scroll-behavior: smooth;
}

.hero {
  background-image: url('bg_hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 3rem 1.5rem;
  max-width: 100%;
}



.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(239, 30, 184, 0.5);
  /* tmavší filtr pro lepší čitelnost */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 3rem;
  color: #e0dede;
}

.hero-subtitle {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  opacity: 0.95;
  color: #e0dede;
}

.hero-tagline {
  font-size: 1rem;
  color: #e0dede;
  padding-bottom: 2rem;
}




.about-section {
  background-color: #0b0a1d;
  color: #e0dede;
  padding: 60px 20px;
  margin-top: -60px;

}

.features-section {
  background-color: #0b0a1d;
  color: #e0dede;
  padding: 20px 0 40px 0;
  /* sníženo z 40 na 20 nahoře */
  margin-top: -40px;
}


.features-container {
  max-width: 800px;
  margin: 0 auto;
  padding-left: 20px;
  /* stejně jako .about-text má padding */
  padding-right: 20px;
  text-align: left;
}





.about-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  flex: 1 1 500px;

}

.about-image {
  flex: 1 1 400px;
  text-align: center;
  padding: 20px;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}





.cosmic-list {
  flex: 1 1 auto;
  max-width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cosmic-list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 28px;
  font-size: 1rem;
  color: #e0dede;

}

.cosmic-list li::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 2px;
  color: #e5cff4;
  text-shadow: 0 0 8px #AD49B9, 0 0 15px #780F66;
  font-size: 1rem;

}

.list-intro {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: #d8d8f0;
}

.content-block {

  max-width: 1100px;
  margin: 0 auto;
  padding: 0px;
  color: #e0dede;
  text-align: left;
  scroll-margin-top: 80px;
  /* výška top-baru, uprav dle potřeby */
}




.content-block p {
  margin-bottom: 1rem;
  line-height: 1.6;
}



.features-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
}

.features-image {
  flex: 1 1 300px;
  max-width: 400px;
  text-align: center;
}

.features-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
}

.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  /* zmenší horizontální mezery */
  margin-bottom: 1.5em;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  margin-top: 2rem;
  justify-content: center;
}



.wp-block-column {
  flex: 1;
  padding: 0.25rem;
  /* zmenší vnitřní mezery */
  box-sizing: border-box;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.wp-block-heading {
  margin-bottom: 0.25em;
}

img {
  margin-top: 0 !important;
  margin-bottom: 0.5em !important;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;

}




.custom-separator {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  width: 80%;
  margin: 2rem auto;



}


#lang-switcher {
  text-align: right;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1rem;
}




.lang-btn {
  background-color: #e4d9f9;
  color: #1a1a1a;
  border: 1.5px solid #e8cceb;
  padding: 5px 10px;
  /* menší vnitřní mezery */
  /* vnitřní odsazení – velikost tlačítka */
  margin-left: 0.4rem;
  /* menší mezera mezi tlačítky */
  border-radius: 12px;
  /* lehce menší zaoblení */
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  /* menší písmo */
  transition: all 0.3s ease;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  /* vertikální centrování */
  justify-content: center;
  /* horizontální centrování */
  min-height: 20px;
  /* pomáhá k lepšímu centrování */
}



.lang-btn:hover {
  background-color: #AD49B9;
  /* tmavší fialová */
  color: #0b0a1d;
  box-shadow: 0 0 10px rgba(203, 160, 212, 0.5);
  transform: scale(1.05);

}

/* Zvýraznění aktivního jazyka */
.lang-btn.active {
  background-color: #8a5ddf;
  /* tmavší fialová */
  color: #fff;
}

.why-wrapper {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 3rem 1rem;
  padding-top: 5rem;
  /* zvětši na 5–6rem podle potřeby */
  scroll-margin-top: 80px;

}

.why-text {
  flex: 1;
  min-width: 280px;
  text-align: left;
  color: #e0dede;
}

@media (max-width: 768px) {
  .why-text {
    text-align: center;
  }
}

.why-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.why-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  max-height: 400px;


}

.why-image a:hover {
  color: #AD49B9;
}

.why-horoscope {

  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1rem 2rem;
}

.offer-wrapper {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0rem;
  max-width: 1100px;
  margin: 0 auto;
}

.offer-text {
  flex: 1;
  min-width: 280px;
  padding: 0;
  margin: 0;
  color: #e0dede;

}

#co-oferuje .offer-text h2 {
  text-align: left;
}

.offer-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}



.offer-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  object-fit: cover;
  /* pokud chceš, aby se oříznul, když je moc velký */
  max-height: none;
}



/* Styl pro miniaturu */
.zoomable-img {
  max-width: 100%;
  height: auto;
  cursor: pointer;
  transition: 0.3s ease;
}

/* Pozadie a vrstva */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  /* ⬅ toto pridaj, aby sa nedeformoval */
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Zavrieť */
.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

#o-aplikacji {
  padding-top: 0;
}







.text-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* místo auto-fit */
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 700px) {
  .text-grid {
    grid-template-columns: 1fr;
  }
}


.text-box {
  background-color: #191829;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
  color: #e0dede;
  transition: transform 0.3s ease;
}

.text-box:hover {
  transform: translateY(-5px);
}

.intro-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 2.5rem;
}

.intro-text {
  flex: 2;
  min-width: 300px;
  color: #e0dede;
}

.intro-qr {
  flex: 1;
  min-width: 150px;
  text-align: center;
  align-items: center;
  margin-top: 3rem;
  /* přidáme odsazení dolů */
  padding: 2rem 1rem;
  margin: 40px auto;
}


.qr-img:hover {
  transform: scale(1.05);
}

.intro-qr img.qr-img {
  width: 120px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}


.play-btn {
  display: inline-block;
  background-color: #780F66;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 1rem;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(76, 76, 221, 0.3);
  transition: background-color 0.3s, transform 0.3s;
}

.play-btn:hover {
  background-color: #44306c;
  transform: translateY(-2px);
}

/* QR kód */
.qr-img {
  width: 120px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

/* Google badge */
.google-badge {
  display: block;
  max-width: none;
  width: auto;
  height: 80px;
  margin: 10px auto 0 auto;
  transition: transform 0.3s ease;
}

/* Hover efekt pro badge */
.google-badge:hover {
  transform: scale(1.05);
}

/* Popisek pod QR */
.qr-caption {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 15px;
  margin-top: 10px;
}

/* Responsivní úprava */
@media (max-width: 480px) {
  .qr-img {
    width: 100px;
  }

  .google-badge {
    height: 60px;
  }

  .qr-caption {
    font-size: 0.9rem;
  }
}


.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  height: 100%;
  /* přidáme */
}

/* velikost, barva a parametry nadpisu Nowalogy */
.logo-text {
  font-size: 2rem;
  font-weight: bold;
  color: white;
}

.logo a {
  font-size: 2rem;
  font-weight: bold;
  color: #e1def9;
  text-decoration: none;
}

.logo-icon {
  height: 40px;
  /* finální velikost loga */
  width: auto;
  display: block;
  position: relative;
  top: 4px;
  /* nebo 3px, 4px – podle potřeby */
  opacity: 0.9;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.logo-icon:hover {
  transform: scale(1.1);
}

.logo a {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

@keyframes starPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.logo-icon.animate-star {
  animation: starPulse 0.8s ease-in-out;
}

/* styl bubliny */
.star-message {
  position: absolute;
  left: 50px;
  top: -30px;
  background-color: rgba(91, 62, 91, 0.08);
  color: #fff;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 1rem;
  font-style: italic;
  white-space: nowrap;
  box-shadow: 0 0 8px rgba(228, 226, 226, 0.2);
  backdrop-filter: blur(4px);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.6s ease;

}

.star-message.show {
  opacity: 1;
}

.star-message.hidden {
  display: none;
}

.logo {
  position: relative;
  /* důležité pro umístění zprávy */
}

#cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #1c1c1c;
  color: #ccc;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  z-index: 9999;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  font-family: inherit;
  display: none;
}

#cookie-banner .lang {
  margin-bottom: 0.6rem;
}

#cookie-banner button {
  background-color: #6f44bd;
  color: white;
  border: none;
  padding: 0.4em 1.1em;
  font-size: 0.85rem;
  border-radius: 9999px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease;
  margin: 0;
}

#cookie-banner button:hover {
  background-color: #56339d;
}

html {
  scroll-behavior: smooth;
}

:focus {
  outline: 2px dashed #c499e3;
  outline-offset: 4px;
  border-radius: 8px;
}

a:focus img,
img:focus {
  outline: 2px dashed #c499e3;
  outline-offset: 4px;
  border-radius: 8px;
}

.google-badge:focus {
  outline: none;
  outline-offset: 4px;
  border-radius: 8px;
}

body.mouse-mode .lang-btn:focus,
body.mouse-mode a:focus,
body.mouse-mode button:focus,
body.mouse-mode .zoomable-img:focus {
  outline: none;
}

.lang-btn,
.lang-btn:visited,
.lang-btn:hover,
.lang-btn:focus {
  text-decoration: none;
}

.language-bar {
  background-color: #0b0a1d;
  text-align: right;
  padding: 2px 50px;
  /* sníženo z 3px */
  font-size: 13px;
  /* můžeš zkusit i 12px */
  line-height: 1;
}

.language-bar .lang-btn {

  margin-left: 10px;
  text-decoration: none;
  transition: color 0.3s;
}

.language-bar .lang-btn:hover {
  color: #a288f3;
  /* fialová jako hover na nav */
}


/* Výchozí outline jen pro klávesnici */
:focus-visible {
  outline: 2px dashed #c499e3;
  outline-offset: 4px;
  border-radius: 8px;
}

/* Skryj outline při ovládání myší */
body.mouse-mode :focus {
  outline: none !important;
}

/* Výjimka – specificky pro Google badge uvnitř odkazu */
a:focus-visible img.google-badge {
  outline: 2px dashed #c499e3;
  outline-offset: 4px;
  border-radius: 8px;
}

/* Pokud chceš zvýšit jistotu – můžeš přidat i samostatně pro obrázek */
img.google-badge:focus-visible {
  outline: 2px dashed #c499e3;
  outline-offset: 4px;
  border-radius: 8px;
}

/* zvyraznene pismo v textu */
.highlight {
  color: #c499e3;
  font-weight: bold;
}

@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .logo {
    margin-bottom: 0.5rem;
  }

  .language-switcher {
    align-self: flex-end;
    margin-top: 0.5rem;
  }

  .main-nav {
    width: 100%;
    text-align: center;
    gap: 1.2rem;
    margin-top: 1rem;
  }

  .main-nav li a {
    font-size: 18px;
    display: block;
  }
}

.main-nav li {
  padding: 0.3rem 0;
}

/* Navigační menu – na mobilu úplně zmizí */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
}


@media (max-width: 768px) {
  .why-wrapper {
    flex-direction: column;
    align-items: flex-start; /* nechává text vlevo, ale nedeformuje obraz */
  }

  .why-text,
  .why-text p,
  .why-text h2 {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .why-image {
    width: auto;
    max-width: 100%;
    margin-top: 1.5rem;
  }

  .why-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    display: block;
  }
}


/* Zmenšíme texty v .hero na menších obrazovkách*/
@media (max-width: 768px) {
  .hero-title {
    font-size: 20px;
    line-height: 1.4;
  }

  .hero-subtitle {
    font-size: 18px;
    line-height: 1.4;
  }

  .hero-tagline {
    font-size: 16px;
    line-height: 1.4;
  }

  .hero-content {
    padding: 1.5rem 1rem;
    text-align: center;
  }
}


@media (max-width: 768px) {
  .hero,
  .intro-wrapper,
  .intro-section,
  .content-block,
  .offer-image {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* === MOBILNÍ ZAROVNÁNÍ A ROZTAŽENÍ NA CELOU ŠÍŘKU === */
@media (max-width: 768px) {
  html,
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  section,
  .content-block,
  .hero,
  .intro-wrapper,
  .intro-section,
  .offer-wrapper,
  .why-wrapper,
  .main-wrapper,
  .wp-block-group,
  .wp-block-columns {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }

  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
}

/* Oprava roztaženého Google Play tlačítka na menších obrazovkách */
@media (max-width: 1024px) {
  .intro-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
  }

  .intro-qr .qr-img {
    max-width: 180px;
    height: auto;
  }

  .google-badge {
    max-width: 180px;
    width: 100%;
    height: auto;
  }
}

/* Zarovnání loga vlevo ve footeru na mobilu */
@media (max-width: 768px) {
  .footer-logo {
    display: block;
    margin-left: 0;
    margin-right: auto;
    padding-left: 0;
    max-width: 150px;
    height: auto;
  }
}


/* butonky jazykove mutace */
#langBtn {
  background-color: #e1def9;
  color: #2d2250;
  border: none;
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

#langMenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  background-color: #1c1c2d;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  padding: 8px 0;
  list-style: none;
  z-index: 1000;
}

#langMenu li {
  padding: 8px 16px;
}

#langMenu li a {
  color: #fff;
  text-decoration: none;
  display: block;
}

#langMenu li:hover {
  background-color: #2f2f44;
}

.hidden {
  display: none;
}

.language-selector {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

@media (max-width: 768px) {
  .offer-wrapper {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
  }

  .offer-text,
  .offer-image {
    width: 100%;
  }

  .offer-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}