body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #F4F4F4;
  color: #2C3E50;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#legend {
  margin-top: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  width: 800px;
  max-height: 80vh;
  overflow-y: auto;
}

.close-popup {
  float: right;
  cursor: pointer;
  font-size: 24px;
}

.status {
  color: red;
  font-weight: bold;
}

#legend h3 {
  margin-top: 0;
  font-size: 16px;
  color: #2C3E50;
}

#legend ul {
  list-style-type: none;
  padding-left: 0;
}

#legend li {
  margin-bottom: 5px;
  font-size: 14px;
  color: #555;
}

.language-switch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.language-switch span {
  margin: 0 10px;
  font-size: 14px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #3498DB;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

h1 {
  text-align: center;
  color: #2C3E50;
  margin-bottom: 20px;
}

#searchInput {
  width: 100%;
  padding: 12px;
  border: 1px solid #EAEAEA;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 20px;
  transition: border-color 0.3s ease;
}

#searchInput:focus {
  border-color: #3498DB;
  outline: none;
}

#filterButtons {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.small-legend {
  font-size: 12px;
}

.filterButton {
  padding: 8px 16px;
  background-color: #3498DB;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.filterButton:hover {
  background-color: #2980B9;
}

.filterButton.active {
  background-color: #1C5980;
}

#glossaryList {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.glossaryItem {
  background-color: #FFFFFF;
  border: 1px solid #EAEAEA;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.glossaryItem:hover {
  background-color: #F9F9F9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.glossaryItem strong {
  font-weight: bold;
}

#closePopup {
  float: right;
  font-size: 24px;
  color: #2C3E50;
  cursor: pointer;
  transition: color 0.3s ease;
}

#closePopup:hover {
  color: #E74C3C;
}

.popup-big {
  font-size: 19px;
}

.right-indent {
  margin-left: 20px;
}

@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  h1 {
    font-size: 24px;
  }

  .glossaryItem {
    padding: 12px;
  }

  .popup-content {
    width: 90%;
  }
}