body {
margin:0;
padding:0;
font-family: arial;
/* font-size: 1.6vw;  */
/* -webkit-text-size-adjust:100%; */
}
/*
@media screen {
	body {
			-webkit-text-size-adjust:none;
	}	
}*/

.full {
 width: 100%;
}
.half {
 width: 50%;
}
.semi_half{
	width: 48%;
}
.mid {
 text-align: center;
}


.btn {
 cursor: pointer;
}
.txt_right {
 text-align: right;
}

.logo_ew {
   margin-top:0em;
   height: 2.1em;
   width:15em;
   text-align:center;
	font-size:
   }
.logo_ew img {
   /*width:100%;*/
   height:100%;
}


.nav_bar {
  position: absolute;
  top: 0em;
  width: 100%;
  height: 2.1em;
  overflow: hidden;
}

.content {
  position: absolute;
  top: 2.1em;

  width: 100%;
  bottom:0em;
  overflow-y:auto;
  overflow-x:hidden;
-webkit-overflow-scrolling: touch;
}
.content_whitespace {
 height: 2.1em;
 width:100%;
}

.f_right {
  float: right;
}

.f_left {
  float: left;
}
.clear {
 clear: both;
}

.logo_ew {
  margin-left: auto ;
  margin-right: auto ;

}

.change_notes {
font-family: Courier New;	
font-size: 75%;

}

.return {
  float: left;
}
.return_btn {
  height: 1.5em;
  vertical-align: middle;
}

.icon_bar {
  float: left;
 margin-left:5em;
 margin-right:1em;
 margin-top:0.1em;
 margin-bottom:0.2em;
  
}
.icon {
 cursor: pointer;
 height:1.8em;
 width:2em;
 margin-left:0.2em;
 margin-right:0.2em;
 }
.icon img {
 height:1.8em;
 width:2em;
	
}

.icon_small {
 cursor: pointer;
 height:1.2em;
 width:1.3em;
 margin-left:0.1em;
 margin-right:0.1em;
 }

 .arc_small {
 height:1em;
 width:1em;
 margin-left:0.1em;
 margin-right:0.1em;
 }


.prime_bar {
  width: 100%;
  padding-left: 1em;
  padding-right: 1em;
-webkit-box-sizing: border-box;
   -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
     -o-box-sizing: border-box;
        box-sizing: border-box;
}

.prime_btn {
 width: 100%;
 cursor: pointer;
}
.prime_btn_3 {
 display: inline-block;
 width: 30%;
}
.modify_btn {
 width: 6em;
 cursor: pointer;
}

.tiles {
   Text-align:center;
}
.tiles:before, 
.tiles:after {
 display: table;
 line-height: 0;
 content: "";
}
.tiles:after {
 clear: both;
}
.tile_area {
 margin:1em;
 position: relative; 
 display:inline-block;
 border-radius: 0.5em;
 -moz-border-radius: 0.5em;
 -khtml-border-radius: 0.5em;
 -webkit-border-radius: 0.5em;

-webkit-box-sizing: border-box;
   -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
     -o-box-sizing: border-box;
        box-sizing: border-box;

 width:50em; 		
 max-width: 90%;
 height:12em;
}

.army_logo {
   background-image:url("pics/royal_logo.jpg") ;
   background-size: 100%;
   background-repeat: no-repeat;
   background-position:center;
}

.faction_btn {
 margin:1em;
 position: relative; 
 display:inline-block;
 cursor: pointer;
 border-radius: 0.5em;
 -moz-border-radius: 0.5em;
 -khtml-border-radius: 0.5em;
 -webkit-border-radius: 0.5em;

-webkit-box-sizing: border-box;
   -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
     -o-box-sizing: border-box;
        box-sizing: border-box;

 width:20em;
 max-width: 90%;
 height:20em;

}

.faction_title {
  display: block;
  position: absolute;
 min-height:1.2em;
 left:0em;
 right:0em;
 top:1em;
 color: white;	
}

