html,
body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: Arial, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
}

#star-bg {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
  pointer-events: none;
  background: transparent;
}

.background,
.content,
h1 {
  z-index: 1;
  position: relative;
}

.background {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100vw;
  position: relative;
  padding: 0;
}

h1 {
  position: absolute;
  left: 2vw;
  top: 1.2vw;
  margin: 0;
  font-size: clamp(1.3em, 4vw, 2.2em);
  font-weight: bold;
  z-index: 2;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 0 10px #000, 0 2px 12px #222;
  pointer-events: none;
  user-select: none;
  max-width: 90vw;
  line-height: 1.2;
  word-break: break-word;
}

.header-logo {
  position: fixed;
  left: 2vw;
  top: 5.5vw;
  width: 120px;
  height: auto;
  max-width: 15vw;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  object-fit: contain;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  width: 100vw;
  max-width: 660px;
  margin: 0 auto;
  padding: 0 16px;
  background: transparent;
  text-align: center;
  z-index: 2;
  box-sizing: border-box;
}

.image-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  width: 100%;
  flex-wrap: wrap;
}

.img-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  max-width: 260px;
  width: 40vw;
  min-width: 120px;
}

.img-wrap img {
  width: 100%;
  max-width: 220px;
  max-height: 32vh;
  height: auto;
  display: block;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  border-radius: 18px;
  box-shadow: 0 6px 32px 0 #111a;
  background: #111;
  margin-bottom: 8px;
}

#img-programmer {
  pointer-events: auto;
  cursor: pointer;
}

.img-caption {
  font-size: 1em;
  color: #ddd;
  text-shadow: 0 1px 3px #000;
  margin-bottom: 0;
  line-height: 1.2;
}

.programs-label {
  font-size: 1em;
  color: #ddd;
  text-shadow: 0 1px 3px #000;
  margin: 8px 0 0;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  padding: 5px;
}

/* Tablety a úprava na menší šířky */
@media (max-width: 900px) {
  .content {
    max-width: 98vw;
    padding: 0 4vw;
  }

  .img-wrap img {
    max-width: 160px;
  }

  .image-row {
    gap: 18px;
  }
}

/* Mobilní úpravy */
@media (max-width: 700px) {
  .image-row {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
  }

  .img-wrap {
    width: 70vw;
    max-width: 320px;
  }

  .img-wrap img {
    max-width: 95vw;
    max-height: 24vh;
  }
}

@media (max-width: 600px) {
  .content {
    padding: 0 2vw;
  }

  h1 {
    font-size: clamp(1em, 6vw, 1.2em);
    top: 8px;
    left: 8px;
  }
}

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #000a;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99;
}

.modal {
  width: min(92vw, 560px);
  background: #111;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px #000c;
  border: 1px solid #222;
  padding: 18px 18px 12px;
}

.modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.modal h2 {
  font-size: 1.1rem;
  margin: 0;
}

.modal button.close {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.program-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.program-list li {
  margin: 0;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid #222;
  background: #161616;
}

.program-list li+li {
  margin-top: 8px;
}

.program-list a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.program-list p {
  margin: .25rem 0 0;
  color: #ccc;
  font-size: .95rem;
}
