* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

.highlight {
  color: deepskyblue !important;
  font-weight: bold;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}

.logo {
  height: 60px;
  margin: 0 auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
  position: relative;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 15px;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 8px;
  display: block;
}

.nav-links li a:hover {
  color: #007bff;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  list-style: none;
  padding: 0;
  min-width: 150px;
  z-index: 10;
}

.dropdown-menu li a {
  padding: 10px 15px;
  color: #333;
}

.dropdown-menu li a:hover {
  background-color: #f0f0f0;
  color: #007bff;
}

.nav-links li:hover .dropdown-menu {
  display: block;
}

/* Base styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
}

/* header banner */
.header-banner {
  background: linear-gradient(to right, #00b8d4, #00838f);
  color: white;
  padding: 2rem 0;
  text-align: center;
  width: 100%;
}

.header-banner h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding: 0 1rem;
}

.subtitle {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Results Container */
.results-container {
  width: 90%;
  max-width: 1000px;
  margin: 20px auto;
  background: #f4f4f4;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Window (Main Category) */
.window {
  width: 100%;
  margin-bottom: 1rem;
  background-color: #fff;
}

.nazev {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  position: relative;
}

.window:nth-child(1) .nazev {
  background: linear-gradient(to right, #2563eb, #1e40af);
}

.window:nth-child(2) .nazev {
  background: linear-gradient(to right, #9333ea, #6b21a8);
}

.window:nth-child(3) .nazev {
  background: linear-gradient(to right, #f59e0b, #b45309);
}

/* Add chevron icon */
.nazev::after {
  content: "";
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.window[open] .nazev::after {
  transform: rotate(180deg);
}

/* Box (Container for races) */
.box {
  background-color: #fff;
  padding: 0.75rem 1rem;
}

/* Race */
.race {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.race summary {
  padding: 0.75rem;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  background-color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.race summary:hover {
  background-color: #f3f4f6;
}

/* Add chevron icon */
.race summary::after {
  content: "";
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.race[open] summary::after {
  transform: rotate(180deg);
}

/* Race Content */
.race-content {
  padding: 0.75rem;
}

/* Category */
.category {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: #2563eb;
  border-bottom: 2px solid #2563eb;
  padding-bottom: 0.25rem;
}

.window:nth-child(1) .category {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.window:nth-child(2) .category {
  color: #9333ea;
  border-bottom-color: #9333ea;
}

.window:nth-child(3) .category {
  color: #f59e0b;
  border-bottom-color: #f59e0b;
}

/* Rider */
.rider {
  font-weight: 500;
  margin-right: 0.5rem;
}

/* Remove default details marker */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* Animation for opening/closing */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.race-content {
  animation: slideDown 0.3s ease-out;
}

/* Small devices (landscape phones) */
@media (min-width: 576px) {
  .header-banner {
    padding: 2.5rem 0;
  }

  .header-banner h1 {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1.05rem;
  }

  .results-container {
    width: 85%;
    padding: 12px;
  }

  .nazev {
    font-size: 1.4rem;
    padding: 1.2rem 1.8rem;
  }

  .box {
    padding: 0.9rem 1.5rem;
  }

  .race summary {
    font-size: 1.15rem;
    padding: 0.9rem;
  }
}

/* Medium devices (tablets) */
@media (min-width: 768px) {
  .navbar {
    flex-wrap: nowrap;
  }

  .logo {
    height: 75px;
    margin: 0;
  }

  .nav-links {
    width: auto;
    margin-top: 0;
    gap: 20px;
    justify-content: flex-end;
    font-size: 16.5px;
  }

  .nav-links li a {
    padding: 10px;
  }

  .header-banner {
    padding: 3rem 0;
  }

  .header-banner h1 {
    font-size: 3rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .results-container {
    width: 75%;
    padding: 15px;
  }

  .nazev {
    font-size: 1.7rem;
    padding: 1.5rem 2rem;
  }

  .nazev::after {
    width: 18px;
    height: 18px;
  }

  .box {
    padding: 1rem 2rem;
  }

  .race summary {
    font-size: 1.2rem;
    padding: 1rem;
  }

  .race summary::after {
    width: 16px;
    height: 16px;
  }

  .category {
    font-size: 1.1rem;
  }

  .race-content {
    padding: 1rem;
  }
}

/* Large devices (desktops) */
@media (min-width: 992px) {
  .header-banner h1 {
    font-size: 3.5rem;
  }

  .subtitle {
    font-size: 1.25rem;
  }

  .results-container {
    width: 65%;
  }

  .nazev {
    font-size: 2rem;
  }

  .race summary {
    font-size: 1.25rem;
  }

  .category {
    font-size: 1.125rem;
  }
}

/* Extra large devices */
@media (min-width: 1200px) {
  .results-container {
    width: 50%;
  }
}

/* Footer styles */
.footer {
  width: 100%;
  background-color: #000;
  color: #fff;
  border-top: 1px solid #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-section {
  margin-bottom: 16px;
}

.footer-heading {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
  color: #fff;
}

.footer-text {
  font-size: 14px;
  color: #ccc;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s;
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.social-icon {
  width: 20px;
  height: 20px;
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #333;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.copyright {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .copyright {
    margin-bottom: 0;
  }
}

.footer-policies {
  display: flex;
  gap: 16px;
}

.footer-policies a {
  font-size: 14px;
  color: #aaa;
  text-decoration: none;
}

.footer-policies a:hover {
  text-decoration: underline;
  color: #fff;
}