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;
    color: gold;
}

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

.status {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    font-size: 1.1em;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 8px;
}

#bet-area, #game-area {
    margin-top: 20px;
}

select, button {
    padding: 10px 20px;
    margin: 5px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

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

button {
    background: #ffd700;
    color: #000;
    font-weight: bold;
    transition: 0.2s;
}

button:hover {
    background: #ff9900;
}

/* 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: 900px;
}

#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);
}

/* Kartenbereich */
.card-area {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
    min-height: 120px;
}

/* Einzelne Karte */
.card {
    width: 80px;  /* Breite der Karte reduzieren */
    height: 120px; /* Höhe der Karte reduzieren */
    position: relative;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Kartenbilder */
.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Statt 'contain' für bessere Darstellung */
    border-radius: 5px;
}

/* Verdeckte Karten (für Computer) */
.card-back {
    background: #d00;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

/* Responsive Anpassungen für mobile Geräte */
@media (max-width: 600px) {
    .card {
        width: 60px;
        height: 90px;
    }
    
    .card-area {
        gap: 5px;
    }
}

.card-back {
    background: #d00;
    color: white;
    font-size: 14px;
}

.player-area {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    margin: 10px 0;
}

#game-message {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 1.2em;
}

/* Neue Styles für Einsatz-Optionen */
.action-btn {
    margin: 5px;
    padding: 8px 15px;
    font-size: 0.9em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.fold-btn {
    background: #f44336;
    color: white;
}

.call-btn {
    background: #4CAF50;
    color: white;
}

.raise-btn {
    background: #2196F3;
    color: white;
}

.check-btn {
    background: #FFC107;
    color: black;
}

.allin-btn {
    background: #9C27B0;
    color: white;
    font-weight: bold;
}

/* Slider Styling */
input[type="range"] {
    appearance: none;           /* Standard */
    -webkit-appearance: none;   /* WebKit/Blink */
    -moz-appearance: none;      /* Firefox */
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    margin: 10px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #ffd700;
    border-radius: 50%;
    cursor: pointer;
}

/* Einsatz-Anzeige */
.bet-controls {
    margin: 15px 0;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.bet-amount-display {
    font-weight: bold;
    margin: 0 10px;
}

#game-over-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.game-over-box {
    background: #300;
    color: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 0 40px red;
}

.game-over-box button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.1em;
}

.hand-strength {
    font-size: 0.9em;
    color: #ccc;
    margin-top: 5px;
}