/* From Uiverse.io by Voxybuns */ 
/* The switch - the box around the slider */
.switch {
  /* Variables */
 --switch_width: 2em;
 --switch_height: 1em;
 --thumb_color: #c0e5c8;
 --track_color: #85b79d;
 --track_active_color: #85b79d;
 --outline_color: #694873;
 font-size: 17px;
 position: relative;
 display: inline-block;
 width: var(--switch_width);
 height: var(--switch_height);
}

/* Hide default HTML checkbox */
.switch input {
 opacity: 0;
 width: 0;
 height: 0;
}

/* The slider */
.slider {
 box-sizing: border-box;
 border: 2px solid var(--outline_color);
 position: absolute;
 cursor: pointer;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background-color: var(--track_color);
 transition: .15s;
 border-radius: var(--switch_height);
}

.slider:before {
 box-sizing: border-box;
 position: absolute;
 content: "";
 height: var(--switch_height);
 width: var(--switch_height);
 border: 2px solid var(--outline_color);
 border-radius: 100%;
 left: -2px;
 bottom: -2px;
 background-color: var(--thumb_color);
 transform: translateY(-0.2em);
 box-shadow: 0 0.2em 0 var(--outline_color);
 transition: .15s;
}

input:checked + .slider {
 background-color: var(--track_active_color);
}

input:focus-visible + .slider {
 box-shadow: 0 0 0 2px var(--track_active_color);
}

/* Raise thumb when hovered */
input:hover + .slider:before {
 transform: translateY(-0.3em);
 box-shadow: 0 0.3em 0 var(--outline_color);
}

input:checked + .slider:before {
 transform: translateX(calc(var(--switch_width) - var(--switch_height))) translateY(-0.2em);
}

/* Raise thumb when hovered & checked */
input:hover:checked + .slider:before {
 transform: translateX(calc(var(--switch_width) - var(--switch_height))) translateY(-0.3em);
 box-shadow: 0 0.3em 0 var(--outline_color);
}

/*input number*/
.input {
  color: #522f5c;
  width: 100%;
  margin-right: 1em;
  height: 1em;
  width: 5em;
  padding: 2px;
  transition: .2s linear;
  border: 2px solid #694873;
  background-color: #c0e5c8;
  border-radius: 1em;
  font-size: 0.75em;
  font-family: "typewriter2";
  text-align: center;
}

.input:focus {
  outline: none;
  border: 0.5px solid #694873;
  box-shadow: -2px -2px 0px #694873;
  background-color: #a3ceb3;
}

/*calculate*/
.button {
  margin-right: 1em;
  margin-top: 1em;
  color: #522f5c;
  font-size: 1em;
  background-color: #c0e5c8;
  border: 2px solid #694873;
  border-radius: 5px;
  cursor: pointer;
  padding: 10px;
  box-shadow: 0px 6px 0px #85b79d;
  transition: all 0.1s;
}

.button:active {
  box-shadow: 0px 2px 0px #85b79d;
  background-color: #85b79d;
  position: relative;
  top: 2px;
}

.switchContainer{
    display: flex;
    gap: 8px; 
    justify-content: center; 
  }

.switchContainer p{
    margin: 0;
}

 table, th, td {
  margin-top: 2em;
  margin-right: 1em;
  border: 2px solid #694873;
  color: #4e7464;
  font-family: "typrewriter2";
} 

select{
  height: 1.5em;
  width: 10em;
  margin-right: 1em;
  background-color: #c0e5c8;
  border: 2px solid #694873;
  color: #522f5c;
  font-family: "typrewriter2";
  border-radius: 1em;
  text-align:center;
}