/* style.css */
:root {
    --fa-font-solid: normal 900 2em / 1 "Font Awesome 6 Free";
}


body {
    font-family: 'Comic Sans MS', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f8ff; /* Heller Blauton als Basis */
    color: #333;
    display: flex;
    flex-direction: column; /* row oder column, um Elemente nebeneinander zu platzieren */
}

h1 {
    margin: 2px;
}

h2 {
    margin: 2px;
}


table {
    background-color: #fff; /* Neutrales Weiß für Klarheit */
    border: 3px solid #0056b3; /* Kräftiges Blau */
    border-radius: 10px; /* Abgerundete Ecken */
    padding: 20px; /* Innenabstand */
    margin: 20px; /* Abstand um die Tabelle */
    font-family: 'Arial', sans-serif; /* Klare, lesbare Schrift */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Leichter Schatten */
    border-collapse: separate; /* Setze 'separate' statt 'collapse' */
    border-spacing: 0; /* Entfernt Abstand zwischen den Zellen */
    height: auto;
}



table tbody .prominent {
    font-weight: bold;
    background-color: #0057b363;
}


th, td {
    border: 1px solid #ddd; /* Linien zwischen Zellen */
    padding: 8px; /* Innenabstand in den Zellen */
    text-align: center; /* Text zentriert */
    vertical-align: middle; /* Vertikale Zentrierung */
    height: auto;
}

th {
    background-color: #f4f4f4; /* Heller Hintergrund für Header */
    font-weight: bold; /* Fett für Überschriften */
    
}


tbody tr {
    border-left: 1px solid #ddd; /* Linke Linie */
    border-right: 1px solid #ddd; /* Rechte Linie */
}

tbody tr:last-child {
    border-bottom: 1px solid #ddd; /* Untere Linie für letzte Zeile */
}

tbody tr:hover {
    background-color: #f0f8ff; /* Heller Blauton für Hover-Effekt */
}






/* Damit Debugmeldungen aus dem php Teil sichtbar sind */
.debugcontainer {
    flex: 1; /* Container nimmt den restlichen Platz ein */
    margin-left: 300px;
    margin-top: 60px;

}

.container {
    font-family: inherit;
    flex: 1; /* Container nimmt den restlichen Platz ein */
    margin: 2rem; /* Abstand zum Rand */
    margin-left: 300px;
    margin-top: 50px;
    background: linear-gradient(135deg, #0056b3, #c8ff00); /* Blau-Rot-Verlauf */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    color: #000000;
}

.container.menu-open {
    margin: 2rem;
}

/* games.php */
#spieletabelle {
    width: 100%; /* Passt sich der Breite an */
    max-width: 800px; /* Maximale Breite für das Formular */
}


/* Seitliches Menü */
.side-menu {
    position: fixed;
    top: 40px; /* Platz für die Top-Bar */
    left: 0;
    width: 250px;
    height: 100%;
    padding: 1rem;
    background-color: #0056b3; /* Kräftiges Blau */
    color: #fff;
   
    z-index: 10;
    transition: transform 0.3s ease;
    transform: translateX(0); /* Desktop: Menü standardmäßig offen */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.side-menu ul {
    list-style-type: none;
    padding: 10px;
    margin: 0;
}

.side-menu ul li {
    margin: 10px 0;
}


.side-menu ul li a {
    text-decoration: none;
    color: #ffd700; /* Goldene Links */
    font-size: 1.3rem;
    transition: color 0.3s;
}

.side-menu ul li a:hover {
    color: #fff; /* Weiß bei Hover */
}

/* Schließen-Button und Menü geschlossen */
.side-menu.closed {
    transform: translateX(-100%); /* Menü ausblenden */
}

.content.menu-open {
    margin-left: 0;
}



.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #ffd700;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Inhalte auf der linken Seite ausrichten */
    padding: 0 20px;
    box-shadow: inset 0 -5px 8px rgba(0, 0, 0, 0.2); /* Innenliegender Schatten am unteren Rand */
    color: black;
    z-index: 20;
}

.top-bar .home-icon,
.top-bar .hamburger {
    cursor: pointer;
    font-size: 1.5rem;
    margin-right: 10px; /* Abstand zwischen den Icons */
    color: #fdfcfa;
}


