input[type="checkbox"].ios8-switch {
    position: absolute;
    margin: 8px 0 0 16px;
}
input[type="checkbox"].ios8-switch + label {
    position: relative;
    padding: 5px 0 0 50px;
    line-height: 2.0em;
    overflow: hidden !important;
	font-family: arial, sans-serif;
	cursor: pointer;
}

input[type="checkbox"].ios8-switch-liten {
    position: absolute;
    margin: 8px 0 0 16px;
	scale: 90%;
}
input[type="checkbox"].ios8-switch-liten + label {
    position: relative;
    padding: 5px 0 0 50px;
    line-height: 2.0em;
    /*overflow: hidden !important;*/
	scale: 90%;
}

input[type="checkbox"].ios8-switch-janei {
    position: absolute;
    margin: 2px 0 0 16px;
}
input[type="checkbox"].ios8-switch-janei + label {
    position: relative;
    padding: 2px 0 0 20px;
    line-height: 1.1em;
    overflow: hidden !important;
	top: 10px;
}

input[type="checkbox"].ios8-switch-quiz {
    -webkit-appearance: none;
    width:0;
    height:0;
    display: none;
    line-height: 2.0em !important;
}

/* ### */
input[type="checkbox"].ios8-switch-quiz + label {
    -webkit-appearance: none;
    width: 40px;
    overflow: hidden;
    height: 24px !important; /* x*3 */
}
input[type="checkbox"].ios8-switch-kladd + label {
    width: 40px;
    overflow: hidden;
}
input[type="checkbox"].ios8-switch-trening + label {
    width: 40px;
    overflow: hidden;
	line-height: 1.6em !important;
	margin-left: 10px;
}
input[type="checkbox"].ios8-switch-navn + label {
    width: 40px;
    overflow: hidden;
	line-height: 1.6em !important;
	margin-left: 10px;
}
input[type="checkbox"].ios8-switch-janei + label {
    width: 40px;
    overflow: hidden;
	line-height: 1.1em !important;
	margin-left: 0;
}
input[type="checkbox"].ios8-switch-vis + label {
    width: 40px;
    overflow: hidden;
}
input[type="checkbox"].ios8-switch-vispost + label {
    width: 50px;
    overflow: hidden;
}
input[type="checkbox"].ios8-switch-grid + label {
    -webkit-appearance: none;
    width: 40px;
    overflow: hidden;
    height: 24px !important;
}

input[type="checkbox"].ios8-switch + label:before {
    content: "";
    position: absolute;
    display: block;
    left: 0;
    top: 0;
    width: 40px; /* x*5 */
    height: 24px; /* x*3 */
    border-radius: 16px; /* x*2 */
    background: #fff;
    border: 1px solid #d9d9d9;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    overflow: hidden;
}
input[type="checkbox"].ios8-switch-liten + label:before {
    content: "";
    position: absolute;
    display: block;
    left: 0;
    top: 0;
    width: 40px; /* x*5 */
    height: 24px; /* x*3 */
    border-radius: 16px; /* x*2 */
    background: #fff;
    border: 1px solid #333;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    overflow: hidden;
	scale: 90%;
}
/* ### */
input[type="checkbox"].ios8-switch-quiz + label:before {
    -webkit-appearance: none;
    width: 80px; /* x*5 */
    color: #FFF;
    overflow: hidden;
}
input[type="checkbox"].ios8-switch-kladd + label:before {
    width: 80px; /* x*5 */
    color: #FFF;
    overflow: hidden;
}
input[type="checkbox"].ios8-switch-trening + label:before {
    width: 80px; /* x*5 */
    color: #FFF;
    overflow: hidden;
}
input[type="checkbox"].ios8-switch-navn + label:before {
    width: 80px; /* x*5 */
    color: #FFF;
    overflow: hidden;
}
input[type="checkbox"].ios8-switch-janei + label:before {
    width: 60px; /* x*5 */
    color: #FFF;
    overflow: hidden;
}
input[type="checkbox"].ios8-switch-vis + label:before {
    width: 80px; /* x*5 */
    color: #FFF;
    overflow: hidden;
}
input[type="checkbox"].ios8-switch-vispost + label:before {
    width: 90px; /* x*5 */
    color: #FFF;
    overflow: hidden;
}
input[type="checkbox"].ios8-switch-grid + label:before {
    -webkit-appearance: none;
    width: 80px; /* x*5 */
    color: #FFF;
    overflow: hidden;
}

