/* 	z = 1 back (zoom map)
	z = 2 zoom screen front (inst panel)
	z = 3 map screen front (big map)
	z = 4 should always be visible (chat, canvas boat path)
	z = 5 unexpected - place in front (small buttons)
*/
/* -o-calc() opera, -webkit-calc() google/safari, -moz-calc() firefox */

* { margin:0; padding: 0; box-sizing: border-box; }

body { 
	font: 13px Helvetica, Arial;
	overflow: hidden;
/* 	position: absolute; */
}
footer {
	position: absolute;
	bottom: 0;
}

#s1, #sG, #sI, #sP , #sE, #sI1, sI2{
	display: none;   
	width: 100%; height: 100%;
	position: absolute;
}
.clear {
    clear: both;
}

/* Screen 1 and end- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  */

#s1 {
	display: block;
	background-image: url(../img/stockholm.png);
	
	/* Full height */
    height: 100%; 

    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

}
#sE, #sI1, sI2{
	background: lightyellow;
}

.s1_input {
	position: absolute;	
	font-size:20px;
}

#s1_inst {
	top: 70px;
	background: lightgreen;
	left: 70px; 
	width: 150px; height: 70px;
	
}

#s1_inst2{
	top: 170px;
	background: lightgreen;
	left: 70px; 
	width: 150px; height: 70px;
	
}


#s1_player {
	top: 70px;
	left: -o-calc(100% - 220px); left: -webkit-calc(100% - 220px); left: -moz-calc(100% - 220px); 
	margin-right: 170px;
	background: rgb(140,0,160);
	width: 150px; height: 70px;
}
#s1_player2 {
	top: 170px;
	left: -o-calc(100% - 220px); left: -webkit-calc(100% - 220px); left: -moz-calc(100% - 220px); 
	margin-right: 170px;
	background: rgb(140,0,160);
	width: 150px; height: 70px;
}
#s1_titleDiv {
	text-align: center;
	top: 85%;
	position: absolute;
	width: 100%;
}
#s1_heading {
	color: white;
	font-style: bold;
	font-size: 70px;
}

#sE_block {
	position: absolute;
	top: 200px;
	left: 50%;
	margin-left: -150px;
	width: 300px;
	background-color: lightgrey;
	padding: 20px;
	padding-left: 40px;
	border: 1px solid rgb(175,175,175);
}
.s1_input, .sE_input { 
height: 30px; padding-left: 10px; padding-right: 10px; width: 110px;}
/* Screen General - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.sG_chat {
	position: absolute;
	z-index: 4;
	background:beige;
	background-image: url(../img/chat_background.png);
	width: 30%; left: 70%;
	overflow-y: scroll;
	border-color: rgb(175,175,175);
	border-width: 1px;
	border-style: solid;
	touch-action: manipulation;
	font-size: 15;
	padding: 8px;
} 		/* z = 4 */		

#sG_submit {
	position: absolute;
	top: -o-calc(100% - 50px); top: -webkit-calc(100% - 50px); top: -moz-calc(100% - 50px); 
	height: 50px; width: 9%; left: 91%;
	z-index: 6;
	touch-action: manipulation;
}

#sG_full, #sG_full2 {
	display: none;
}
#sG_map{
	position: absolute;
	width: 100%; height: 100%;
	overflow-x: scroll;
	overflow-y: scroll;
	background: rgb(255,255,255);
	
} 		
#sG_pic {
	background: url(../img/Smap.png);
	height: 100vh;
	z-index: 3;
	position: absolute;
	
}		/* z = 3 */
#sG_canvas, #sG_canvas2 {
	position: absolute;
	z-index: 4;
	width: 148.19655vh;
	height: 100vh;
}