#stiky_amzug {

    text-align: center;
    padding: 10px 0;
    z-index: 100; /* Über anderen Elementen */
    opacity: 0; /* Wen keine Spiel_id im Get, nicht sichtbar*/
    pointer-events: none; /* Nicht klickbar, wenn unsichtbar */
    transition: opacity 0.3s ease; /* Sanftes Einblenden */
}

#stiky_amzug.visible {
    opacity: 1; /* Sichtbar */
    pointer-events: auto; /* Interaktiv */
}

.dice {
    color: #f00000;
    font-size: 35px;
    margin: 0 10px; /* Abstand nach rechts und links */
    align-self: center;
}


form {
    display: flex;
    flex-direction: column;
    border: 3px solid #0056b3;
    background-color: #ffff0015;
    border-radius: 10px;
    padding: 20px;
    margin: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

form, #spielzug {
width: 80%;
}


form label {
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 1.2rem;
    color: #000000;
}
select, input[type="checkbox"] {
    margin-bottom: 1rem;
}
button {
    padding: 0.5rem;
    font-size: 1rem;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
button:hover {
    background-color: #0056b3;
}
.actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}
.highlight {
    font-weight: bold;
    color: green;
}





header {
    background-color: #007BFF;
    color: white;
    padding: 1rem;
    text-align: center;
}

/* .disabled wird für die function prüfeWertbareWürfel verwendet */
.disabled {
    opacity: 0.5;
    pointer-events: none;
}


.inhalte_nebeneinander {
    display: flex;
    flex-wrap: wrap; /* Inhalte umbrechen, wenn nicht genug Platz ist */
    gap: 16px; /* Abstand zwischen den Elementen */
    height: auto;
    overflow: auto;
    align-items: flex-start; /* Elemente oben ausrichten */

}

#tabelle_rangliste {
    
    width: 30%;
    height: auto;
}

.container_auswertungspiel {
    display: flex;
    flex-direction: column; /* Elemente untereinander auflisten */
    gap: 16px; /* Abstand zwischen den Elementen */
}





input[type="text"] {
    width: 50%; /* Breite des Inputs */
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 2px solid blue;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease-in-out;
}

input[type="number"] {
    width: 50%; /* Breite des Inputs */
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 2px solid blue;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease-in-out;
}

input:focus {
    border-color: #ffd700; /* Goldener Rand bei Fokus */
    outline: none;
    box-shadow: 0 0 5px #ffd700;
}


select {
    width: 50%; /* Breite des Inputs */
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 2px solid blue;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease-in-out;
}

select, #karte{
    width: 200px; /* Breite des Inputs */

}

form, #kartenForm{
    width: 45%; /* Passt sich der Breite an */
    max-width: 600px; /* Maximale Breite für das Formular */
    display: inline-block;
    padding: 10px;
    margin: 10px;
}


.spielzug {
  
    background-color: #f7f9fc; /* Helles Hintergrund mit leichtem Blau-Ton */
    border: 2px solid #e2e6ea; /* Dezente Umrandung */
    border-radius: 10px; /* Abgerundete Ecken */
    padding: 20px; /* Innenabstand */
    width: 45%; /* Passt sich der Breite an */
    max-width: 600px; /* Maximale Breite für das Formular */
    margin: 20px; /* Zentrierungwäre margin: 20px auto; mit Abstand */
    font-family: inherit;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Leichter Schatten für 3D-Effekt */
}

.dice-display {
    display: flex;
    gap: 10px; /* Abstand zwischen den Würfeln */
    justify-content: center; /* Zentriert die Würfel horizontal */
    align-items: center; /* Zentriert die Würfel vertikal */
}



.fa-solid {
    display: flex; /* Flexbox verwenden */
    font-family: "Font Awesome 6 Free" !important;
    justify-content: center; /* Horizontal zentrieren */
    align-items: center; /* Vertikal zentrieren */
    color: #f00000 !important;
    
  
}

.fa-solid:hover {
    transform: scale(1.2);
    color: #f00000; /* Rot beim Hover */
}




