/*.hidden {
  	display: none;
}

div.cai_container {
  	margin-bottom: .5em;
}
.cai_class_label {
	margin-bottom: 1em;
}
!* sets consistent width when switching between tabs*!
.cai_controls {
	min-width: 425px;
}
.cai_row_btn_selected {
  border-color:blue;
  border-style:solid;
  border-width:1px;
}

div.cai_selected_row {
  border-color:green;
  border-style:solid;
  border-width:2px;
}

.cai_equation {
  border-color:green;
  border-style:solid;
  border-width:1px;
}

.cai_equation_selected {
  border-color:blue;
  border-style:solid;
  border-width:1px;
}
.cai_toggle_div {
  border-style:solid;
  border-width:1px;
  z-index: 5;
}
div.cai_configure {
  border-style:solid;
  border-width:1px;
}
.cai_config_selector{
  width: 200px;
}
input.cai_cursor_field {
  width: 11px;
}
.cai_insert_select {
  color: #00abf4;
}
.cai_replace_select{
  color: red;
}
.cai_not_selected {
  background-color: teal;
}
.cai_button_variable, .cai_dynamic_inputbox{
	font-style:italic;
}

.cai_row_Variables button{
	font-style: italic;
}
.cai_editor_row{
	width: 100%;
	display: block;
	clear:both;
	overflow: hidden;
}

.cai_editor_row.cai_row_has_label .cai_label_span{
	width: auto;
	max-width: 50%;
	text-align: right;
	line-height: 1.8em;
	vertical-align: middle;
	display: inline-block;
	font-size: 1.6em;
	float: left;
	font-family: STIXGeneral;
    font-style: italic;
	padding-right: 0.2em;
	max-height: 1.8em;
	overflow: hidden;
	padding-left: 0.4em;
}
.cai_editor_row.cai_row_has_label .MathJax{
	display:block;
	float: none;
	width: auto;
}
.cai_eq_ctl{
	clear: both;
	display: block;
}

.cai_editor_row .MathJax{
}

.keypad-row{
	border-left: 1px solid #ccc;
	border-top: 1px solid #ccc;
	margin: 0;
	padding: 0;
}
.keypad-grid-row{
	margin-bottom: 4px;
	padding-bottom: 0px;
}
.cai_simple_row:nth-child(2) {
    border-top: medium none;
}
.keypad-rows .keypad-row{
	margin-left: 98px;
}
.keypad-item {
	background-color: transparent;
	border: 1px solid #808080;
	border-radius: 2px;
  	-moz-border-radius: 2px;
  	-webkit-border-radius: 2px;
	display: inline-block;
	height: 30px;
	min-width: 19px;
	overflow: hidden;
	margin-right: 3px;
	margin-bottom: 0px;
	cursor: pointer;
	text-align: center;
	-webkit-transition: color .2s ease-in, background-color .2s ease-in, -webkit-box-shadow .2s ease-in;
	-moz-transition: color .2s ease-in, background-color .2s ease-in, -moz-box-shadow .2s ease-in;
	transition: color .2s ease-in, background-color .2s ease-in, box-shadow .2s ease-in;
	padding: 0 0.2em;
	line-height: normal;
	font-family: STIXGeneral,Arial,Helvetica,sans-serif;
}
.cai_button:hover, .cai_button:focus {
    border-color: #0785AB;
    -webkit-box-shadow: 0em 0em .3em #666;
	-moz-box-shadow: 0em 0em .3em #666;
	box-shadow: 0em 0em .3em #666;
}
.cai_nav_next, .cai_nav_prev {
	text-indent: -9999px;
	background: url(images/next_back.png) no-repeat 6px 5px;
	width: 30px;
}
.cai_nav_next:hover, .cai_nav_next:active {
	background-position: -94px 5px;
}
.cai_nav_prev {
	background-position: -194px 5px;
}
.cai_nav_prev:hover, .cai_nav_prev:active {
	background-position: -294px 5px;
}



!*Icons for Undo, Redo, and Delete*!
.cai_nav_undo, .cai_nav_redo, .cai_nav_del{
!*.cai_nav_undo, .cai_nav_redo{*!
	background: url(images/undo_redo_delete.png) no-repeat 6px center;
	text-indent: -9999px;
	width: 30px;
}
.cai_nav_undo{
	background-position: 7px center;
}
.cai_nav_undo:hover, .cai_nav_undo:active{
	background-position: -92px center;
}
.cai_nav_redo{
	background-position: -192px center;
}
.cai_nav_redo:hover, .cai_nav_redo:active{
	background-position: -292px center;
}
.cai_nav_del{
	background-position: -357px center;
}
.cai_nav_del:hover, .cai_nav_del:active{
	background-position: -451px center;
}

.cai_button_grid_row {
	display: block;
	padding-bottom: 4px;
}
.cai_grid_row {
	display: block;
	float: left;
	width: 85px;
	border-right: solid 1px #ccc;
	text-align: left;
	padding-top: 3px;
}

.keypad-row{
	border-left: 1px solid #CCCCCC;
	border-top: 1px solid #CCCCCC;
	display: block;
	margin-left: 85px;
	padding-left: 5px;
	padding-top: 3px;
	text-align: left;
}

.cai_simple_row:nth-child(2) {
	border-top: none;
}
.cai_controls_content_el:after {
	content: "";  
	display: block;  
	clear: both;  
	visibility: hidden;  
	font-size: 0;  
	height: 0;
}
.cai_controls_content {
	border: solid 1px #00abf4;
  	-moz-border-radius: 0px 0px 5px 5px;
  	-webkit-border-radius: 0px 0px 5px 5px;
    border-radius: 0px 0px 5px 5px;
  	padding: 3px;
}
.activeItem .cai_controls_content {
	-webkit-box-shadow: 0em 0em .3em #999;
	-moz-box-shadow: 0em 0em .3em #999;
	box-shadow: 0em 0em .3em #999;
}
.cai_simple_row_title, .cai_grid_row_title {
	display: block;
    font-size: 0.5em;
    padding-bottom: 0.2em;
}
.cai_grid_row_title {
	padding-top:3px;
}

!* tabs *!
.cai_controls_tabs {
	background-color: #e4e6e6;
	background-color: rgba(230, 230, 230, .3);
	margin-top: 3px;
	padding: 0 3px;
	border-top: solid 1px #ccc;
	border-right: solid 1px #ccc;
	border-left: solid 1px #ccc;
	min-height: 30px;
}
.cai_controls_tabs:after {
	content: "";  
	display: block;  
	clear: both;  
	visibility: hidden;  
	font-size: 0;  
	height: 0;
}
.editor_controls_tabs_el {
	float: left;
	margin: 7px 2px -1px;
	cursor: pointer;
	border-top: solid 1px transparent;
  	border-right: solid 1px transparent;
  	border-left: solid 1px transparent;
	padding: 2px 5px;
}
.editor_controls_tabs_el:hover {
	border-color: #000;
	background-color: #f0f2f2;
}
.cai_single_tab .editor_controls_tabs_el {
	display: none;
}
.cai_nav {
	float: left;
	padding-left: 3px;
}
.cai_nav button {
	background-color: transparent;
	border: 1px solid #808080;
	border-radius: 25px;
  	-moz-border-radius: 25px;
  	-webkit-border-radius: 25px;
	display: block;
	height: 25px;
	line-height: 25px;
	padding: 0 5px;
	overflow: hidden;
	margin-right: 3px;
	margin-top: 3px;
	float: left;
	cursor: pointer;
	text-align: center;
	font-size: 20px;
	min-width: 25px;
	-webkit-transition: color .2s ease-in, background-color .2s ease-in, -webkit-box-shadow .2s ease-in;
	-moz-transition: color .2s ease-in, background-color .2s ease-in, -moz-box-shadow .2s ease-in;
	transition: color .2s ease-in, background-color .2s ease-in, box-shadow .2s ease-in;
}
.cai_nav button:hover, .cai_nav button:focus {
	background-color: #fff;
	border-color: #00abf4;
	color: #00abf4;
	 -webkit-box-shadow: 0em 0em .1em #000;
	-moz-box-shadow: 0em 0em .1em #000;
	box-shadow: 0em 0em .1em #000;
}

.cai_numpad_input{
  width: 60px;
}

div.cai_selected_tab, div.cai_selected_tab:hover {
  	background-color: #fff;
  	border-color: #00abf4;
}
.cai_question {
  float: right;
}


.cai_button_fraction, .cai_button_sqrt, .cai_button_nrt, .cai_button_sup, .cai_button_sub, .cai_button_subsup, .cai_button_dot {
	background: url(images/equations_level1.png) no-repeat center 200px;
	width: 32px;
	text-indent: -9999px;
}
.cai_button_fraction {
	background-position: center -154px;
    width: 20px;
}
.cai_button_sqrt {
	background-position: center -194px;
}
.cai_button_nrt {
	background-position: center -233px;
	width: 36px;
}
.cai_button_sup {
	background-position: center -272px;
	width: 27px;
}
.cai_button_sub {
	background-position: center -311px;
	width: 27px;
}
.cai_button_subsup {
	background-position: center -350px;
	width: 28px;
}
.cai_button_dot{
	background-position: center -460px;
    width: 20px;
}

!* temp style for SBAC, hide labels *!
.cai_simple_row_title, .cai_grid_row_title {
	display: none;
}

.cai_container {
    min-height: 1.8em;
    padding-top: .4em;
}

.MathJax * {
	-moz-user-select: element !important;
	-webkit-user-select: auto !important;
	-ms-user-select: element !important;
	user-select: element !important;
}

.noColumns .cai_container .MathJax {
    !*max-width: 40em; going to try and disable for bug 93347 *!
}
.noColumns layout1 .cai_container .MathJax {
    max-width: inherit;
}
!*.platform_ios .cai_container .MathJax,
.platform_android .cai_container .MathJax {
    -webkit-text-size-adjust: 150%;
}*!
.platform_android .cai_container input {
	-webkit-user-modify: read-write-plaintext-only;
}
!* focus styles *!
.cai_container .MathJax {
	min-height: 2.2em;
	padding: .8em;
}
@-webkit-keyframes color_change {
  from { color: #98e0ff; }
  to { color: #00abf4; }
}
@-moz-keyframes color_change {
  from { color: #98e0ff; }
  to { color: #00abf4; }
}
@-ms-keyframes color_change {
  from { color: #98e0ff; }
  to { color: #00abf4; }
}
@keyframes color_change {
  from { color: #98e0ff; }
  to { color: #00abf4; }
}
.cai_insert_select {
    -webkit-animation: color_change 1s infinite alternate;
  	-moz-animation: color_change 1s infinite alternate;
  	-ms-animation: color_change 1s infinite alternate;
  	animation: color_change 1s infinite alternate;
}
!*Bug 74097 asked to get rid of the Arrow*!
!*
.cai_container .cai_insert_select:after {
	display: inline-block;
    content: "";
    width: 15px;
    height: .8em;
    background: url(images/arrow.png) no-repeat center center;
}*!
.cai_box_selection.cai_insert_select
{
    display: none;
}
.cai_cursor_field.cai_allow_edit.cai_box_input 
{
    margin: 0;
    
}
.math .cai_cursor_field.cai_allow_edit.cai_box_input 
{
    -moz-transform: translateY(2px);
    max-height: 0.7em;
    font-size: 0.6em;
}



.cai_cursor_field.cai_allow_edit {
	border: solid 1px #00abf4;
	color: #00abf4;
    height: 1.5em !important;
    padding: 0px !important;
    margin: 0px 4px 3px;
    -moz-transform: translateY(-5px);
    transform: translateY(-5px);
}
.math .cai_cursor_field.cai_allow_edit {
	font-size: 0.8em !important;
    height: 0.8em !important;
    -moz-transform: translateY(2px);
    transform: translateY(2px);
}
.platform_ios .math .cai_cursor_field.cai_allow_edit, 
.platform_android .math .cai_cursor_field.cai_allow_edit {
	height: 1em !important;
}
!* for fake text box to be positioned by Justin *!
.cai_cursor_field2 {
	border: solid 3px red;
	pointer-events:none;
	position: absolute;
	display: block;
}

!* Removing CLIP from spans inside MathJax because it is cutting off our input boxes.  Fix for Bugs 74823, 74124, 74681 *!
!* Dear god I hope this works - Adam
 *
 * (Unfortunately prevents selection of the numerator / denominator of functions." ~jcarlson.
 * The suffering continues.
.MathJax span{
	clip: auto !important;
}
*!

.cai_cursor_field.cai_allow_edit{
	height: 1.3em !important;
	}
.math .cai_cursor_field.cai_allow_edit{
	}
.cai_cursor_field.cai_allow_edit, .math .cai_cursor_field.cai_allow_edit{
	background: #00ABF4;
    color: #FFFFFF;
}


.keypad-row, .keypad-grid {
    text-align:left;
}

!* Brought over from eq_editor.css *!


.EquationEditor.readOnly .input-box{
     background-color: rgba(0, 0, 0, 0.2);
}
.EquationEditor.readOnly {
        pointer-events:none;
}


.cai_dynamic_inputbox .mathquill-editable
{
    width: auto;
    min-width: 15em;
	max-width: 100%;
}
!* Adding pading to the left side because of italics fonts*!
.input.cai_dynamic_inputbox{
	padding-left: 0.5em;
}

!*.mathquill-editable .mathquill-root-block.mq-hasCursor{
	-moz-box-shadow:inset 0 0 5px 2px rgba(0,174,239,.3);
   -webkit-box-shadow:inset 0 0 5px 2px rgba(0,174,239,.3);
	box-shadow:inset 0 0 5px 2px rgba(0,174,239,.3);
	border-color: #0089d1;
}*!

.mathquill-editable .mq-cursor{
	min-width: 0.2em; !*Windows Chrome cursor appearance fix*!
}
.mathquill-editable .mq-cursor .mq-line{
	border-color: #0089d1;
}
.cai_button_fraction, .cai_button_sqrt, .cai_button_nrt, .cai_button_sup, .cai_button_sub, .cai_button_subsup, .cai_button_dot {
	background: url(images/equations_level1.png) no-repeat center 200px;
}

.cai_button_dot{
	background-position: center -460px;
}

.cai_button_fraction {
	background-position: center -154px;
}
.cai_button_sqrt {
	background-position: center -194px;
}
.cai_button_nrt {
	background-position: center -233px;
}
.cai_button_sup {
	background-position: center -272px;
}
.cai_button_sub {
	background-position: center -311px;
}
.cai_button_subsup {
	background-position: center -350px;
}
.cai_button_dot{
	background-position: center -460px;
}
.cai_button:hover, .cai_button:focus, .keypad-item:hover {
    border-color: #0785AB;
    box-shadow: 0 0 0.3em #666666;
}
.mathquill-rendered-math, .mathquill-root-block, .mathquill-editable{
	!*width: 100%;*!
}

!*Toolbar Styles*!
.toolbar {
	padding-bottom: 3px;
	padding-left: 3px;
}
.toolbar button {
	background-color: transparent;
	border: 1px solid #808080;
	border-radius: 25px;
	display: inline-block;
  	-moz-border-radius: 25px;
  	-webkit-border-radius: 25px;
	height: 25px;
	line-height: 25px;
	padding: 0 5px;
	overflow: hidden;
	margin-right: 3px;
	margin-top: 3px;
	cursor: pointer;
	text-align: center;
	font-size: 20px;
	min-width: 25px;
	-webkit-transition: color .2s ease-in, background-color .2s ease-in, -webkit-box-shadow .2s ease-in;
	-moz-transition: color .2s ease-in, background-color .2s ease-in, -moz-box-shadow .2s ease-in;
	transition: color .2s ease-in, background-color .2s ease-in, box-shadow .2s ease-in;
}
.toolbar button:after{
	position: relative !important;
}
.toolbar button:hover, .toolbar button:focus {
	background-color: #fff;
	border-color: #00abf4;
	color: #00abf4;
	 -webkit-box-shadow: 0em 0em .1em #000;
	-moz-box-shadow: 0em 0em .1em #000;
	box-shadow: 0em 0em .1em #000;
}

.cai_numpad_input{
  width: 60px;
}

div.cai_selected_tab, div.cai_selected_tab:hover {
  	background-color: #fff;
  	border-color: #00abf4;
}
.cai_question {
  float: right;
}

!*Icons for Undo, Redo, and Delete*!
.cai_nav_undo, .cai_nav_redo, .cai_nav_del{
	background: url(images/undo_redo_delete.png) no-repeat 6px center;
	text-indent: -9999px;
	width: 30px;
}
.cai_nav_undo{
	background-position: 7px 5px;
}
.cai_nav_undo:hover, .cai_nav_undo:active{
	background-position: -92px 5px;
}
.cai_nav_redo{
	background-position: -192px 5px;
}
.cai_nav_redo:hover, .cai_nav_redo:active{
	background-position: -292px 5px;
}
.cai_nav_del{
	background-position: -357px 5px;
}
.cai_nav_del:hover, .cai_nav_del:active{
	background-position: -451px 5px;
}

!* @end *!

.cai_button_fraction, .cai_button_sqrt, .cai_button_nrt, .cai_button_sup, .cai_button_sub, .cai_button_subsup, .cai_button_dot {
	background: url(images/equations_level1.png) no-repeat center 200px;
	width: 32px;
	text-indent: -9999px;
}

!*Bug 142302 & 143556*!
.browser_safari .keypad-item,
.platform_ios .keypad-item,
.platform_android.browser_airsecurebrowser .keypad-item
{
    vertical-align: middle;
}
.cai_button_fraction {
	background-position: center -154px;
    width: 20px;
}
.cai_button_sqrt {
	background-position: center -194px;
}
.cai_button_nrt {
	background-position: center -233px;
	width: 36px;
}
.cai_button_sup {
	background-position: center -272px;
	width: 27px;
}
.cai_button_sub {
	background-position: center -311px;
	width: 27px;
}
.cai_button_subsup {
	background-position: center -350px;
	width: 28px;
}
.cai_button_dot{
	background-position: center -460px;
    width: 20px;
}*/

