/* Grundlegendes Styling für den Body */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    margin: 0;
    background: #121212; /* Sehr dunkles Grau für den Hintergrund */
    color: #e0e0e0; /* Helles Grau für den Text */
    font-family: Arial, sans-serif;
}

/* Container für das Spiel */
.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #1e1e1e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

/* Tabellen- und Zellen-Styling */
table {
    margin: 0 auto;
    margin-top: 40px;
    border-collapse: collapse;
    background-color: #2c2c2c; /* Dunkles Grau für den Tabellenhintergrund */
    border-radius: 10px;
    overflow: hidden;
}

/* Einzelne Zellen */
td {
    width: 10vw; /* Dynamische Größe für mobile Geräte */
    height: 10vw; /* Dynamische Größe für mobile Geräte */
    max-width: 50px;
    max-height: 50px;
    border: 1px solid #444; /* Mittleres Grau für die Zellengrenzen */
    position: relative;
    background-color: #333; /* Dunkles Grau für die Zellen */
}

/* Eingabefelder */
input {
    width: 100%;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 5vw; /* Dynamische Schriftgröße für mobile Geräte */
    max-font-size: 24px;
    background-color: transparent;
    color: #e0e0e0; /* Helles Grau für den Text */
    outline: none;
    transition: background-color 0.3s ease;
}

/* Wenn das Eingabefeld deaktiviert ist */
input:disabled {
    background-color: #555; /* Etwas helleres Grau, aber immer noch dunkel */
    color: #bbb; /* Helleres Grau für den Text */
}

/* Hintergrundfarbe für ausgefüllte Felder */
.box {
    background-color: #444; /* Dunklerer Hintergrund für vorgegebene Zahlen */
}

/* Ungültige Eingaben */
input.invalid {
    background-color: #ff6666; /* Helleres Rot für ungültige Felder */
    color: #000; /* Schwarz für besseren Kontrast */
}

/* Button zum Prüfen des Sudoku */
#check-button {
    margin-top: 20px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff; /* Blau für den Button */
    color: #fff; /* Weißer Text */
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

/* Hover-Effekt für den Button */
#check-button:hover {
    background-color: #0056b3; /* Dunkleres Blau bei Hover */
}

/* Nachricht, ob das Sudoku korrekt ist */
#message {
    margin-top: 20px;
    font-size: 18px;
    color: #a5d6a7; /* Helles Grün für Erfolgsmeldungen */
    text-align: center;
}

/* Media Queries für kleinere Geräte */
@media (max-width: 600px) {
    table {
        margin-top: 20px;
    }
    
    td {
        width: 15vw;
        height: 15vw;
    }

    input {
        font-size: 7vw;
    }

    #check-button {
        font-size: 14px;
        padding: 10px 16px;
    }
}
