@charset "UTF-8";

/*Desktop devices*/
	html {
		font-size: 1.2vmin;
	  }

/*Large tablets*/
@media screen and (min-width: 769px)and (orientation : portrait){
	html {
		font-size: 1.2vmin;
	  }
}

/*Medium tablets landscape*/
@media screen and (min-width: 1025px) and (orientation : landscape)  {
	html {
		font-size: 1.2vmin;
	  }
	}

/*Medium tablets portrait*/
@media screen and (max-width: 768px) and (orientation : portrait) {
	html {
		font-size: 1.6vmin;
	  }
	}

/*Phones landscape*/
@media screen and (max-width: 767px) and (orientation : landscape) {
	html {
	font-size: 2.6vmin;
	}
}

/*Phones*/
@media screen and (max-width: 479px) and (orientation : portrait) {
	html {
	font-size: 2.6vmin
	}
}

	*
		{box-sizing: border-box;
		-webkit-user-select: none;
		-khtml-user-select: none;
		-moz-user-select: none;
		-ms-user-select: none;
		user-select: none;
		}

	body {
		position:fixed;
		font-family: system-ui, "Myriad Pro", Helvetica, Arial, "sans-serif";
		background-image: linear-gradient(to bottom,  #0A466C 0%, #125D8B 50%, #3897D2 100%);
		background-color:#426FA3;
		margin: 0px;
		height: 100%;
		overflow: hidden;
		background-repeat: no-repeat;
   		background-attachment: fixed;
		
	}

	#nightsky {
		background-image: linear-gradient(to bottom,  #0f142e 0%, #0d2a41 60%,#234567 100%);
		webkit-transition: top 2s;
   		-moz-transition: top 2s;
    	 -o-transition: top 2s;
		transition: top 2s;
	}

	#canvas, #nightsky {
		position: fixed; 
		top: 0px;
		left: 00px;
		width: 100vw;
		height: 100vh;
		z-index: 0;
	}




.label { 
		display: flex;
		flex-direction: column;
		justify-content:flex-end;
		align-items: center; 
		color: #FFF;
	/*	font-family:"Myriad Pro", Helvetica, Arial, "sans-serif";*/
		font-style: normal;
		font-size: 1.33rem;
		line-height: 1.33rem;
		width:auto;
		height:auto;
	}

	.label.noDisplay {
		display: none;
	}

	.label.planet {
		font-style:italic;
		top: calc(-1rem - 0.5vh);
	}

	.label.moon {
		font-style:italic;
		top: calc(-1rem - 1vh)
	}
			
	.label.cnst {
		font-weight: bold;
		text-transform: uppercase;
		font-size: 1.4rem;
		line-height: 1.4rem;
		color: #FFFFFF;
		text-align: center;	
		opacity: 0.4;
	}
			
	.label.star {
		font-style:italic;
		color: #FFFF00;
		top: calc(-2.33rem - 1vh)
	}

	.label.spc {
		font-style:italic;
		color: #FFFF00;
		font-size: 1.33rem;
		line-height: 1.33rem;
		height:2rem; 
		top: calc(-2.5rem - 0.7vh)
	
	}

	.label.DSOs {
		font-weight: bold;
		color: #FF00FF;
		top: calc(-1.33rem - 0.75vh)
	}

	.label.meteorshower, .label.temp {
		font-style:italic;
		color: #FFF300;
		top: calc(-2.5rem - 0.5vh)
	}