/* @end */

/* prevent EQ from expanding beyond the rest of the item */


/* If "input" then we want 100% width */
/*.widget-body .input
{
    width: auto;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    display: block;
}
.noColumns .layout1 .widget-body .input {
	max-width: 52em;
}
.noColumns .widget-body .input
{
    max-width: 40em;
}

.layout_8 .noColumns  .widget-body .input
{
    max-width: 60em;
}*/

/*limiting max width on iOS and Android items */

/*.platform_ios .widget-body .input, .platform_ios .layout_8 .noColumns  .widget-body .input,
.platform_android .widget-body .input, .platform_android .layout_8 .noColumns  .widget-body .input
{
    !*max-width: 49em; Was 40em, expanded to 50em because of bug 148814 - now REMOVED by the same bug *!
	!*Restored by bug 170619 - the issue in 148814 is too isolated to warrent creating an issue in all cases*!
	max-width: 50em;
}


    .widget-body .input.cai-dynamic-inputbox .mathquill-root-block
    {
        width: auto;
        min-width: 10em;
        max-width: 15em;
        display: block;
    }

.widget{
	text-align: left !important;
}*/


/*



.keypad {
  
  -webkit-touch-callout: none; 
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.toolbar {
  border: solid 1px #ccc;
  border-bottom: none;
  background-color: rgba(230,230,230,0.4);
  line-height: 1.5em;
}

.toolbar button {
  vertical-align: middle;
  line-height: 1.6;
}

.toolbar .keypad-tab-button {
  line-height: 1em;
  vertical-align: bottom;

  display: inline-block;
  padding: .2em;
  border: solid 1px transparent;
  border-bottom: none;
  margin-left: .4em;
}
.toolbar .keypad-tab-button:hover {
  border-color: black;
  cursor: pointer;
}
.toolbar .keypad-tab-button.selected {
  border-color: #00abf4;
  background: white;
}

.keypad-body {
  	border: 1px solid #00abf4;
  	padding: 2px;
  	text-align: center;
   	min-width: 425px;
	border-radius: 0 0 5px 5px;
}
.keypad-body:after {
    clear: both;
    content: "";
    display: block;
    font-size: 0;
    height: 0;
    visibility: hidden;
}
.activeItem .keypad-body{
	box-shadow: 0 0 0.3em #999;
}
.keypad-tab {
  display: none;
}
.keypad-tab.selected {
  	display: block;
}

.keypad-item:hover {
  box-shadow: 0 0 4px #888;
  -webkit-box-shadow: 0 0 4px #888;
  -moz-box-shadow: 0 0 4px #888;
}

.keypad-item:active {
  box-shadow: inset 0 0 2px #aaa;
  -webkit-box-shadow: inset 0 0 2px #aaa;
  -moz-box-shadow: inset 0 0 2px #aaa;
}
!*
.keypad-rows {
  	margin-left: 85px;
}*!
.keypad-row {
  	border-top: solid 1px #ccc;
 	margin: 2px;
}
.keypad-row:nth-child(1) {
	border-top: none;
}
.keypad-rows .keypad-row {
	padding-left: 5px;
	padding-top: 3px;
	margin-left: 0px;
}
.keypad-grid {
	display: block;
	float: left;
	!*width: 85px;*!
	border-right: solid 1px #ccc;
	text-align: left;
	padding-top: 3px;
	margin: 0 2px 2px;
}
.keypad-grid-row {
	padding-bottom: 6px;
}*/
#ruler {
    position: absolute;
    top: 250px;
    left: 250px;
    width:100vh;
    height:15vh;
   }
   
  #rulerDragHandle {
    width:100%;
    height:100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto auto;
    position: absolute;
  }
  
  #rotatedRuler {
    width:100%;
    height:100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto auto;
    position: absolute;
    background-image:url(../images/ruler.png);
    background-repeat: no-repeat;
    background-size: contain;
  }
  
  #rotatedRulerHandle {
    position: absolute;
    left: -35px;
    top: 40px;
  }
  #basicCalculatorHandle {
    position: absolute;
    left: -35px;
    top: 40px;
	}
	#basicCalculatorHandleDown {
    position: relative;
    top: 5px;
  }
  #scientificCalculatorHandle {
    position: absolute;
    left: -35px;
    top: 40px;
	}
	#scientificCalculatorHandleDown {
    position: relative;
    top: 5px;
  }
  #graphingCalculatorHandle {
    position: absolute;
    left: -35px;
    top: 40px;
	}
	#graphingCalculatorHandleDown {
    position: relative;
    top: 5px;
  }
  #numericKeypadHandle {
    position: absolute;
    left: -35px;
    top: 40px;
	}
	#numericKeypadHandleDown {
    position: relative;
    top: 5px;
  }
  #protractor {
    position: absolute;
    top: 250px;
    left: 250px;
    width:50vh;
    height:25vh;
   }
   
  #protractorDragHandle {
    width:100%;
    height:100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto auto;
    position: absolute;
  }
  
  #rotatedProtractor {
    width:100%;
    height:100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto auto;
    position: absolute;
    background-image:url(../images/protractor.png);
    background-repeat: no-repeat;
    background-size: contain;
  }
  
  #rotatedProtractorHandle {
    position: absolute;
    left: -35px;
    top: 50px;
  }