#sG_map_buttonA, #sG_map_buttonB, #sG_map_buttonC, #sG_map_buttonD {
	z-index: 4;
	position: absolute;
	width: 50px;
	height: 50px;
	background-color: lightblue;
	color: black;
	border-radius: 10px;
	font-size: 20px;
	font-weight: bold;
}
#sG_back {
	position: absolute;
	width: 75px; height: 100px;
	z-index: 5;
	color: white;
	font-size: 20px;
	background: rgb(140,0,160);
	top: 5px;
	right: 5px;
}
.sG_viewMap {
	position: absolute;
	width: 95px; height: 70px;
	z-index: 5;
	color: white;
	font-size: 20px;
	background: rgb(140,0,160);
	bottom: 32.5px;
	left: -o-calc(50% - 47.5px); left: -webkit-calc(50% - 47.5px); left: -moz-calc(50% - 47.5px);
}
.sI_rollAdjust{
	position: absolute;
	z-index: 3;
	bottom: 110px;
	width: 45px;
	height: 45px;
	background-color: Transparent;
	border-color: Transparent;
}

.sG_avatar{
	width: 100px;
	height: 200px;
	position: absolute;
	z-index: 2;
	top: -o-calc(50% - 100px); top: -webkit-calc(50% - 100px); top: -moz-calc(50% - 100px); 
} 	/* z = 2 */

#sG_warningDiv{
	position: absolute;
	top: 10px;
	width: 69%;
	z-index: 3;
}

.sG_warningBox{
	width: 435px;
	float: right;
	min-height: 80px;
	visibility: visible;
	z-index: 3;
	background-color: rgb(75,75,75);
	border-radius: 20px;
	font-size: 20px;
	color: red;
	font-style: bold;
}	/* z = 3 */
#sG_timeInfo{
	width: 100px; height: 50px; top: 5px;
	float: right; clear: both;
	z-index: 3;
    text-align: right;
    padding-top: 9px;
    color: black;
    font-size: 20px;
} 	/* z = 3 */

.sG_dashWind {
	color: black;
	font-size: 14pt;
	width: 80px;
	position: absolute;
	top: 75px;
	text-align: center;
}
.sG_dashArrow{
	position: absolute;
	top: 15px;
	width: 50px;
	height: 50px;
}
.sG_dashSpeed, .sG_dashAngle {
	color: #32CD32;
	font-size: 20px;
	text-align: center;
	width: 75px;
	position: absolute;
	bottom: 42.5px;
	height: 50px;
	background-color: rgb(75,75,75);
}
.sG_dashSpeed {
	left: -o-calc(50% + 145px); left: -webkit-calc(50% + 145px); left: -moz-calc(50% + 145px);
}
.sG_dashAngle {
	left: -o-calc(50% - 220px); left: -webkit-calc(50% - 220px); left: -moz-calc(50% - 220px);
	padding-top: 12.5px;
}
#sG_gpsfailure {
	font-size: 10pt;
	position: absolute;
	width: 70px;
	left: -o-calc(70% - 80px); left: -webkit-calc(70% - 80px); left: -moz-calc(70% - 80px);
	top: 130px;
}
.sG_broadcasts {
	font-size: 15pt;
	position: absolute;
	width: 500px;	
	top: 110px;
}

#sG_mapZoom {
	position: absolute;
	background: rgb(255,255,255); 
	background-image: url(../img/smap3.svg);
	height: 100%; width: 70%;
	background-repeat: no-repeat;
}

#sG_pixels {
/* 	background: "../img/Smap2.svg" */
    height: 100%;
    width: 100%;
}
/* Screen Instructor - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  */

.sI_titleBox{
	background-color: #948B54;
	width: 100%;
	min-height: 50px;
	text-align: center;
	padding-top: 14px;
	margin-bottom: 15px;
}

.sI_titleBox h1{
	font-size: 20px; 
	color: white;
}

.sI_btn, .sI_btn2, .sI_btn3, .sI_btnSmall, .sI_btnSmall_Pause{
	height: 45px;
	margin-bottom: 15px;
	border-radius: 10px;
	font-size: 15px; 
}
.sI_btn{	
	width:80%;
	margin-left: 10%;
}
/* headings lv2 */
.sI_btn2{ 
	width:80%;
}
/* buttons lv2 */
.sI_btn3{
	width:80%;
	margin-left: auto;
}
.sI_btnSmall, .sI_btnSmall_Pause{
	width:45%;
}