/* - - - -  MAIN INTERFACE   - - - -*/

	#mainInterface {
		position: fixed;
		bottom:0;
	/*	font-family:"Myriad Pro", Helvetica, Arial, "sans-serif";*/
		width: 100vw;
		height: 15vh;
		display: -webkit-flex; /* Safari */
		-webkit-align-items: center; /* Safari 7.0+ */
		display: flex;
		align-items: flex-end;
		background-image: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.5));
	}

	#dateAndLoc {
		position: fixed;
		bottom:0;
		top:auto;
		margin: 1rem;
		width: auto;
		-webkit-align-items: baseline; 
		align-items: baseline;
		-webkit-flex-wrap: wrap;  
  		flex-wrap: wrap;
		flex-shrink: 1;
		-webkit-flex-shrink: 1; 
	}
	
	#wthrSymbol {
			height: 2.6rem;
		}
	
	#placeHolder {
		min-width: 8.5rem;
		flex-grow:1;
	}

	#tools {
		display: flex;
		align-items: center;
		position: fixed;
		bottom:0;
		right:0;
		margin-bottom: 0.5rem;
		margin-right: 1rem;
		width: auto;
		height: 6.5rem;
		padding: 1rem;
	}

	.vignet {
		flex-basis: 5rem;
		height: 5rem;
		margin-left:1.7rem;
		flex-shrink: 1;
	}

	.nodisplay {
		display: none;
	}

	#ursa {
		width: 5rem;
		height: 5rem;
		margin-left: 3rem;
		/*min-width: 60px;
		min-height: 40px;*/
	}

	#dateSetting, #locSetting {
		width:auto;
		display: -webkit-flex; /* Safari */
		-webkit-align-items: baseline; /* Safari 7.0+ */
		display: flex;
		align-items: baseline;
		-webkit-flex-wrap: wrap; /* Safari 6.1+ */  
  		flex-wrap: wrap;
		overflow:hidden;
	}

	#dateSetting , #dateSetting *, #locSetting * {
		color: #fff;
	}	

	#locSetting * {
		font-size: 1.7rem;
		height: 1.8rem;
		overflow:hidden;
	}

	#dateDisplay * {
		display:inline;
		width:auto;
	}


	#dateDisplay , #date-hh, #date-dot, #date-mm {
		font-size: 2.6rem;
		font-weight: bold;
	}

	#locSetting {
		text-transform: uppercase;
		height: 1.8rem;
	}
	
	#loc-name, #loc-coords, #loc-clouds {
		margin-left: 0.5rem;
		margin-right: 1rem;
	}

	#loc-lat {
		margin-right: 1rem;
	}

	#loc-coords *{
		display:inline;
		
	}

	#date-dot { 
		-webkit-animation: 1s blink step-end infinite;
		-moz-animation: 2s blink step-end infinite;
		-ms-animation: 2s blink step-end infinite;
		-o-animation: 2s blink step-end infinite;
		animation: 2s blink step-end infinite;
	}

	@keyframes "blink" {
	  from, to {
		color: transparent;
	  }
	  50% {
		color: #fff;
	  }
	}

	@-moz-keyframes blink {
	  from, to {
		color: transparent;
	  }
	  50% {
		color:  #fff;
	  }
	}

	@-webkit-keyframes "blink" {
	  from, to {
		color: transparent;
	  }
	  50% {
		color:  #fff;
	  }
	}

	@-o-keyframes "blink" {
	  from, to {
		color: transparent;
	  }
	  50% {
		color:  #fff;
	  }
	}


