* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: SpaceGrotesk;
    src: url("/fonts/SpaceGrotesk-Regular.ttf") format('truetype'),
}

@font-face {
    font-family: Bluu;
    src: url("/fonts/BluuNext-Bold.otf") format('opentype'),
}

body {
    display: flex;
    position: relative;
    margin: 0;
    font-family: SpaceGrotesk;
    background-color: #f4f4f4;
    height: 100vh;
    font-size: 12px;
}

a {
    color: #0d0d0d; /* Textfarbe */
    text-decoration: none; /* Unterstreichung entfernen */
}

select {
    -webkit-appearance: none; /* Entfernt Standard-Pfeil in Webkit-Browsern */
    -moz-appearance: none; /* Entfernt Standard-Pfeil in Mozilla-Browsern */
    appearance: none; /* Entfernt Standard-Pfeil in modernen Browsern */
    
    background-color: #ffffff; /* Weißer Hintergrund */
    color: #0d0d0d; /* Textfarbe */
    border: none; /* Keine Rahmen */
    padding: 8px 12px; /* Innenabstand */
    padding-right: 25px; /* Platz für den Pfeil und 5px Abstand */
    font-family: SpaceGrotesk, sans-serif; /* Schriftart */
    font-size: 14px; /* Schriftgröße */
    outline: none; /* Entfernt Fokusrahmen */
    cursor: pointer; /* Mauszeiger als Zeigefinger */

    /* Neuer benutzerdefinierter Pfeil */
    background-image: linear-gradient(45deg, transparent 50%, #0d0d0d 50%), 
                      linear-gradient(135deg, #0d0d0d 50%, transparent 50%);
    background-position: right 10px center, right 5px center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}


/* Versteckt die native Checkbox */
input[type="checkbox"] {
    appearance: none; /* Entfernt den Standardstil */
    -webkit-appearance: none; /* Für Safari */
    -moz-appearance: none; /* Für Firefox */
    background-color: #fff; /* Hintergrundfarbe */
    cursor: pointer;
    width: 16px;
    height: 16px;
    border: #0D0D0D 1px solid;
    border-radius: 4px;
    position: relative;
  }
  
  /* Hakenstil, wenn die Checkbox aktiv ist */
  input[type="checkbox"]:checked {
    background-color: #0d0d0d; /* Hintergrund bleibt gleich */
  }
  
  input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left:4px;
    top: 2px;
    width: 4px;
    height: 6px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }


h2{
    font-family: SpaceGrotesk;
    font-size: 26px;
    text-align: left;
    font-weight: 499;
}

p {
    font-size: 14px;
    text-align: left;
    margin-bottom: 10px;
    line-height: 20px;
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width:100%;
    height:100vh;
    background-color: #f4f4f4;

}


hr {
    margin-top: 10px;
    margin-bottom: 10px;
}


svg {
    width: auto;
    height: 40px;
    cursor: pointer;
    margin-top: 23px;
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(244, 244, 244, 0.8); /* Macht den Hintergrund leicht transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.container {
    width: 320px;
    height: auto;
    display: none;
    color: #fff;
    text-align: center;
    padding: 20px;
    background-color: #0d0d0d;
    border-radius:30px;
}

.container.active {
    display: block;
    padding: 40px;
}

.navigation {
    margin-top: 20px;
}

.navigation button {
    font-size: 14px;
    padding: 10px 15px;
    margin: 2px;
    border: 1.5px solid;
    cursor: pointer;
    background-color: #0d0d0d;
    color: #fff;
    border-radius: 20px;
}

.toggle button {
    margin-top: 20px;
    padding: 5px 10px;
    background-color: #0d0d0d;
    color: #fff;
    border: none;
    font-size: 8px;
    font-family: SpaceGrotesk;
}

.navigation-container {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.list-container {
    display: flex; 
    flex-direction: column;
    gap: 15px;
}

.list-item {
    display: flex;
    gap: 20px;
    text-align: left;
    font-size: 14px;
    line-height: 20px;
}



li {
    margin-bottom: 20px;
    margin-left: 18px;
    text-align: left;
    font-size: 14px;
    line-height: 20px;
}

.list-item svg {
    width: 40px;
    height: auto;
    margin-top: 0px;
}

.nav {
    width: 100%;
    
  }

.top {
    width: 500px;
    height: 40px;
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    
  }

.bottom {
    width: 360px;
    height: 40px;
    position: fixed;
    bottom: 40px;
    left: 51%;
    transform: translateX(-50%);
    gap: 10px; /* Erhöhe den Wert nach Belieben */
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.bottom .button,.bottom .button1, .top .button {
    font-family: SpaceGrotesk;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 50px;

    font-size: 16px;
    background-color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: width 0.3s, background-color 0.3s;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.25); /* Neuer Schatteneffekt */
}

/* Stil für die aktive Schaltfläche */
.bottom .button.active {
    width: 120px; /* Erweiterte Breite im Aktivmodus */
    background-color: #0d0d0d;
    color: #fff;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.25); /* Gleicher Schatten im Aktivmodus */
}

/* Stil für die aktive Schaltfläche */
.bottom .button1.active {
    background-color: #0d0d0d;
    color: #fff;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.25); /* Gleicher Schatten im Aktivmodus */
}

.button .text {
    display: none;
    margin-left: 5px;
  }

.button1 svg {
    width: 17px;
    height: auto;
    align-items: center; /* Vertikale Zentrierung */
    margin: 2px;
}

.button1 svg path {
    stroke: #0D0D0D; /* Standardfarbe (Schwarz) */
}

.button1.active svg path {
    stroke: #FFFFFF; /* Farbe wird Weiß, wenn der Button aktiv ist */
}

span svg {
    position: absolute;
    width: 20px;
    height: auto;
    align-items: center; /* Vertikale Zentrierung */
    margin-top: 4px;
}

.settingssvg {
    position: absolute;
    width: 20px;
    margin-top: 4px;
    margin-left: -6px;
}

.button.active .distortionsvg {
    margin-left: 2px;
}

.distortionsvg {
    position: absolute;
    width: 17px;
    margin-top: 2px;
    margin-left: -8px;
}

.pencilsvg {
    position: absolute;
    width: 17px;
    margin-top: 2px;
    margin-left: -8px;
}

.pencilsvg1 {
    position: absolute;
    width: 17px;
    margin-top: -8px;
    margin-left: -8px;
}

.effectsvg {
    position: absolute;
    width: 17px;
    height: auto;
    margin-top: 2px;
    margin-left: -4px;
}

svg path {
    stroke-width: 1px;
}

#alignLeftButton, #alignCenterButton, #alignRightButton{
    border: none;
    background-color: #FFFFFF;
}

