/* MOBIL 1080x2640 */
/* TABLET 2360 x 1640*/

@import url(https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap);
@import url(https://necolas.github.io/normalize.css/8.0.1/normalize.css);

:root {
  --main-color: #161616;
  --background-color: #242323;
  --text-color: #ffffff;
  --my-color: #1977f1;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: var(--background-color);
  min-height: 100vh;
}

body,
h1,
h2,
p,
ul {
  margin: 0;
  padding: 0;
}

body {
  font-family: Helvetica, Arial, Sans-Serif;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  /* will-change: transform; */
  /* transform: translateZ(0); */
}

h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

h2 {
  font-size: 30px;
  text-align: center;
}

h3 {
  font-size: 24px;
  display: flex;
  justify-content: center;
  margin: 4px;
  color: var(--text-color);
}

p {
  line-height: 1.5;
  color: var(--text-color);
}

h1,
h2,
h3,
p,
ul,
li {
  color: var(--text-color);
}

* {
  box-sizing: border-box;
  /* -webkit-backface-visibility: hidden; */
  /* backface-visibility: hidden;             Tyhle tri radky narusovaly stacking context */
  /* -webkit-transform-style: preserve-3d; */
}

a {
  color: var(--text-color);
  /*color: inherit; /* zdědí barvu rodiče, např. černou nebo bílou */
  text-decoration: none; /* odstraní podtržení, pokud nechceš */
}

a:visited {
  color: var(--text-color);
  /*color: inherit; /* zabrání změně barvy po kliknutí */
}

.mobile-alert {
  display: none;
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);

  width: auto;
  justify-content: center;
  text-align: center;
  color: var(--text-color);
  font-size: 22px;
}

@media screen and (max-width: 1000px) {
  .mobile-alert {
    display: none; /* zobrazit na mobilních zařízeních */
    font-size: 28px;
    font-weight: bold;
    z-index: -1;
  }
}

/* LANGUAGE MENU */

.lang-menu {
  font-family: "Montserrat", sans-serif;
  color: var(--text-color);
  position: absolute;
  top: 0;
  right: 45px;
  margin-top: 15px;
  z-index: 100;
}

@media screen and (max-width: 1500px) {
  .lang-menu {
    margin-top: 8px;
  }
}

.selected-lang {
  cursor: pointer;
  display: flex;
  line-height: 2;
  width: 100px;
  color: white;
}

@media screen and (max-width: 1000px) {
  .selected-lang {
    font-size: 22px;
    width: 180px;
  }
}

.selected-lang:before {
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  background-image: var(--flag-url, url("https://flagsapi.com/CZ/flat/64.png"));
  background-size: 32px 32px;
}

@media screen and (max-width: 1000px) {
  .selected-lang:before {
    width: 50px;
    height: 50px;
    background-image: var(--flag-url, url("https://flagsapi.com/CZ/flat/64.png"));
    background-size: 50px 50px;
  }
}

.flag-text {
  margin-left: 10px;
}

@media screen and (max-width: 1500px) {
  .flag-text {
    font-size: 15px;
    margin-top: 2px;
  }
}

@media screen and (max-width: 1000px) {
  .flag-text {
    font-size: 22px;
    margin-top: 4px;
  }
}

.lang-menu ul {
  position: absolute;
  display: none;
  padding: 0;
  padding-top: 8px;
  list-style: none;
  margin: 0;
  background-color: var(--main-color);
  /* background-color: rgb(176, 236, 10); TEST */
  /* border: 0px solid #747474; */
  box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  top: 32px;
  right: -20px;
  z-index: 999999999;
}

@media screen and (max-width: 1000px) {
  .lang-menu ul {
    top: 50px;
    right: 0px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .lang-menu:hover ul {
    display: block;
  }
}

.lang-menu.open ul {
  display: block;
}

.lang-menu ul.open {
  display: block;
}

.lang-menu ul li {
  list-style: none;
  display: flex;
  justify-content: space-between;
}

.lang-menu ul li a {
  width: 140px;
  display: block;
  padding: 5px 10px;
  color: var(--text-color);
}

.lang-menu ul li a:hover {
  background-color: var(--background-color);
}

.lang-menu ul li a:before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  vertical-align: middle;
}

@media screen and (max-width: 1000px) {
  .lang-menu ul li a {
    width: 180px;
    font-size: 22px;
    padding: 10px 15px;
  }
  .lang-menu ul li a:before {
    width: 50px;
    height: 50px;
    margin-right: 15px;
  }
}

