* {
    box-sizing: border-box;
}

:root {
    --font: "Roboto", sans-serif;
    --fontsize: 2vh;
    --main-color:  #000000;
    --secondary-color: white;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--main-color);
}

#canvascontainer {
    width: 99%;
    height: 99%;
    display: flex;
    position: absolute;
    bottom: 0px;
}

#meinCanvas {
    width: 100%;
    height: 100%;
}


a {
    color: white;
    text-decoration: none;
}
#text-to-animate {
    position: absolute;
    top: 10%;
    left: 10%;
    font-size: 2em;
    width: 30%;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border: 2px solid white;
    padding: 10px;
    background-color: #000000;
}

#header {
    width: 100%;
    background-color: #000000;
    color: white;
    text-align: center;
    padding: 10px;
}

#progress-container {
    position: relative;
    width: 100%;
    background-color: #623BA1;
    height: 20px; /* Stelle sicher, dass der Container eine Höhe hat */
}

#progress-bar {
    position: absolute;
    right: 0;
    width: 0%; /* Beginnt ohne sichtbare Breite */
    height: 20px;
    background-color: #000000;
    transition: width 0.5s ease-in-out; /* Optional: Fügt eine glatte Übergangsanimation hinzu */
}

.contentbox {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 5%;
    top: 25%;
    width: 23%;
}


.content {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: var(--main-color);
    width: 80%;
    font-size: 1.5em;
    padding: 20px;
    margin: 10px;
    border: 2px solid white;
    border-radius: 5px;
}

.content2 {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    width: 60%;
    background-color: var(--main-color);
    font-size: 1.5em;
    padding: 20px;
    margin: 10px;
    border: 2px solid white;
    border-radius: 5px;
}


#contentmid{
    align-self: flex-end;
}

#clockbox {
    position: absolute;
    top: 10%;
    right: 10%;
    font-size: 4em; /* Größe der Hauptuhr */
    font-family: 'Orbitron', sans-serif;
    display: flex;
    align-items: baseline; /* Damit die Sekunden an der Basislinie ausgerichtet sind */
}

#clock {
    font-size: 1em; /* Größe der Hauptuhr (Stunden und Minuten) */
}

#clockmini {
    font-size: 0.4em; /* Kleinere Schriftgröße für die Sekunden */
    margin-left: 0.2em; /* Abstand zwischen Minuten und Sekunden */
}

#picbox {
    border: 2px solid white;
    position: absolute;
    top: 30%;
    right: 30%;
    width: 20%;
    background-color: black;
    color: white;
    text-align: center;
    font: var(--font)  ;}

#pic {
    color: white;
    width: 100%;
    margin: 0px;
    transition: filter 20s ease; /* Definiere eine Übergangseigenschaft für den Filtereffekt */
}

#pic:hover {
    filter: blur(20px); /* Verwische das Bild beim Hover */
}

#socials {
    width: 100%;
    height: 40px;
    display: flex;
    margin: 0; /* Entfernt den Standard-Abstand */
}

#socials i {
    flex-grow: 1;
    display: flex;
    justify-content: center; /* Zentriert das Icon horizontal */
    align-items: center; /* Zentriert das Icon vertikal */
    font-size: 24px; /* Hier kannst du die Größe anpassen */
    color: white;
}

.iconsz {
    flex: 1;
    display: flex;
    color: black;
    font-size: 24px; /* Hier kannst du die Größe anpassen */
    border-top: 2px solid white;
}

#iconl {
    border-left: 2px solid white;
}

#calibox {
    position: absolute;
    color: white;
    font-weight: bold;
    font-size: 3em;
    z-index: 10;
    padding: 15px;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #000000;
    color: white;
    text-align: center;
    padding: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#footercontent {
    padding: 0%;
    margin: 0%;
    color: black;
    transition: color 0.5s ease-in-out; /* Optional: Fügt eine glatte Übergangsanimation hinzu */
}

#signatur {
    width: 4%;
    height: 4%;
}

#start, #stop, #plussterne, #minussterne, #randomstern, #plusSchnuppen, #minusSchnuppen, #schnuppendeak, #bgColorPicker, #blackHoleButton, #explodeButton {
    background-color: black;
    border-radius: 10%;
    color: white;
    border: 1px solid white;
    width: 100%;
}

#sternsteuerbox, #sternschnuppensteuerbox, #startstop  {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}


#speedSlider {
    -webkit-appearance: none; /* Standard-Styling von Browser entfernen */
    appearance: none; /* Standard property for compatibility */
    height: 8px;
    background: white;
    border-radius: 5px;
    outline: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}
/* Wenn Maus darüber fährt */
#speedSlider:hover {
    opacity: 1;
}
/* Der "Knopf" (Thumb) */
#speedSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0px 0px 5px rgba(255, 255, 255, 0.5);
}
#speedSlider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ffcc00;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0px 0px 5px rgba(255, 255, 255, 0.5);
}

/* Steuerbox (unsichtbar, erscheint aus dem Button) */
#controlBox {
    position: fixed;
    bottom: 60px;
    right: 20px;
    width: 0px;
    height: 0px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.9);
    padding: 0px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
    transition: width 0.4s ease-out, height 0.4s ease-out, padding 0.3s ease-out;
}

/* Steuerungselemente */
#controll {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

/* Button zum Öffnen der Steuerung */
#toggleButton {
    position: fixed;
    bottom: 3%;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

/* Hover-Effekt für den Button */
#toggleButton:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Wenn die Box geöffnet ist */
#controlBox.open {
    width: 11%;
    height: 60%;
    padding: 10px;
}

#controlBox.open #controll {
    opacity: 1;
}

.sliderlabel, #bglabel {
    color : white;
    font-size: var(--fontsize);
}

/* Einheitliches Slider-Design für alle Regler */
input[type="range"] {
    -webkit-appearance: none;
    margin: 0px;
    appearance: none;
    width: 100%;
    height: 8px;
    background: white;
    border-radius: 5px;
    outline: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

/* Hover-Effekt */
input[type="range"]:hover {
    opacity: 1;
}

/* Einheitliches Design für den Schieberegler-Thumb (Webkit-Browser: Chrome, Safari, Edge) */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0px 0px 5px rgba(255, 255, 255, 0.5);
}

/* Einheitliches Design für den Schieberegler-Thumb (Firefox) */
input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0px 0px 5px rgba(255, 255, 255, 0.5);
}

/* Debug-Container */
#debugContainer {
    position: fixed;
    bottom: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

/* Debug-Button */
#debuginfobttn {
    background: black;
    color: white;
    border: none;
    padding: 0px;
    margin: 0px;
    text-align: left;
    font-size: var(--fontsize);
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
}

#debuginfobttn:hover {
    background: rgba(255, 255, 255, 0.4);
}

#debuginfobttn:active {
    transform: scale(0.95);
}

/* Debug-Info (Standardmäßig ausgeblendet) */
#debugInfo {
    display: none;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    font-size: var(--fontsize);
    border-radius: 5px;
    box-shadow: 0px 0px 5px rgba(255, 255, 255, 0.3);
}