#alignLeftButton svg, #alignCenterButton svg, #alignRightButton svg {
    height: 12px;
    width: auto;
    margin-top: 3px;
}

.button .label {
    opacity: 0; /* Unsichtbar */
    visibility: hidden; /* Für besseres Layout-Verhalten, wenn nicht sichtbar */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Übergangseffekt */
    font-size: 0px;
}

.button.active .label {
    opacity: 1; /* Sichtbar */
    visibility: visible; /* Sichtbar machen */
    font-size: 14px;
    margin-left: 22px;
}

.bottom .button.active .text {
    display: inline;
  }

.textarea {
    width: 120px;
    height: 40px;
    color: #0d0d0d;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.25);
}

.bottom .button {
    margin-right:4.8px;
}

  #textInput {
    font-family: SpaceGrotesk;
    width: 100%;
    height: 100%;
    font-size: 15px;
    background-color: #fff;
    border: none;
    border-radius: 20px;
    resize: none;
    overflow-y: auto;
    padding: 10px 22px;
    box-sizing: border-box;
    caret-color: black;
    color: #0d0d0d;
  }

.overlay-container {
    display: flex;
    flex-wrap: wrap;
    width: 360px;
    height: auto;
    background-color: none;
    border-radius: 20px;
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-53%);
    display: none; /* Wird nur angezeigt, wenn ein Button aktiv ist */
    justify-content: center;
    text-align: center;
}

/* Stil für die spezifischen Inhaltsblöcke */
.content-block {
    display: none; /* Standardmäßig ausgeblendet */
}

.button.active ~ #overlay-container {
    display: flex; /* Zeige den Overlay-Container, wenn ein Button aktiv ist */
}

#exportButton, #printButton, #toggleGridButton, #toggleDistortionButton, #toggleVisibilityButton, #toggleShapesButton {
    font-family: SpaceGrotesk;
    font-size: 12px;
    line-height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0px 20px;
    border: none;
    background-color: #fff; /* Standard-Hintergrundfarbe */
    color: #0d0d0d; /* Standard-Textfarbe */
    border-radius: 20px;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.25);
    height: 40px;
    width: fit-content; /* Passt die Breite an den Inhalt an */
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease; /* Animierter Übergang */
  }

  #toggleGridButton.active, 
