html {
	height: 100%;
	-ms-overflow-style: -ms-autohiding-scrollbar;
}

body {
	/* Uncomment this to enable scrolling and zooming
	touch-action: manipulation;
	*/
	height: 100%;
	margin: 0;
	font-family: arial;
	font-size: 14px;
	font-size: 16px;
	line-height: 1.3;

	background: #e8e8e8;
}

/************************************************* mainscreen *****************************************************************/

#mainscreen {
	width: 100%;
	height: 100%;
	background: #f2f5f8;
	
	xwidth: 280px;
	xmargin: auto;

	xbackground: #ccf;
}

/************************************************* homecontainer **************************************************************/

.homecontainer {
	background: #cca;
	width: 320px;
	xheight: 800px;

	margin: auto;
	background: #fff;

	xbackground: #fcc;
	background: transparent;
}

.homeh1 {
	text-align: center;
	padding: 10px 0;
	font-weight: bold;
	font-size: 17px;
	color: #6482B2;
	color: #5577DD;
}

/************************************************* c1 *************************************************************************/

#c1 {
	width: 280px;
	height: 140px;
	background: #edc;
	display: none;
}

#c1n {
	box-sizing: border-box;
	width: 24px;
	width: 30px;
	height: 140px;
	background: #eee;
	padding: 3px 6px 0 0;
	padding: 3px 3px 0 3px;
	text-align: right;
	text-align: center;
	float: left;
	color: #777;
	font-family: consolas, courier new;
	font-size: 14px;
	line-height: 20px;

	font-size: 16px;
	line-height: 24px;

}

#editor {
	box-sizing: border-box;
	border: none;
	outline: none;
	width: calc(100% - 30px);
	max-width: calc(100% - 30px);
	height: 120px;
	height: calc(100% - 0px);
	padding: 2px 3px;
	float: left;
	font-family: consolas, courier new;
	font-size: 16px;
	line-height: 20px;

	font-size: 18px;
	line-height: 24px;

	xpadding;
}

/************************************************* c2 *************************************************************************/

#c2 {
	width: 280px;
	xheight: 240px; /* 30 + 34x6 + 1 */
	height: auto; /* 30 + 34x6 + 1 */
	min-height: 65px;
	xxbackground: #fff;
	xxbackground: #f60;

	width: 100%;
	margin: 5px 0 0 0;

	width: calc(100% - 2px);
	border: 1px solid #D4B26B;
	padding: 0px 0 5px;
	background: #fff;
}

#m2 {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	height: 30px;
	background: #faecc6;
	border-top: 1px solid #d4b26b;
	border-left: 1px solid #d4b26b;
	border-right: 1px solid #d4b26b;
	font-size: 16px;
	line-height: 24px;
	font-weight: bold;
	padding: 5px 7px;
	color: #875;
	z-index: 101;

	border: 0;
	height: 25px;
	xxheight: 16px;
	height: 28px;
}

#m2r {
	box-sizing: border-box;
	float: right;
	width: 100px;
	height: 100%;
	xbackground: #fc8;
	line-height: 100%;
	text-align: right;

	width: 150px;
}

.bnsmall {
	font-size: 13px;
	font-family: lucida console;
	font-family: arial, lucida console;
}

table {
	border: 0;
	xborder-collapse: collapse;
	width: 100%;
}

tr {
}

td {
	border: 1px solid #f4d27b;
	border: 1px solid #d4b26b;
	border: 0;
	padding-bottom: 10px;
	padding-bottom: 8px;
}

td.cd {
	width: 20px;
	xbackground: #282;
	background: #fff;
	vertical-align: middle;
	padding-top: 7px;
	padding-top: 11px;
	width: 24px;

	width: 6px;
}

td.c1 {
	width: 40px;
	xwidth: 44px;
	padding: 0;
	background: #faecc6;
	text-align: right;
	xborder-right: 1px solid transparent;
	border-right: 0;

	background: #fff;
}