input[type="checkbox"].ios8-switch + label:after {
    content: "";
    position: absolute;
    display: block;
    left: 0px;
    top: 0px;
    width: 24px; /* x*3 */
    height: 24px; /* x*3 */
    border-radius: 16px; /* x*2 */
    background: #fff;
    border: 1px solid #d9d9d9;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
	color: #CCC;
	font-size: 0.6em;
	text-indent: 3px;
}
input[type="checkbox"].ios8-switch-liten + label:after {
    content: "";
    position: absolute;
    display: block;
    left: 0px;
    top: 0px;
    width: 24px; /* x*3 */
    height: 24px; /* x*3 */
    border-radius: 16px; /* x*2 */
    background: #fff;
    border: 1px solid #333;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
	color: #CCC;
	font-size: 0.6em;
	text-indent: 3px;
	scale: 90%;
}
input[type="checkbox"].ios8-switch-trening + label:after {
    content: "Map";
}
input[type="checkbox"].ios8-switch-navn + label:after {
	color: #666;
	height: 20px;
	padding-top: 3px;
    content: "Name";
}
input[type="checkbox"].ios8-switch-janei + label:after {
    /*content: "Angitt";*/
	content: "Sel.";
	height: 19px;
	text-indent: 5px;
    padding-top: 3px;
	font-size: 0.5em;
}
input[type="checkbox"].ios8-switch + label:hover:after {
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}
input[type="checkbox"].ios8-switch:checked + label:after {
    margin-left: 16px;
}
input[type="checkbox"].ios8-switch:checked + label:before {
    background: #1d73de;
}

input[type="checkbox"].ios8-switch-liten + label:hover:after {
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
	scale: 90%;
}
input[type="checkbox"].ios8-switch-liten:checked + label:after {
    margin-left: 16px;
	scale: 90%;
}
input[type="checkbox"].ios8-switch-liten:checked + label:before {
    background: #1d73de;
	scale: 90%;
}

/* ### */
input[type="checkbox"].ios8-switch-quiz:checked + label:before {
    -webkit-appearance: none;
    background: #ffe400;
    color: #000;
    content: "Quiz";
    text-indent: -20px;
}
input[type="checkbox"].ios8-switch-quiz:not(:checked) + label:before {
    -webkit-appearance: none;
    background: #69b64f;
    content: "Quiz ++";
    white-space: normal;
    text-indent: 18px;
}
input[type="checkbox"].ios8-switch-quiz:checked + label:after {
    -webkit-appearance: none;
    margin-left: 56px; /* x*2 */
}



input[type="checkbox"].ios8-switch-kladd:checked + label:before {
    background: #da16b9;
    content: "Draft";
    text-indent: 10px;
}
input[type="checkbox"].ios8-switch-kladd:not(:checked) + label:before {
    background: #69b64f;
    content: "Live";
    text-indent: 35px;
}
input[type="checkbox"].ios8-switch-kladd:checked + label:after {
    margin-left: 56px; /* x*2 */
}


input[type="checkbox"].ios8-switch-trening:checked + label:before {
    background: #da16b9;
    content: "Course";
    text-indent: 8px;
}
input[type="checkbox"].ios8-switch-trening:not(:checked) + label:before {
    background: #69b64f;
    content: "Empty";
    text-indent: 30px;
}
input[type="checkbox"].ios8-switch-trening:checked + label:after {
    margin-left: 56px; /* x*2 */
}


input[type="checkbox"].ios8-switch-navn:checked + label:before {
    background: #da16b9;
    content: "Show";
    text-indent: 8px;
	line-height: 1.9;
}
input[type="checkbox"].ios8-switch-navn:not(:checked) + label:before {
    background: #69b64f;
    content: "Anonym.";
    text-indent: 30px;
}
input[type="checkbox"].ios8-switch-navn:checked + label:after {
    margin-left: 56px; /* x*2 */
}



input[type="checkbox"].ios8-switch-janei:checked + label:before {
    background: #69b64f;
    content: "Yes";
    text-indent: 8px;
	padding-top: 5px;
	height: 19px;
}
input[type="checkbox"].ios8-switch-janei:not(:checked) + label:before {
    background: #6699ff;
    content: "No";
    text-indent: 28px;
	padding-top: 5px;
	height: 19px;
}
input[type="checkbox"].ios8-switch-janei:checked + label:after {
    margin-left: 36px; /* x*2 */
}



