/* Kombiniertes CSS-Styling basierend auf der angegebenen UI-Struktur */

body {
    font-family:'Rubik';
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    width:100%;
}

.youcolors{
  display:none;
}


.nav-div {
  width: 98%;
  height:70vh;
  overflow-y:auto;
  background-color: white;
  padding: 10px;
  padding-top:0px;
}
.chevron {
  transition: transform 0.5s ease;
}
.chevron.rotate {
  transform: rotate(180deg); /* aus V wird ^ */
  transition: transform 0.5s ease;
}

.disabled-button {
  background-color: grey !important;
  border: 1px solid grey;
  color:white !important;
  cursor: not-allowed !important;
}

.summary{
  font-family:'Rubik';
  font-size:17px;
}

.togglebutton{
  background:white;
  border:none;
  width:100%;
  height:40px;
  cursor:pointer;
  font-size: 20px;
  font-family:'Rubik';
  font-style:italic;
  font-weight:600;
  margin:0;
  padding:0; 
  justify-content: space-between;
  align-items: center; 
  display:flex;
  color:#333333;
}

.panel{
  max-height: 700px;
  transition: max-height 0.5s ease, opacity 0.8s ease;
  opacity: 1;
}

.closed{
  
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.2s ease;
}

.model-div {
  margin: auto;
  height:100%;
  width: calc(93% - 450px);
  position: absolute;
  
}

.colorpick{
  width:35px;height:35px; border-radius:20px;cursor:pointer;border:1px solid grey;margin-right:0;
}

.colorpick:hover{
  width:35px;height:35px; border-radius:20px;cursor:pointer;border:2px solid black;
}

.colorVal{
  background:white; width:35px;height:35px; border-radius:20px;cursor:pointer;border:1px solid black;font-weight:normal; margin-top: 5px;color:black;line-height:0;min-height:0;padding:0;margin-right:0;
}

.colorVal:hover{
  width:35px;height:35px; border-radius:20px;cursor:pointer;border:2px solid black;font-weight:bold; margin-top: 5px;
}

.colorpick2{
  width:35px;height:35px; border-radius:20px;cursor:pointer;border:1px solid grey;
}

.colorpick2:hover{
  width:35px;height:35px; border-radius:20px;cursor:pointer;border:2px solid black;
}


#canvas-style {
  
  width: 100%;
  height: 100%;
  display: inline-block;
  /*background:rgb(77, 75, 75);*/
    background-position: center;
    background-size: cover;
          background: white;
  }


#sliderLabel {
  position: absolute;
  cursor:pointer;
  color:white;
  top: -5px; /* Über dem Slider positionieren */
  background-color: black;
  font-size: 12px;
  left: 114.9px;
  border-radius: 15px; /* Runde Ecken */
  border: 1px solid black; /* Graue Border */
  
  width: 45px;
  height: 25px;
  display: flex;              /* Aktiviert Flexbox */
  justify-content: center;    /* Zentriert den Text horizontal */
  align-items: center;        /* Zentriert den Text vertikal */
  text-align: center; 
  z-index: 2;
  pointer-events: none
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 5px;  
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;
  z-index: 1;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 50px;
  height: 25px;
  border-radius: 15px; 
  background: rgba(0, 0, 0, 0);
  cursor: pointer;
  z-index: 3;
}

.slider::-moz-range-thumb {
  width: 35px;
  height: 25px;
  border-radius: 15px; 
  background: black;
  cursor: pointer;
  z-index: 3;
}



#sliderLabel2 {
  position: absolute;
  cursor:pointer;
  top: -5px; /* Über dem Slider positionieren */
  background-color: #fff;
  font-size: 12px;
  left: 52px;
  border-radius: 15px; /* Runde Ecken */
  border: 1px solid black; /* Graue Border */

  width: 45px;
  height: 25px;
  display: flex;              /* Aktiviert Flexbox */
  justify-content: center;    /* Zentriert den Text horizontal */
  align-items: center;        /* Zentriert den Text vertikal */
  text-align: center; 
  z-index: 2;
  pointer-events: none
}

#tDLabel {
  position: absolute;
  top: 20px; /* Über dem Slider positionieren */
  background-color: #fff;
  font-size: 12px;
  left: 115px;
  border-radius: 10px; /* Runde Ecken */
  border: 1px solid #888; /* Graue Border */
 
  width: 50px;
  height: 30px;
  display: flex;              /* Aktiviert Flexbox */
  justify-content: center;    /* Zentriert den Text horizontal */
  align-items: center;        /* Zentriert den Text vertikal */
  text-align: center;         /* Optional, um Text innerhalb des span zu zentrieren */
}


#renderCanvas {
  border: none;
    outline: none; 
  width: 100%;
  height: 100%;
  /*background:rgb(77, 75, 75);*/  
}

#maindiv{
  display: flex;
  flex-direction: row;
  width:99%;
}


.item-buttons {
  width: 500px;
  background-color: white;
  padding: 20px;
  border:1px solid black;
  border-radius: 5px;
 left: calc(103% - 560px);
  position: relative;

}

