body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f8f9fa; /* Lighter background for a modern look */
  color: #212529; /* Darker text for better contrast */
}

header {
  background-color: #007bff; /* Primary color for header */
  color: white;
  padding: 20px 0;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

nav {
  display: inline-block;
}

.currency {
  position: absolute;
  top: 15px;
  right: 30px;
  display: flex;
  align-items: center;
}

.currency span {
  margin-right: 10px;
  margin-left: 10px;
}

nav a {
  color: white;
  margin: 0 20px;
  text-decoration: none;
  font-weight: 600; /* Slightly bolder for better readability */
  transition: color 0.3s ease; /* Smooth transition for hover */
}

nav a:hover {
  color: #ffd700; /* Gold color for hover effect */
}

main {
  padding: 60px 20px; /* Increased padding for a spacious feel */
  flex: 1;
}

.category, .post {
  border: 1px solid #e0e0e0;
  padding: 30px;
  margin: 30px 0;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Enhanced shadow for depth */
}

form {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

form h2 {
  font-size: 26px;
  margin-bottom: 25px;
}

form label {
  margin-bottom: 12px;
  font-weight: bold;
  color: #666;
}

form input {
  width: calc(100% - 20px);
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 5px;
  border: 1px solid #ddd;
}

form button {
  padding: 15px 25px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease; /* Added transform transition for hover effect */
}

form button:hover {
  background-color: #0056b3; /* Darker shade for hover */
  transform: translateY(-2px); /* Subtle lift on hover */
}

footer {
  background-color: #007bff;
  color: white;
  text-align: center;
  padding: 15px 0;
  position: static;
  width: 100%;
  margin-top: auto;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* Shadow for separation */
}

/* Popup styles */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75); /* Darker overlay for focus */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000; /* Ensures it is above all other elements */
}

.popup-content {
  background-color: white;
  padding: 35px;
  border-radius: 10px;
  width: 350px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* Stronger shadow for emphasis */
  position: relative;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 22px;
  color: #333;
}

#profileImage {
  border-radius: 50%;
  border: 3px solid #ddd;
}

#profileView textarea {
  width: 100%;
  height: 80px;
  margin-top: 10px;
  margin-bottom: 15px;
}

/* Members view styles */
.members-view {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f0f0f0;
}

.members-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 800px;
  padding: 30px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  background-color: white;
  border-radius: 10px;
}

.member-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 20px;
  padding: 15px;
  width: 100%;
  max-width: 600px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fafafa;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Added box-shadow transition for hover effect */
}

.member-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

.member-profile-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 15px;
}

.member-name {
  flex-grow: 1;
  text-align: center;
  font-weight: bold;
}

.member-aura {
  margin-left: 10px;
  font-weight: normal;
  color: #666;
}

/* Allgemeine Button-Stile */
button {
  padding: 10px 20px; /* Kleinere Polsterung */
  font-size: 14px; /* Kleinere Schriftgröße */
  font-weight: 600;
  color: white;
  background-color: #007bff; /* Hauptfarbe */
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Leichterer Schatten */
}

button:hover {
  background-color: #0056b3; /* Dunklerer Farbton bei Hover */
  transform: translateY(-2px); /* Subtile Anhebungseffekt */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); /* Stärkerer Schatten bei Hover */
}

button:active {
  background-color: #004494; /* Noch dunklerer Farbton bei Klick */
  transform: translateY(0); /* Rücksetzen der Anhebung */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Normaler Schatten bei Klick */
}

/* Besondere Button-Stile für Formulare */
form button {
  background-color: #28a745; /* Grüne Farbe für Formular-Buttons */
}

form button:hover {
  background-color: #218838; /* Dunkleres Grün bei Hover */
}

form button:active {
  background-color: #1e7e34; /* Noch dunkleres Grün bei Klick */
}

/* Button für Popups */
.popup button {
  background-color: #17a2b8; /* Helles Blau für Popup-Buttons */
}

.popup button:hover {
  background-color: #138496; /* Dunkleres Blau bei Hover */
}

.popup button:active {
  background-color: #117a8b; /* Noch dunkleres Blau bei Klick */
}

/* Icons hinzufügen */
button .icon {
  margin-right: 8px; /* Abstand zwischen Symbol und Text */
  vertical-align: middle; /* Zentriert das Symbol vertikal */
}

/* Beispiel für spezielle Buttons */
#editBioButton, #saveBioButton {
  padding: 8px 16px; /* Kleinere Polsterung */
  font-size: 14px; /* Kleinere Schriftgröße */
}

#editBioButton .icon::before {
  content: "\270E"; /* Bleistiftsymbol für Bearbeiten */
}

#saveBioButton .icon::before {
  content: "\2714"; /* Häkchen-Symbol für Speichern */
}

/* Profilbild-Crop-Ansicht Buttons */
#cropImageContainer button {
  padding: 8px 16px; /* Kleinere Polsterung */
  font-size: 14px; /* Kleinere Schriftgröße */
}

#saveCroppedImageButton .icon::before {
  content: "\2714"; /* Häkchen-Symbol für Speichern */
}

#cancelCropButton .icon::before {
  content: "\274C"; /* Kreuz-Symbol für Abbrechen */
}

#logoutButton {
  position: relative;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  background-color: #007bff; /* Gleiches Blau wie andere Buttons */
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Gleicher Schatten */
  margin-top: 10px;
}

#logoutButton:hover {
  background-color: #0056b3; /* Gleiche Hover-Farbe */
  transform: translateY(-2px); /* Gleicher Hover-Effekt */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); /* Gleicher Schatten bei Hover */
}

#logoutButton:active {
  background-color: #004494; /* Gleiche Farbe bei Klick */
  transform: translateY(0); /* Gleicher Effekt bei Klick */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Gleicher Schatten bei Klick */
}

/* Button für Popups */
.popup button {
  background-color: #17a2b8; /* Helles Blau für Popup-Buttons */
}

.popup button:hover {
  background-color: #138496; /* Dunkleres Blau bei Hover */
}

.popup button:active {
  background-color: #117a8b; /* Noch dunkleres Blau bei Klick */
}

/* CSS für die Benachrichtigungen */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #333;
  color: #fff;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.5s, transform 0.5s;
  transform: translateY(100%);
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

.notification.success {
  background-color: #4CAF50; /* Grün für erfolgreiche Aktionen */
}

.notification.error {
  background-color: #f44336; /* Rot für Fehler */
}

/* Cropper styles */
#cropperContainer {
  position: relative;
  width: 300px;
  height: 300px;
  overflow: hidden;
  border: 2px solid #ddd;
  margin: 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

#imageToCrop {
  max-width: 100%;
  max-height: 100%;
}

.pseImageContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Höhe des Viewports */
  overflow: hidden; /* Überlauf verstecken, falls nötig */
}

.pseImage {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

/* Ohmium */
.section {
  margin-bottom: 30px;
}
.equation {
  font-size: 1.2em;
  font-weight: bold;
  color: #007bff;
}
.example {
  background-color: #e0f7fa;
  padding: 10px;
  border-left: 5px solid #007bff;
  margin-top: 10px;
  margin-bottom: 20px;
}
.steps {
  list-style-type: decimal;
  margin-left: 20px;
}

.externPageTitle{
  text-align: center;
}

/* Loading overlay styles */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 4px solid white;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

/* Keyframes */
@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

