input[type="submit"],
input[type="button"],
input[type="reset"],
input[type="text"],
input[type="search"],
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: 5px;
    font-size: 1rem;
    font-weight: normal;
    display: block;
    line-height: normal;
}

.labelnotbold {
    font-weight: normal;
}

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

input[type="submit"],
input[type="button"],
input[type="reset"],
button {
    position: relative;
    display: inline-block;
    text-decoration: none;
    background-color: var(--basecolor);
    color: var(--buttonfontcolor);
    margin: 0px 6px 6px 0;
    text-align: center;
    line-height: normal;
    outline: none;
    -moz-outline: none;
    font-weight: normal;
    border: none;
    border-radius: 40px;
    font-size: 1rem;
    padding: 15px 40px;
    width: auto !important;
    opacity: 1;
}

/*input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
button:hover {
    animation-name: buttonanimation;
    animation-duration: 600ms;
    animation-timing-function: ease-out;
    animation-iteration-count: 1;
}*/

@keyframes buttonanimation {
    0% {
        padding: 15px 40px;
        opacity: 1;
    }

    50% {
        padding: 15px 45px;
        opacity: 0.2;
    }

    100% {
        padding: 15px 40px;
        opacity: 1;
    }
}

.buttonsmall {
    padding: 6px 20px !important;
    width: auto !important;
    font-size: 0.8rem !important;
}

.buttonmini {
    padding: 4px 15px !important;
    width: auto !important;
    font-size: 0.7rem !important;
}

.buttonsquare {
    border-radius: var(--borderradius);
    padding: 10px 20px;
    font-size: 2em;
}

.newbutton {
    position: fixed;
    bottom: 100px;
    right: 9px;
    background-color: var(--blockbackground);
    color: var(--basecolor);
    z-index: 2;
}

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="search"],
input[type="color"],
textarea {
    position: relative;
    padding: 20px 10px;
    border: 0px solid var(--basecolor);
    margin: 0;
    margin-bottom: 20px;
    width: 100%;
    font-weight: normal;
    border-radius: var(--borderradius);
    color: var(--basecolor);
    line-height: normal;
    font-size: 1rem;
    background-color: var(--blockbackground);
}

input[type="date"] {
    background-image: var(--icon-date);
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

input[type="time"] {
    background-image: var(--icon-time);
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

input[type="search"] {
    border-radius: 80px;
    padding-left: 45px;
    padding-right: 45px;
}

input[type="search"] {
    background-image: var(--icon-search);
    background-repeat: no-repeat;
    background-position: left 20px center;
    background-size: 20px;
}

.searchwrap {
    position: relative;
}

.searchclosewrap {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60px;
    display: grid;
    place-items: center;
    z-index: 1;
}

.searchclose {
    position: absolute;
    height: 20px;
    width: 20px;
    border: 0px solid pink;
    background-image: var(--icon-close);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    z-index: 1;
    cursor: pointer;
    display: none;
}

input[type="date"]::calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    color: transparent;
    background: transparent;
}

input[type="text"]:focus,
input[type="search"]:focus {
    border-color: var(--basecolor);
}

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

input[type="number"]::-webkit-inner-spin-button {
    opacity: 0;
}

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

input[type="radio"] {
    position: relative;
    display: inline-block;
    position: relative;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    border: 2px solid var(--basecolor);
    border-radius: 50%;
}

input[type="checkbox"] {
    position: relative;
    display: inline-block;
    position: relative;
    width: 26px;
    height: 26px;
    border: 2px solid var(--basecolor);
    border-radius: 4px;
}

input[type="checkbox"]::before,
input[type="radio"]::before {
    content: "";
    color: transparent;
    display: block;
    width: inherit;
    height: inherit;
    border-radius: inherit;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 0;
    transform: translate(-50%, -50%); /* Exakt centrering */
}

input[type="checkbox"]:checked::before {
    position: absolute;
    background-image: var(--icon-checkbox);
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Exakt centrering */
    transition: all 0.2s;
}

input[type="radio"]:checked::before {
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: var(--accentcolor); /* Färgen på pricken */
    background-position: center;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Exakt centrering */
    transition: all 0.2s;
}

::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.radiowrap,
.checkwrap {
    position: relative;
    margin: 0;
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 150%;
    width: auto;
    display: inline-block;
}

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

.radiolistwrap,
.checklistwrap {
    margin-bottom: 20px;
}

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: 0px solid var(--basecolor);
    background-color: var(--blockbackground);
    font-size: inherit;
    padding: 20px 10px;
    padding-left: 20px;
    margin-bottom: 20px;
    border-radius: var(--borderradius);
    line-height: normal;
    box-sizing: border-box;
    background-image: var(--icon-droparrow);
    background-position: right 12px center;
    background-repeat: no-repeat;
}

.inlineselect {
    width: auto;
    padding: 1px;
    padding-right: 120px;
    background-image: var(--icon-droparrow);
    font-size: inherit;
    margin: 0;
}

.miniselect {
    width: 100px;
    margin: 0;
    padding: 10px 15px;
}

.numberfield {
    max-width: 100px;
}

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

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

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

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

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

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

/* DATE AND TIME */
::-webkit-calendar-picker-indicator {
    background-color: pink !important;
    padding: 5px;
    cursor: pointer;
    border-radius: 3px;
}

/*SLIDER FIELD, only webkit!!! */

input[type="range"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 0px solid var(--basecolor);
    border-radius: 100px;
    background-color: var(--rangebackground);
    width: 100%;
    padding: 0 2px 0 2px;
    height: 32px;
    margin: 0;
}

/* test */
/* input[type="range"] {
  border: 0px solid #525252;
  background-color: none;
} */

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

/* end line */

/* button, thumb */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    height: 26px;
    width: 60px;
    border-radius: 100px;
    background-color: var(--basecolor);
    cursor: pointer;
    margin-top: -13px;
}

/* end button, thumb */

/*END SLIDER FIELD*/

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

/* END COLOR */

/*END FORM*/

/* TOGGLE */
.switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 30px;
    margin-bottom: 20px;
}

.switchinline {
    margin: 0;
}

/* 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;
    height: 28px;
}

/* circle botton to drag */
.toggle:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 2px;
    bottom: 2px;
    background-color: var(--backgroundcolor);
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

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

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

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

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

.toggletext {
    position: relative;
    display: inline;
    padding-left: 5px;
    font-size: 1em;
    vertical-align: middle;
}

.minitoggle {
    width: 40px;
    height: 20px;
}

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

input:checked + .minitoggle:before {
    -webkit-transform: translateX(20px);
    transform: translateX(20px);
}

/* END TOGGLE */

@media (max-width: 1000px) {
}
