/* Modern Slot Machine Webapp – Dark Theme */
body {
  background: linear-gradient(135deg, #191c1e 0%, #23272f 100%);
  color: #f3f4f6;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 3.5rem;
}

.main-menu {
  background: rgba(35, 39, 47, 0.98);
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28), 0 2px 8px rgba(60,60,60,0.10);
  border: 2.5px solid #ffe066;
  margin-top: 3.5rem;
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 0.7rem;
  margin-top: -2.2rem;
  filter: drop-shadow(0 4px 16px #ffe06655);
  border-radius: 18px;
  background: #23272f;
  border: 2px solid #ffe066;
  box-shadow: 0 2px 12px #000a;
}

.header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-bottom: 2rem;
}

.logout-btn {
  position: absolute;
  top: -2.2rem;
  right: 0.2rem;
  background: linear-gradient(90deg, #ff4b2b 0%, #23272f 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, color 0.2s;
}
.logout-btn:hover {
  background: #ffb347;
  color: #23272f;
}

h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin: 0 0 0.5rem 0;
  color: #ffe066;
  text-shadow: 0 2px 12px #000a, 0 1px 0 #fff2;
}

.userinfo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
  font-size: 1.08rem;
  color: #b3b8c2;
}
#userEmail {
  font-weight: 600;
  color: #f3f4f6;
}
#userBalance {
  color: #ffe066;
  font-weight: 900;
  font-size: 1.18rem;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px #000a;
}

.slot-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
  align-items: stretch;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}
