/* Accessibility Font Changer Styles */
.font-changer-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ffffff;
  border: 2px solid #0073aa;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 280px;
}

.font-changer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  background: #0073aa;
  color: white;
  border-radius: 6px 6px 0 0;
}

.font-changer-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.toggle-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.toggle-btn:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.font-changer-content {
  padding: 16px;
  display: none;
}

.font-changer-content.active {
  display: block;
}

.font-selector-group {
  margin-bottom: 16px;
}

.font-selector-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13px;
  color: #333;
}

.font-selector-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

.font-selector-group select:focus {
  outline: 2px solid #0073aa;
  outline-offset: 2px;
  border-color: #0073aa;
}

.reset-btn {
  width: 100%;
  padding: 10px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.reset-btn:hover {
  background: #c82333;
}

.reset-btn:focus {
  outline: 2px solid #dc3545;
  outline-offset: 2px;
}

/* Responsive design */
@media (max-width: 768px) {
  .font-changer-widget {
    position: fixed;
    top: auto;
    bottom: 20px;
    right: 20px;
    left: 20px;
    max-width: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .font-changer-widget {
    border: 3px solid #000;
  }

  .font-changer-header {
    background: #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .toggle-btn,
  .reset-btn {
    transition: none;
  }
}

.font-changer-header h4 {
        color: white;
}

.font-changer-header {
  gap:35px;
}