/* - - - -SETTING DATE AND PLACE   - - - -*/

	.customDateSetting  {
		position:fixed;
		overflow:hidden;
		margin-left: 10vw;
		margin-right: 10vw;
		top:10vh;
		width: 80vw; 
		height: auto;
		webkit-transition: top 0.4s;
   		-moz-transition: top 0.4s;
    	 -o-transition: top 0.4s;
		transition: top 0.4s;
		background-color: #123456;
		padding: 0.5rem; 
		padding-bottom: 1rem;
		color:#FFF; 
		z-index: 99;
		display: -webkit-flex; /* Safari */
		display: flex;
		opacity:1;
		border-radius: 1rem;
		}	

	#inputSet1, #inputSet2 {
		background-color: transparent;
	}


	#cust-dd, #cust-mn, #cust-yy, #cust-hh, #cust-mm, #custLoc-lat, #custLoc-lon, #cusLoc, #infoNavi, #infoBoard {
		-webkit-user-select: auto;
		-khtml-user-select: auto;
		-moz-user-select: auto;
		-ms-user-select: auto;
		user-select: auto;
		border-radius: 0.3rem;
	}

	#customDate {
		width: 100%;
	}

	#customDate *, #mapCtrl *  {
		display:inline-flex;
		flex-direction: row;
		flex-wrap: wrap;
		background-color: #FFF;
		font-weight: bold;
		font-size: 1.6rem;
		margin-right: 0.2rem;
		padding:0.5rem;
		color:#000;
		min-width: 4vw;
		text-align: right;
		}	

	#dateInputs, #inputSet1, #inputSet2, #dateButtons, #locButtons {
		display:inline-flex;
		flex-direction: row;
		background-color: transparent;
		alignment-baseline: baseline;
		align-items: baseline;
	}

	#cust-yy, #cust-mn, #cust-dd, #cust-hh, #cust-mm { 
		display: flex;
		flex-direction: row;
		justify-content:center;
		align-items: center;
		height: 3rem;
		font-size: 1.6rem;
		margin:0;
		margin-right: 0.5rem;
		padding:0.5rem;
		min-width: 4.25rem; 
		width: 7vw; 
		background-color: #FFF;
		border-radius: 0.5rem;	
		border: 0;
		text-align: center;
	}

	#cust-yy {
		min-width: 7rem;
		width:8vw;
	}

	#cust-mm {
		margin-right: 2rem;
	}



	#cust-dot1, #cust-dot2, #cust-dot3, #cust-dot4, #custLocLt, #custLocLn {
		background-color: transparent;
		color: #FFF;
		padding-left:0;
		padding-right:0;
		width:auto;
		min-width: 0;
		margin-right: 0.5rem;
	}
	
	.customLocSetting, .infoScreen  {	
		position: fixed;
		margin: 10vh 10vw 25vh 10vw;
		width: 80vw;
		height: 75vh;
	/*	margin: 0;
		width: 100vw;
		height: 100vh;*/

		webkit-transition: top 0.4s, width 0.4s, height 0.4s;
   		-moz-transition: top 0.4s, width 0.4s, height 0.4s;
    	 -o-transition: top 0.4s, width 0.4s, height 0.4s;
		transition: top 0.4s, width 0.4s, height 0.4s;
		z-index: 90;
		overflow: scroll;
		opacity:1;
		border-radius: 1rem;
	}

	#customLocSetting {
		overflow:hidden;
		
	}

	.message {
		position: fixed;
		top:0;
		left:0;
		right:0;
		height: auto;
		background-color: #FF0000;
		padding:1.4rem;
		font-size:1.8rem;
		font-weight: bold;
		line-height: 2rem;
		text-align: center;
		color: #FFF;
		border-radius: 0.5rem; 
		opacity: 1;
		transition: opacity 0.8s;
		z-index: 99;
	}

	.locHeader {
		display: flex;
	/*flex-grow: 1;*/
		background-color: #123456;
		color: #FFF;
		width:100%;
		height: auto;
		padding:0.5rem 1rem;
	}

	#mapInputs {
		display: flex;
	/*	flex-grow: 1;*/
		background-color: #123456;
		color: #FFF;
		width:auto;
		padding:1rem;
	}
	
	.hidden {
		top:100vh;
		display: none;
		width: 0px;
		height: 0px;
		overflow: hidden;
		opacity:0;
	}

	#mapCtrl {
		padding:0;
		margin: 0;
		margin-bottom: 0.5rem;
	}

	#mapInputs, #locInputs {
		display: flex;
		flex-wrap: wrap;
		margin:0;
		margin-top: 0.4rem;
		padding:0;
		align-items:baseline;
	}

	#mapInputs * , #locInputs * {
		margin-right: 1rem; 
		font-size: 1.6rem;
		padding:0;
	}

	#map_canvas {
		display:block;
		width: 100%;
		height: 100%;
		background-color: rgba(75,90,100,0.60);
	}

	#custLocLt, #custLocLn {
		color: #FFF;
		background-color: transparent;
		width: 3rem;
		margin-top: 0.5rem;
		margin-right: 0.5rem;
	}

	#custLoc-lat, #custLoc-lon { 
		height: 3rem;
		min-width: 12rem;
		font-size: 1.6rem;
		margin:0;
		margin-right: 1.5rem;
		margin-left: 0.5rem;
		padding:0.5rem;
		background-color: #FFF;
		border-radius: 0.5rem;	
		border:0;
		text-align: center;
	}

	#flex-grow1, #flex-grow3 {
		flex-grow: 10;
		min-width: 0;
		background-color: transparent;
	}

	#flex-grow2 {
		flex-grow: 1;
		min-width: 0;
		background-color: transparent;
	}

	#flex-grow4 {
		flex: 0;
		min-width: 0;
		background-color: transparent;
	}

	#headline1, #headline2 {
		font-size: 2rem;
		color:#FFF;
		text-align: left;
		display:block;
		padding:0 0 0 0;
		margin: 0 0 0 0;
		background-color: transparent;
	}	

	#headline1 {margin-left:0.5rem;}

	#headline2 {color:#FFF;}

	.close {
		background-color: transparent;
		color: #FFF;
		font-size: 4rem;
		padding:0;
		margin-right:1rem;
		text-align: right;
		width:4rem;
	}

	.close2 {
		background-color: transparent;
		color: #FFF;
		font-size: 2.8rem;
		padding:0;
		margin-right:1rem;
		text-align: right;
		width:4rem;
	}

	.close3 {
		background-color: transparent;
		color: #FFF;
		font-size: 2.8rem;
		padding:0;
		margin-right:0;
		text-align: right;
		width:4rem;
	}


	.infoScreen {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		right: 0;
		width: calc(80vw);
		background-color: #FFF;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		justify-content:flex-start;
		align-items: flex-start;
	}

	.infoScreen.hidden {
		top:100vh;
		display: none;
		width: 0px;
		height: 0px;
		overflow: hidden;
		opacity:0;
	}


	#infoNavi {
		border-radius: 0rem;
		display: flex;
		flex-direction: row;
		justify-content:flex-start;
		align-items: center;
		margin-bottom: 0.5rem;
		padding: 0.5rem 0 0.5rem 2rem;
		padding-top: max( 1rem,env(safe-area-inset-top,0) );
		padding-left: max( 1rem, env(safe-area-inset-left,0) );
		padding-right: max( 1rem, env(safe-area-inset-right,0) );
		width: 100%;
		height: auto;
		background-color: #123456;
	}

	.naviElement {
		display: inline-block;
		width: 10rem;
		color: rgba(255,255,255,0.5);
		height: auto;
		background-color: rgba(255,255,255,0.33);
		margin-right: 1rem;
		padding: 0.5rem 1rem 0.5rem 1rem ;
		border-radius: 0.5rem;
	/*	font-family:"Myriad Pro", Helvetica, Arial, "sans-serif";*/
		font-weight: bold;
		font-size: 1.4rem;
		letter-spacing: 0em;
		text-align: center
	}

	.naviElement.active {
			color: rgba(255,211,1,1.00);
	}

	#infoBoard {
		width: 100%;
		display: flex;
		flex-direction: column;
		justify-content:flex-start;
		align-items: flex-start;
		flex-grow: 1;
		overflow-y: scroll;
		padding-left: max( 2rem, env(safe-area-inset-left,0) );
		padding-right: max( 1rem, env(safe-area-inset-right,0) );
		padding-bottom:  max( 3rem, env(safe-area-inset-bottom,0) );
	}

	#infoBoard > p, #infoBoard li, #infoBoard > h2, #infoBoard label, p #mbsStatus, h3 {
	/*	font-family:"Myriad Pro", Helvetica, Arial, "sans-serif";*/
		font-size: 1.6rem;
		line-height: 2.1rem;
		text-align: left;
		margin:0.75rem 0;
	}

	#infoBoard a {
		text-decoration: none;
	}


	h3 {
		font-weight: bold;
	}

	#infoBoard > h2 {
	/*	font-family:"Myriad Pro", Helvetica, Arial, "sans-serif";*/
		font-weight: bold;
		font-size: 2.2rem;
		letter-spacing: -0.02em;
		font-weight: bold;
		margin:1.5rem 0 0 0;
	}

	#infoBoard > img {
		margin: 0rem 1rem 0rem 0rem;
		width:67%;
	}

	#infoBoard td > img {
		width: 3rem;
	}

	#infoBoard table  {
	/*	font-family:"Myriad Pro", Helvetica, Arial, "sans-serif";*/
		font-size: 1.5rem;
		line-height: 1.8rem;
		margin-top: 0.75rem;
		background-color: #DDDDDD;
	}

	#infoBoard td  {
		width: auto;
		max-width: 16vw;
		padding: 0.3rem 0.6rem;
		text-align: center;
		background-color: #FFFFFF;
	}

	hr {margin: 1rem 0 1rem 0;}

	#locInputs, #latInput, #lonInput {
		background-color: transparent;
		display: flex;
		flex-wrap: wrap;
		}

	#locButtons {
		margin-top: 1rem;
	}

	#button1, #button2, #button3, #button4  {
		display: flex;
		flex-direction: column;
		justify-content:center;
		align-items: center;
		height: 3rem;
		font-size: 1.4rem;
		padding: 0.5rem 1rem 0.5rem 1rem;
		margin-right:1vw;
		border-radius: 0.3rem;
		color: #FFF;
		background-color: rgba(255,255,255,0.3);
		border: 0px;
	}

	#button3 {
		
	}

	#button1, #button2 {
		/*margin-left: 0.5rem;*/
	}

