* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}





body {
  font-family: "Ubuntu", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background-color: #daeeff;
  color: #555;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@font-face {
  font-family: "Ubuntu";
  src: url("ttf/Ubuntu-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Ubuntu";
  src: url("ttf/Ubuntu-Italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "Ubuntu";
  src: url("ttf/Ubuntu-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Ubuntu";
  src: url("ttf/Ubuntu-BoldItalic.ttf") format("truetype");
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: "Ubuntu";
  src: url("ttf/Ubuntu-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Ubuntu";
  src: url("ttf/Ubuntu-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: "Ubuntu";
  src: url("ttf/Ubuntu-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Ubuntu";
  src: url("ttf/Ubuntu-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
}

#hlavicka {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: #daeeff;
  padding: 1rem 0;
}

#menu {
  display: flex;
  gap: 15px;
  /* padding: 10px; */
  justify-content: center;
  align-items: center;
  width: 100%;
}

#menu a {
  background-color: #59b2ff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

#menu a:hover {
  background-color: #2f9eff;
}

.menu-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

#telo {
  flex: 1;
  padding: 0 5px 0px 5px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  margin-top: 4.5rem;
  margin-bottom: 2.5rem;
  border-radius: 0px;
}

#obsah {
  min-height: calc(100vh - 7rem);
  background-color: #fff;
  /* padding: 10px 5px 10px 5px; */
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#paticka {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #daeeff;
  font-size: 14px;
  color: #426888;
  text-align: center;
  padding: 0.5rem 0;
}

#nadpis {
  /* position: fixed; */
  width: 100%;
  padding: 7px;
  background-color: #f0f8ff;
  /* border-radius: 10px; */
  font-weight: bold;
  margin: 0 0 20px 0;
  border-radius: 10px 10px 0 0;
  color: #3d5988;
  font-size: 14px;
}

h3 {
  margin: 10px 0 5px 0;
  font-size: 14px;
}

button {
  font-family: "Ubuntu";
  font-weight: bold;
  background-color: #59b2ff;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
  margin: 10px 0;
}

button:hover {
  background-color: #2f9eff;
}

input,
textarea {
  font-family: "Ubuntu";
  padding: 0.75rem;
  border: 1px solid #c6e5ff;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fff;
  color: #333;
  text-align: center;
  width: 100%;
  max-width: 300px;
  /* margin: 10px 0 10px 0; */
}

input:focus,
textarea:focus {
  background-color: #feffe4;
  outline: none;
  border: 1px solid #78c0ff;
}

#info {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  z-index: 1001;
  font-size: 0.9rem;
}

#info.error {
  background-color: #ff4444;
}

.polozky-container {
  /* display: grid; */
  /* grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); */
  /* gap: 1rem; */
  width: 100%;
  margin: 0px;
}

.polozka-item {
  width: 90%;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 20px;
  /* display: flex; */
  display: inline-block;
  flex-direction: column;
  margin: 10px;
  gap: 0.5rem;
}

.polozka-nazev {
  font-weight: bold;
  font-size: 16px;
  text-align: center;
}

.polozka-info {
  font-size: 14px;
  margin-top: 10px;
}

.polozka-info > div {
  /* display: flex; */
  justify-content: space-between;
  /* margin-bottom: 5px; */
}

.polozka-info .key {
  font-weight: bold;
  min-width: 100px;
  text-align: left;
}

.polozka-info .value {
  text-align: right;
  /* margin-left: 10px; */
  flex-grow: 1;
  /* max-width: calc(100% - 110px); */
}

.reset-button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 1rem;
  font-size: 14px;
}

.reset-button:hover {
  background-color: #45a049;
}

.razeni-tlacitko {
  padding: 10px 14px;
  background-color: #59b2ff;
  border: 0px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 14px;
}

.razeni-tlacitko:hover {
  background-color: #4b93d2;
}

.razeni-tlacitko.aktivni {
  background-color: #4b93d2;
  color: white;
  border-color: #000000;
}

.smazat-tlacitko {
  background-color: #ff4444;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.smazat-tlacitko:hover {
  background-color: #cc0000;
}

.polozka-akce {
  /* display: flex; */
  gap: 0.5rem;
  margin-top: 10px;
}

.upravit-tlacitko {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.upravit-tlacitko:hover {
  background-color: #45a049;
}

@media (max-width: 768px) {
  .polozky-container {
    grid-template-columns: 1fr;
  }
}

/* Styly pro nÃ¡povÄ›du (naseptavac) */
#naseptavac-container,
.naseptavac-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  /* margin: 1rem auto; */
}

#naseptavac-container input,
.naseptavac-container input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #c6e5ff;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fff;
  color: #333;
}

#naseptavac-container input:focus,
.naseptavac-container input:focus {
  background-color: #feffe4;
  outline: none;
  border: 1px solid #78c0ff;
}

#pridatNapovedaKategorie,
#ucetNapovedaMesto,
#hledatNapovedaKategorie,
#hledatNapovedaMesto {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  /* border: 1px solid #c6e5ff; */
  border-radius: 10px;
  /* margin-top: 0.25rem; */
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

#pridatNapovedaKategorie button,
#ucetNapovedaMesto button,
#hledatNapovedaKategorie button,
#hledatNapovedaMesto button {
  display: block;
  margin: 0;
  width: 100%;
  /* padding: 0.75rem; */
  /* text-align: left; */
  border: none;
  background-color: transparent;
  color: #333;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#pridatNapovedaKategorie button:nth-child(odd),
#ucetNapovedaMesto button:nth-child(odd),
#hledatNapovedaKategorie button:nth-child(odd),
#hledatNapovedaMesto button:nth-child(odd) {
  background-color: #f9f9f9;
}

