#canvas-container {
  width: 70%;
  padding: 20px;
}

p {
  margin-bottom: 0;
  margin-top: 10px;
}

button {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  color: black;
}


input {
  color:black;
}

#toolbar {
  position: absolute;
  top: 12rem;
  right: 0;
  padding: 20px;
  width: 35vw;
  background-color: white;
}

#color-picker-outer {
  background-color: rgba(255, 255, 255, 0);
  display: none;
}

.hidden {
  display: none;
}

#input-outer.none {
  display: none;
}

#input-container {
  position: fixed;
  top: 20%;
  left: 10%;
  background-color: white;
  padding: 50px;
  text-align: center;
}


#colors-container, #input-outer, #buy {
  margin-top: 2rem;
}

#input-container.none, #input-container.optional {
  display: none;
}

#change-input, #inputKnit:not(.required) {
  display: none;
}

#add-input:not(.optional) {
  display: none;
}

.color-picker, .added-color-pickers {
	display: inline-block;
	width: 40px;
	height: 40px;
	margin: 5px;
  border: none;
}

#canvas-color {
	border-radius: 100px;
}

#color-picker-container input, #colors-container input {
  color: rgba(255, 255, 255, 0);
  border-radius: 40px;
  
}


@media only screen and (max-width: 1200px) {
  canvas {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    max-width: 80vw;
    max-height: 70vh;
    width: auto;
    height: auto;
  }

#toolbar {
  top: 10rem;
  max-width: 400px
}


}


@media only screen and (max-width: 800px) {
  .mobile-hide {
    display: none;
  }

  #toolbar {
    position:fixed;
    top: auto;
    bottom: 0;
    padding: 10px;
    width: 100vw;
  }

  #canvas-container {
    width: 100%;
    padding: 10px;
    margin-top: -5rem;
  }

  canvas {
    max-height: 100%;
  }

  #input-row {
    max-width: 100%;
  }

  #colors-container, #input-outer, #buy {
    display: flex;
    margin-top: 0;
  }

#input-container {
  left: 0;
  padding: 2rem;
  max-width: 100%;
}

h1#title {
  font-size: 1.2rem;
  }

 #inputKnit {
  margin-left: 0.75rem;
  margin-top: 0.75rem;
 }


  #buy {
  justify-content: space-between;
  align-items: center;
  gap: 1rem; /* optional, Abstand zwischen den Elementen */

 }

 #buy > *:not(:last-child) {
  /* Optional: falls du möchtest, dass das Element davor seine natürliche Breite behält */
  flex: 0 0 auto;
}

 #buy input[type="button"] {
  flex: 1 1 auto;
  width: auto; /* wichtig: nicht 100%, sonst wird er zu breit */
  min-width: 0; /* verhindert Überlauf */
}



#color-picker-outer[style*="display: none"],
#colors-container[style*="display: none"] {
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

}



#input-container {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

#input-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

#product-input {
  flex: 1 1 auto;
  height: 40px;
  font-size: 1rem;
  padding: 0 0.75rem;
  box-sizing: border-box;
}

#input-send {
  height: 40px;
  font-size: 1rem;
  padding: 0 1.2rem;
  box-sizing: border-box;
  cursor: pointer;
}

#input-description {
  margin-bottom: 0.5rem;
}

