/*
SLATE BLUE COLOR PALLETE FROM LIGHT TO DARK
HEX: #d1dde8, RGB: (209, 221, 232)
HEX: #abc0d1, RGB: (171, 192, 209)
HEX: #94acc2, RGB: (148, 172, 194)
HEX: #6f899f, RGB: (111, 137, 159)
HEX: #52708a, RGB: (82, 112, 138)
HEX: #49637a, RGB: (73, 99, 122) 
HEX: #40576b, RGB: (64, 87, 107)
HEX: #374a5c, RGB: (55, 74, 92)
HEX: #2e3e4d, RGB: (46, 62, 77)
HEX: #24323d, RGB: (36, 50, 61)
HEX: #1b252e, RGB: (27, 37, 46)
HEX: #12191f, RGB: (18, 25, 31)
HEX: #090c0f, RGB: (9, 12, 15)
HEX: #000000, RGB: (0, 0, 0)
*/

/* ==============================  DIV CONTROL CONTAINERS, LABELS and ICON BUTTONS */

.menuh {
    display: flex;
    align-items: center;
	background: var(--client);
    padding: 5px;
    vertical-align: middle;
    height: 50px;
}

.child {
	display:inline-block;
	position: relative;
	vertical-align: top;
}

div.ctrl {
    display: flex;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 5px;
}

div.ctrli {
    display: inline-block;
}

label.ltext {
    display: inline-block;
    padding: 5px;
    font-family: "base_font";
    font-size: 1rem;
    color: var(--text);
    opacity: 0.9;
    margin-right: 10px;
}

.iconbtn {
    /*background: var(--ctrlbase);*/
    border-radius: 5px;
    cursor: pointer;
    padding: 5px;
    filter: invert(var(--invert));
}

.iconbtn:hover {
    background: var(--ctrlitem);
    filter: invert(0%);
}


/* ==============================  SLIDER */
/* USAGE EXAMPLE
<div class='ctrl' style='width:300px;'><input type='range' class='slider' min='0' max='100' value='50' /></div>
*/
.slider {
    appearance: none;
    -webkit-appearance: none;
    width: 150px;
    height: 8px;
    border-radius: 5px;
    background: var(--outline);    
    -webkit-transition: .2s;
    transition: opacity .2s;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--ctrlbase);
    background: var(--ctrlitem);
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--ctrlbase);
    background: var(--ctrlitem);
    cursor: pointer;
}

/* ==============================  TOGGLE SWITCH */
/* USAGE
<div class='ctrl'><label class='ltext'>Toggle: </label><label class="switch">&nbsp;<input type="checkbox"><span class="tswitch"></span></label></div>
*/
/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The toggle */
.tswitch {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg);
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 24px;
    border: 1px solid var(--outline);
}

.tswitch:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: var(--ctrlitem);
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.tswitch {
    background-color: var(--ctrlitem);
}


input:checked+.tswitch:before {
    background-color: #fff;
    opacity: 0.6;
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
}

/* ==============================  CHECK BOX */
/* the .ch is to not interfere with the toggle switch that uses a checkbox */
input.ch[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--bg);
    border: 1px solid var(--outline);
    display: inline-block;
    cursor: pointer;
    font-size: 15px;
    font-weight: 900;
    text-align: center;
    content: '\2714';
    width: 24px;
    height: 24px;
    color: #000;
    padding: 3px;
}

input.ch[type="checkbox"]:checked {
    background-color: var(--ctrlitem);
    color: var(--ctrlbase);
    padding: 2px;
}

input.ch[type="checkbox"]:checked:after {
    content: '\2714';
    color: var(--ctrlbase);
}

/* ==============================  TEXT INPUT TYPES */

/* REMOVE THE DEFAULT FOCUS OUTLINE */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline-offset: 0px;
    outline: none;
}

input[type=text],
[type=number],
[type=email],
[type=password] {
    padding: 5px;
    font-family: "base_font";
    font-size: 14px;
    border-radius: 7px;
    background-color: var(--bg);
    border: 1px solid var(--outline);
    color: var(--text);
}

input[type=text]:focus,
[type=number]:focus,
[type=email]:focus,
[type=password]:focus {
    background-color: #fff;
    border: 1px solid var(--text);
    color: var(--cross);
}

textarea {
    padding: 5px;
    font-family: "base_font";
    font-size: 14px;
    border-radius: 7px;
    background-color: var(--bg);
    border: 1px solid var(--outline);
    color: var(--text);
}

textarea:focus {
    background-color: #fff;
    border: 1px solid var(--text);
    color: var(--cross);
}

/* ==============================  SELECT */

select {
    padding: 5px;
    font-family: "base_font";
    font-size: 14px;
    border-radius: 7px;
    background-color: var(--bg);
    border: 1px solid var(--outline);
    color: var(--text);
}

select:focus {
    background-color: var(--ctrlbase);
    border: 1px solid var(--text);
    color: var(--text);
}

select option {
    padding: 3px;
    font-family: "base_font";
    font-size: 14px;
    /*background-color: var(--ctrlbase);*/
    color: var(--text);
}
option:checked {
    background-color: var(--ctrlitem);
    color: var(--bg);
}

/*============================== PROGRESS */

.progress {
    color: var(--cross);
    background-color: var(--ctrlitem);
    font-family: "base_font";
    font-size: 15px;
    height: 30px;
    width: 0%;
    text-align: center;
    border-radius: 15px 15px;
    padding-top: 5px;
    white-space: nowrap;
}

.progressthin {
    color: var(--cross);
    background-color: var(--ctrlitem);
    font-family: "base_font";
    font-size: 12px;
    height: 15px;
    width: 0%;
    text-align: center;
    border-radius: 15px 15px;
    padding-top: 5px;
    white-space: nowrap;
}