/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #2563eb;
    overflow: hidden;
}


/* Header Styles */
header {
    background-color: #2563eb;
    color: #fff;
    text-align: center;
    padding: 15px; /* Increased padding for better visibility */
    font-size: 1.6vw;
    position: relative;
}

/* Content Styles */
.content {
    display: flex;
    justify-content: space-around; /* Adjusted alignment for better spacing */
    align-items: stretch;
}

.box {
    flex: 1;
    margin: 25px;
    padding: 20px;
    border: 1px solid #a5a3a3;
    border-radius: 18px;
    font-size: 1.6vw; /* Slightly increased font size for better readability */
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    background-color: #f1f1f1;
}


@media screen and (min-width: 601px) {
    header,
    footer,
    .box {
        font-size: 1.4vw; /* Adjusted font size for larger screens */
    }

body, h1, h2, p, ul, li {
    margin: 0;
    padding: 0;
}

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

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    padding: 20px;
    background-color: #2563eb;
    color: #fff;
    border-radius: 8px;
}

header h1 {
    font-size: 1.5em;
}

header span {
    font-weight: bold;
}

.content {
    margin-top: 20px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: min-height;
}


.header-content i {
    font-size: 1.4vw;
    margin-bottom: 5px;
    color: black;
}

.box {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    padding: 20px;
    border-radius: 8px;
}

.box h3 {
    color: #2563eb;
    font-size: 1.6em;
    margin-bottom: 20px; 
    margin-top: -5px;
}

.box p {
    color: #333;
}

/* Buttons */
button, input[type="submit"] {
    background-color: #2563eb;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: medium;
}


/* Footer Styles */
footer {
    background-color: #2563eb;
    color: #fff;
    text-align: center;
    padding: 15px; /* Increased padding for better visibility */
    font-size: 1.0vw;
}

.progress-container {
    margin-top: 20px;
}

.progress-label {
    font-size: 0.8em;
    margin-bottom: 10px;
}

.progress-bar-container {
    background-color: #ddd;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background-color: #3CB043;
    height: 100%;
}

}

a.button1{
    display:inline-block;
    padding:0.35em 1.2em;
    border:0.1em solid #FFFFFF;
    margin:0 0.3em 0.3em 0;
    border-radius:0.12em;
    box-sizing: border-box;
    text-decoration:none;
    font-family:'Roboto',sans-serif;
    font-weight:100;
    color:#FFFFFF;
    text-align:center;
    transition: all 0.2s;
} 

.lan,
.wlan,
.vpn {
    font-size: 0.8vw;
    align-items: center;
    text-align: center;
    flex-direction: column;
    align-items: stretch;
    padding-top: 15px;
}


.wlan-info {
    font-size: 0.8vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: -5px;
    padding-top: 5px;
}


.lan-header {
    color: #3CB043;
}

.lan-header.open {
    color: #b40101;
}

.wlan-header {
    color: #3CB043;
}

.wlan-header.open {
    color: #b40101;
}

.vpn-header {
    color: #3CB043;
}

.vpn-header.open {
    color: #b40101;
}

form {
    margin-bottom: 20px;
}

