:root {
  --green: #0f0;
  --dark-bg: #111;
  --light-text: #f0f0f0;
  --mid-bg: #1e1e1e;
  --highlight-bg: #2a2a2a;
  --accent-orange: #f90;
}

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

body {
  background-color: var(--dark-bg);
  color: var(--light-text);
  font-family: 'Courier New', Courier, monospace;
  line-height: 1.6;
}

/* Hlavička */
header {
  background-color: var(--dark-bg);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 0.125rem solid #444;
  box-shadow: 0 0.125rem 0.3125rem rgba(0,0,0,0.7);
  z-index: 1000;
}

header h1 {
  font-size: 1.8rem;
  color: var(--green);
}

nav a {
  margin-left: 1rem;
  color: #aaa;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: var(--green);
}

/* Hero sekce */
.hero {
  background: url('falloutbg.jpg') center/cover no-repeat;
  background-color: #222;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
  min-height: 100vh;
  text-align: center;
  color: var(--light-text);
}

.hero h2 {
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.hero p {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.hero button {
  background-color: var(--green);
  color: var(--dark-bg);
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hero button.pulsate {
  animation: pulsate 1s ease-in-out infinite;
}

@keyframes pulsate {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Sekce kurzy */
.courses {
  background-color: var(--mid-bg);
  padding: 2rem 1rem;
  text-align: center;
}

.courses h2 {
  color: var(--green);
  margin-bottom: 2rem;
}

.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.course-item {
  background-color: var(--highlight-bg);
  border-left: 0.3rem solid var(--green);
  padding: 1rem;
  border-radius: 0.5rem;
  max-width: 18rem;
  width: 100%;
  box-shadow: 0 0 0.625rem rgba(0, 255, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-item:hover {
  box-shadow: 0 0 0.9375rem rgba(0, 255, 0, 0.5);
}

.course-item h3 {
  font-size: 1.3rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.course-item p {
  color: #ccc;
  margin-bottom: 1rem;
}

.course-button {
  background-color: #4caf50;
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 0.3rem;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.3);
}

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

/* Funkce / Vlastnosti */
.features {
  background-color: var(--dark-bg);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2rem 1rem;
  gap: 1rem;
}

.feature {
  background-color: #222;
  border-left: 0.3rem solid var(--green);
  border-radius: 0.5rem;
  padding: 1rem;
  flex: 1 1 16rem;
  max-width: 20rem;
}

.feature h3 {
  color: var(--green);
  margin-bottom: 0.5rem;
}

.feature p {
  color: #ccc;
}

/* Vysílání */
.broadcast {
  background-color: #1a1a1a;
  color: var(--green);
  padding: 2rem 1rem;
}

.broadcast ul {
  list-style: square;
  padding-left: 1.5rem;
}

/* Reference */
.testimonials {
  background-color: #222;
  padding: 2rem 1rem;
}

.testimonial {
  background-color: #333;
  border-left: 0.3rem solid var(--accent-orange);
  padding: 1rem;
  border-radius: 0.5rem;
  color: #ddd;
  font-style: italic;
  margin-bottom: 1rem;
}

/* Hodiny */
.clock-section {
  background-color: var(--dark-bg);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 2rem;
  color: var(--green);
}

/* Galerie */
.gallery {
  background-color: #1e1e1e;
  padding: 2rem 1rem;
}

.gallery h2 {
  text-align: center;
  color: var(--green);
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 0 0.625rem rgba(0, 255, 0, 0.3);
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* Patička */
footer {
  background-color: var(--dark-bg);
  color: #666;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  border-top: 0.125rem solid #444;
}

footer a {
  color: #aaa;
  margin: 0 0.5rem;
  text-decoration: none;
}

footer a:hover {
  color: var(--green);
}

/* Responzivita */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 0.5rem;
  }

  .course-list {
    flex-direction: column;
    align-items: center;
  }

  .features {
    flex-direction: column;
    align-items: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

.course-detail {
  max-width: 900px;
  margin: 6rem auto 3rem;
  padding: 2rem;
  background-color: #1a1a1a;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,255,0,0.1);
  color: #ddd;
  font-size: 1.1rem;
}

.course-detail h2 {
  color: #0f0;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.course-detail h3 {
  color: #0f0;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.course-detail ul {
  padding-left: 1.5rem;
  list-style: square;
}

.course-detail li {
  margin-bottom: 0.5rem;
}

.course-detail button {
  display: block;
  margin: 2rem auto 0;
  padding: 0.8rem 2rem;
  background-color: #0f0;
  color: #111;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.course-detail button:hover {
  background-color: #3f3;
}

.testimonial {
  background-color: #333;
  border-left: 4px solid #f90;
  padding: 1rem;
  margin-top: 2rem;
  font-style: italic;
  border-radius: 6px;
  color: #eee;
}

/* Responzivní verze */
@media (max-width: 768px) {
  .course-detail {
    margin: 7rem 1rem 2rem;
    padding: 1rem;
    font-size: 1rem;
  }

  .course-detail h2 {
    font-size: 1.5rem;
  }

  .course-detail button {
    width: 100%;
  }
}

.back-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  background-color: #0f0;
  color: #111;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: background-color 0.3s;
}

.back-button:hover {
  background-color: #3f3;
}