#pridatNapovedaKategorie button:nth-child(even),
#ucetNapovedaMesto button:nth-child(even),
#hledatNapovedaKategorie button:nth-child(even),
#hledatNapovedaMesto button:nth-child(even) {
  background-color: #e9f4ff;
}

#pridatNapovedaKategorie button:hover,
#ucetNapovedaMesto button:hover,
#hledatNapovedaKategorie button:hover,
#hledatNapovedaMesto button:hover {
  background-color: #c6e5ff;
}

.penize-ikona {
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.penize-ikona:hover {
  transform: scale(1.2);
}

video {
  margin-top: 1rem;
  border-radius: 4px;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
  border: none;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1000;
}

.popup-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 5px;
  /* border: 2px solid #ccc; */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  font-size: 20px;
  background-color: red;
  padding: 0px 11px 0px 11px;
  color: #ffffff;
  border-radius: 50px;
}

.form-fields-container {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.file-upload-container {
  margin: 10px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.file-upload-container input[type="file"] {
  width: 100%;
  max-width: 300px;
  margin: 0 0 10px 0;
}

.file-preview {
  /* display: flex; */
  display: block;
  /* text-align: center; */
  flex-wrap: wrap;
  gap: 10px;
  /* margin-top: 10px; */
  border: 2px solid #dcebf7;
  border-radius: 15px;
  margin: 10px;
  padding: 10px;
}

.file-preview-item {
  position: relative;
  /* width: 50px; */
  height: 200px;
  border-radius: 10px;
  display: inline-block;
  margin: 10px;
}

.file-preview-item img {
  /* width: 100%; */
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #9caec2;
}

.remove-file-button {
  position: absolute;
  top: 0px;
  right: 12px;
  background: red;
  color: white;
  border: none;
  cursor: pointer;
}

.pocet-polozek {
  font-size: 0.9em;
  color: #666;
  margin: 10px 0;
  /* font-style: italic; */
}

#hledatPodleNazvu { margin-bottom: 0; }

#hledatNazev {
  display: flex;
  gap: 10px;
  align-items: center;
}

#hledatNazev input[type="text"] {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  flex-grow: 1;
}

#hledatNazev button {
  padding: 8px 16px;
  background-color: #59b2ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

#hledatNazev button:hover {
  background-color: #2f9eff;
}

input[type="email"].invalid {
  border-color: #ff0000;
  box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.polozka-fotografie {
  margin-top: 10px;
}

.fotografie-container {
  position: relative;
  display: inline-block;
}

.fotografie-pocet {
  position: absolute;
  bottom: 20px;
  right: 13px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}

.polozka-fotografie img {
  max-width: 100%;
  max-height: 200px;
  cursor: pointer;
  border-radius: 5px;
}

.fotografie-popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 20px;
  box-sizing: border-box;
}

.fotografie-popup-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
}

.fotografie-popup-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.fotografie-popup-img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  margin: auto;
}

.fotografie-miniatury {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

.fotografie-miniatury img {
  max-width: 100px;
  max-height: 100px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.fotografie-miniatury img:hover {
  opacity: 1;
}

#hledatPodleNazvu input {
  margin: 5px 0;
  padding: 8px;
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
}

#hledatPodleNazvu button {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #4caf50;
  color: white;
  border: none;
  cursor: pointer;
}

#hledatPodleNazvu button:hover {
  background-color: #45a049;
}

#account-info-table {
  width: 100%;
  max-width: 600px;
  margin: 20px 0;
}

.account-info-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.account-info-key {
  font-weight: bold;
  min-width: 100px;
  margin-right: 15px;
}

.account-info-value {
  flex-grow: 1;
}

.account-info-value input {
  width: 100%;
  max-width: 300px;
  padding: 5px;
}

.account-info-value button {
  padding: 5px 10px;
  cursor: pointer;
}

/* Styly pro labely v formulÃ¡Å™Ã­ch */
label {
  display: block;
  /* font-weight: bold; */
  /* margin-bottom: 5px; */
  color: #3d5988;
  font-size: 14px;
  text-align: center;
}

/* UpravenÃ­ form-field pro vertikÃ¡lnÃ­ rozloÅ¾enÃ­ */
.form-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Kontejner pro formulÃ¡Å™ovÃ¡ pole - umoÅ¾nÃ­ zobrazenÃ­ vedle sebe */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px;
}

/* UpravenÃ­ Å¡Ã­Å™ky form-field pro vertikÃ¡lnÃ­ zobrazenÃ­ */
.form-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* UpravenÃ­ input a textarea pro lepÅ¡Ã­ zarovnÃ¡nÃ­ s labely */
input,
textarea,
select {
  font-family: "Ubuntu";
  padding: 0.75rem;
  border: 1px solid #c6e5ff;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fff;
  color: #333;
  text-align: center;
  width: 100%;
  max-width: 300px;
  margin: 5px 0;
}

/* Styly pro tlaÄÃ­tko v formulÃ¡Å™i */
form p {
  width: 100%;
  flex-basis: 100%;
  text-align: center;
  margin: 5px 0 20px 0;
}

form p button {
  margin: 0;
}

/* Styly pro span elementy v formulÃ¡Å™Ã­ch */
.form-field span {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin: 5px 0;
}

/* Styly pro tlaÄÃ­tka v form-field */
.form-field button {
  margin: 5px 0;
  width: 100%;
  max-width: 300px;
}

/* Styly pro tlaÄÃ­tka naÅ¡eptÃ¡vaÄe */
.naseptavac-button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background-color: #fff;
  border: 1px solid #c6e5ff;
  border-radius: 4px;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  margin: 2px 0;
  transition: background-color 0.2s;
}

.naseptavac-button:hover {
  background-color: #f0f8ff;
}
