/* Grundstil für die Seite */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('assets/media/play_4.webp');
  background-size: cover;
  background-attachment: fixed;
  color: #fff;
}

/* Header */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: rgba(44, 44, 46, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.logo {
  font-size: 24px;
  font-weight: bold;
  line-height: 1.2;
}

.nav-buttons {
  display: flex;
  gap: 10px;
}

/* Goldene Buttons */
.button {
  background-color: #D4AF37;
  color: #1c1c1e;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.1s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.button:hover {
  background-color: #C39B2E;
  transform: translateY(-2px);
}

/* Notification Message */
#notification {
  position: fixed;
  top: 80px;
  right: 20px;
  padding: 10px 20px;
  background-color: #ff453a;
  color: #fff;
  border: 1px solid #ff453a;
  border-radius: 4px;
  display: none;
  z-index: 200;
  font-size: 14px;
}

/* Modal-Stile */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: rgba(44, 44, 46, 0.95);
  margin: 10% auto;
  padding: 20px;
  border: none;
  width: 90%;
  max-width: 400px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.close {
  color: #fff;
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #D4AF37;
}

/* Formularfelder */
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #444;
  border-radius: 8px;
  box-sizing: border-box;
  background-color: #3a3a3c;
  color: #fff;
}

input::placeholder {
  color: #bbb;
}

/* Admin Modal: User-Management */
#adminModalContent {
  margin-top: 10px;
}

.user-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  border-bottom: 1px solid #555;
}

.user-entry:last-child {
  border-bottom: none;
}

.user-info {
  flex: 1;
}

.user-action button {
  margin-left: 10px;
}

/* Loading Overlay */
#loadingOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 300;
  align-items: center;
  justify-content: center;
}

/* Container für den Ladebalken */
#loadingBarContainer {
  width: 80%;
  max-width: 400px;
  height: 20px;
  background-color: #444;
  border-radius: 10px;
  overflow: hidden;
}

/* Animierter Ladebalken */
#loadingBar {
  height: 100%;
  background-color: #D4AF37;
  width: 0;
  animation: loading 2s infinite;
}

@keyframes loading {
  0% { width: 0; }
  50% { width: 100%; }
  100% { width: 0; }
}

#loadingMessage {
  font-size: 24px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

/* Container für Spiele-Listen */
#gameListGames, #gameListHighscore {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

#changelogSticky {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 400px; /* Breiter */
  background-color: rgba(44, 44, 46, 0.9);
  color: #fff;
  font-size: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  z-index: 150;
  overflow: hidden;
  max-height: 300px; /* Höher */
}

#changelogStickyHeader {
  background-color: #D4AF37;
  color: #1c1c1e;
  padding: 12px 16px; /* Größeres Padding */
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

#changelogStickyContent {
  max-height: 240px; 
  overflow-y: auto;
  padding: 14px 18px;
  line-height: 1.5;
}

#changelogStickyContent ul {
  margin: 0;
  padding-left: 20px;
}

#toggleChangelog {
  font-weight: bold;
  cursor: pointer;
  font-size: 18px;
}
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.9em;
  color: #888;
  padding: 10px 0;
}
