
:root {
    --header-footer-bg-color:rgb(40, 102, 40);
    --header-footer-font-color:rgb(156, 79, 16);

    --left-right-column-bg-color:rgb(49, 131, 49);
    --left-right-column-font-color:rgb(0, 0, 0);

    --center-column-bg-color: rgb(21, 85, 21);
    --center-column-font-color: rgb(0, 0, 0);


    --rechts-margin: 10px;
    --links-margin: 5px;

}


body {
         font-family: Arial, sans-serif;
         margin: 0;
         padding: 0;
         display: flex;
         flex-direction:column;
         height: 100vh;
}

header, footer {
         background-color: var(--header-footer-bg-color);
         color: var(--header-footer-font-color);
         text-align: center;
         padding: 10px 0;
         position: relative;
}

main {
         display: flex;
         flex: 1;
         flex-direction: row;
}


canvas {
    display: block;
    margin: 20px auto;
    background-color: aliceblue;
}

.column {
    padding: 20px; 
}

.left-column {
         background-color: var(--left-right-column-bg-color);
         color: var(--left-right-column-font-color);

}


.center-column {
    display: block; /* Stellen sicher, dass divs untereinander angeordnet sind */
    background-color: var(--center-column-bg-color);
    color: var(--center-column-font-color);
    height: 100%;

}

.right-column {
         background-color: var(--left-right-column-bg-color);
         color: var(--left-right-column-font-color);

}

footer {
         color:  var(--header-footer-font-color);
         height: 30px;
         text-align: center;
         padding: 10px 0;
}

.header-room-no{
    margin-left: 25px;
}



.language-swicher{
        position: absolute;
        right: 10px;
        top: 10px;
        display:flex;
        gap: 10px;
}

.language-swicher a{
         text-decoration: none;
         padding: 5px 10px;
         background-color: var(--header-footer-bg-color);
         color: var(--header-footer-font-color);
         border-radius: 5px;
}

.language-swicher a:link{
         color: var(--header-footer-font-color);
}

.language-swicher a:visited{
         color: var(--header-footer-font-color);
}

.language-swicher a:hoover{

         color: var(--header-footer-font-color);
}

.login{
    position: absolute;
    left: 10px;
    top: 10px;
    display:flex;
    gap: 10px;
}

.login a{
     text-decoration: none;
     padding: 5px 10px;
     background-color: var(--header-footer-bg-color);
     color: var(--header-footer-font-color);
     border-radius: 5px;
}

.login a:link{
     color: var(--header-footer-font-color);
}

.login a:visited{
     color: var(--header-footer-font-color);
}

.login a:hoover{

     color: var(--header-footer-font-color);
}


.chat{
    width: 100%; 
    padding: 10px; 
    box-sizing: border-box;
    background-color: aliceblue;

    
}

.chat_input{
    color:  var(--left-right-font-color);
    margin-left: var(--links-margin);
    height: 25px;
    width: 225px;
    display:flex;
    justify-content: flex-end; /* Verschiebt die Elemente nach rechts */
}

.chat_input_container {
    display: flex;
    justify-content: flex-end; /* Übergeordnetes Flex-Container-Verhalten */
}

.chat_input_button {
    align-self: flex-end; /* Richtet das spezifische Element aus */
    /* Weitere Styles für den Button */
}


.chat ul { 
    list-style-type: none; /* Entfernt die Standard-Aufzählungszeichen */ 
    padding-left: 0; /* Entfernt das linke Padding des <ul>-Elements */ }

.chat_message{
    max-width: 200px; /* Setze hier die maximale Breite, bei der ein Zeilenumbruch erfolgen soll */ 
    word-wrap: break-word;
    padding: 5px; 


}

.quit{
    margin-left: var(--links-margin);
    color:  var(--header-footer-font-color);
    display:flex;
    gap: 10px;
}

.impressum{
    margin-right: var(--rechts-margin);
    display:flex;
    justify-content: flex-end;
    gap: 10px;

}

.canvas-container {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--center-column-bg-color);
}

#board, #overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 450px;
}

#overlay {
    z-index: 2;

    background: transparent;
    

}  

#board {
    z-index: 1;
}




#new-picture-button {
    position: absolute;
    top: 0; 
    left: 0; 
}

#spielerListe {
    margin-top: 50px;
    padding: 1em;
    position: relative;
    background-color: #f9f9f9; /* Optional: um die Sektion hervorzuheben */
    border-top: 1px solid #ddd; /* Optional: um eine Trennungslinie hinzuzufügen */
}


        .form-container {
            display: flex;
            flex-direction: column;
        }
        
        .form-group {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .form-group label {
            width: 100px; /* Passt die Breite des Labels an */
            margin-right: 10px;
        }
        
        .form-group input {
            flex: 1; /* Eingabefeld nimmt den verfügbaren Platz ein */
        }

        
#message {
    opacity: 0;
    transition: opacity 1s ease; /* Sanfte Übergangsanimation */
}
#message.visible {
    opacity: 1;
}
.hidden {
    display: none;
}

.column.center-column {
    display: flex; /* Aktiviere Flexbox */
    flex-direction: column; /* Stapelt die Kinder vertikal */
    align-items: center; /* Zentriert die Inhalte horizontal */
    gap: 20px; /* Abstand zwischen den beiden Divs */
}

#gameField {
    position: relative;
    width: 600px;
    height: 450px;
}

#loesungsvorschlagsDiv {
    width: 100%; /* Optional: Passe die Breite an */
    text-align: center; /* Zentriert die Inhalte */
}

#infoDiv {
    font-size: 25px;
    color: #fd1313;
    text-align: center;
    margin-top: 100px;
}
        