/* Grundlegende Stile */
* {
    box-sizing: border-box;
}

body {
    background-color: #bada55;
    font-family: 'Arial', sans-serif;
}

/* Header */
#header-text {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 2.5em;
    text-align: center;
}

/* JavaScript mostly */
#app-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

#app {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    max-width: calc(150px * 6 + 12px * 5); /* Maximal 6 Spalten mit 12px Lücken */
    margin: 0 auto; /* Zentriert den Inhalt */
    justify-items: center; /* Zentriert die Karten horizontal */
}

/* Suchfeld */
input[type="text"] {
    width: 85%;
    height: 60px;
    padding: 8px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 1.5em;
}

/* Karten */
.ui.card {
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 20px 10px;
    max-width: 150px; /* Stellt sicher, dass die Karten nicht breiter als 150px werden */
    min-height: 250px; /* Einheitliche minimale Höhe für alle Karten */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Verteilung der Elemente in der Karte */
}

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

.ui.card .image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ui.card .image img {
    width: auto; /* Stellt sicher, dass die Bilder das Seitenverhältnis beibehalten */
    height: 100px; /* Einheitliche Höhe für alle Bilder */
}

.ui.card .header {
    text-align: center;
    font-size: 1.2em;
    margin: 10px 0;
    color: #333;
}

.ui.card .meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.type-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    width: 80px; /* Einheitliche Breite für alle Typ-Badges */
    margin: 2px;
    padding: 5px 10px;
    border-radius: 12px;
    color: white;
}


/* Footer */
footer {
    background-color: #202020;
    padding: 20px 0 50px 0px;
    margin: 0;
    text-align: center;
}

footer hr {
    border: 0;
    height: 1px;
    background: white;
    margin-bottom: 20px;
}

footer h2 {
    margin: 10px 0;
    color: #c2c2c2;
}

footer p {
    padding: 5px 50px;
    margin: 5px 0;
    color: #c2c2c2;
    font-size: 14px;
}


/* Pokémon Type Colors */
:root {
    --normal: #A8A77A;
    --fighting: #C22E28;
    --flying: #A98FF3;
    --poison: #A33EA1;
    --ground: #E2BF65;
    --rock: #B6A136;
    --bug: #A6B91A;
    --ghost: #735797;
    --steel: #B7B7CE;
    --fire: #EE8130;
    --water: #6390F0;
    --grass: #7AC74C;
    --electric: #F7D02C;
    --psychic: #F95587;
    --ice: #96D9D6;
    --dragon: #6F35FC;
    --dark: #705746;
    --fairy: #D685AD;
}

/* Lobby */
#lobby, #role-selection {
    text-align: center;
    margin-top: 20px;
}
#role-selection button {
    margin: 10px;
    padding: 10px 20px;
}

