
:root {
  --main-bg: #fffaf5;
  --primary: #000;
  --accent: #d7cbbd;
  --font-main: 'Georgia', serif;
}

body {
  background-color: var(--main-bg);
  color: var(--primary);
  font-family: var(--font-main);
  margin: 0;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--main-bg);
  border-bottom: 1px solid #eee;
}

.logo img {
  height: 50px;
}

nav.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav.main-nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}
#menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  cursor: pointer;
}
/* --- Mobilní přepínač --- */
@media (max-width: 768px) {
  #menu-toggle {
    display: block;
  }

  nav.main-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  nav.main-nav.show {
    display: flex;
  }

  nav.main-nav a {
    width: 100%;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    text-align: center;
  }
}

.lang-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.lang-switcher a {
  position: relative;
  text-decoration: none;
  color: var(--primary);
  font-size: 1rem;
  padding: 0.5rem 1rem;
  transition: background 0.2s;
}

.lang-switcher a:hover {
  background-color: var(--accent);
  border-radius: 5px;
}

/* Vloží oddělovací svislou čáru za každý jazyk kromě posledního */
.lang-switcher a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background-color: #ccc;
}

@media (max-width: 768px) {
  .lang-switcher {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    gap: 0.5rem;
  }

  .lang-switcher a {
    flex: 0 1 auto;
    padding: 0.5rem 0.75rem;
  }

  .lang-switcher a::after {
    display: none;
  }
}



.hero {
  text-align: center;
  padding: 3rem 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  background-color: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 1.5rem;
  margin-top: 2rem;
}
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem;
}

.countdown-item {
  background: #fefefe;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
  width: 100px;
  min-width: 80px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.countdown-number {
  background-color: #b8d7fb;
  color: black;
  font-size: 2.5rem;
  font-weight: bold;
  padding: 1rem 0;
  position: relative;
}

.countdown-number::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background-color: #fff;
  opacity: 0.6;
}

.countdown-label {
  background-color: #f1f1f1;
  color: #333;
  font-size: 1rem;
  padding: 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
@media (max-width: 500px) {
  .countdown-item {
    width: 70px;
  }

  .countdown-number {
    font-size: 1.5rem;
    padding: 0.7rem 0;
  }

  .countdown-label {
    font-size: 0.75rem;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1rem;
  max-width: 1200px;
  margin: auto;
}

.gallery-item {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.photo-meta {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background-color: var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.photo-actions {
  font-size: 1rem;
  color: #d33;
}

.nav-card.full-width {
  grid-column: 1 / -1;
  text-align: center;
}

li.match-unplayed {
  background-color: #f5f5f5;
  border-left: 5px solid #ccc;
  padding: 8px;
  margin-bottom: 5px;
}

li.match-waiting {
  background-color: #fffbe6;
  border-left: 5px solid #f0ad4e;
  padding: 8px;
  margin-bottom: 5px;
}

li.match-confirmed {
  background-color: #e6f9f0;
  border-left: 5px solid #5cb85c;
  padding: 8px;
  margin-bottom: 5px;
}
.confirmation .highlight {
    font-weight: bold;
    font-size: 1.2em;
    color: #2b6cb0;
    margin-top: 1em;
}
.confirmation .btn {
    display: inline-block;
    margin-top: 1.5em;
    padding: 0.6em 1.4em;
    background-color: #3182ce;
    color: white;
    text-decoration: none;
    border-radius: 8px;
}
.confirmation .btn:hover {
    background-color: #2c5282;
}

.question {
  margin-bottom: 1.5rem;
}

.question ul {
  list-style: none;
  padding-left: 0;
}

.question li {
  margin: 0.3rem 0;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
}

.correct {
  background-color: #d4edda;
  color: #155724;
  font-weight: bold;
}

.user {
  background-color: #ffeeba;
  color: #856404;
}

.correct-user {
  background-color: #c3e6cb;
  color: #155724;
  font-weight: bold;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 1rem;
}
th, td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: left;
}
tr:nth-child(even) {
  background-color: #f9f9f9;
}


.confirmation .btn:hover {
    background-color: #2c5282;
}

.svg-container {
  width: 100%;
  max-width: 1000px;
  margin: auto;
}
svg {
  width: 100%;
  height: auto;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal.hidden {
  display: none;
}
.modal-content {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  max-width: 90%;
  width: 300px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative;
}
.modal-content h2 {
  margin-top: 0;
}
.close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.timeline-day {
  margin-bottom: 3rem;
}
.timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 2rem;
  border-left: 3px solid #d4a373;
  text-align:left;
}
.event {
  position: relative;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}
.event:nth-child(1) { animation-delay: 0.2s; }
.event:nth-child(2) { animation-delay: 0.4s; }

.dot {
  position: absolute;
  left: -1.2rem;
  top: 0.4rem;
  width: 1rem; 
  height: 1rem;
  background-color: #d4a373;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 3px #fffaf5;
}
.time {
  font-weight: bold;
  color: #8d6e63;
}
.content h3 {
  margin: 0.2rem 0;
  font-family: 'Georgia', serif;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
} 
 