.item-buttons p {
  font-weight: 500;
  font-family: 'Rubik';
    font-size: 17px;
  margin-bottom: 10px;
 
}

.sliderContainer {
  position: relative;
  width: 350px;
}

button.button3d:disabled {
  color: inherit;  /* Behält die Textfarbe des aktiven Zustands bei */
  background-color: inherit; /* Behält die Hintergrundfarbe des Buttons bei */
  opacity: 1; /* Verhindert eine Veränderung der Opazität */
  
}

button.size:disabled {
  color: inherit;  /* Behält die Textfarbe des aktiven Zustands bei */
  background-color: inherit; /* Behält die Hintergrundfarbe des Buttons bei */
  opacity: 1; /* Verhindert eine Veränderung der Opazität */
  
}


.button3d {
  background: white;
  border: 1px solid grey;
  cursor: pointer;
  border-radius: 5px;
  /*padding: 10px;*/
  margin: 5px;
  text-align: center;
    color:black;
  font-weight:bold;
  align-items: center;
  min-width:  155px;
  height: 35px;
   font-weight: 500;
  font-family: 'Rubik';
    font-size: 13px;
}

.naht {
  background-color:white;
  margin-right:12px;
  display:flex; 
  flex-direction: column;
   height:130px;
  width:155px;
   border:1px solid grey;
   border-radius:5px;
 
}

.naht:hover{
   border:2px solid black;
   cursor:pointer;
}

.naht.active{
 border:2px solid black;
}

.buttonimg{
  width:85px;
  height:85px;
  margin: auto;
}


.buttonimg2{
  width:65px;
  height:65px;
  margin: auto;
}

.p{

     font-weight: 500;
  font-family: 'Rubik';
    font-size: 13px;
}

.colormode{
  background: white;
  border: 1px solid grey;
  cursor: pointer;
  border-radius: 5px;
  /*padding: 10px;*/
  margin: 5px;
  margin-left:0px;
  text-align: center;
  font-weight:bold;
  align-items: center;
  width:155px;
  height: 35px;
color:black;
     font-weight: 500;
  font-family: 'Rubik';
    font-size: 13px;
}

.colormode.active{
  background-color: #000000;
  border-color: black;
  border-width: 1px;
  color:white;
}

.inputbutton{
  width:155px;
  justify-content: center;
  display: flex;
  padding: 0;

  background: white;
  border: 1px solid grey;
  cursor: pointer;
  border-radius: 5px;
  color:black;
  margin: 5px;
  margin-lefT:0px;
  text-align: center;
  
  font-weight:bold;
  align-items: center;
  min-width:  155px;
  height: 35px;
   font-weight: 500;
  font-family: 'Rubik';
    font-size: 13px;
}

.togglecm{
  background-color:white;
  margin-right:12px;
  display:flex; 
  flex-direction: column;
   height:130px;
  width:155px;
   border:1px solid grey;
   border-radius:5px;
  font-size:15px;
  font-family:'Rubik';
  font-weight:500;
}
.togglecm:hover{
    cursor: pointer;
    border:2px solid black;
}

.togglecm.active {
  border:2px solid black;
}

.colorVal.active {
  border:2px solid black;
}

button.size {
  background: white;
  border: 1px solid grey;
  cursor: pointer;
  border-radius: 5px;
  /*padding: 10px;*/
  margin: 5px;
  text-align: center;
  color:black;
  font-weight:bold;
  align-items: center;
  min-width:  155px;
  height: 35px;
     font-weight: 500;
  font-family: 'Rubik';
    font-size: 13px;
}

button.material {
  background: white;
  border: 1px solid grey;
  cursor: pointer;
  border-radius: 5px;
  padding: 10px;
  margin: 5px;
  text-align: center;
  font-size: 13px;
  font-weight:bold;
  display: inline-flex;
  align-items: center;
  
  min-width:  clamp(120px, 9.4vw, 155px);
  height: 35px;
}

button.button3d:hover {
  background: white;
border: 1px solid black;

}


button.size:hover {
  background: white;
border: 1px solid black;

}


button img {
  height: 25px;
  width: 25px;
  margin-right: 5px;
  border-radius: 25px;
}
#mainelement{
display: flex;
      flex-direction: row;width:100%; 
}

#colorbox {
  width: 100%;
}

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

input[type="range"] {
  width: 100%;
}

@media (max-width: 768px) {
  .nav-div {
      padding: 5px;
    height:auto;
  }
  .item-buttons {
      width: 100%;
      margin-left: 0;
    margin-top:40vh;
    left: 0;
    border: none;
  }
  .model-div {
      margin: auto;
    height: 40vh;
    width: 100vw;
    position: absolute;
    z-index: 10;
    
  }
#canvas-style{
  height:40vh;
}

#renderCanvas{
  height:40vh;
}

#mainelement{
display: flex;
      flex-direction: column;
  width:100vw; 
}

#maindiv{
  display: flex;
  flex-direction: row;
  width:100vw;
}
}
