
/*!
 * Start Bootstrap - Small Business (https://startbootstrap.com/template-overviews/small-business)
 */

body {
  padding-top: 55px;
  background-color: #f4e09b !important;
  position: relative;
  z-index: 0;
}

/* Pozadí vlevo a vpravo, zarovnané relativně ke středu */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 512px;
  height: 768px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
  opacity: 0.4;
}

body::before {
  left: 50%;
  top: 57%;
  transform: translate(-1080px, -50%);
  background-image: url('/images/pozadi-vlevo.png');
}

body::after {
  left: 50%;
  top: 57%;
  transform: translate(580px, -50%);
  background-image: url('/images/pozadi-vpravo.png');
}

/* Skrytí na menších obrazovkách */
@media (max-width: 1100px) {
  body::before,
  body::after {
    display: none;
  }
}

.bg-menu {
  background-color: #f9f2e5;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #343a40 !important;
    color: #f9f2e5;
  }

  .bg-menu {
    background-color: #343a40 !important;
  }
}

@media (prefers-color-scheme: light) {
  body {
    color: #000;
  }

  .bg-menu {
    background-color: #f2d692;
  }
}

.s-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #f9f2e5;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
}

nav .btn-outline-warning, nav .btn-warning {
  float: right;
}

.s-center_image {
  margin-top: 8px;
  text-align: center;
}

.s-prouzek {
  margin-top: -20px;
}

.card-body {
  flex: 1 1 auto;
  padding: 0.4rem;
  margin-top: 0px;
}

footer {
  width: 100%;
  text-align: center;
  padding-top: 20px;
  padding-bottom: 25px;
}

.tower-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px 8px 38px;
  background-image: url('watchtower.svg');
  background-size: 24px 24px;
  background-repeat: no-repeat;
  background-position: 10px center;
  background-color: #e0e0e0;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
  margin-bottom: 20px;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.tower-btn:hover {
  background-color: #d5d5d5;
}

.uvodni-box {
  background-color: #f4f9e9;
  border: 2px solid #cde2a5;
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.uvodni-box h1 {
  font-size: 2.6em;
  margin-bottom: 0.3em;
  color: #33691e;
}

.uvodni-box p {
  margin: 10px 0;
  font-size: 1.2em;
  color: #2e7d32;
}
/* Skrytí pozadí pro seznam.php */
.seznam-page::before,
.seznam-page::after {
  display: none !important;
}
/*
.header-simple {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f0d38a;
  padding: 10px 30px;
  border-bottom: 0px solid #d9a441;
  font-family: inherit;
}

.header-left {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-logo {
  max-height: 40px;
  height: auto;
  width: auto;
}

.header-right a {
  margin-left: 12px;
  text-decoration: none;
  font-weight: bold;
  color: #3366cc;
  font-size: 16px;
}

.header-right a.active {
  text-decoration: underline;
  color: black;
}
*/

.header-simple {
  position: relative;
  background-color: #f0d38a;
  padding: 10px 20px;
  height: 65px;
  border-bottom: 0px solid #d9a441;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo-wrapper {
  text-align: center;
}

.header-logo {
  max-height: 50px;
  height: auto;
  width: auto;
}

.header-right {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.header-right a {
  margin-left: 12px;
  text-decoration: none;
  font-weight: bold;
  color: #3366cc;
  font-size: 16px;
}

.header-right a.active {
  text-decoration: underline;
  color: black;
}

.lang-switch {
  display: inline-block;
  font-family: inherit;
  font-size: 16px; /* stejná jako menu */
  font-weight: bold;
}

.lang-switch a {
  color: #3366cc;
  text-decoration: none;
  margin-left: 10px;
}

.lang-switch a:first-child {
  margin-left: 0;
}

.lang-switch a.active {
  text-decoration: underline;
  color: black;
}

.lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-lang {
  padding: 5px 10px;
  border: 1px solid #3366cc;
  border-radius: 6px;
  text-decoration: none;
  color: #3366cc;
  font-weight: bold;
  font-size: 14px;
  background-color: transparent;
  transition: background-color 0.2s ease;
}

.btn-lang:hover {
  background-color: #e0ecff;
}

.btn-lang.active {
  background-color: #3366cc;
  color: white;
}

.lang-active {
  color: red !important;
  font-weight: bold;
  text-decoration: underline;
}

/* === Styl tabulky rozhleden (vylepšený původní vzhled) === */
#rozhl-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  font-size: 0.9em;
  border: 1px solid #ccc;
}

/* Hlavička tabulky rozhleden – žlutý styl */
#rozhl-table thead th,
.dataTables_scrollHead thead th,
table.dataTable thead th {
  background-color: #f9e59f !important;
  color: #000 !important;
  font-weight: bold;
  border-bottom: 2px solid #d1b74a;
}

/* Střídání barev řádků */
#rozhl-table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}
#rozhl-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Hover efekt na řádek */
#rozhl-table tbody tr:hover {
  background-color: #fff8d6 !important;
  transition: background-color 0.2s ease-in-out;
}

/* Nepřístupné rozhledny */
.not-accessible td {
  background-color: #ffecec !important;
  color: #8b0000;
}

/* Tlačítko Detail */
.btn-main {
  background: #f9f9f9;
  border: 1px solid #999;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.9em;
  cursor: pointer;
}
.btn-main:hover {
  background: #283593;
  color: #fff;
  border-color: #283593;
  transition: all 0.15s;
}

/* Filtry */
#rozhl-table thead tr:nth-child(2) th {
  background-color: #fafafa;
  padding: 3px;
}
#rozhl-table thead select {
  width: 100%;
  padding: 2px 4px;
  font-size: 0.85em;
}
