
body {  /* webkit adjacent sibling bug fix: https://css-tricks.com/webkit-sibling-bug/ */
  -webkit-animation: bugfix infinite 1s;
	overflow-x: hidden;
	background: #FDFCF3;
	margin: 0;
	padding: 0;
  border-top: 9px solid #839054;
}

@-webkit-keyframes bugfix { 
  from {padding:0;} 
  to {padding:0;} 
}


body *{
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

#jkoverlay{
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
	display: none;
	z-index: 999;
}

.jktopbanner{
	margin: 0;
	height: 100px; /* banner height */
	text-align:center;
}


/* Toolbar CSS */

div#jktoolbar{
  position: relative;
  overflow: hidden;
	margin: 0 5px;
}

div#jktoolbar ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
	width: 100%;
	justify-content: space-between;
  align-items: stretch;
}

div#jktoolbar ul li{
  display: inline;
  display: flex;
}

div#jktoolbar ul li input[type="text"]{
	font-size: .9em;
	width: 200px;
	box-shadow: 0 0 5px gray inset;
	border-radius: 3px;
	border: 1px solid #eee;
	font-family: Ariel;
	padding: 3px;
	text-indent: 5px;
}

div#jktoolbar ul li input[type="button"]{
	margin-left: 2px;
	font-weight: bold;
}

div#jktoolbar ul li > div > div span{
	font-size: 95%;
	font-weight: bold;
	text-decoration: underline;
	cursor: pointer;
	color: blue;
	margin-left: 7px;
}

div#jktoolbar ul li a{
  text-decoration: none;
  display: block;
  padding: 10px;
  font-weight: bold;
  text-align: center;
  color: white;
  background: #B00004;
  border: 1px solid #eee;
  border-right-width: 0;
	outline: none;
	width: 100px;
	font-size: 1.2em;
  text-transform: uppercase;
}



div#jktoolbar ul li a:hover,
div#jktoolbar ul li a.selectedtool{
  background: darkred;
}

div#jktoolbar ul li a.selectedtool{
	padding-top: 12px;
}


/* main container */

#jkcodecontainer{
	position: absolute;
	width: 100%;
	top: 160px;
	left: 0;
	padding: 0 5px;
	bottom: 0;
	border: 10px solid #616161;
	background: white;
	border-bottom-width: 20px;
}

body.movetotop .jktopbanner{
	display: none;
}

body.movetotop div#jktoolbar{
	position: absolute;
	top: 0;
}

body.movetotop #jkcodecontainer{
	position: fixed;
	top: 30px !important;
}

body.movetotop div#jktoolbar > div > div{
	display: none;
}


#jkcodeinput, #jkcodeoutput{
	width: 50%;
	height: 100%;
	padding-top: 1.4em;
	float: left;
	position: relative;
}

#jkcodeinput{
	padding-right: 10px;
}

button.selectall{
	position: absolute;
	right: 10px;
	top: 0;
	opacity: .8;
	z-index: 1000;
	font-weight: bold;
}

#jkcodeoutput button.selectall{
	right: 0;
}


#jkdragbar{
	background: #616161;
	top: 0;
	right: -5px;
	width: 10px;
	height: 100%;
	position: absolute;
	cursor: col-resize;
	z-index: 1000;
}

#jkdragbar:hover{
	background: black;
}

#jkcodeoutput{
	padding-left: 10px;
}

#jkcodeinput strong, #jkcodeoutput strong{
	position: absolute;
	top: 0;
}


div#jksourceCode, pre#jktargetCode {
	border: 2px solid #ddd;
	height: 100%;
	width: 100%;
	margin: 0;
}

div#jksourceCode{
	font-size: 14px;
}

pre#jktargetCode{
	overflow-y: auto;
	font-size: 14px;
	background: #F5F5F5;
}

#jkcodeinput #jkregulartextarea.jkdefault{
	position: absolute;
	left: -50px;
	top: 0;
	width: 0;
	height: 0;
}

#jkcodeinput #jkregulartextarea.jkenabled{
	position: static;
	border: 2px solid #ddd;
	height: 100%;
	width: 100%;
	font-size: 14px;
}

#jkcodeinput strong, #jkcodeoutput strong{
	font-size: 1em;
	display: block;
}

#jkcopyright{
	position: absolute;
	top: 100%;
	width: 100%;
	text-align: right;
	font-size: 80%;
	color: white;
	clear: both;
}

#jkcopyright a{
	color: lightyellow;
	text-decoration: none;
}

#intro{
	position: absolute;
	width: 400px;
	background: black;
	color: white;
	border-radius: 5px;
	padding: 10px;
	box-shadow: 5px 5px 5px gray;
	right: 15px;
	bottom: 15px;
	line-height: 1.5;
	z-index: 1000;
}

#intro a{
	color: lightyellow;
}

/* ####### Full Page Menu/ Modal ####### */



