body {
  font-family: 'Comic Neue', cursive, sans-serif;
  margin: 0;
  background-color: #fff8f0;
  color: #444;
}

header {
  background: linear-gradient(to right, #fdd835, #f48fb1);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #5d4037;
}

.logo a {
  color: #5d4037;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo a:hover {
  color: #d84315;
  transform: scale(1.05);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

nav a {
  text-decoration: none;
  color: #5d4037;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem 1rem;
}

.intro {
  margin: 2rem auto 2.5rem auto;
  text-align: center;
  font-size: 1.13rem;
  color: #5d4037;
  line-height: 1.7;
}

.sitemap-section {
  margin-top: 3rem;
  padding: 2rem;
  background-color: black;
  border-radius: 8px;
  border: 1px solid #f48fb1;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sitemap-section h4 {
  margin: 0 0 1.5rem 0;
  color: yellow;
  font-size: 1.2rem;
  text-align: center;
  font-weight: 600;
  font-family: 'Comic Neue', cursive, sans-serif;
}

.level-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.level-title {
  font-weight: 600;
  color: #5d4037;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  font-family: 'Comic Neue', cursive, sans-serif;
}

.level-title a {
  color: #5d4037;
  text-decoration: none;
  transition: color 0.3s;
}

.categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: 1rem;
}

.categories-grid a {
  padding: 0.3rem 0.6rem;
  background-color: rgba(255, 255, 255, 0.3);
  border: 1px solid #f48fb1;
  border-radius: 5px;
  text-decoration: none;
  color: #5d4037;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.3s;
  font-family: 'Comic Neue', cursive, sans-serif;
}

.categories-grid a:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.language-selector {
  margin-left: 1rem;
  position: relative;
  display: inline-block;
}

.language-dropdown {
  position: relative;
  display: inline-block;
}

.language-current {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border: 2px solid #5d4037;
  border-radius: 25px;
  cursor: pointer;
  font-family: 'Comic Neue', cursive, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #5d4037;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(93, 64, 55, 0.15);
  user-select: none;
  min-width: 100px;
  justify-content: space-between;
}

.language-current:hover {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(93, 64, 55, 0.25);
  border-color: #f06292;
}

.language-current.active {
  border-color: #f06292;
  box-shadow: 0 0 0 3px rgba(240, 98, 146, 0.2);
}

.language-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.language-dropdown.open .language-arrow {
  transform: rotate(180deg);
}

.language-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #f06292;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  overflow: hidden;
}

.language-dropdown.open .language-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-family: 'Comic Neue', cursive, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #5d4037;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.language-option:last-child {
  border-bottom: none;
}

.language-option:hover {
  background: linear-gradient(135deg, #f06292 0%, #f48fb1 100%);
  color: white;
  transform: translateX(3px);
}

.language-option.selected {
  background: linear-gradient(135deg, #fdd835 0%, #f48fb1 100%);
  color: #5d4037;
  font-weight: bold;
}

.language-flag {
  font-size: 1.1rem;
}

.language-name {
  flex: 1;
}

/* Hide the original select */
.language-selector select {
  display: none;
}

@media (max-width: 600px) {
  .logo {
    font-size: 1.5rem;
  }
  
  .logo a:hover {
    transform: scale(1.02);
  }
  
  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
  .language-selector {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  .language-current {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    min-width: 80px;
  }
  .language-options {
    font-size: 0.8rem;
  }
}

.copyright {
  text-align: center;
}