.sI_colorHold{
	margin-top: 10px;
	height: auto;
	text-align: left;
	padding-left: 10%; padding-right: 10%;
	width: 20vw;
}
.sI_colorBox{
	width: 22%;
	margin: 0px;
	height: 50px;
	margin-bottom: 15px;
}

/* PANEL 1 - - - - - - - - - - - - - -  */

#sI_panel1{
	height: 100%;
	width: 20%;
	position: absolute;
	z-index: 4;
	background-color: #C5BD98;
	position: absolute;
	overflow-y: scroll;
} 	/* z = 4 */

.sI_message{
	max-width: 100%; min-width: 100%;
	min-height: 200px; max-height: 400px;
	margin-bottom: 20px;
/* 	margin-left: 10%; */
	font-size: 13px;
	padding-top: 15px; padding-bottom: 15px;
	padding-left: 15px; padding-right: 15px;
}

/* PANEL 2 - - - - - - - - - - - - - -  */

/* both panels... */
.sI_lv2Sce, .sI_lv2Man, .sI_lv2Sce3, #sMan, #sMan2, .sI_lv2Env, .sI_lv2Cap, .sI_lv2Bri, .sI_lv2Eng, .sI_lv2Hot, .sI_lv2Doc, .sI_lv2War, .sI_lv2Sce1, .sI_lv2Sce1_2, .sI_lv2Sce2, .sI_lv2Crew, .sI_lv2ManReset, .sI_lv2Auto{
	display: none;			
}
.sI_lv2Sce, .sI_lv2Man, .sI_lv2Sce3, #sMan, #sMan2, .sI_lv2Env, .sI_lv2Cap, .sI_lv2Bri, .sI_lv2Eng, .sI_lv2Hot, .sI_lv2Doc, .sI_lv2War, .sI_lv2Sce1, .sI_lv2Sce1_2, .sI_lv2Sce2, .sI_lv2Crew, .sI_lv2ManReset, .sI_lv2Auto{
	position: absolute;
	border-style: solid; border-width: 1px; border-color: #C5BD98;
	height: 100%;
	width: 20vw;
	top: 0px;
	z-index: 7;
	text-align: center;
	overflow-y: scroll;
}

#sI_panel2{
	position: absolute;
	left: 20vw;
	z-index: 7;
}	/* z = 7 */

.sI_msgBtn{
	margin-left: 5%;
	margin-right: 5%;
	margin-bottom: 8px;
	padding-left: 8px; padding-right: 8px;
	padding-top: 8px; padding-bottom: 8px;
	font-size: 13px;
	margin-left: auto; margin-right: auto;
	text-align: left;
	width: 90%;
}

.sI_lv2SceButton{
	clear: both;
	margin-top: 15px;
	width: 100%; padding-top: 2px;padding-bottom:2px;
}
.SI_lv2Sce1Time{
	max-width: 30%; min-width: 30%; 
	height: 35px; max-height: 35px;
	float: left;
	clear: both;
	padding-left: 5%;
	padding-right: 10px;
	font-weight: bold;
	font-size: 13px;
	text-align: left;
}
.SI_lv2Sce1Message{
	max-width: 65%; min-width: 65%; 
	float: left;
	padding-right: 5%;
	font-size: 13px;
	text-align: left;
}
.sI_lv2SceTimeText{
	float: left;
	clear: both; 
	min-width: 25%; max-width: 25%;
	margin-left: 5%;
	font-weight: bold;
	font-size: 13px;
	height: 35px;
}
.SI_lv2SceMessageText{
	max-width: 65%; min-width: 65%; 
	float: left;
	font-size: 13px;
	height: 35px;
}
.sI_scenTextArea{
	margin-left: 10%;
	min-height: 60px; max-height: 200px;
	float: left;
}
#sI_timeInfoScen{
	width: 100px; height: 30px;
	clear: both;
	z-index: 3;
    text-align: center;
    color: black;
    font-size: 17px;
	margin-left: auto; margin-right: auto;
	margin-top: 5px;
	margin-bottom: 10px;
} 	/* z = 5 */