#toggleDistortionButton.active, 
#toggleVisibilityButton.active, 
#toggleShapesButton.active {
    background-color: #0d0d0d; /* Hintergrund wird schwarz */
    color: #fff; /* Textfarbe wird weiß */
}




.backgroundcontainer, #pinselWirbeln, #pinselStauchen, #pinselAufblasen {
    font-family: SpaceGrotesk;
    font-size: 12px;
    line-height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0px 20px;
    border: none;
    background-color: #fff; /* Standard-Hintergrundfarbe */
    color: #0d0d0d; /* Standard-Textfarbe */
    border-radius: 20px;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.25);
    height: 40px;
    width: fit-content; /* Passt die Breite an den Inhalt an */
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease; /* Animierter Übergang */
}

/* Aktivmodus */
#pinselAufblasen.active, #pinselStauchen.active, #pinselWirbeln.active {
    background-color: #0d0d0d; /* Hintergrund wird schwarz */
    color: #fff; /* Textfarbe wird weiß */
}

#pinselAufblasen, #pinselWirbeln, #toggleGridButton, #toggleShapesButton, #toggleVisibilityButton {
    margin-right: 10px;
}

.backgroundcontainer1 {
    font-family: SpaceGrotesk;
    font-size: 12px;
    display: flex; /* Flexbox aktivieren */
    align-items: center; /* Vertikale Zentrierung */
    justify-content: space-between; /* Abstand zwischen den Elementen */
    gap: 10px; /* Abstand zwischen Label, Slider und Value */
    padding: 0px 20px;
    border: none;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.25);
    height:40px;
    width: fit-content; /* Passt die Breite an den Inhalt an */
    margin-right: 10px;
}
.sliderinput {
    display: flex; /* Flexbox aktivieren */
    height: 40px;
    align-items: center; /* Vertikale Zentrierung */
    justify-content: space-between; /* Abstand zwischen den Elementen */
    gap: 10px; /* Abstand zwischen Label, Slider und Value */
    padding: 0px 20px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.25);
    width: fit-content; /* Passt die Breite an den Inhalt an */
    margin-right: 10px;
   
}

.sliderinput label {
    font-family: SpaceGrotesk;
    font-size: 12px;
    margin: 0;
    white-space: nowrap; /* Verhindert Zeilenumbrüche bei langen Labels */
}


.togglenav{
    font-family: SpaceGrotesk;
    font-size: 12px;
    padding: 0px 20px;
    width:auto;
    height:40px;
    background-color:#fff;
    border-radius: 20px;
    border: none;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.25);
}

.togglenav svg {
    margin-top: 1px;
    width:18px;   
}

#exportButton svg {
    margin-top: 1px;
    width:18px;   
}

#printButton svg {
    margin-top: 1px;
    width:25px;   
}

#number1 svg {
    margin-top: 4px;
    margin-left: -5px;
    width:20px;   
}

#number2 svg {
    margin-top: 1px;
    margin-left: -5px;
    width:18px;   
}

.row5 {
    display: flex;
    width: 340px;
    justify-content: center; /* Horizontale Zentrierung */
    align-items: center; /* Vertikale Zentrierung */
    margin: 10px;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 1px;
    background: #0d0d0d;
    outline: none;
    cursor: pointer;
  }
  
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border: 1px solid #0d0d0d;
    border-radius: 50%;
    cursor: pointer;
  }
  
  input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #ffffff;
    border: 1px solid #0d0d0d;
    border-radius: 50%;
    cursor: pointer;
  }
  
  input[type="range"]::-ms-thumb {
    width: 14px;
    height: 14px;
    background: #ffffff;
    border: 1px solid #0d0d0d;
    border-radius: 50%;
    cursor: pointer;
  }
  

  @supports (-webkit-appearance: none) {
    .settingssvg {
        position: absolute;
        width: 20px;
        margin-top: 4px;
        margin-left: -5px;
    }
  }

  @supports (-moz-appearance: none) {
    .settingssvg {
        position: absolute;
        width: 20px;
        margin-top: 4px;
        margin-left: -9px;
    }
  }

  