label {
    font-size: 0.9vw;
    margin-bottom: 5px;
    display: block;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

button {
    margin: 8px;
    padding: 10px 10px;
    font-size: 0.5vw;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    color: #fff;
    background-color: #2563eb;
    font-weight: 350;
    align-items: center;
}


button:hover {
    background-color: #d9534f;
    color: #fff;
}

.group-header {
    cursor: pointer;
    font-size: 1vw;
    margin: 10px 10px 10px 10px;
}

.group-header i {
    margin-right: 15px;
    font-size: 1.2vw;
}

.group-header.monitor-group {
    cursor: pointer;
}

.button-group.Monitor_Steuerung {
    position: relative;
}

.monitor-buttons {
    display: block;
    justify-content: center;
    margin: 0px 0;
}

.monitor-buttons button {
    width: 40px;
    height: 40px;
    background-color: #2563eb;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
}

.monitor-buttons button:nth-child(1) {
    top: 45px; /* Button Links */
    right: 26%;
}

.monitor-buttons button:nth-child(2) {
    top: 45px; /* Button Rechts */
    right: -2%;
}

.monitor-buttons button:nth-child(3) {
    top: 10px; /* Button Oben */
    right: 12%;
}

.monitor-buttons button:nth-child(4) {
    top: 80px; /* Button Unten */
    right: 12%;
    background-color: #fff;
}

.monitor-buttons button:nth-child(5) {
    margin-top: 140px; /* Adjusted margin-top to position below button 4 */
    left: 81%;
    transform: translateX(-50%);
    font-size: 0.5vw;
    width: 120px;
}


.monitor-buttons button:hover {
    background-color: #666666;
}


.tv-command {
    margin: 20px 0;
    margin-left: auto;
    margin-right: auto;
}

.tv-command form {
    display: flex;
    flex-direction: column;
    align-items: left;
}

.tv-command label {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: bold;
}

.tv-command select,
.tv-command button {
    margin-top: 5px;
    font-size: 0.8vw;
    background-color: #2563eb;
    color: #fff;
}

.tv-command button {
    padding: 10px 0; /* Adjusted padding to center vertically */
    width: 45%; /* Set the width to 45% */
    margin: 10px auto; /* Center the button horizontally */
    font-size: 0.8vw;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    color: #fff;
    background-color: #2563eb; /* Match the rest of the design */
    font-weight: 300;
    display: block; /* Ensure it's a block-level element to set width and margin */
}


.tv-command button:hover {
    background-color: #d9534f;
    color: #fff;
}


.messages {
    margin-top: 20px;
    padding: 10px;
    background-color: #f1f1f1; /* Hintergrundfarbe wie in .box */
    color: #2e2d2d;
    border-radius: 5px;
    word-wrap: break-word;
    font-size: 16px;
}

  .api-box {
    border: 1px solid #ccc; /* Fügt einen Rahmen um den API-Bereich hinzu */
    margin-top: 20px; /* Fügt oberen Abstand zum vorherigen Element hinzu */
    padding: 10px; /* Fügt Innenabstand hinzu */
    cursor: pointer; /* Zeigt an, dass es sich um einen anklickbaren Bereich handelt */
    font-size: 0.6vw;
  }

  .api-content {
    display: none; /* API-Inhalt standardmäßig ausblenden */
  }

  .api-box.active .api-content {
    display: block; /* API-Inhalt anzeigen, wenn .active-Klasse vorhanden ist */
  }

/* Media Query für kleinere Bildschirme */
@media screen and (max-width: 600px) {
    .content {
        flex-direction: column;
        align-items: stretch;
        font-size: 4vw;
        word-wrap: break-word;
    }

    header {
        font-size: 5vw;
    }

    body {
        overflow: visible;
    }

    .wrapper {
        max-width: 100%;
        margin: 0 auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
        
    .box {
        flex: 0 0 100%;
        flex-direction: column;
        font-size: 4vw;
    }

    .clock-container {
        position: static;
        text-align: center;
        margin-top: 20px;
        font-size: 5vw;
    }

    .lan,
    .wlan,
    .vpn {
        font-size: 4vw;
        align-items: center;
        text-align: center;
        flex-direction: column;
        align-items: stretch;
    }

    .wlan-info {
        font-size: 3vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: -5px;
    }

    footer {
        background-color: #333;
        color: #fff;
        text-align: center;
        padding: 10px;
        font-size: 3.4vw;
        background-color: #2563eb;
    }

    .tv {
        font-size: 3vw;
        flex-direction: column;
        align-items: center;
        text-align: center;
        align-items: stretch;
    }

    a.button1:hover {
        color: #000000;
        background-color: #FFFFFF;
    }

    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: min-height;
    }


    .header-content i {
        font-size: 5vw;
        margin-bottom: 5px;
        color: black;
    }

    .header-content span {
        font-size: 7vw;
        transition: color 0.3s;
        justify-content: center;
        border-radius: 10px;
        margin-bottom: -5px;
    }

    .box h3 {
        color: #2563eb;
        font-size: 1.6em;
        margin-bottom: 20px; 
        margin-top: -5px;
    }
    
    .lan-header {
        color: #3CB043;
    }

    .lan-header.open {
        color: #b40101;
    }

    .wlan-header {
        color: #3CB043;
    }

    .wlan-header.open {
        color: #b40101;
    }

    .vpn-header {
        color: #3CB043;
    }

    .vpn-header.open {
        color: #b40101;
    }

    form {
        margin-bottom: 20px;
    }

    label {
        font-size: 3.8vw;
        margin-bottom: 5px;
        display: block;
    }

    .button-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    button {
        margin: 8px;
        padding: 10px 10px;
        font-size: 3.1vw;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        transition: background-color 0.3s;
        color: #fff;
        background-color: #2563eb;
        font-weight: 350;
        align-items: center;
    }

    
    button:hover {
        background-color: #d9534f;
        color: #fff;
    }

    .button-group {
        display: flex;
        flex-wrap: wrap; /* Erlaubt das Umfließen von Elementen in die nächste Zeile */
        justify-content: space-evenly; /* Zentriert die Buttons und verteilt den Raum gleichmäßig dazwischen */
    }
    
    .button-group button {
        flex: 1; /* Lässt die Buttons gleichmäßig den verfügbaren Platz in der Zeile aufteilen */
        margin: 5px; /* Gibt etwas Abstand zwischen den Buttons */
    }

    .group-header {
        cursor: pointer;
        font-size: 5vw;
        margin: 10px 10px 10px 10px;
    }

    .group-header i {
        margin-right: 15px;
        font-size: 5.6vw;
    }

    .group-header.monitor-group {
        cursor: pointer;
    }

    .button-group.Monitor_Steuerung {
        position: relative;
    }
    
    .monitor-buttons {
        display: block;
        justify-content: center;
        margin: 0px 0;
    }
    
    .monitor-buttons button {
        width: 40px;
        height: 40px;
        background-color: #2563eb;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        position: absolute;
    }
    
    .monitor-buttons button:nth-child(1) {
        top: 45px; /* Button Links */
        right: 26%;
    }
    
    .monitor-buttons button:nth-child(2) {
        top: 45px; /* Button Rechts */
        right: -2%;
    }
    
    .monitor-buttons button:nth-child(3) {
        top: 10px; /* Button Oben */
        right: 12%;
    }
    
    .monitor-buttons button:nth-child(4) {
        top: 80px; /* Button Unten */
        right: 12%;
	background-color: #f1f1f1;
    }

    .monitor-buttons button:nth-child(5) {
        margin-top: 130px; /* Adjusted margin-top to position below button 4 */
        left: 78%;
        transform: translateX(-50%);
        font-size: 3.4vw;
        width: 120px;
    }
    
    
    .monitor-buttons button:hover {
        background-color: #666666;
    }
    
    .tv-command {
        margin: 20px 0;
        margin-left: auto;
        margin-right: auto;
    }
    
    .tv-command form {
        display: flex;
        flex-direction: column;
        align-items: left;
    }
    
    .tv-command label {
        font-size: 16px;
        margin-bottom: 5px;
        font-weight: bold;
    }
    
    .tv-command select,
    .tv-command button {
        margin-top: 5px;
        font-size: 4vw;
        background-color: #2563eb;
        color: #fff;
    }
    
    .tv-command button {
        padding: 10px 0; /* Adjusted padding to center vertically */
        width: 45%; /* Set the width to 45% */
        margin: 10px auto; /* Center the button horizontally */
        font-size: 5vw;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        transition: background-color 0.3s;
        color: #fff;
        background-color: #2563eb; /* Match the rest of the design */
        font-weight: 300;
        display: block; /* Ensure it's a block-level element to set width and margin */
    }
    
    
    .tv-command button:hover {
        background-color: #d9534f;
        color: #fff;
    }
    
    
    .messages {
        margin-top: 20px;
        padding: 10px;
        background-color: #f1f1f1; /* Hintergrundfarbe wie in .box */
        color: #2e2d2d;
        border-radius: 5px;
        word-wrap: break-word;
        font-size: 3.6vw;
    }


    .urls {
        margin: 20px 0;
    }
    
    .urls form {
        display: flex;
        flex-direction: column;
        align-items: left;
    }
    
    .urls label {
        font-size: 4vw;
        margin-bottom: 10px;
        font-weight: bold;
    }
    
    .urls textarea {
        margin-top: 5px;
        padding: -10px;
        font-size: 14px;
        border: 1px solid #a5a3a3;
        border-radius: 5px;
        width: 50%;
    }
    
    .urls input[type="submit"] {
        margin-top: 3px;
        padding: 10px 15px;
        font-size: 3vw;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        transition: background-color 0.3s;
        color: #fff;
        background-color: #2563eb;
        font-weight: 350;
        align-items: left;
    }
    
    .urls input[type="submit"]:hover {
        background-color: #d9534f;
        color: #fff;
    }
    
    .progress-container {
        margin-bottom: 15px;
    }
    
    .progress-label {
        font-weight: bold;
        margin-bottom: 10px;
        height: auto;
        text-align: center;
        color:  #fffcfc
    }
    
    .progress-bar-container {
        background-color: #bebcbc;
        height: auto;
        border-radius: 10px;
        overflow: hidden;
        margin-bottom: 30px; 
    }
    
    .progress-bar {
        background-color:  rgb(37, 235, 235);
        height: 15px;
    }   
    
    a.button1{
        display:inline-block;
        padding:0.35em 1.2em;
        border:0.1em solid #FFFFFF;
        margin:0 0.3em 0.3em 0;
        border-radius:0.12em;
        box-sizing: border-box;
        text-decoration:none;
        font-family:'Roboto',sans-serif;
        font-weight:100;
        color:#FFFFFF;
        text-align:center;
        transition: all 0.2s;
    }    

  .api-box {
    border: 1px solid #ccc; /* Fügt einen Rahmen um den API-Bereich hinzu */
    margin-top: 20px; /* Fügt oberen Abstand zum vorherigen Element hinzu */
    padding: 10px; /* Fügt Innenabstand hinzu */
    cursor: pointer; /* Zeigt an, dass es sich um einen anklickbaren Bereich handelt */
    font-size: 4vw;
  }

  .api-content {
    display: none; /* API-Inhalt standardmäßig ausblenden */
  }

  .api-box.active .api-content {
    display: block; /* API-Inhalt anzeigen, wenn .active-Klasse vorhanden ist */
  }
    
}