/* discard? - - - - - - - - - - - -  */
.sI_broadcast{
	height: 50px;
	width:100%;
}
.sI_dis{
	height: 30px;
	width:50%;
	float: left;
}
.sI_com{
	float: left;
	width: 50%;
}
#sI_endGame, #sI_pauseGame{
	width: 50%;
	height: 50px;
	margin-top: 5px;
	margin-bottom: 10px;
	float: left;
	font-size: 15px;
}
.sI_lv2Inputs{
	width: 100%;
	height: 30px;
	margin-bottom: 12px;
}
.sI_lv2Labels {
    clear: both;
    float:left;
    min-width: 50%;
    margin-bottom: 5px;
    margin-left: 5px;
    text-align: left;
}
.sI_bullets {
	margin-left: 10px;
	list-style-type:disc;
	list-style-position: inside;
}
.sI_liHeadings {
	margin-left: 10px;
	list-style-type:none;
	font-weight: bold;
}
.sI_liMessages {
	margin-left: 20px;
	margin-bottom: 10px;
}
.sI_lv1Back{
	height: 50px;
	background-color:lightblue;
	position: absolute;
	top: 65px;
	width: -o-calc(100% - 10px); width: -webkit-calc(100% - 10px); width: -moz-calc(100% - 10px);
	left: 5px;
}

/* Screen Player - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  */
#sP_controlBox{
	width: 50%;
	height: 225px;
	position: absolute;
	bottom:0;
}	
.sG_clinometer{
	position: absolute;
	top: -3px;
	left: -o-calc(50% - 144px); left: -webkit-calc(50% - 144px); left: -moz-calc(50% - 144px);
	width: 292px;
	height: 121px;
}
.sG_clNeedle{
	position: absolute;
	top: 45px;  /* 45 hits top, so start at 185 - height of ball (20)  */
	left: -o-calc(50% - 10px); left: -webkit-calc(50% - 10px); left: -moz-calc(50% - 10px);
	width: 20px;
	height: 390px;
	
}
.sP_turnL, .sP_turnR{
	position: absolute;
	height: 85px;
	width: 85px;
	background-color: Transparent;
	border-color: Transparent;
	font-size: 20px;
	touch-action: manipulation;
	bottom: 25px;
}
.sP_turnL:active, .sP_turnR:active{
 	opacity: 0.5;
    filter: alpha(opacity=50); /* For IE8 and earlier */
    color: white;
}
.sP_turnL, .sI_crewMinus{
	background-image: url(../img/left.png);
	background-size: 100% 100%;
	background-repeat: no-repeat;
	padding-left: 25px;
}
.sP_turnR, .sI_crewPlus{
	background-image: url(../img/right.png);
	background-size: 100% 100%;
	background-repeat: no-repeat;
	padding-right: 25px;
}

#sP_message {
	position: absolute;
	top: -o-calc(100% - 50px); top: -webkit-calc(100% - 50px); top: -moz-calc(100% - 50px); 
	height: 50px; width: 21%; left: 70%;
	z-index: 5;
	border-color: rgb(175,175,175);
	border-width: 1px;
	border-style: solid;
	touch-action: manipulation;
	padding-left: 10px;
}

.sI_crewMinus, .sI_crewPlus{
	height: 10%;
	width: 30%;
	background-color: Transparent;
	border-color: Transparent;
	font-size: 20px;
	touch-action: manipulation;
	bottom: 25px;
}
.sI_crewMinus:active, .sI_crewPlus:active{
 	opacity: 0.5;
    filter: alpha(opacity=50); /* For IE8 and earlier */
    color: white;
}

.sI_crewTotal, .sI_crewCaptain, .sI_crewEngineering, .sI_crewHotel, .sI_crewDoctor {
	color: #32CD32;
	font-size: 20px;
	padding-top: 12.5px; padding-bottom: 12.5px; padding-left: 20px; padding-right: 20px;
	text-align: center;
	width: 75px;
	height: 50px;
	background-color: rgb(75,75,75);
}