td.ce {
	width: 20px;
	width: 16px;
	padding: 8px 6px 4px;
	background: #faecc6;
	text-align: center;
	xborder-right: 1px solid transparent;
	border-right: 0;
	border-left: 0;
	xbackground: #fffeee;
	background: #feefd2;

	background: #fff;
	width: 10px;
}

td.c2 {
	xborder: 1px solid #f4d27b;
	xborder: 1px solid #d4b26b;
	border-left: 0;
	padding: 0;
	text-align: left;

	width: 60px;
	text-align: center;
	background: #fff;

	width: 66px;
}

td.cp {
	width: 20px;
	width: 16px;
	padding: 8px 6px 4px;
	text-align: center;
	border-right: 0;
	border-left: 0;

	background: #fff;
	width: 10px;
	width: 6px;
}

td.ct {
	width: 60px;
	width: 76px;
	width: 90px;
	text-align: center;
	xbackground: #222;
	background: #fff;
	vertical-align: bottom;
}

.fct {
	width: 60px;
	width: 70px;
	width: 72px;
	font-family: arial, verdana, courier new, lucida console;
	height: 33px;
	height: 23px;
	font-size: 13px;
	font-size: 14px;
	font-size: 15px;
	border: 1px solid #ccc;
	color: #888;
	color: #444;

	xdisplay: none;
}

td.cs {
	width: 12px;
	background: #fff;
}

td.ch {
	color:#229;font-size:13px;background:#eef;
	border-bottom: 1px solid #77c;
	border-bottom: 1px solid #D4B26B;
	padding-bottom: 3px;
	background: #FAECC6;
}

/************************************************* input[type=text] ***********************************************************/

/*input[type=text]*/
.varn {
	font-size: 16px;
	padding: 8px 4px 5px;
	box-sizing: border-box;
	xwidth: calc(100% - 12px);
	width: calc(100% - 0px);
	xheight: calc(100% - 0);
	border: 1px solid #8cf;
	border: 1px solid #fff;
	outline: none;
	background: #fffeee;
	text-align: center;

	xbackground: #fff;
	xfont-family: lucida console;
	xfont-style: italic;

	width: 44px;
	width: 40px;

	border: 1px solid #D4B26B;
	font-size: 15px;
}

input[type=text].varn:hover {
	border: 1px solid #cb9;
}

input[type=text].varn:focus {
	background: #eec;
	border: 1px solid #8ac;
	xoutline: 1px solid #8cf;

	background: #eef;
	border: 1px solid #8ac;
}

/*input[type=text]*/
.varv {
	font-size: 16px;
	padding: 8px 4px 5px;
	box-sizing: border-box;
	xwidth: calc(100% - 12px);
	width: calc(100% - 0px);
	height: calc(100% - 0);
	xborder: 1px solid #8cf;
	border: 1px solid #fff;
	xborder-left: 2px solid #fff;
	outline: none;

	width: 60px;
	text-align: center;

	border: 1px solid #D4B26B;
	font-size: 15px;
	padding: 8px 0 5px;

	width: 66px;
}

.varv:hover {
	border: 1px solid #cb9;
	xborder-left: 2px solid #cb9;
}

.varv:focus {
	background: lightblue;
	background: #eef;
	border: 1px solid #8ac;
	border: 1px solid lightblue;
	xoutline: 1px solid #8cf;

	background: #eec;
	border: 1px solid #8ac;

	background: #eef;
	border: 1px solid #8ac;
	xborder-left: 2px solid #8ac;

	background: #fffaf4;
	background: #faf0e8;
	color: #000;
}

.inputsolve {
	background: #fa6;
	border: 1px solid #fff;
	border: 1px solid #fa6;
	color: #fff;

	border: 1px solid #080;
	border: 1px solid #0d0;
	background: #0d0;
}

.inputattention {
	border: 1px solid #f00;
	cbackground: #f00;
	color: #f00;
}

.inputnfocus {
	border: 1px solid #8ac;
	background: #eef;
	color: #000;
}

.inputvfocus {
	border: 1px solid #8ac;
	background: #faf0e8;
	color: #000;
}

