/* --- Grundlayout FullHD --- */
body {
    background: url('bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    font-family: Arial, sans-serif;
    text-align: center;
}

h1 {
    margin-top: 20px;
    font-size: 2.5em;
}

/* Container Styles */
.game-container, footer {
    max-width: 1000px;
    margin: 20px auto;
    background: rgba(0,0,0,0.8);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(227, 194, 4, 0.8);
}

/* Status Anzeige */
.status {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  font-size: 1.3rem;
}

.status p {
  margin: 0;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

/* Formular Elemente */
input[type="text"], 
input[type="password"],
input[type="number"] {
  font-size: 1.2rem;
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  width: 250px;
  margin: 12px 0;
  outline: none;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

button {
  font-size: 1.6rem;
  margin: 15px;
  padding: 14px 35px;
  border-radius: 15px;
  border: none;
  background: linear-gradient(45deg, #28a745, #1e7e34);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

button:disabled {
  background: #555;
  cursor: not-allowed;
  box-shadow: none;
}

button:hover:not(:disabled) {
  background: linear-gradient(45deg, #1e7e34, #28a745);
  transform: translateY(-2px);
}

/* Kartenbereich */
#dealerCards, #playerCards {
  min-height: 180px;
  margin: 20px 0 40px 0;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 15px;
}

.card {
  width: 120px;
  height: 175px;
  margin: 10px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card img.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card:hover {
  transform: scale(1.05) rotateY(3deg);
  z-index: 10;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Statusmeldungen */
#status {
  font-size: 1.8rem;
  margin-bottom: 25px;
  min-height: 2.5rem;
  font-weight: 600;
  text-shadow: 0 0 6px black;
}

/* Chips Anzeige */
#chipsDisplay {
  font-weight: 700;
  font-size: 1.7rem;
  color: #00ff00;
  text-shadow: 0 0 6px #00ff00;
}

/* Highscore Styles */
#highscores {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 20px;
    margin: 40px auto;
    box-shadow: 0 0 15px rgba(227, 194, 4, 0.8);
    max-width: 1000px;
}

#highscoreTable {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

#highscoreTable th, 
#highscoreTable td {
    padding: 10px 15px;
    text-align: center;
    border: 1px solid #ffd700;
    color: white;
}

#highscoreTable th {
    background-color: rgba(227, 194, 4, 0.3);
    font-size: 1.1em;
}

/* Medaillen-Plätze */
#highscoreTable tr.rank-1 {
    background-color: rgba(255, 215, 0, 0.2);
}
#highscoreTable tr.rank-2 {
    background-color: rgba(192, 192, 192, 0.2);
}
#highscoreTable tr.rank-3 {
    background-color: rgba(205, 127, 50, 0.2);
}

/* Zebra-Streifen */
#highscoreTable tr:nth-child(even):not(.rank-1):not(.rank-2):not(.rank-3) {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Warnhinweise */
.warning {
  color: #ffcc00;
  font-size: 1rem;
  margin: 10px 0;
}

/* Footer */
footer {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #aaa;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  .game-container, #highscores {
    padding: 20px;
  }
  
  button {
    font-size: 1.3rem;
    padding: 12px 25px;
  }
  
  .card {
    width: 80px;
    height: 120px;
  }
  
  #highscoreTable {
    font-size: 0.9rem;
  }
}