.pl:before {
  background-image: url("https://flagsapi.com/PL/flat/32.png");
}

.en:before {
  background-image: url("https://flagsapi.com/GB/flat/32.png");
}

.cs:before {
  background-image: url("https://flagsapi.com/CZ/flat/32.png");
}

@media screen and (max-width: 1000px) {
  .pl:before {
    background-image: url("https://flagsapi.com/PL/flat/64.png");
    background-size: 50px 50px;
  }

  .en:before {
    background-image: url("https://flagsapi.com/GB/flat/64.png");
    background-size: 50px 50px;
  }

  .cs:before {
    background-image: url("https://flagsapi.com/CZ/flat/64.png");
    background-size: 50px 50px;
  }
}

/* LOGO */

.logo {
  position: relative;
  width: 290px;
  height: auto;
  margin-right: 10px;
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease; /* plynulý efekt */
  /* filter: brightness(0) saturate(100%) invert(39%) sepia(51%) saturate(5325%) hue-rotate(203deg) brightness(99%) contrast(92%); */
  z-index: 5;
  transform: scale(0.95);
}

@media (max-width: 1500px) {
  .logo {
    width: 210px;
  }
}

@media (max-width: 1000px) {
  .logo {
    width: 310px;
  }
}

.logo:hover {
  transform: scale(1.05);
  /* filter: brightness(0) saturate(100%) invert(39%) sepia(51%) saturate(5325%) hue-rotate(203deg) brightness(99%) contrast(92%); */
}

main {
  position: relative;
  flex: 1;
}

.header-placeholder {
  width: 100%;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 9999999;
}

header {
  width: 100%;
  position: relative;
  background-color: var(--main-color);
  padding: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  /* To not hide on iOS */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* transform: translateZ(0); */

  z-index: 99999;
}

nav {
  position: relative;
  right: 2vw;
}

@media (max-width: 1000px) {
  nav {
    display: none;
  }
}

nav ul {
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  position: relative;
  display: inline-block;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
  text-align: center;
}

nav ul li a {
  position: relative;
  display: inline-block; /* důležité pro transform */
  color: #fff;
  text-decoration: none;
  font-size: 21px;
  font-weight: bold;
  padding-bottom: 3px;
  margin: 0 30px;
  margin-top: 30px;
  transition: transform 0.5s;
  transform-origin: bottom; /* zvětšování směrem dolů */
}

@media (max-width: 1500px) {
  nav ul li a {
    font-size: 17px; /* menší písmo pro mobil */
  }
}

@media (max-width: 1000px) {
  nav ul li a {
    font-size: 20px; /* menší písmo pro mobil */
    margin: 0 18px;
    margin-top: 53px;
  }
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0px;
  height: 2px;
  width: 0;
  background-color: var(--my-color);
  transition: width 0.5s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a:hover {
  transform: scale(1.2);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: var(--main-color);
  padding: 0 20px 20px 0px;
  top: 100%;
  left: 0;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown {
  position: relative;
}

.dropdown-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-menu li a {
  display: block;
  margin-top: 20px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text-color);
}

/* MOBILE NAVIGATION */

.mobile-nav {
  display: none;
}

.hamburger {
  font-size: 80px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  margin-top: 45px;
  margin-right: 20px;
}

.mobile-menu {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--main-color);
  position: absolute;
  top: 130px;
  right: -8px;
  width: 300px;
  z-index: 999;
  overflow: hidden;
}

.mobile-menu li {
  transition: all 0.3s;
  text-align: center;
}

