/* --- Základní styl --- */
html, body {
  overflow-x: hidden;
  overflow-y: auto;
}

header {
  background-color: #004080;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

header h1 {
  margin: 0;
  font-weight: 700;
}

nav {
  text-align: center;
}

nav a {
  color: white;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, text-decoration 0.3s ease;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

nav a:hover,
nav a:focus {
  text-decoration: underline;
  outline: none;
  box-shadow: 0 0 2px 2px #00ffff;
}

main {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.image-banner {
  width: 100%;
  height: 200px;
  background: url('banner.jpg') center/cover no-repeat;
  border-radius: 8px;
}

.section {
  max-width: 800px;
  width: 100%;
  background: silver;
  color: black;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section p {
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
}

#features ul {
  list-style: disc inside;
  text-align: left;
  padding-left: 1rem;
}
ul {
  list-style-position: inside;
  padding-left: 0;
  text-align: left;  /* zarovnání textu doprava */
}


table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin-top: 1rem;
  background-color: #ddd;
}

th, td {
  border: 1px solid #bbb;
  padding: 0.75rem 1rem;
  text-align: center;
  background-color: #ccc;
  color: black;
}

th {
  background-color: #004080;
  color: white;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #004080;
  color: white;
  margin-top: 3rem;
  font-size: 0.9rem;
}

h1.centered {
  text-align: center;
  display: block;
  width: 100%;
  margin: 0 auto;
}

.fixed-top-right {
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(32, 58, 67, 0.8);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 1000;
}

.fixed-top-right a {
  color: #00ffff;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.fixed-top-right a:first-child {
  margin-left: 0;
}

.fixed-top-right a:hover,
.fixed-top-right a:focus {
  color: #00ffff;
  text-decoration: underline;
  outline: none;
  box-shadow: 0 0 2px 2px #00ffff;
}

code {
  color: #0366d6;
  background-color: #def;
  font-size: 1.1rem;
  padding: 4px 6px;
  border-radius: 3px;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'IBM Plex Mono', monospace;
  color: white;
  position: relative;
  min-height: 100vh;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
  background: none;
  overflow-x: auto;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  background-image: url('bck_60b.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(0px) brightness(0.7) contrast(1.1);
  z-index: 0;
  pointer-events: none;
}

header, footer, main {
  position: relative;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 10px;
  margin: 20px;
}

hr {
  border: none;
  border-top: 2px solid #00ffff;
  width: 30%;
  margin: 0.5rem 0 1rem 0;
}

.with-images {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.header-icon {
  width: 40px;
  height: auto;
  vertical-align: middle;
}

.centered {
  text-align: center;
}

#searchInput {
  margin-bottom: 1rem;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  width: 100%;
  max-width: 500px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #eee;
  color: #000;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

#searchInput:focus {
  outline: none;
  box-shadow: 0 0 6px #00ffff;
  border-color: #00ffff;
}

.no-record {
  color: #ff4444;
  font-weight: bold;
  font-style: italic;
}

.no-record::before {
  content: '⚠️ ';
}

#pricing {
  max-height: 600px;
  overflow-y: auto;
  overflow-x: auto;
  border: 0px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

/* --- Media queries pro mobil --- */
@media (max-width: 600px) {
  .fixed-top-right {
    position: static;
    background: transparent;
    padding: 0;
    text-align: center;
    margin-bottom: 1rem;
  }

  .fixed-top-right a {
    display: inline-block;
    margin: 0 0.5rem;
    color: #004080;
    font-weight: 600;
  }

  header, footer, main {
    margin: 10px;
    padding: 15px;
  }

  nav a {
    display: block;
    margin: 0.5rem 0;
    font-size: 1.2rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
  }

  main {
    padding: 1rem;
  }

  .section {
    padding: 1rem;
  }

  .image-banner {
    height: 150px;
  }

  table, th, td {
    font-size: 0.9rem;
  }
}
