

html, body, main{
    margin: 0; /* Entfernt Standard-Margin */
    padding: 0; /* Entfernt Standard-Padding */
    overflow:hidden;
  }

  #mainContainer{
    height:100%;
    /* height: 80vh; Setzt die Höhe des Hauptcontainers auf 100% des Viewport */
    padding: 20px;
    padding-bottom: 10px;
  }

/* hide scrollbar  */
  #scrollContainer::-webkit-scrollbar {
    display: none; /* Für Webkit-Browser wie Chrome und Safari */
  }
  
  /* Für Internet Explorer, Edge */
  #scrollContainer {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
  }

/* Right click context menue */
  #contextMenu {
    display: none; 
    position: absolute; 
    list-style-type: none; 
    padding: 10px; 
    background: white; 
    border: 1px solid #ccc; /* Mildere Farbe für den Rand */
    border-radius: 8px; /* Abgerundete Ecken */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Leichter Schatten für einen modernen Look */
    font-family: Arial, sans-serif; /* Moderne Schriftart */
    font-size: 14px; /* Angemessene Schriftgröße */
}

#contextMenu li {
    cursor: pointer;
    padding: 8px 12px; /* Etwas größere Padding-Werte für eine bessere Touch-Freundlichkeit */
    color: #333; /* Dunkelgrauer Text für bessere Lesbarkeit */
    border-radius: 8px;
}

#contextMenu li:hover {
    background-color: #e0e0e0; /* Etwas dunklerer Hintergrund beim Hover */
    transition: background-color 0.3s; /* Sanfter Übergang für den Hover-Effekt */
}






/* Adjust Font size: */


@media screen and (max-width: 768px) {
    h1{
        font-size:20px!important;
    }
}

@media (min-width: 500px) {
    #canvasContainer {
      max-width: 500px; /* Maximale Breite auf größeren Bildschirmen */
      margin: 0 auto; /* Zentriert den Container */
    }
  }
  


/* Add button */
.pos-add-btn{
    
    opacity: 0.1;
    transition: 0.1s;
}

.pos-add-btn:hover{
    
    opacity: 1
}

/* Hightlight element */
.highlight{
    background-color: var(--bs-primary)!important;
}


    .disableOverlay {
        position: relative;
        opacity: 0.8;
        filter: grayscale(10%);
        
      }

    .disableOverlay::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.1); /* Schwarz mit 50% Opazität */
        pointer-events: none; /* Stellt sicher, dass Klicks "durch" das Overlay gehen */
      }

.roundedges{
  border-radius: 0.5rem!important;
}


/* Switch side button */







.buttonSwS-cover {
  height: 100px;
  margin: 20px;
  background-color: #fff;
  box-shadow: 0 10px 20px -8px #c5d6d6;
  border-radius: 4px;
}

.buttonSwS-cover:before {
  counter-increment: button-counter;
  content: counter(button-counter);
  position: absolute;
  right: 0;
  bottom: 0;
  color: #d7e3e3;
  font-size: 12px;
  line-height: 1;
  padding: 5px;
}

.buttonSwS-cover,
.knobs,
.layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.buttonSwS {
  position: relative;
  top: 50%;
  width: 74px;
  height: 36px;
  margin: 0 auto 0 auto;
  overflow: hidden;
}

.buttonSwS.r,
.buttonSwS.r .layer {
  border-radius: 100px;
}

.buttonSwS.b2 {
  border-radius: 2px;
}

.checkbox {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.knobs {
  z-index: 2;
}

.layer {
  width: 100%;
  background-color: #ebf7fc;
  transition: 0.3s ease all;
  z-index: 1;
}


#switchSideButton .knobs:before {
  content: "L";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  padding: 9px 4px;
  background-color: #03a9f4;
  border-radius: 50%;
  transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
}

#switchSideButton .checkbox:checked + .knobs:before {
  content: "R";
  left: 42px;
  background-color: #f44336;
}

#switchSideButton .checkbox:checked ~ .layer {
  background-color: #fcebeb;
}

#switchSideButton .knobs,
#switchSideButton .knobs:before,
#switchSideButton .layer {
  transition: 0.3s ease all;
}