.equationfocus {
	border: 1px solid #8ac;
	background: #eef;
	xbackground: #f6f8ff;
	color: #000;
}

/************************************************* c3 *************************************************************************/

#c3 {
	width: 280px;
	xheight: 120px; /* 30 + 80 */
	height: auto; /* 30 + 80 */
	min-height: 30px;
	background: #eee;
	background: #0f0;

	xmargin: 5px 0 0 0;

	width: 100%;
}

#m3 {
	box-sizing: border-box;
	width: 100%;
	height: 30px;
	xbackground: #daecc6;
	background: #68f;
	xbackground: #9af;
	border-top: 1px solid #040;
	border-left: 1px solid #040;
	border-right: 1px solid #040;
	border-bottom: 1px solid #040;
	font-size: 16px;
	line-height: 24px;
	font-weight: bold;
	padding: 5px 7px;
	color: #eef;
}

#c3b {
	box-sizing: border-box;
	width: 100%;
	border-top: none;
	border-left: 1px solid #040;
	border-right: 1px solid #040;
	border-bottom: 1px solid #040;
	padding: 7px 7px;
	background: #def;
	xmin-height: 20px;
	cheight: 80px;
	xheight: auto;

	padding: 7px 7px 0px;
}

#equation {
	display: block;
	box-sizing: border-box;
	outline: none;
	border: none;
	width: 100%;
	max-width: 100%;
	min-width: 100%;
	hheight: 100%;
	height: 60px; /* 60? */
	xxmin-height: 38px; /* 2+7 + 20? + 7+2 */
	padding: 7px;
	border: 1px solid #cdf;
	border: 1px solid #8ac;
	border: 1px solid #ace;
	margin: 0;

	font-size: 16px;
	font-family: lucida console;

	text-align: center;
	height: 50px;
	font-family: arial;
	line-height: 20px;
	padding: 14px 0 0;
	display: none;
}

#equation:hover {
	border: 1px solid #acf;
	border: 1px solid #9bd;
	border: 1px solid #8ac;
	border: 1px solid #68a;
}

#equation:focus {
	border: 1px solid #346;
	border: 1px solid #024;

	border: 1px solid #8ac;
	background: #eef;
	xbackground: #f6f8ff;

	xoutline: none !important;
}

        #text-editor {
            width: 100%;
            xxmin-height: 400px;
            padding: 20px;
            border: 2px solid #e9ecef;
            xxborder-radius: 12px;
            xborder-radius: 6px;
            font-size: 1.1em;
            line-height: 1.6;
            font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
            resize: vertical;
            outline: none;
            transition: border-color 0.3s;

			max-width: 100%;
			min-width: 100%;
			box-sizing: border-box;
			padding: 0;

			font-size: 16px;
			font-family: lucida console;

			text-align: center;
			height: 50px;
			min-height: 50px;
			font-family: xverdana, arial;
			line-height: 20px;
			padding: 14px 0 0;
            border: 2px solid #cde;
            border: 2px solid #89f;
            border: 2px solid #9af;
		}

#xtext-editor:hover {
	border: 2px solid #acf;
	border: 2px solid #9bd;
	border: 2px solid #8ac;
	border: 2px solid #68a;
}

        #text-editor:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

/************************************************* symbol-btn *****************************************************************/

        .symbol-buttons {
            xdisplay: flex;
            xflex-wrap: wrap;
            xgap: 6px;
            padding: 0 0 4px 1px;
        }
        
        .symbol-btn {
            background: white;
            border: 1px solid #dee2e6;
            xborder-radius: 8px;
            padding: 8px 14px;
            font-size: 1.1em;
            xcursor: pointer;
            transition: all 0.2s ease;
            xmin-width: 40px;
            text-align: center;
            color: #495057;
            position: relative;

			padding: 1px;
			width: 20px;
			height: 24px;
			font-size: 14px;
			xfont-size: 13px;
			font-family: xverdana, arial;
			
        }

        .symbol-btn:hover {
            background: #667eea;
            color: white;
            border-color: #667eea;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        .symbol-btn:active {
            transform: translateY(0);
            box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
        }

        .symbol-btn .tooltip {
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: #333;
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.7em;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s;
            margin-bottom: 5px;
        }

        .symbol-btn:hover .tooltip {
            opacity: 1;
        }