.login_bar {
  float: right;
}

.login_field {
 width:6em;
 margin-right: 0.6em ;
 float:left;
}
.login_input {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.hidden {
 display:none;
}

.popup_backdrop {
 position:absolute;
 z-index:2000;
 background:black;
 top:0px;
 bottom:0px;
 left:0px;
 right:0px;
    opacity: 0.5;       /* modern browser */
    -moz-opacity: 0.5;  /* older Mozilla browser */
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; /* IE8 in Standard Compliant Mode */
    filter:alpha(opacity=50); /* IE5.x -7.0 */


}
.critical_frame{
 position: relative; 
 top: 1em;
/* height: 80vh; */
width: 60vh;
margin-left:auto;
margin-right:auto; 
	
}
.critical_chart{
	position: relative; 
float: left;
/* width: 33%; */
	
}
.critical_chart:before, 
.critical_chart:after {
 display: table;
 line-height: 0;
 content: "";
}
.critical_chart:after {
 clear: both;
}
.critical_box {
 position:absolute;
 display:block;
 top:12%;
 
	left:auto;	
	right:auto;
}

#poi_canvas {
 position: relative; 
margin-left:auto;
margin-right:auto; 
		
}

.popup_main {
 position:absolute;
 top:12%;
 left:20%;
 right:20%;
 z-index:2100;
 max-height:75%;
  overflow-y:auto;
  overflow-x:hidden;
-webkit-overflow-scrolling: touch;

}

.popup_pic_frame {
 /* text-align: center; */
 width:100%;
 height:75vh;
}

.popup_pic {
 /* width: 100%;  */
    position:absolute;
    left:0;
    right:0;
    top:0;
    bottom:0;
    margin:auto;
 max-width:100%;
 max-height:100%;
 z-index: -1;
}

.collapse_btn {
 cursor:s-resize;
}

.editor {
/* font-size: 1.6vw;	 */
}

.editor_info {
 position:absolute;
 top: 0em;
 left: 1%;
 right:51%;
 height: 14em;

}

.editor_result {
 position:absolute;
 top:0em;
 left: 51%;
 right: 1%;
 bottom:0em;
  overflow-y:auto;
  overflow-x:hidden;
 font-size: 1.2vw;
-webkit-overflow-scrolling: touch;
}

.editor_toolbox {
 position:absolute;
 top:3em;
 right: 51%;
 left: 0.5em;
 bottom:0em;
  overflow-y:auto;
  overflow-x:hidden;
 font-size: 1.2vw;
-webkit-overflow-scrolling: touch;
}

.tab_toolbox {
 position:absolute;
 top:0em;
 left: 0em;
 width: 100%;
 bottom:0em;
  overflow-y:auto;
  overflow-x:hidden;
-webkit-overflow-scrolling: touch;
}

.editor_tab {
 position:absolute;
 top:0em;
 right: 51%;
 left: 0.5em;
 height:3em;
 font-size: 1.2vw;
  overflow-y:hidden;
  overflow-x:hidden;
}

.guide {
 position:absolute;
 top:0em;
 right: 51%;
 left: 0.5em;
 bottom:0em;
  overflow-y:auto;
  overflow-x:hidden;
-webkit-overflow-scrolling: touch;
}


.formation_form_num {
  width:3em;

}
.formation_form_unit {


}
.formation_form {
width: 100%;
}

/* Checkbox Code */