*.noDisplay {
	display:none;
}

@media only screen and (max-width: 840px) {
	
	.customDateSetting  {
		margin-left: 1rem;
		margin-top: 1rem;
		width: calc(100vw - 2rem); 
		top: 0rem;
 	}
	
	.customLocSetting, .infoScreen  {
		margin-left: 1rem;
		margin-top: 1rem;
		width: calc(100vw - 2rem);
		height: calc(100vh - 2rem);
 		}
	
	#map_canvas {
		height: calc(100vh - 20rem);
		background-color: transparent;
	}
}


@media only screen and (max-width: 550px) and (orientation: portrait) { /*479 */
	
	#dateAndLoc {
		position: fixed;
		top:0;
		bottom: auto;
	}
	
	#custLoc-lat, #custLoc-lon { 
		flex-grow:1;
		height: 3.5rem;
		font-size: 2.4rem;
		/*min-width: calc( 100vw - 15rem ) ; */
		margin: 0.5rem 0 0.5rem 0.5rem;
	}
	
	#map_canvas {
		height: calc(100vh - 27rem);
		background-color: transparent;
	}

	#custLocLt, #custLocLn {
		min-width: 6rem;
	}
	
	#cust-yy, #cust-mn, #cust-dd, #cust-hh, #cust-mm { 
	
	}
	
	#button1, #button2, #button3, #button4  {
		margin-top: 0.5rem;
		font-size: 2rem;
	}
	
	#button3 {
		
	}
	#button4 {
		margin:0;
		margin-top: 1.5rem;
	}
	
	#locButtons {
		background-color: transparent;
		flex-flow: row-reverse;
		min-width: calc( 100vw - 14.5rem );
		margin-left: 4.5rem;
		align-items: baseline;
	}
	
	 #dateButtons {
		background-color: transparent;
		flex-flow: row-reverse;
		min-width: calc( 100vw - 15.5rem );
		margin-left: 0rem;
		align-items: baseline;
	}
	
	#dateInputs * {
		font-size: 2.2rem;
	}
	
	#dateInputs {
		/*justify-content: flex-end;*/
	}

	#flex-grow4 {
		flex-grow: 1;
		min-width: 0;
	}
	
}

@media only screen and (max-height: 479px) and (orientation: landscape) { /*479 */
	#map_canvas {
		height: calc(100vh - 11rem);
		background-color: transparent;
	}



}