/************************************************* c4 *************************************************************************/

#m4 {
	width: 280px;
	height: 40px;
	xbackground: #fee;
	zbackground: #eee;

	height: auto;
	margin: 5px 0 0 0;
	text-align: center;

	width: 100%;
}

#m4 button {
	outline: none;
	border: 2px solid #666;
	padding: 4px 9px 3px;
	padding: 4px 15px 3px;
	color: #444;

	border: 2px solid #080;
	background: #0d0;
	border-radius: 5px;
	color: #fff;

}

#m4 button:hover {
	border: 2px solid #68c;
	border: 2px solid #00c;
	color: #224;

	border: 2px solid #660;
	background: #fe6;

	border: 2px solid #494;
	background: #8f8;
	color: #444;
}

#m4 button:active {
	border: 2px solid #00f;
	background: #00f;
	color: #fff;

	background: #0f6;

	border: 2px solid #400;
	background: #f60;

	border: 2px solid #8c8;
	background: #afa;
	color: #080;
}

/************************************************* divg ***********************************************************************/

#divg {
	position: absolute;
	box-sizing: border-box;
	top: 30px;
	left: 120px;
	width: 160px;
	height: auto;
	background: #ffe;
	display: none;

	display: block;
	top: -63px;
	z-index: 100;

	top: -600px;
	display: none;
}

#tableg td {
	text-align: center;
	cursor: pointer;
	font-family: lucida console;

	background: #eef; /*follow inputnfocus*/
	border-color: #aac;
}

#tableg td:hover {
	background: #adf;
}

/************************************************* divc ***********************************************************************/

#divc {
	position: absolute;
	box-sizing: border-box;
	top: 30px;
	left: 160px;
	width: 120px;
	height: auto;
	background: #ffe;
	display: none;

	display: block;
	top: -123px;
	z-index: 100;

	top: -600px;
	z-index: 101;
	top: -630px;
}

#tablec td {
	text-align: left;
	cursor: pointer;
	font-family: lucida console;
	font-family: verdana, arial;
	font-size: 14px;
	font-size: 13px;

	background: #faf0e8; /*follow inputvfocus*/
	border-color: #db8;
}

#tablec td:hover {
	background: #adf;
}

span.w30 {
	display: inline-block;
	width: 30px;
	width: 34px;
}

/************************************************* divmsg *********************************************************************/

#divmsg {
	width: 280px;
	height: 30px;
	zbackground: #eee;

	xheight: auto;
	xmargin: 5px 0 0 0;
	text-align: center;

	color: #f00;
	font-weight: bold;
	line-height: 30px;

	width: 100%;
	margin: auto;
	position: relative;
}

/************************************************* button *********************************************************************/

button {
	font-size: 18px;
}

input {
	border: 1px solid #000;
}

/************************************************* others *********************************************************************/

textarea {
	xfont-size: 18px;
}

#output {
	position: absolute;
	width: calc(100% - 290px);
	xmin-width: 160px;
	height: 400px;
	xtop: 0;
	bottom: 0;
	right: 0;
	overflow-y: auto;
	font: 13px/20px lucida console;
	font: 13px/20px verdana, arial;
	background: rgba(235, 240, 230, 0.7);
	z-index: 10000;

	display: none;

	width: 300px;

	width: 50%;
	height: 300px;
	height: 400px;
}

#status {
	position: absolute;
	width: calc(100% - 290px);
	xmin-width: 160px;
	height: 200px;
	height: calc(100% - 410px);
	xtop: 0;
	xright: 0;
	overflow-y: auto;
	font: 13px/20px lucida console;
	background: rgba(253, 243, 231, 0.7);
	z-index: 10000;
	
	display: none;

	width: 300px;

	width: 50%;
	bottom: 0px;
	height: 300px;
	height: 400px;
}

.spacer {
	width: 0;
	height: 0;
	clear: both;
}