/* CORE MODULES */

/* Checkboxes */
input[type='checkbox'] { display: none; height: 0; width: 0 }

input[type='checkbox'] + label {
    cursor: pointer;
    position: relative;
    display: flex;
    font-size: .9rem;
    letter-spacing: .04rem;
    margin: .95rem 0;
    align-items: center;
    transition: color 250ms cubic-bezier(.4,.0,.23,1);
}
input[type='checkbox'] + label > span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1.4rem;
    height: 1.4rem;
    background: transparent;
    border: 1px solid #bbb;
    border-radius: 4px;
    margin-right: 10px;
    box-shadow: inset 1px 2px 2px rgba(0, 0, 0, .15);
    transition: all 250ms cubic-bezier(.4,.0,.23,1);
}

input[type='checkbox']:disabled + label { opacity: 0.5 }
input[type='checkbox']:disabled + label > span { background: #eee }

input[type='checkbox'] + label:hover, input[type='checkbox']:focus + label { color: #ed7d31 }
input[type='checkbox'] + label:hover > span, input[type='checkbox']:focus + label > span { background: rgba(255,255,255,.1) }
input[type='checkbox']:checked + label > span { border: .7rem solid #ed7d31; animation: shrink-bounce 200ms cubic-bezier(.4,.0,.23,1) }

input[type='checkbox']:checked + label > span:before {
    content: "";
    position: absolute;
    top: .42rem; left: .25rem;
    border-right: 3px solid transparent;
    border-bottom: 3px solid transparent;
    transform: rotate(45deg);
    transform-origin: 10% 100%;
    animation: checkbox-check 125ms 250ms cubic-bezier(.4,.0,.23,1) forwards;
}

@keyframes shrink-bounce {
    0% { transform: scale(1) }
    33% { transform: scale(.8) }
    100%{ transform: scale(1) }
}

@keyframes checkbox-check {
    0% { width: 0; height: 0; border-color: #fff; transform: translate3d(0,0,0) rotate(45deg) }
    33% { width: .5em; height: 0; transform: translate3d(0,100%,0) rotate(45deg) }
    100% { width: .5rem; height: .75rem; border-color: #fff; transform: translate3d(0,-.5em,0) rotate(45deg) }
}

/* Range Slider */
.range-slider { padding: 10px 0 }
.range-slider input {
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    border: 0 none;
    background: #ccc;
    padding: 0;
    margin-bottom: 10px;
    box-shadow: none;
}

.range-slider input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    border: 1px solid #ccc;
    background-color: #fff;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, .2);
    transition: .2s ease-in-out;
}

.range-slider input::-moz-range-thumb {
    cursor: pointer;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    border: 1px solid #ccc;
    background-color: #fff;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, .2);
    transition: .2s ease-in-out;
}

.range-slider input::-webkit-slider-thumb:hover { box-shadow: 2px 2px 6px rgba(0, 0, 0, .2) }
.range-slider input:active::-webkit-slider-thumb { box-shadow: 2px 2px 6px rgba(0, 0, 0, .2) }
.range-slider input:focus::-webkit-slider-thumb { box-shadow: 2px 2px 6px rgba(0, 0, 0, .2) }

.range-slider input::-moz-range-thumb:hover { box-shadow: 2px 2px 6px rgba(0, 0, 0, .2) }
.range-slider input:active::-moz-range-thumb { box-shadow: 2px 2px 6px rgba(0, 0, 0, .2) }
.range-slider input:focus::-moz-range-thumb { box-shadow: 2px 2px 6px rgba(0, 0, 0, .2) }

/* Lined Editor */
.lined-editor {
    display: flex;
    position: relative;
    height: 20rem;
    border: 1px solid #ccc;
    border-left: 0 none;
    font-size: .6rem;
    border-right: 0 none;
    overflow-y: scroll;
}

.lined-editor .liner { height: max-content; text-align: right }
.lined-editor .liner div { padding: 0 .5rem }
.lined-editor .liner div.odd { background: #f1f1f1 }

.lined-editor .editor {
    outline: none;
    width: 100%;
    border: 0 none;
    border-left: 1px solid rgb(203,213,225);
    border-radius: 0;
    line-height: 1.3em;
    font-size: .9rem;
    font-family: "Red Hat Mono", monospace;
    padding: 0.5rem;
    resize: none;
    box-shadow: none;
    tab-size: 4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.lined-editor-extension { width: 100%; border-bottom: 1px solid rgb(203,213,225); text-align: right; padding: .1rem 1% .3rem 1% }
.lined-editor-extension span { font-size: .8rem; letter-spacing: .03rem }

@media only screen and (max-width: 768px) {
    .lined-editor-extension span { font-size: .75rem }
    .lined-editor-extension { padding: .1rem 2% .3rem 2% }
}