body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    background-color: #000000; /* Hellgrauer Hintergrund */
    background-image: url("backrounds.gif");
}

/* Allgemeine Stile fÃ¼r den Chat-Container */
.chat-container {
    width: 800px; /* Breite des Containers */
    position: relative; /* Positionierungskontext fÃ¼r die absoluten Positionen der Kinder */
    background-color: #ffffff; /* Hintergrundfarbe */
    border: 1px solid #ccc; /* Umrandung des Containers */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Schatten des Containers */
}

/* Stile fÃ¼r die shoutbox */
#shoutbox {
    width: 800px; /* Gleiche Breite wie der Container */
    height: 600px; /* HÃ¶he der shoutbox */
    display: flex; /* Flex-Container fÃ¼r die Chat-Box */
    background-image: url("backrounds.gif"); 
    background-repeat: no-repeat;
   background-size: 100% 100%;
}

#chatbox .message {
    padding: 5px; /* Etwas Padding fÃƒÂ¼r eine bessere Lesbarkeit */
}

#chatbox::-webkit-scrollbar , #userbox::-webkit-scrollbar {
    display: none; /* Versteckt Scrollbalken in Webkit-basierten Browsern (Chrome, Safari) */
}

#chatbox .message .text {
    margin-left: 5px;
    word-break: break-word; /* Bricht lange WÃƒÂ¶rter um */
    white-space: pre-wrap; /* ZeilenumbrÃƒÂ¼che und Leerzeichen werden beibehalten */
}

/* Stile fÃ¼r die Benutzerliste */
#userbox {
    background-color: rgba(224, 224, 224, 0.5);
}

#userbox ul {
    list-style: none;
    padding: 10px;
    margin: 0;
}

#users li {
    padding: 5px 0;    
}
#users span {
    padding: 5px;    
}

#allusers , #time {
    font-weight: bold;
    text-decoration: underline;
}

/* Stile fÃ¼r die Chat-Box */
#chatbox {
    flex: 1; /* Nimmt den verbleibenden Platz ein */
    background-color: rgba(224, 224, 224, 0.5);
    overflow-y: auto; /* Scrollen bei Ãœberlauf */
}

/* Stile fÃ¼r die Toolbar */
#toolbar {
    display: flex; /* Zeige die Buttons nebeneinander */
    flex-wrap: wrap; /* Erlaube Umbrechen in die nÃ¤chste Zeile */
    background-color: rgba(0, 0, 0, 0.5);
}

#stream-buttons {
    width: 800px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    background-color: rgba(0, 0, 0, 0.5);
    float: right;
    text-align: right; /* Text rechtsbÃ¼ndig ausrichten */
}

/* Allgemeiner Stil fÃ¼r alle Eingabefelder */
.toolbar-input {
    width: 82%; /* Nimmt die gesamte Breite des Containers ein */
    padding: 8px 12px; /* Innenabstand */
    margin: 5px; /* Abstand zu anderen Elementen */
    border: 1px solid #ccc; /* Hellgraue Umrandung */
    border-radius: 4px; /* Abgerundete Ecken */
    font-size: 16px; /* SchriftgrÃ¶ÃŸe */
    transition: border 0.3s, box-shadow 0.3s; /* Sanfte Animation fÃ¼r Fokus */
    box-sizing: border-box; /* Padding und Border werden in der Breite berÃ¼cksichtigt */
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

/* Fokus-Stil: Wenn das Input-Feld ausgewÃ¤hlt ist */
.toolbar-input:focus {
    border-color: #007BFF; /* Ã„ndert die Umrandung zu einer krÃ¤ftigen Farbe */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Leichtes blaues Leuchten um das Input-Feld */
    outline: none; /* Entfernt den Standard-Rahmen von Browsern */
}

/* Stile fÃ¼r die Toolbar-Buttons */
.toolbar-button {
    margin: 5px; /* Abstand zwischen den Buttons */
    padding: 8px 12px; /* Innenabstand der Buttons */
    cursor: pointer; /* Zeigt an, dass es klickbar ist */
    border: 1px solid #ccc; /* Umrandung der Buttons */
    background-color: transparent; /* Hintergrundfarbe transparent */
    border-radius: 4px; /* Abgerundete Ecken */
    transition: background-color 0.2s; /* Sanfte Animation fÃ¼r den Hover-Effekt */
}

/* Hover-Effekt fÃ¼r die Buttons */
.toolbar-button:hover {
    background-color: rgba(224, 224, 224, 0.5); /* Leicht transparente Hintergrundfarbe beim Hover */
}

#audio-meter {display: none;}

#warning {
    display: none;
    background-color: #ffe9e9;
    text-align: center; 
    width: 583px;
    height: 137px;
    z-index: 3;
}

