body {
    background: url('bg.png') 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;
}

.game-container, footer {
    max-width: 900px;
    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 {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    font-size: 1.1em;
}

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

#roundOptions button {
    min-width: 120px;
}

#message {
    margin-top: 20px;
    font-size: 1.4em;
    font-weight: bold;
}

/* Kartenbereich */
#card-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
    min-height: 240px;
}

/* Einzelne Karte */
.card {
    width: 160px;
    height: 240px;
    position: relative;
    transition: transform 0.3s ease;
    background-color: white;
}

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

.card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Referenzkarten markieren */
.reference-card {
    border: 3px solid gold;
    box-shadow: 0 0 10px gold;
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
    .card {
        width: 60px;
        height: 90px;
    }
    
    #card-area {
        gap: 8px;
    }
}

/* Rundenspezifische Buttons */
.round-btn {
    min-width: 120px;
    margin: 8px;
    padding: 10px 15px;
    background: #ffd700;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.round-btn:hover {
    background: #ffc000;
    transform: translateY(-2px);
}

.round-btn:active {
    transform: translateY(0);
}

/* Deaktivierte Buttons */
.round-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

#hold-btn {
    background: #4CAF50;
    color: white;
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#hold-btn:hover {
    background: #45a049;
}

#game-message {
    min-height: 40px;
    font-size: 1.2em;
    margin: 15px 0;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.success-message {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

/* 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);
}

/* Besondere Stilisierung für High-Roller-Optionen */
option[value="200"],
option[value="300"],
option[value="400"],
option[value="500"],
option[value="600"],
option[value="700"],
option[value="800"],
option[value="900"],
option[value="1000"] {
    font-weight: bold;
    color: #d4af37; /* Goldfarbe */
}

/* Game Over */
#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;
    animation: fadeIn 0.5s ease forwards;
}

#game-over-overlay .game-over-box {
    background: #300;
    color: #fff;
    padding: 40px 60px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 0 40px red;
    animation: pulseRed 1.2s infinite alternate;
}

@keyframes pulseRed {
    from { box-shadow: 0 0 20px red; }
    to { box-shadow: 0 0 60px red; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
