/* Definiere die Hauptfarben basierend auf dem Rosa des Schweins */
:root {
    --primary-color: #f4c2c2; /* Sanftes Rosa */
    --secondary-color: #f7a8b9; /* Dunkleres Rosa/Rot für Akzente */
    --text-color: #333;
    --border-color: #f7a8b9;
    --winning-color: #8c2f2f; /* Dunkleres Rot für den Gewinn */
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
}

.container {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
}

h1 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

#status-message {
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Tic Tac Toe Spielbrett */
.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 5px;
    margin: 0 auto 20px auto;
    width: 300px; /* Gesamthöhe/Breite des Bretts */
    height: 300px;
    border: 3px solid var(--border-color);
    border-radius: 5px;
}

.cell {
    background-color: #fff8f8; /* Sehr helles Rosa */
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3em;
    cursor: pointer;
    transition: background-color 0.3s;
    background-size: 80%; /* Größe der Bilder */
    background-repeat: no-repeat;
    background-position: center;
}

.cell:hover {   
    background-color: #ffe0e0;
}

/* Symbole (Schweinchen und Kirchturm) */
.cell.pig {
    background-image: url('../pig.png');
}

.cell.turm {
    background-image: url('../turm.png');
}

/* Stil für gewinnende Zellen */
.cell.winning {
    background-color: var(--winning-color);
    border-color: var(--winning-color);
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from { opacity: 1; }
    to { opacity: 0.8; }
}

/* Reset Button */
#reset-button {
    padding: 10px 20px;
    font-size: 1.1em;
    background-color: #f7a8b9;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#reset-button:hover {
    background-color: #d79999;
}

/* --- Neue Stile für das Overlay und den Startzustand --- */

/* Versteckt Elemente, die gerade nicht benötigt werden */
.hidden {
    display: none !important;
}

/* Stilisiert das Start-Overlay über dem Spielbrett */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* Halbdurchsichtiger Hintergrund */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10; /* Stellt sicher, dass es über den Zellen liegt */
    border-radius: 5px;
}

/* Passt das Brett an, um das Overlay zu positionieren */
.board {
    position: relative; /* Wichtig für die Positionierung des Overlays */
    /* ... restliche Board-Styles bleiben gleich ... */
}

/* Stilisiert den Start-Button, ähnlich dem Reset-Button */
#start-button {
    padding: 15px 30px;
    font-size: 1.5em;
    background-color: #f7a8b9;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

#start-button:hover {
    background-color: #d79999;
}

.inline-icon {
    height: 1.2em; /* Größe relativ zur aktuellen Schriftgröße */
    vertical-align: middle; /* Zentriert das Icon vertikal */
    margin: 0 5px;
}

/* Für die kleineren Icons im Scoreboard */
.icon-small {
    height: 1em; 
    vertical-align: middle;
    margin-right: 3px;
}
/* --- BUTTONS --- */
 .game-button {
        background-color: #f7a8b9; 
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 8px;
        font-size: 1.1em;
        font-weight: bold;
        cursor: pointer;
        transition: background-color 0.3s ease;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .game-button:hover {
        background-color: #d79999;
    }
/* Bestehende Buttons im Tic-Tac-Toe könnten so aussehen: */
#start-button, #reset-button {
    /* Füge hier die Klasse hinzu oder wende direkt die Styles an */
    /* background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
}