/* styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
}

.container {
    text-align: center;
    width: 100%;
    max-width: 600px; /* Maximale Breite für größere Bildschirme */
}

.game-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Verwende relative Einheiten für Flexibilität */
    grid-template-rows: repeat(5, 1fr); /* Verwende relative Einheiten für Flexibilität */
    gap: 5px;
    margin-bottom: 20px;
    width: 100%; /* Nutze die verfügbare Breite */
    aspect-ratio: 1; /* Bewahrt ein quadratisches Verhältnis */
}

.cell {
    background-image: url('placeholder.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    aspect-ratio: 1; /* Bewahrt ein quadratisches Verhältnis */
    width: 100%; /* Nutze die verfügbare Breite */
    height: auto; /* Höhe automatisch berechnen */
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fff;
    padding: 10px; /* Kleinere Polsterung für mobile Geräte */
    border-radius: 5px;
    text-align: center;
    position: relative;
    width: 90%; /* Nutze 90% der Breite des Bildschirms */
    max-width: 400px; /* Maximale Breite für Popup */
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

.image-options {
    display: grid;
    grid-template-rows: repeat(3, 1fr); /* Drei Reihen für die Bilder */
    grid-auto-flow: column; /* Die Bilder werden in Spalten innerhalb der Reihen angeordnet */
    gap: 10px;
    justify-content: center;
    width: 100%; /* Nutze die verfügbare Breite */
}

.image-options img {
    width: 100%; /* Bilder passen sich der Größe der Container-Zelle an */
    height: auto; /* Höhe automatisch berechnen */
    max-width: 60px; /* Maximale Breite der Bilder */
    cursor: pointer;
}

/* styles.css */
/* Media Queries für kleine Bildschirme */
@media (max-width: 600px) {
    .game-board {
        grid-template-columns: repeat(5, 1fr); /* Bei Bedarf anpassen */
        grid-template-rows: repeat(5, 1fr); /* Bei Bedarf anpassen */
    }

    .cell {
        aspect-ratio: 1; /* Bewahrt ein quadratisches Verhältnis */
    }

    .popup-content {
        padding: 5px; /* Noch kleinere Polsterung für sehr kleine Bildschirme */
    }

    .image-options {
        grid-template-rows: repeat(3, 1fr); /* Drei Reihen für die Bilder */
        grid-auto-flow: column; /* Die Bilder werden in Spalten innerhalb der Reihen angeordnet */
        gap: 5px; /* Kleinere Abstände für kleine Bildschirme */
    }

    .image-options img {
        max-width: 50px; /* Noch kleinere Bilder für sehr kleine Bildschirme */
    }
}