input[type="checkbox"].ios8-switch-vis:checked + label:before {
    background: #da16b9;
    content: "Show";
    text-indent: 10px;
}
input[type="checkbox"].ios8-switch-vis:not(:checked) + label:before {
    background: #69b64f;
    content: "Hide";
    text-indent: 35px;
}
input[type="checkbox"].ios8-switch-vis:checked + label:after {
    margin-left: 56px; /* x*2 */
}

input[type="checkbox"].ios8-switch-vispost:checked + label:before {
    background: #da16b9;
    content: "Course";
    text-indent: 4px;
}
input[type="checkbox"].ios8-switch-vispost:not(:checked) + label:before {
    background: #69b64f;
    content: "Blanc";
    text-indent: 38px;
}
input[type="checkbox"].ios8-switch-vispost:checked + label:after {
    margin-left: 66px; /* x*2 */
}

input[type="checkbox"].ios8-switch-grid:checked + label:before {
    -webkit-appearance: none;
    background: #007eff;
    color: #000;
    /*content: '\2630\2630\2630';*/
    content: '\268C\268C\268C';
    text-indent: -20px;
}
input[type="checkbox"].ios8-switch-grid:not(:checked) + label:before {
    -webkit-appearance: none;
    background: #76b7f9;
    content: '\2610\2610\2610';
    white-space: normal;
    text-indent: 18px;
}
input[type="checkbox"].ios8-switch-grid:checked + label:after {
    -webkit-appearance: none;
    margin-left: 56px; /* x*2 */
}



/* SMALL */

input[type="checkbox"].ios8-switch-sm {
    margin: 5px 0 0 10px;
}
input[type="checkbox"].ios8-switch-sm + label {
    position: relative;
    padding: 0 0 0 32px;
    line-height: 1.3em;
}
input[type="checkbox"].ios8-switch-sm + label:before {
    width: 25px; /* x*5 */
    height: 15px; /* x*3 */
    border-radius: 10px; /* x*2 */
}
input[type="checkbox"].ios8-switch-sm + label:after {
    width: 15px; /* x*3 */
    height: 15px; /* x*3 */
    border-radius: 10px; /* x*2 */
}
input[type="checkbox"].ios8-switch-sm + label:hover:after {
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
}
input[type="checkbox"].ios8-switch-sm:checked + label:after {
    margin-left: 10px; /* x*2 */
}

/* LARGE */

input[type="checkbox"].ios8-switch-lg {
    margin: 10px 0 0 20px;
}
input[type="checkbox"].ios8-switch-lg + label {
    position: relative;
    padding: 7px 0 0 60px;
    line-height: 2.3em;
}
input[type="checkbox"].ios8-switch-lg + label:before {
    width: 50px; /* x*5 */
    height: 30px; /* x*3 */
    border-radius: 20px; /* x*2 */
}
input[type="checkbox"].ios8-switch-lg + label:after {
    width: 30px; /* x*3 */
    height: 30px; /* x*3 */
    border-radius: 20px; /* x*2 */
}
input[type="checkbox"].ios8-switch-lg + label:hover:after {
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}
input[type="checkbox"].ios8-switch-lg:checked + label:after {
    margin-left: 20px; /* x*2 */
}

/* IOS look */
:root input[type="checkbox"] { /* :root here acting as a filter for older browsers */
	/*position: absolute;
	opacity: 0;*/
	position: absolute;
	opacity: 0;
	visibility: hidden;
}

:root input[type="checkbox"].ios-switch + div {
	display: inline-block;
	vertical-align: middle;
	width: 3em;	height: 1em;
	border: 1px solid rgba(0,0,0,.3);
	border-radius: 999px;
	margin: 0 .5em;
	background: white;
	background-image: linear-gradient(rgba(0,0,0,.1), transparent),
	                  linear-gradient(90deg, hsl(210, 90%, 60%) 50%, transparent 50%);
	background-size: 200% 100%;
	background-position: 100% 0;
	background-origin: border-box;
	background-clip: border-box;
	overflow: hidden;
	transition-duration: .4s;
	transition-property: padding, width, background-position, text-indent;
	box-shadow: 0 .1em .1em rgba(0,0,0,.2) inset,
	            0 .45em 0 .1em rgba(0,0,0,.05) inset;
	font-size: 150%; /* change this and see how they adjust! */
}