#warning h2 {
    color: #ff0000;
    font-size: 18px;
}

#warning p {
    font-size: 16px;
    margin: 10px 0;
    color: #000000;
}

/* Stile fÃ¼r die move_button-Klasse */
.move_button {
    position: absolute; /* Absolute Positionierung */
    transition: left 0.2s ease, top 0.2s ease; /* Sanfte Animation beim Bewegen */
    margin: 0; /* Abstand zwischen den Buttons */
    padding: 0; /* Innenabstand der Buttons */
    border: 0; /* Keine Umrandung */
    background-color: transparent; /* Hintergrundfarbe transparent */
}

.move_button.activate{
    background-color: rgba(0, 0, 0, 0.7);
}

img.user-onair{ 
    padding-left: 10px;
    max-width: 50px;
    max-height: 20px;
}

#chatbox img.admin-link{ 
    padding-right: 2px;
    max-width: 16px;
    max-height: 16px;
}
.toolbar-button.move_button {
    text-indent: -9999px; /* Text aus dem sichtbaren Bereich verschieben */
    white-space: nowrap; /* Verhindert UmbrÃ¼che */
    overflow: hidden; /* Ãœberlaufenden Text verstecken */
    text-align: left; 
}

#chatbox, #userbox, #warning{
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal;
}
.img-button,#audio-meter{
    display: none;
    
}

#command-box {
    display: none; /* StandardmÃ¤ÃŸig versteckt */
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px;
    z-index: 1000;
    max-width: 350px;
    max-height: 310px;
    overflow-y: auto;
    transition: opacity 0.2s ease-in-out;
    opacity: 0;
}

#command-box[style*="display: block"] {
    opacity: 1;
}

#command-box span {
    display: block; /* Jedes span auf eine eigene Zeile */
    margin-bottom: 5px; /* Optionaler Abstand zwischen den Zeilen */
    cursor: pointer; /* Zeiger Ã¤ndern */
}

.smilies-box {
    display: flex; /* Flexbox fÃ¼r Layout */
    flex-wrap: wrap; /* Elemente umbrechen, falls der Platz nicht ausreicht */
    gap: 10px; /* Abstand zwischen den Emojis */
    justify-content: flex-start; /* Emojis linksbÃ¼ndig anordnen */
    width: 250px;
}

.smilies-box span, 
.smilies-box img {
    width: 50px; /* Einheitliche GrÃ¶ÃŸe */
    height: 50px; /* Einheitliche GrÃ¶ÃŸe */
    text-align: center; /* Zentrierung des Textes */
    cursor: pointer; /* Zeiger Ã¤ndern */
    display: flex; /* FÃ¼r vertikale Zentrierung */
    align-items: center; /* Zentrierung in der Mitte */
    justify-content: center; /* Zentrierung in der Mitte *//
}

.background-box {
    display: grid; /* Verwende ein Grid-Layout */
    grid-template-columns: repeat(2, 1fr); /* Zwei Spalten mit gleicher Breite */
    gap: 10px; /* Abstand zwischen den Bildern */
    padding: 10px; /* Innenabstand */
}

.background-box img {
    width: 150px; /* Feste Breite */
    height: 150px; /* Feste HÃ¶he */
    object-fit: cover; /* Bild proportional beschneiden */
    border: 1px solid #ccc; /* Bildrahmen */
    border-radius: 5px; /* Abgerundete Ecken */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Weicher Ãœbergang */
}

.background-box img:hover {
    transform: scale(1.1); /* Bild vergrÃ¶ÃŸern */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3); /* Schatten hinzufÃ¼gen */
    z-index: 2; /* Bild nach vorne bringen */
}