.spielinfo {
    background-color: #f7f9fc; /* Helles Hintergrund mit leichtem Blau-Ton */
    border: 3px solid;
    border-color: blue; /* Dezente Umrandung */
    border-radius: 10px; /* Abgerundete Ecken */
    padding: 20px; /* Innenabstand */
    width: 45%; /* Passt sich der Breite an */
    max-width: 600px;
   
    margin: 20px; /* Zentrierungwäre margin: 20px auto; mit Abstand */
    font-family: inherit;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Leichter Schatten für 3D-Effekt */
}






.highlight {        /* Markierung des aktuellen Spielers */
    background-color: #d4fcd4;
}




#tabelle_rundenuebersicht {
    
    border-collapse: collapse; /* Grenzen zusammenziehen */
    font-size: 12px; /* Schriftgröße reduzieren */
    table-layout: fixed; /* Spaltenbreite automatisch anpassen */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Leichter Schatten */
    border-radius: 10px;
    padding: 10px; /* Innenabstand */
    margin: 10px; /* Abstand um die Tabelle */
}

#tabelle_rundenuebersicht th, #tabelle_rundenuebersicht td {
    padding: 4px; /* Polsterung reduzieren */
    text-align: center; /* Inhalte zentrieren */
    overflow: hidden; /* Überlauf verhindern */
    white-space: nowrap; /* Zeilenumbruch verhindern */
}

#tabelle_rundenuebersicht th {
    background-color: #f5f5f5; /* Dezente Hintergrundfarbe für die Header */
    font-weight: bold; /* Kopfzeile hervorheben */
}

#tabelle_rundenuebersicht td {
    border: 1px solid #ddd; /* Dünne Rahmen für bessere Lesbarkeit */
}

.button-green {
    display: inline-block;
    background-color: green; 
    color: #fff; /* Weißer Text */
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 15px; /* Abgerundete Ecken */
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
}

.button-green:hover {
    background-color: #218838; 
}

#a_button {
    display: inline-block;
    background-color: green; 
    color: #fff; /* Weißer Text */
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 15px; /* Abgerundete Ecken */
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
    

}
#a_button:hover {
    background-color: #218838;
    }






/* Mobil: Menü standardmäßig geschlossen */
@media (max-width: 767px) {
    .side-menu {
        transform: translateX(-100%);
    }

    .side-menu.closed {
        transform: translateX(0); /* Menü sichtbar */
    }

    .container {
        margin-left: 1px;
        margin-right: 1px;
        max-width: 100vw; /* Maximal so breit wie der Bildschirm */
        margin: 1rem; /* Abstand zum Rand */
        margin-top: 50px;
        padding: 3px;

    
    }

    #tabelle_rundenuebersicht-wrapper {
        overflow-x: auto; /* Horizontales Scrollen aktivieren */
        display: block; /* Blockelement, damit es scrollt */
    }
    
    #tabelle_rundenuebersicht {
        min-width: 600px; /* Mindestbreite festlegen */
        padding: 10px;
        margin: 10px;
    }
    
    .spielzug {
        width: 85%; /* Passt sich der Breite an */   
        padding: 10px;
        margin: 10px; 
    }

    form, #kartenForm {
        width: 85%; /* Passt sich der Breite an */    
        padding: 10px;
        margin: 10px;
    }

    .spielinfo {
        width: 85%; /* Passt sich der Breite an */    
        padding: 10px;
        margin: 10px;
    }
    #tabelle_rangliste {
    
        width: 85%; /* Passt sich der Breite an */  
        padding: 10px;
        margin: 10px;  
    }

    #tabelle_rundenuebersicht {
        width: 85%; /* Passt sich der Breite an */    
        padding: 10px;
        margin: 10px;
  
    }
    button {
        touch-action: manipulation; /* Verhindert Zoom bei Berührung */
        outline: none; /* Entfernt Fokus-Styling */
        font-size: small;
    }
    h1 {
        margin: 2px;
        font-size: medium;
    }
    
    h2 {
        margin: 2px;
        font-size: small;
    }
    h3 {
        margin: 2px;
        font-size: small;
    }
    h4 {
        margin: 2px;
        font-size: small;
    }
    #kartenForm label {
        margin: 2px;
        font-size: small;
    }
    select, #karte{
        width: 70%; /* Breite des Inputs */
        padding: 5px;
        margin-top: 2px;
        margin-bottom: 1px;
        border: 2px solid blue;
        border-radius: 10px;
        font-size: 14px;
    
    }
}