/* Grunddesign für den Body */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #eef2f7, #d3e0f0);
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header-Stil */
header {
    background-color: #007bff; /* Primärfarbe */
    color: white;
    padding: 1rem 2rem; /* Polsterung */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Schatten für Tiefe */
    border-radius: 8px; /* Abgerundete Ecken */
    max-width: 375px; /* Maximale Breite */
    margin: 0 auto; /* Zentriert den Header */
}

header p {
    margin: 0; /* Entfernen der Standard-Marge */
    font-size: 0.9rem; /* Schriftgröße für zusätzliche Informationen */
}

/* Bild-Container und Bild-Stil */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 150px);
    gap: 15px;
    margin: 2rem auto;
    justify-content: center;
}

.game-image {
    width: 150px;
    height: 150px;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Antwortbox mit Animation und Übergang */
.answer-box {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.answer-letter {
    font-size: 1.8rem;
    width: 55px;
    height: 55px;
    border: 2px solid #6c757d;
    border-radius: 10px;
    text-align: center;
    line-height: 55px;
    font-weight: bold;
    background-color: white;
    color: #333;
    transition: background-color 0.3s, transform 0.2s;
}

.answer-letter.correct {
    background-color: #28a745;
    color: white;
    transform: scale(1.1);
}

/* Buchstaben-Pool im modernen Stil */
.letter-pool {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    max-width: 370px;
    margin: 0 auto 2.5rem;
}

.letter {
    font-size: 1.5rem;
    padding: 12px;
    border: 2px solid #007bff;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    background-color: #e0f3ff;
    font-weight: bold;
    color: #007bff;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.letter:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.2);
}

.letter:active {
    transform: scale(0.95);
    box-shadow: none;
}

.letter.selected {
    background-color: #007bff; /* Blauer Hintergrund */
    color: white; /* Weiße Schrift */
}

/* Navigationsstil */
.navbar {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
}

.navbar-brand {
    font-weight: bold;
    color: #007bff;
}

.navbar .nav-link {
    color: #555;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: #007bff;
}

.intro {
    max-width: 600px;
    margin: auto;
}

.intro h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.intro p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.intro img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.cta-buttons {
    display: flex;
    justify-content: center;
}

.cta-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
    background-color: #007bff;
    border: none;
}

.cta-buttons .btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.cta-buttons .btn:hover {
    transform: translateY(-2px);
}

/* Stil für den Footer */
footer {
    background-color: #222;
    color: #ddd;
    padding: 1.2rem 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 30px;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    header h1 {
      font-size: 2rem;
    }

    .image-grid {
      grid-template-columns: repeat(2, 120px);
      gap: 10px;
    }

    .game-image {
      width: 120px;
      height: 120px;
    }

    .answer-box {
      gap: 8px;
    }

    .letter-pool {
      grid-template-columns: repeat(6, 1fr); /* Gleiche Anordnung in zwei Zeilen mit 6 Buchstaben */
    }

    .letter {
      padding: 10px;
      font-size: 1.2rem;
    }
}