.mobile-menu li a {
  position: relative;
  display: inline-block;
  display: block;
  margin: 15px 0px;
  padding: 20px;
  text-decoration: none;
  color: var(--text-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 40px;

  transition: transform 0.5s;
  transform-origin: bottom; /* zvětšování směrem dolů */
}

.mobile-menu li a::after {
  content: "";
  position: absolute;
  left: 0px;
  bottom: 2px;
  height: 4px;
  width: 0;
  background-color: var(--my-color);
  transition: width 0.5s ease;
  padding-left: 20px;
}

.mobile-menu li a:hover::after {
  width: 100%;
}

.mobile-menu li a:hover {
  transform: scale(1.2);
}

/* Zobraz mobilní menu při aktivaci */
.mobile-nav.open .mobile-menu {
  display: block;
}

/* Media query pro mobil */
@media (max-width: 1000px) {
  .mobile-nav {
    display: block; /* zobraz hamburger */
    position: relative;
  }
}

/* About sekce */
.about {
  position: relative;
  max-width: 50vw;
  margin: 2.5rem auto;
  padding: 2rem;
  text-align: justify;
  z-index: 2;
}

@media screen and (max-width: 1300px) {
  .about {
    max-width: 75vw;
  }
}

@media screen and (max-width: 1000px) {
  .about {
    max-width: 90vw;
  }
}

.about h1 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 1.7rem;
  color: var(--my-color);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

@media (max-width: 1500px) {
  .about h1 {
    font-size: 37px;
  }
}

@media (max-width: 1000px) {
  .about h1 {
    font-size: 46px;
  }
}

.about p {
  font-size: 18px;
  margin-bottom: 1rem;
  color: var(--text-color);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  text-align: justify;
}

@media (max-width: 1500px) {
  .about p {
    font-size: 15px;
  }
}

@media (max-width: 1000px) {
  .about p {
    font-size: 27px;
  }
}

strong {
  font-weight: 700; /* silnější tučné */
  color: #1977f1; /* zvýrazňovací barva */
}

.background-wrapper,
.background-image {
  position: fixed;
  inset: 0;
  width: 92%;
  height: 100%;
  pointer-events: none;
  display: flex;
  justify-self: center;
  align-items: center;
  z-index: 1;
}

.background-image {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: grayscale(1) brightness(0.28);
  transition: opacity 0.8s ease;
  opacity: 0;
  pointer-events: none;
}

.background-image.active {
  opacity: 1;
}

/* Video boxy */
.container {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  width: 750px;
  gap: 70px;
  margin-top: 35px;
  z-index: 10;
}

.box-wrapper h2 {
  position: relative;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* Nadpis se při hoveru boxu posune nahoru */
.box-wrapper h2 a {
  position: relative;
  display: inline-block; /* nutné pro transform */
  font-size: 1.5rem;
  color: var(--text-color);
  transition: transform 0.5s; /* animace pohybu */
  transform-origin: bottom;
}

@media screen and (max-width: 1500px) {
  .box-wrapper h2 a {
    font-size: 20px;
  }
}

@media screen and (max-width: 1000px) {
  .box-wrapper h2 a {
    font-size: 30px;
  }
}

.box-wrapper h2 a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 0;
  background-color: var(--my-color);
  transition: width 0.7s ease;
}

.box-wrapper h2 a:hover::after {
  width: 100%;
}

.box-wrapper h2 a:hover {
  transform: scale(1.2);
}

/* Box a video */
.box {
  width: 100%;
  height: 250px;
  border: 4px solid #000;
  /* filter: grayscale(1); */
  overflow: hidden;
  transition: transform 0.4s, filter 0.4s, border-color 0.4s;
  position: relative;
  margin-top: 15px;
  aspect-ratio: 14 / 9;
}

@media (hover: hover) and (pointer: fine) {
  .box {
    filter: grayscale(1);
  }
}

@media screen and (max-width: 1500px) {
  .box {
    height: 200px;
  }
}

@media screen and (max-width: 1000px) {
  .box {
    width: 40vw;
    height: auto;
  }
}

.box:hover {
  filter: grayscale(0);
  transform: scale(1.22);
  border-color: var(--my-color);
}

.box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-placeholder {
  position: relative;
  top: 0;
}

.index-foot {
  padding-top: 20px;
  font-size: 14px;
  background-color: var(--main-color);
  color: var(--text-color);
  padding: 12px;
  text-align: center;
  width: 100%;
}

/* THANK YOU PAGE */

.thankyou-container {
  text-align: left; /* vycentrování textu */
  max-width: 600px; /* omezení šířky pro lepší čitelnost */
  margin: 2rem auto; /* mezery nahoře a dole, vycentrováno horizontálně */
  padding: 2rem;
  color: var(--text-1); /* využití tvé barevné proměnné */
}

.thankyou-container h1 {
  font-size: 2.1rem; /* hlavní nadpis */
  font-weight: 400;
  margin-bottom: 1rem; /* mezera pod nadpisem */
}

.thankyou-container p {
  font-size: 1rem; /* stejná velikost jako body text */
  line-height: 1.6; /* lepší čitelnost */
  margin: 0;
}

.construction-text {
  text-align: center;
  font-size: 24px;
  color: var(--text-color);
  margin-top: 50px;
}
