/*FORM*/
/*
accent-color: bakgrund för checkbox
current-color
*/

input[type=submit],
input[type=button],
input[type=reset],
input[type=text],
input[type=number],
input[type=password],
input[type=email],
input[type=range],
input[type=color],
button,
textarea,
select,
label {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

label {
  margin-bottom: 3px;
  font-size: 100%;
  font-weight: bold;
  font-family: inherit;
  font-size: inherit;
  display: block;
}

label a {
  font-size: inherit;
}

select {
  width: auto;
  margin-bottom: 10px;
}

input[type=submit],
input[type=button],
input[type=reset],
button {
  position: relative;
  display: block;
  text-decoration: none;
  background: var(--basecolor);
  color: var(--backgroundcolor);
  padding: 20px;
  margin: 20px 6px 0 0;
  text-align: center;
  line-height: normal;
  outline: none;
  -moz-outline: none;
  font-weight: bold;
  border: none;
  border-radius: 40px;
  width: 100%;
  font-size: inherit;
  font-family: inherit;
}

.minisubmit {
  padding: 6px 25px !important;
  width: auto !important;
  font-size: 16px !important;
}

.normalsubmit {
  padding: 10px 40px !important;
  width: auto !important;
  font-size: inherit;
}

.inlinesubmit {
  display: inline-block;
  margin-right: 10px;
}

input[type=text],
input[type=number],
input[type=range],
input[type=password],
input[type=email],
input[type=date],
input[type=datetime-local],
input[type=time],
input[type=color],
textarea {
  position: relative;
  padding: 20px 10px;
  border: 1px solid var(--basecolor);
  margin: 0;
  margin-bottom: 20px;
  width: 100%;
  font-weight: normal;
  border-radius: 8px;
  color: var(--basecolor);
  font-family: inherit;
  font-size: inherit;
  line-height: normal;
  background-color: var(--backgroundcolor);
}

input[type=file] {
  border: none;
  margin: 0;
  margin-bottom: 10px;
  width: 260px;
  font-size: 16px;
  background-color: transparent;
  color: var(--basecolor);
}

input[type=checkbox],
input[type=radio] {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  -webkit-appearance: none;
  background: none;
  border: 0;
  outline: 0;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 8px;
  display: inline-block;
}

/* transition: background 300ms; for slide button */

input[type=radio] {
  border-radius: 50%;
}

input[type=checkbox]::before,
input[type=radio]::before {
  content: "";
  color: transparent;
  display: block;
  width: inherit;
  height: inherit;
  border-radius: inherit;
  border: 0;
  background-color: transparent;
  background-size: contain;
  box-shadow: inset 0 0 0 1px var(--basecolor);
}

input[type=checkbox]:checked::before {
  background-image: var(--checkboxurl);
}

.radiowrap,
.checkwrap {
  position: relative;
  margin-top: 10px;
  margin-bottom: 10px;
  line-height: 150%;
  border: 0px solid red;
}

.radiowrap label,
.checkwrap label {
  position: relative;
  display: inline;
  font-weight: normal;
}

input[type=hidden] {
  margin: 0;
  padding: 0;
}

textarea {
  width: 100%;
  height: 150px;
  padding: 15px;
  columns: var(--backgroundcolor);
  font-family: inherit;
  scrollbar-color: var(--scrollbarthumb) var(--backgroundcolor);
  scrollbar-width: thin;
  cursor: auto;
}


textarea::-webkit-scrollbar {
  width: 7px;
  background-color:  var(--backgroundcolor);
}

textarea::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: var(--scrollbarthumb);
}

select {
  width: 100%;
  height: auto;
  color: inherit;
  border: 1px solid var(--basecolor);
  background-color: var(--backgroundcolor);
  font-size: inherit;
  padding: 20px 10px;
  padding-left: 6px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-sizing: border-box;
  background-image: var(--droparrow);
  background-position: right center;
  background-repeat: no-repeat;

  /* reset arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
}

.inlineselect {
  width: auto;
  padding: 1px;
  padding-right: 100px;
  background-image: url("/images/droparrowmini.svg");
  font-size: inherit;
  margin: 0;
}

.numberfield {
  max-width: 100px;
}

::-webkit-input-placeholder {
  font-weight: normal;
  color: #999;
}

::-moz-placeholder {
  font-weight: normal;
  color: var(--basecolorlight);
}

:-ms-input-placeholder {
  font-weight: normal;
  color: var(--basecolorlight);
}

#colorpicker {
  border-radius: 0;
  height: 60px;
  width: 60px;
  border: none;
  outline: none;
  -webkit-appearance: none;
}

#colorpicker::-webkit-color-swatch-wrapper {
  padding: 0;
}

#colorpicker::-webkit-color-swatch {
  border: none;
  border-radius: 0;
}

input:focus, textarea:focus {
  outline: none;
}

/* focus */
/* input[type=text]:focus {
    background-color:#fffdf5;
  } */


/*SLIDER FIELD*/
input[type=range] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 0px solid #fc0;
  background-color: transparent;
  width: 100%;
}

/*
input[type=range]:focus {
  outline: none;
} */

/* LINE */
input[type=range]::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  position: relative;
  width: 100%;
  height: 2px;
  cursor: pointer;
  background-color: var(--basecolor);
  border-radius: 2px;
  border: none;
  top: -8px;
}

input[type=range]::-moz-range-track {
  -moz-appearance: none;
  position: relative;
  width: 100%;
  height: 2px;
  cursor: pointer;
  background-color: var(--basecolor);
  border-radius: 2px;
  border: none;
}

/* BUTTON, THUMB */
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: none;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background-color: var(--basecolor);
  cursor: pointer;
  margin-top: -17px;
}

input[type=range]::-moz-range-thumb {
  border: none;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background-color: var(--basecolor);
  cursor: pointer;
}

input[type=range]::-ms-track {
  width: 100%;
  height: 1px;
  cursor: pointer;
  background-color: transparent;
  border-color: transparent;
  color: transparent;
}

input[type=range]::-ms-fill-lower {
  background-color: #cfcfcf;
  border: none;
  border-radius: 0px;
}

input[type=range]::-ms-fill-upper {
  background-color: var(--basecolor);
  border: none;
  border-radius: 0px;
}

input[type=range]::-ms-thumb {
  border: none;
  height: 35px;
  width: 35px;
  border-radius: 50%;
  background-color: var(--basecolor);
  cursor: pointer;
  height: 5px;
}

/*END SLIDER*/

/* COLOR */
input[type=color] {
  height: 80px;
  padding: 0;
  color: transparent;
}

/* END COLOR */

/*END FORM*/

/* TOGGLE */
/* ALSO IN HEADER FOR THEME */
/* https://www.w3schools.com/howto/howto_css_switch.asp */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin-bottom: 20px;
}

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

/* The slider */
.toggle {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.toggle:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked+.toggle {
  background-color: var(--accentcolor);
}

input:checked+.toggle:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded toggles */
.toggle.round {
  border-radius: 34px;
}

.toggle.round:before {
  border-radius: 50%;
}

.toggletext {
  position: relative;
  padding-left: 10px;
}

.minitoggle {
  width: 40px;
  height: 20px;
}
.minitoggle::before {
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
}

input:checked+.minitoggle:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}
/* END TOGGLE */

@media (max-width: 1000px) {
  input[type=range]::-webkit-slider-thumb {
    height: 25px;
    width: 25px;
  }

  input[type=range]::-moz-range-thumb {
    height: 25px;
    width: 25px;
  }
}