:root input[type="checkbox"] {
position : absolute;
opacity : 0;
}
:root input[type="checkbox"].ios-switch + div {
display : inline-block;
vertical-align : middle;
width : 2.8em;              /* width of off Box */
height : 0.8em;
border : rgba(0, 0, 0, 0.3) solid 0.1em;
border-radius : 999px;
margin : 0.1em 0.5em;        /* Outside Margin */
background : white;
background-image : linear-gradient(rgba(0, 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 : 0.4s;
transition-property : padding, width, background-position, text-indent;
box-shadow : 0 0.1em 0.1em rgba(0, 0, 0, 0.2) inset, 0 0.45em 0 0.1em rgba(0, 0, 0, 0.05) inset;
font-size : 110%;
}
:root input[type="checkbox"].ios-switch:checked + div {
padding-left : 2.0em;
width : 0.8em;               /* padding + width is width of on Box */
background-position : 0 0;
}
:root input[type="checkbox"].ios-switch + div:before {
content : 'On';
float : left;
width : 1.25em;    /* Size of Dot */
height : 1.25em;   /* Size of Dot */
margin : -0.1em;   /* Translation of On -text and Dot*/
border : rgba(0, 0, 0, 0.35) solid 1px;
border-radius : inherit;
background : white;
background-image : linear-gradient(rgba(0, 0, 0, 0.2), transparent);
box-shadow : 0 0.1em 0.1em 0.1em hsla(0, 0%, 100%, 0.8) inset, 0 0 0.5em rgba(0, 0, 0, 0.3);
color : white;
text-shadow : 0 -0.1em 0.1em rgba(0, 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 0.1em 0.1em rgba(0, 0, 0, 0.2) inset, 0 0.45em 0 0.1em rgba(0, 0, 0, 0.05) inset, 0 0 0.4em 1px rgba(0, 100, 236, 0.5);
}
:root input[type="checkbox"].ios-switch + div:before, :root input[type="checkbox"].ios-switch + div:after {
font : bold 60%/1.5 sans-serif;    /* vertical position of text */
text-transform : uppercase;
}
:root input[type="checkbox"].ios-switch + div:after {
content : 'Off';
float : left;
text-indent : 0.5em;
color : rgba(0, 0, 0, 0.45);
text-shadow : none;
}
.ew_checkbox {

}
/*
label {
position : relative;
display : block;
padding : 0.8em;
border : silver solid 1px;
border-top-width : 0;
background : white;
font : bold 110% sans-serif;
}
label:first-of-type {
border-top-width : 1px;
border-radius : 0.6em 0.6em 0 0;
}
label:last-of-type {
border-radius : 0 0 0.6em 0.6em;
box-shadow : 0 1px hsla(0, 0%, 100%, 0.8);
}
  */
  

/* :not(:checked) is a filter, so that browsers that don’t support :checked don’t
   follow these rules. Every browser that supports :checked also supports :not(), so
   it doesn’t make the test unnecessarily selective */
/*
.rating:not(:checked) > input {
    position:absolute;
    top:-9999px;
    clip:rect(0,0,0,0);
}

.rating:not(:checked) > label {
    float:right;
    width:1em;
    padding:0 .1em;
    overflow:hidden;
    white-space:nowrap;
    cursor:pointer;
    font-size:200%;
    line-height:1.2;
    color:#ddd;
    text-shadow:1px 1px #bbb, 2px 2px #666, .1em .1em .2em rgba(0,0,0,.5);
}

.rating:not(:checked) > label:before {
    content: '';
}

.rating > a ~ label {
    color: #f70;
    text-shadow:1px 1px #c60, 2px 2px #940, .1em .1em .2em rgba(0,0,0,.5);
}

.rating:not(:checked) > label:hover,
.rating:not(:checked) > label:hover ~ label {
    color: gold;
    text-shadow:1px 1px goldenrod, 2px 2px #B57340, .1em .1em .2em rgba(0,0,0,.5);
}
.rating > label:active {
    position:relative;
    top:2px;
    left:2px;
}
*/

.rating:hover > a 
 {
    color: #ea0;
    text-shadow:1px 1px goldenrod, 2px 2px #B57340, .1em .1em .2em rgba(0,0,0,.5);
}

.rating > a:hover ~ a 
 {
    color: #9b9b8c;
    text-shadow:none;
}


.rating_gold {
    color: #ffc926;
    text-shadow:1px 1px goldenrod, 2px 2px #B57340, .1em .1em .2em rgba(0,0,0,.5);
}  