.player-container {
    background: linear-gradient(to bottom, #000428, #004e92); /* Initial blue gradient */
    border-radius: 10px;
    padding: 10px; /* Etwas weniger Padding, um die HÃ¶he einzuhalten */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    text-align: center;
    height: 80px; /* Feste HÃ¶he */
    width: 800px; /* Feste Breite */
    display: flex;
    justify-content: space-between; /* Um die Elemente zu trennen */
    align-items: center; /* Vertikal zentrieren */
    position: relative;          /* <- wichtig */
    overflow: hidden;            /* <- verhindert Herausschauen */
}

.player-container:has(iframe) {
    background: none;
}
.player-header {
    margin-bottom: 0; /* Kein extra Abstand oben */
    color: yellow;
}

.player-controls {
    display: flex; /* Flexbox verwenden */
    justify-content: center; /* Horizontal zentrieren */
    align-items: center; /* Vertikal zentrieren (falls nÃ¶tig) */
    width: 100%; /* Volle Breite des Containers */
}

.control-button {
    background-color: #fff0;
    border-radius: 50%;
    padding: 12px; /* Etwas kleiner, um in den Container zu passen */
    cursor: pointer;
    font-size: 2rem;
    color: #004e92;
    transition: background-color 0.3s ease;
}

.control-button:hover {
    background-color: #004e92;
    color: #fff;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 150px; /* Die Breite bleibt gleich */
    height: 8px; /* Etwas kleiner fÃ¼r die angepasste HÃ¶he */
    background: #004e92;
    border-radius: 5px;
    outline: none;
    transition: background-color 0.3s ease;
}

.volume-slider:hover {
    background: #0066cc;
}

.switch-bg-button {
    background-color: #004e92;
    color: #fff;
    border: none;
    border-radius: 5px;
    
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.switch-bg-button:hover {
    background-color: #0066cc;
}

#loginButton {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}
#loginBox{display: none;}
.displayBox {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 20px;
    z-index: 1000;
    max-width: 350px;
    overflow-y: auto;
}

.displayBox h2 {
    margin: 0 0 15px;
    color: #333;
}

.displayBox label {
    display: block;
    text-align: left;
    color: #555;
}

.displayBox input {
    width: 95%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.displayBox input[type="checkbox"] {
    width: 10px;
}

.displayBox button {
    width: 46%;
    padding: 10px 15px;
    background: #004e92;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
}

.displayBox button:hover {
    background: #003a73;
}

.toggle-button {
    background: #f4f4f4;
    color: #333;
    border: 1px solid #ccc;
}

.toggle-button:hover {
    background: #0074cc;
    color: white;
}
#toggle-user-list{
    display: none;
}

 .top-right-box {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 999;
    padding: 5px;
    display: none;
  }

  .top-right-box img {
    width: 60px;
    height: auto;
    display: block;
  }
  
/* Medienabfragen */
@media (max-width: 768px) {
    .chat-container {
        width: 100%;
       
    }

    .chat-container .img-btn , .top-right-box{
        display: none;
    }

    #shoutbox {
        width: 100%;
        height: 400px;  
        background-image: url("handy.jpg");
        
    }
    #chatbox{
        background-color: rgba(0, 0, 0, 0.5);
    }
    #userbox {
        display: none;
        position: absolute;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        padding: 10px;
        overflow-y: auto;
        border-radius: 5px;
        font-size: 14px;
        color: #fff;
        max-height: 300px;
        opacity: 0;
        z-index: 1000;
    }

    #userbox.collapsed {
        display: block;
        opacity: 1;
     
    }

    #toggle-user-list {
        display: block;
    }

    #toolbar {
        justify-content: center;
    }

    .toolbar-button {
        padding: 5px 8px;
        font-size: 14px;
    }

    .player-container {
        width: 100%;
        flex-direction: wrap;
        padding: 10px;
    }

    .player-controls {
        flex-wrap: wrap;
    }

    .control-button {
        font-size: 1.5rem;
        padding: 8px;
    }

    .volume-slider {
        width: 100px;
    }

    #stream-buttons {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        float: none;
    }
}

@media (max-width: 480px) {
    .player-container {
        padding: 5px;
        height: 100px;
    }

    .player-controls {
        flex-direction: wrap;
        gap: 5px;
    }

    .toolbar-button {
        padding: 5px;
        font-size: 12px;
    }

    .control-button {
        font-size: 1rem;
        padding: 5px;
    }

    .volume-slider {
        width: 80px;
    }

    .background-box img {
        width: 100px;
        height: 100px;
    }
}
