@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Quicksand:wght@300..700&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
body {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
}

#teamchat {
    width: 450px;
    height: 600px;
    background-color: #f2a8d7; /* Hellrosa */
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: 
      linear-gradient(135deg, rgba(115, 0, 161, 0.3), rgba(93, 0, 130, 0.2)), 
      url('img/bg.png'); /* URL deiner Textur */
    background-size: cover; /* Deckt den gesamten Hintergrund ab */
    background-position: center;
    color: white;
    position: absolute;
    left: 20px; /* 20px vom linken Rand */
    top: 42%; /* Vertikal in der Mitte */
    transform: translateY(-50%); /* Korrektur für echte Mitte vertikal */
    font-family: "Roboto", sans-serif;
    display: none;
  }
  
  h2 {
    text-align: center;
    font-size: 24px;
    margin: 0;
  }
  
  #messages {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    height: 76%;
  }
  
  .message {
    margin-bottom: 10px;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
  }
  
  .message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .message-header strong {
    color: white;
  }
  
  .message-text {
    margin-left: 10px;
    flex-grow: 1; /* Macht die Nachricht flexibel, sodass sie den Platz ausfüllt */
  }
  
  .timestamp {
    font-size: 12px;
    color: gray;
    white-space: nowrap; /* Verhindert das Umbrechen des Zeitstempels */
    margin-left: 10px;
  }
  
  /* Standard Badge-Stil */

  #sendButton img {
    height: 30px;
    width: auto;
  }
  #inputArea {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: max-content;
  }
  
  #chatInput {
    width: 80%;
    padding-inline: 10px;
    border-radius: 5px;
    border: none;
    background-color: #ffffff3e;
    color: rgb(255, 255, 255);
    resize: none; /* Verhindert das Resizing des Textarea */
    font-family: "Roboto", sans-serif;
    font-size: 1.1rem;
    display: flex;
    align-items: center;  /* Vertikale Zentrierung */
    justify-content: left;  /* Horizontale Ausrichtung des Texts nach links */
    text-align: left; /* Optional: Wenn du den Text linksbündig haben möchtest */
    height: max-content;
  }
  
  /* Placeholder Styling */
  #chatInput::placeholder {
    color: #c6c6c6; /* Graue Farbe für den Placeholder */
    font-family: "Roboto", sans-serif;
  }
  
  button {
    margin-left: 15px;
    padding: 6px 13px;
    background: linear-gradient(135deg, rgba(222, 140, 255, 0.6), rgba(194, 136, 218, 0.4));
    cursor: pointer;
    border-radius: 10px;
    color: white;
    border: none;
    transition: background 0.3s ease, transform 0.2s ease;
    font-size: 1.0rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Schatten für Buttons */
  }
  
  button:hover {
    background-color: rgba(159, 0, 207, 0.8);
    transform: scale(1.05);
  }
  
  /* Scrollbar Styling */
  ::-webkit-scrollbar {
    width: 10px; /* Breite der Scrollbar */
  }
  
  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5); /* Farbe des Scrollbar-Griffs */
    border-radius: 10px; /* Abgerundete Ecken */
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8); /* Farbe beim Hover über den Griff */
  }
  
  ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1); /* Hintergrund der Scrollbar-Schiene */
    border-radius: 10px; /* Abgerundete Ecken für die Schiene */
  }
  