:root input[type="checkbox"].ios-switch:checked + div {
	padding-left: 2em;	width: 1em;
	background-position: 0 0;
}

:root input[type="checkbox"].ios-switch + div:before {
	content: 'Yes';
	float: left;
	width: 1.65em; height: 1.65em;
	margin: -.1em;
	border: 1px solid rgba(0,0,0,.35);
	border-radius: inherit;
	background: white;
	background-image: linear-gradient(rgba(0,0,0,.2), transparent);
	box-shadow: 0 .1em .1em .1em hsla(0,0%,100%,.8) inset,
	            0 0 .5em rgba(0,0,0,.3);
	color: white;
	text-shadow: 0 -1px 1px rgba(0,0,0,.3);
	text-indent: -2.5em;
}

:root input[type="checkbox"].ios-switch:active + div:before {
	background-color: #eee;
}

:root input[type="checkbox"].ios-switch:focus + div {
	box-shadow: 0 .1em .1em rgba(0,0,0,.2) inset,
	            0 .45em 0 .1em rgba(0,0,0,.05) inset,
	            0 0 .4em 1px rgba(255,0,0,.5);
}

:root input[type="checkbox"].ios-switch + div:before,
:root input[type="checkbox"].ios-switch + div:after {
	font: bold 60%/1.9 sans-serif;
	text-transform: uppercase;
}

:root input[type="checkbox"].ios-switch + div:after {
	content: 'No';
	float: left;
	text-indent: .5em;
	color: rgba(0,0,0,.45);
	text-shadow: none;

}

/* RADIO */
:root input[type="radio"] {
	position: absolute;
	opacity: 0;
	visibility: hidden;
}

:root input[type="radio"].ios-radio + div {
	display: inline-block;
	vertical-align: middle;
	width: 3em;	height: 1em;
	border: 1px solid rgba(0,0,0,.3);
	border-radius: 999px;
	margin: 0 .5em;
	background: white;
	background-image: linear-gradient(rgba(0,0,0,.1), transparent),
	                  linear-gradient(90deg, hsl(210, 90%, 60%) 50%, transparent 50%);
	background-size: 200% 100%;
	background-position: 100% 0;
	background-origin: border-box;
	background-clip: border-box;
	overflow: hidden;
	transition-duration: .4s;
	transition-property: padding, width, background-position, text-indent;
	box-shadow: 0 .1em .1em rgba(0,0,0,.2) inset,
	            0 .45em 0 .1em rgba(0,0,0,.05) inset;
	font-size: 90%;
}

:root input[type="radio"].ios-radio:checked + div {
	padding-left: 2em;	width: 1em;
	background-position: 0 0;
}

:root input[type="radio"].ios-radio + div:before {
	content: 'Yes';
	float: left;
	width: 1.65em; height: 1.65em;
	margin: -.1em;
	border: 1px solid rgba(0,0,0,.35);
	border-radius: inherit;
	background: white;
	background-image: linear-gradient(rgba(0,0,0,.2), transparent);
	box-shadow: 0 .1em .1em .1em hsla(0,0%,100%,.8) inset,
	            0 0 .5em rgba(0,0,0,.3);
	color: white;
	text-shadow: 0 -1px 1px rgba(0,0,0,.3);
	text-indent: -2.5em;
}

:root #tilganger td input[type="radio"].ios-radio + div:before {
  text-indent: -5em;
}

:root input[type="radio"].ios-radio:active + div:before {
	background-color: #eee;
}

:root input[type="radio"].ios-radio:focus + div {
	box-shadow: 0 .1em .1em rgba(0,0,0,.2) inset,
	            0 .45em 0 .1em rgba(0,0,0,.05) inset,
	            0 0 .4em 1px rgba(255,0,0,.5);
}

:root input[type="radio"].ios-radio + div:before,
:root input[type="radio"].ios-radio + div:after {
	font: bold 60%/1.9 sans-serif;
	text-transform: uppercase;
}

:root input[type="radio"].ios-radio + div:after {
	content: 'No';
	float: left;
	text-indent: .5em;
	color: rgba(0,0,0,.45);
	text-shadow: none;
}