nav#expand-fullpagemenu{ /* Full screen nav menu */
  width: 90%;
  height: 90%;
  top: 5%;
  left: 5%;
	box-shadow: 0 0 10px gray;
  visibility: hidden;
  -webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
  -webkit-transform: scale(0.9);  /* initially scale down nav size */
  transform: scale(0.9);
  background: white;
  display: block;
  position: fixed;
	z-index: 100;
  opacity: 0;
	text-align: left;
	overflow: auto;
	z-index: 100000;
	padding: 20px;
	padding-top: 55px;
	font-size: 1.2em;
  -moz-transition: visibility 0s 0.5s, opacity 0.5s, -moz-transform 0.5s; /* transition settings */
  -webkit-transition: visibility 0s 0.5s, opacity 0.5s, -webkit-transform 0.5s;
  transition: visibility 0s 0.5s, opacity 0.5s, transform 0.5s;
}

nav#expand-fullpagemenu > div.content{
	overflow-y: auto;
	width: 100%;
	height: 100%;
	line-height: 1.5;
}

nav#expand-fullpagemenu > div.content code{
	background: #eee;
}

nav#expand-fullpagemenu.open{ /* nav state when corresponding checkbox is checked */
	visibility: visible;
	-webkit-transform: scale(1);
	transform: scale(1);
	opacity: 1;
  -ms-transition-delay: 0s;
  -moz-transition-delay: 0s;
  -webkit-transition-delay: 0s;
  -transition-delay: 0s;
}

nav#expand-fullpagemenu label#closex{ /* Large x close button inside nav */
  width: 50px;
  height: 50px;
	overflow: hidden;
  display: block;
  position: absolute;
  cursor: pointer;
	text-indent: -1000px;
  z-index: 10;
  top: 0;
  right: 0;
}

nav#expand-fullpagemenu label#closex::before, nav label#closex::after{ /* render large cross inside close button */
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 6px;
  background: black;
  top: 50%;
  margin-top: -3px;
  -ms-transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

nav#expand-fullpagemenu label#closex::after{ /* render large cross inside close button */
  -ms-transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
  transform: rotate(-135deg);
}

nav#expand-fullpagemenu a{
  text-transform: uppercase;
}

nav#expand-fullpagemenu ul{
  fontz: bold 1em 'Bitter', sans-serif; /* use google font inside nav UL */
}

nav#expand-fullpagemenu ul li{
}

/* ####### Rows layout for Editor ####### */

html.rowslayout	#jkcodecontainer{
	padding: 0;
}

html.rowslayout #jkcodeinput, html.rowslayout #jkcodeoutput{
	width: 100%;
	height: 50%;
	float: none;
}

html.rowslayout #jkcodeinput #jkregulartextarea.jkenabled{
}

html.rowslayout div#jksourceCode, html.rowslayout pre#jktargetCode {
}

html.rowslayout #jkcodeinput{
	padding-bottom: 15px;
	padding-right: 0;
}

html.rowslayout #jkcodeinput button.selectall{
	right: 0;
}

html.rowslayout #jkdragbar{
	bottom: -5px;
	top: auto;
	right: auto;
	width: 100%;
	height: 10px;
	cursor: row-resize;
}

html.rowslayout #jkcodeoutput{
	padding-top: 15px;
	padding-left: 0;
}

html.rowslayout #jkcodeoutput strong{
	display: none;
}

/* ####### CSS Media Queries ####### */


@media screen and (max-width:750px){


	#jkcodecontainer{
		padding: 0;
		top: 140px;
	}

	.jktopbanner{
		height: 80px;
	}

	div#jktoolbar ul li a{
		width: 80px;
	}

	div#jktoolbar ul:first-of-type li:first-of-type a{
		display: none;
		pointer-events: none;
	}

	#jkcodeinput, #jkcodeoutput{
		width: 100%;
		height: 50%;
		float: none;
	}
	
	#jkcodeinput{
		padding-right: 0;
		padding-bottom: 15px;
	}
	
	
	#jkdragbar{
		bottom: -5px;
		top: auto;
		right: auto;
		width: 100%;
		height: 10px;
		cursor: row-resize;
	}
	
	#jkcodeoutput{
		padding-left: 0;
		padding-top: 15px;
	}

	#jkcodeinput button.selectall{
		right: 0;
	}
	
	div#jkcopyright{
		text-align: center;
	}
	

	#jkcodeoutput strong{
		display: none;
	}
}


@media screen and (max-width:550px){


	div#jktoolbar ul li a{
		width: auto;
	}
	div#jkcopyright{
		font-size: 70%
	}

	#intro{
		width: 300px;
		right: 0;
		bottom: 0;
}

@media screen and (max-device-width:550px){

	#jkcodecontainer{
		top: 160px;
	}

	.jktopbanner{
		height: 100px;
	}

	nav#expand-fullpagemenu{
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
	}


@media screen and (max-device-height:640px) and (max-height:550px){

	.jktopbanner{
		display: none;
	}

	div#jktoolbar{
		position: absolute;
		top: 0;
	}

	div#jktoolbar > div > div{
		display: none;
	}

	#jkcodecontainer{
		top: 30px;
	}
}