.slot-item {
  width: 100%;
}
.slot-item button {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(90deg, #ffe066 0%, #ff4b2b 100%);
  color: #23272f;
  border: none;
  border-radius: 16px;
  padding: 1.1rem 1.5rem 1.1rem 1.5rem;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255,224,102,0.10);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
  outline: none;
  margin-bottom: 0.2rem;
  gap: 0.2rem;
}
.slot-item button:hover {
  background: linear-gradient(90deg, #ff4b2b 0%, #ffe066 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(255,75,43,0.13);
}
.slot-icon {
  font-size: 1.5rem;
  margin-right: 0.7rem;
  vertical-align: middle;
}
.slot-title {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #23272f;
}
.slot-desc {
  font-size: 0.98rem;
  font-weight: 400;
  color: #3a3f4b;
  margin-top: 0.1rem;
}
@media (max-width: 700px) {
  .main-menu {
    max-width: 98vw;
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
  .slot-list button {
    font-size: 1.05rem;
    padding: 0.8rem 1.2rem;
  }
  h1 {
    font-size: 1.3rem;
  }
  .logo {
    width: 70px;
    height: 70px;
    margin-top: -1.2rem;
  }
  .login-container {
    max-width: 98vw;
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
  .login-container h2 {
    font-size: 1.1rem;
  }
  .login-container input,
  .login-container select {
    font-size: 1rem;
    padding: 0.5rem 0.8rem;
    height: 2.1rem;
  }
  .button-row button {
    font-size: 1rem;
    padding: 0.6rem 1.1rem;
  }
  .slot-item button {
    font-size: 1rem;
    padding: 0.7rem 0.7rem 0.7rem 1rem;
  }
  .slot-title {
    font-size: 1.05rem;
  }
  .slot-desc {
    font-size: 0.92rem;
  }
}

/* Login-Container für Slot-Seite */
.login-container {
  background: rgba(35, 39, 47, 0.98);
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28), 0 2px 8px rgba(60,60,60,0.10);
  border: 2.5px solid #ffe066;
  margin-top: 3.5rem;
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.login-container h2 {
  color: #ffe066;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 12px #000a, 0 1px 0 #fff2;
}
.login-container input,
.login-container select {
  background: #23272f;
  color: #f3f4f6;
  border: 1.5px solid #31343a;
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  margin-bottom: 1.1rem;
  width: 100%;
  font-size: 1.08rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  height: 2.3rem;
  max-width: 100%;
  outline: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  appearance: none;
}
.login-container select {
  padding-right: 2.5rem;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23b3b8c2" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7.293 7.293a1 1 0 011.414 0L10 8.586l1.293-1.293a1 1 0 111.414 1.414l-2 2a1 1 0 01-1.414 0l-2-2a1 1 0 010-1.414z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1.2rem;
}
.login-container input:focus,
.login-container select:focus {
  border-color: #4b90ff;
  box-shadow: 0 0 0 2px #4b90ff33;
}
.button-row {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.button-row button {
  background: linear-gradient(90deg, #ffe066 0%, #ff4b2b 100%);
  color: #23272f;
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1.7rem;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255,224,102,0.10);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
  outline: none;
}
.button-row button:hover {
  background: linear-gradient(90deg, #ff4b2b 0%, #ffe066 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 32px rgba(255,75,43,0.13);
}
#login-message {
  color: #ffb347;
  min-height: 1.2em;
  text-align: center;
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* Copyright Banner */
.copyright-banner {
  width: 100vw;
  background: #23272f;
  color: #b3b8c2;
  text-align: center;
  padding: 0.7rem 0;
  font-size: 0.95rem;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 100;
  border-top: 1px solid #2d3137;
  letter-spacing: 0.5px;
}

.balance-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.2rem;
  background: #191c1e;
  border-radius: 10px;
  padding: 0.4rem 1.1rem 0.4rem 0.9rem;
  box-shadow: 0 1px 4px #ffe06622;
  font-size: 1.13rem;
  font-weight: 700;
  color: #ffe066;
  border: 2px solid #ffe066;
}
#userBalance {
  color: #ffe066;
  font-weight: 900;
  font-size: 1.18rem;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px #000a;
}
#addCoinBtn {
  background: linear-gradient(90deg, #ffe066 0%, #ff4b2b 100%);
  color: #23272f;
  border: none;
  border-radius: 50%;
  width: 2.1rem;
  height: 2.1rem;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px #ffe06633;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.2rem;
}
#addCoinBtn:hover {
  background: linear-gradient(90deg, #ff4b2b 0%, #ffe066 100%);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 16px #ff4b2b33;
}

/* --- MODERNES SLOT-MASCHINEN DESIGN 3x3 --- */
.slot-machine {
  background: radial-gradient(ellipse at center, #23272f 60%, #191c1e 100%);
  border-radius: 38px;
  box-shadow: 0 12px 48px #000b, 0 2px 8px #ffe06633;
  border: 5px solid #ffe066;
  margin: 2.2rem 0 0 0;
  padding: 2.5rem 1.5rem 2.2rem 1.5rem;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.7rem;
  position: relative;
}
.slot-machine::before {
  content: '';
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 38px;
  background: linear-gradient(90deg, #ffe066 0%, #ff4b2b 100%);
  border-radius: 22px 22px 38px 38px;
  box-shadow: 0 4px 16px #ffe06655;
  z-index: 1;
}
.slot-reels {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.2rem;
  background: #191c1e;
  border-radius: 18px;
  box-shadow: 0 2px 12px #ffe06633, 0 1px 4px #000a;
  padding: 1.2rem 2.2rem;
  border: 3px solid #ffe066;
  position: relative;
}
.reel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffe066 60%, #ff4b2b 100%);
  border: 3.5px solid #23272f;
  border-radius: 18px;
  width: 90px;
  height: 270px;
  margin: 0 0.2rem;
  box-shadow: 0 2px 12px #ffe06655, 0 1px 4px #000a;
  position: relative;
  overflow: hidden;
}
.reel-symbol {
  width: 100%;
  height: 90px;
  font-size: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #23272f;
  transition: filter 0.2s;
  filter: drop-shadow(0 2px 8px #ffe06655);
}
.reel.spinning {
  animation: spinReel 0.7s cubic-bezier(.4,2,.6,1) 1;
}
@keyframes spinReel {
  0% { transform: translateY(0); }
  80% { transform: translateY(60px); }
  100% { transform: translateY(0); }
}
.slot-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.7rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
  background: #23272f;
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 2px 8px #ffe06622;
}
.slot-controls label {
  color: #ffe066;
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}
#spinBtn {
  background: radial-gradient(circle at 60% 40%, #ffe066 60%, #ff4b2b 100%);
  color: #23272f;
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: 0 2px 16px #ffe06655, 0 1px 4px #000a;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
  outline: none;
  margin-left: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
#spinBtn:hover {
  background: radial-gradient(circle at 60% 40%, #ff4b2b 60%, #ffe066 100%);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 8px 32px #ff4b2b33;
}
#slotMessage {
  min-height: 1.5em;
  margin-top: 0.7rem;
  color: #ffe066;
  font-weight: 900;
  font-size: 1.18rem;
  text-shadow: 0 2px 8px #000a;
  letter-spacing: 0.5px;
}
@media (max-width: 700px) {
  .slot-machine {
    max-width: 99vw;
    padding: 1.1rem 0.3rem 1.1rem 0.3rem;
  }
  .slot-reels {
    gap: 0.7rem;
    padding: 0.7rem 0.5rem;
  }
  .reel {
    width: 38px;
    height: 114px;
  }
  .reel-symbol {
    height: 38px;
    font-size: 1.3rem;
  }
  #spinBtn {
    font-size: 1.1rem;
    width: 48px;
    height: 48px;
    padding: 0;
  }
}

/* Zurück-Button */
.back-to-lobby-btn {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 2.2rem auto 0 auto;
  background: linear-gradient(90deg, #ff4b2b 0%, #ffe066 100%);
  color: #23272f;
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 0;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(255,224,102,0.10);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
  cursor: pointer;
}
.back-to-lobby-btn:hover {
  background: linear-gradient(90deg, #ffe066 0%, #ff4b2b 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 32px rgba(255,75,43,0.13);
}

/* Schöne Zahlfelder und Checkboxen für Slot-Controls */
.slot-controls input[type="number"] {
  background: #23272f;
  color: #ffe066;
  border: 2px solid #ffe066;
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  font-size: 1.13rem;
  font-weight: 700;
  width: 70px;
  box-shadow: 0 1px 4px #ffe06622;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-left: 0.5rem;
  margin-right: 0.2rem;
  text-align: right;
}
.slot-controls input[type="number"]:focus {
  border-color: #ff4b2b;
  box-shadow: 0 0 0 2px #ff4b2b33;
}

/* Custom Checkbox */
.slot-controls input[type="checkbox"] {
  appearance: none;
  width: 1.25em;
  height: 1.25em;
  border: 2px solid #ffe066;
  border-radius: 6px;
  background: #23272f;
  margin-right: 0.4em;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
  vertical-align: middle;
}
.slot-controls input[type="checkbox"]:checked {
  background: linear-gradient(90deg, #ffe066 0%, #ff4b2b 100%);
  border-color: #ff4b2b;
}
.slot-controls input[type="checkbox"]:checked::after {
  content: '';
  display: block;
  position: absolute;
  left: 0.35em;
  top: 0.15em;
  width: 0.35em;
  height: 0.7em;
  border: solid #23272f;
  border-width: 0 0.18em 0.18em 0;
  transform: rotate(45deg);
}
