:root {
  --width: 1920px;
  --height: 1080px;
}

html, body {
  position: absolute;
  width: var(--width);
  height: var(--height);
}

canvas {
  position: absolute;
  width: var(--width);
  height: 906px;
  z-index: 2;
}

html {
  width: var(--width);
  height: var(--height);
}

body {
  width: var(--width);
  height: var(--height);
  margin: 0;
  overflow: hidden;
  background-color: #777777;
  display: block;  
}

option {
  background-color: #777777;
}

@font-face {
    font-family: 'super_mario_bros._nesregular';
    src: url('../font/smb-webfont.woff2') format('woff2'),
         url('../font/smb-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'super_mario_world';
    src: url('../font/Super-Mario-World.woff2') format('woff2'),
         url('../font/Super-Mario-World.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

div.text {
  position: absolute;  
  width: var(--width);
  left: 60%;
  line-height: 48px;
  padding-top: 2%;  
  z-index:50;
  font-family: 'super_mario_bros._nesregular', Arial, sans-serif;
  font-weight:normal;
  font-style:normal;
  color:white;
}

div.row {
  clear: both;
  padding-top: 1em;
  padding-bottom: 1em;
}

#canvas_lightning{
  display: block;
  z-index: 1;
}

#canvas_rain{
  display: block;
  z-index: 10;
}

#canvas_snow{
  display: block;
  z-index: 10;
}

#time{
  padding-left: 100px;
}
#world{
  padding-left: 100px;
}
#world_value{
  padding-left: 120px;
  padding-top: 1000px;
}
#time_value{
    padding-left: 130px;
    padding-top: 1000px;
}
#loading{
  font-size: 1em;
  display: block;
  width: 400px;
  padding: 5px;
}

@keyframes move-fog {
  from {
    transform: translateX(0px);
  }
  to {
    transform: translateX(3840px);
  }
}

@keyframes move-clouds {
  from {
    transform: translateX(0px);
  }
  to {
    transform: translateX(3000px);
  }
}

@keyframes move-stars {
  from {
    transform: translateX(0px);
  }
  to {
    transform: translateX(2000px);
  }
}

.background-container {
  position: fixed;
  top: 0;
  left: 0;  
  z-index:10
}

#scene_boxesblink {
  z-index:11;
  animation: boxesblink 0.5s alternate ease infinite;
}

@keyframes boxesblink {
  0% {
    opacity: 1;
  }  
  100% {
    opacity: 0;
  }
}

.stars {
  height: var(--height);
  width: 4000px;
  background: url(../images/stars.png) repeat;
  position: absolute;
  top: 0;  
  right: 0;
  display: block;
  z-index: 0;
  animation: move-stars 7200s linear forwards infinite;
}

.fog {
  width: 7680px;
  height: var(--height);
  background-size: var(--width) var(--height);
  background-repeat: repeat;
  position: absolute;    
  right: 0;
  top: 0;  
  z-index: 15;  
  animation: move-fog 500s linear forwards infinite;
}

.near_clouds {
  width: 6000px;
  height: var(--height);
  background-size: var(--width) var(--height);
  position: absolute;    
  right: 0;
  top: 0;  
  z-index: 4;  
  animation: move-clouds 420s linear forwards infinite;
}

.mid_clouds {
  width: 6000px;
  height: var(--height);
  background-size: var(--width) var(--height);
  position: absolute;    
  right: 0;
  top: 0;  
  z-index: 3;  
  animation: move-clouds 700s linear forwards infinite;
}

.horizon_clouds {
  width: 6000px;
  height: var(--height);
  background-size: var(--width) var(--height);
  position: absolute;    
  right: 0;
  top: 0;  
  z-index: 2;    
}

.far_clouds {
  width: 6000px;
  height: var(--height);
  background-size: var(--width) var(--height);
  position: absolute;  
  right: 0;
  top: 0;  
  z-index: 1;  
  animation: move-clouds 1200s linear infinite;
}

#atmosphere_night {
  background: transparent url("../images/atmosphere_night.png") repeat;
}

#fog_day {
  background: transparent url("../images/fog_day.png") repeat;
}

#horizon_clouds_day {
  background: transparent url("../images/horizon_clouds_day.png") repeat;
}

#horizon_clouds_transition {
  background: transparent url("../images/horizon_clouds_transition.png") repeat;
}

#horizon_clouds_night {
  background: transparent url("../images/horizon_clouds_night.png") repeat;
}

#horizon_clouds_overcast {
  background: transparent url("../images/horizon_clouds_overcast.png") repeat;
}

#far_clouds_day {
  background: transparent url("../images/far_clouds_day.png") repeat;
}

#far_clouds_transition {
  background: transparent url("../images/far_clouds_transition.png") repeat;
}

#far_clouds_night {
  background: transparent url("../images/far_clouds_night.png") repeat;
}

#far_clouds_overcast {
  background: transparent url("../images/far_clouds_overcast.png") repeat;
}

#mid_clouds_overcast {
  background: transparent url("../images/mid_clouds_overcast.png") repeat;
}

#near_clouds_day {
  background: transparent url("../images/near_clouds_day.png") repeat;
}

#near_clouds_transition {
  background: transparent url("../images/near_clouds_transition.png") repeat;
}

#near_clouds_night {
  background: transparent url("../images/near_clouds_night.png") repeat;
}

#near_clouds_overcast {
  background: transparent url("../images/near_clouds_overcast.png") repeat;
}

.sun {  
  position: absolute;
  z-index: 1;  
}

.moon {  
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: rotate(45deg);
}

.scene {  
  position: absolute;
  z-index: 10;  
}

.weather_controls {  
  color: white;
  background: transparent url("../images/settings_background.png");
  background-repeat: no-repeat;
  border-radius: 20px;  
  position: absolute;
  width: 512px;
  height: 650px;
  top: 5px;
  left: 5px;
  line-height: 12px;
  padding: 30px;  
  z-index: 20;
  font-family: 'super_mario_world', Arial, sans-serif;
  font-weight:normal;
  font-style:normal;
  font-size: 12px;
  color:white;  
}

#weather_selector {         
   outline:0;
   box-shadow: inset -2px -2px 3px rgba(255, 255, 255, 0.6), inset 2px 2px 3px rgba(0, 0, 0, 0.6);
   border:0;
   height: 20px;
   background: rgba(255, 208, 0, 1);
   background-image: none;
   border-radius: 5px;
   padding: 0 .5em;
   color:#fff;
   text-shadow: 1px 1px 1px #000;   
   font-family: 'super_mario_world', Arial, sans-serif;
   font-weight:normal;
   font-style:normal;
   font-size: 12px;
   
}

#selected_weather_time {         
   outline:0;
   box-shadow: inset -2px -2px 3px rgba(255, 255, 255, 0.6), inset 2px 2px 3px rgba(0, 0, 0, 0.6);
   border:0;
   height: 20px;
   background: rgba(255, 208, 0, 1);
   background-image: none;
   border-radius: 5px;
   padding: 0 .5em;
   color:#fff;
   text-shadow: 1px 1px 1px #000;   
   font-family: 'super_mario_world', Arial, sans-serif;
   font-weight:normal;
   font-style:normal;
   font-size: 12px;
}

#weather_provider {         
   outline:0;
   box-shadow: inset -2px -2px 3px rgba(255, 255, 255, 0.6), inset 2px 2px 3px rgba(0, 0, 0, 0.6);
   border:0;
   height: 20px;
   background: rgba(255, 208, 0, 1);
   background-image: none;
   border-radius: 5px;
   padding: 0 .5em;
   color:#fff;
   text-shadow: 1px 1px 1px #000;   
   font-family: 'super_mario_world', Arial, sans-serif;
   font-weight:normal;
   font-style:normal;
   font-size: 12px;
}

#input_latitude {         
   outline:0;
   box-shadow: inset -2px -2px 3px rgba(255, 255, 255, 0.6), inset 2px 2px 3px rgba(0, 0, 0, 0.6);
   border:0;
   height: 20px;
   background: rgba(255, 208, 0, 1);
   background-image: none;
   border-radius: 5px;
   padding: 0 .5em;
   color:#fff;
   text-shadow: 1px 1px 1px #000;   
   font-family: 'super_mario_world', Arial, sans-serif;
   font-weight:normal;
   font-style:normal;
   font-size: 12px;
}

#input_longitude {         
   outline:0;
   box-shadow: inset -2px -2px 3px rgba(255, 255, 255, 0.6), inset 2px 2px 3px rgba(0, 0, 0, 0.6);
   border:0;
   height: 20px;
   background: rgba(255, 208, 0, 1);
   background-image: none;
   border-radius: 5px;
   padding: 0 .5em;
   color:#fff;
   text-shadow: 1px 1px 1px #000;   
   font-family: 'super_mario_world', Arial, sans-serif;
   font-weight:normal;
   font-style:normal;
   font-size: 12px;
}

#button_gps {
   border: 0;
   line-height: 2.5;
   padding: 0 20px;
   font-size: 12px;
   text-align: center;
   color: #fff;
   text-shadow: 1px 1px 1px #000;
   border-radius: 5px;
   background-color: rgba(255, 208, 0);
   background-image: linear-gradient(to top left, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0));
   box-shadow: inset 2px 2px 3px rgba(255, 255, 255, 0.6), inset -2px -2px 3px rgba(0, 0, 0, 0.6);
   font-family: 'super_mario_world', Arial, sans-serif;
   font-weight:normal;
   font-style:normal;  
}

#button_gps:hover {
    background-color: rgba(186, 218, 85, 1);
}

#button_gps:active {
    box-shadow: inset -2px -2px 3px rgba(255, 255, 255, 0.6), inset 2px 2px 3px rgba(0, 0, 0, 0.6);
    text-shadow: 3px 3px #fff, 4px 4px #000;    
    color: rgba(255, 255, 255, 0);
}

#set_coordinates {
   left: 295px;
   top: 160px;
   border: 0;
   height: 60px;
   line-height: 2.5;
   padding: 0 20px;
   font-size: 12px;
   text-align: center;
   color: #fff;
   text-shadow: 1px 1px 1px #000;
   border-radius: 5px;
   background-color: rgba(255, 208, 0);
   background-image: linear-gradient(to top left, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0));
   box-shadow: inset 2px 2px 3px rgba(255, 255, 255, 0.6), inset -2px -2px 3px rgba(0, 0, 0, 0.6);
   font-family: 'super_mario_world', Arial, sans-serif;
   font-weight:normal;
   font-style:normal;  
}

#set_coordinates:hover {
    background-color: rgba(186, 218, 85, 1);
}

#set_coordinates:active {
    box-shadow: inset -2px -2px 3px rgba(255, 255, 255, 0.6), inset 2px 2px 3px rgba(0, 0, 0, 0.6);
    text-shadow: 3px 3px #fff, 4px 4px #000;    
    color: rgba(255, 255, 255, 0);
}

#tooltip {
  position: absolute;
  top: 30px;
  left: 460px;
  visibility: hidden;
  text-align: left;
  line-height: 1.5;
  padding: 5px;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.8);
  background-image: linear-gradient(to top left, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0.2));
  box-shadow: inset 2px 2px 3px rgba(255, 255, 255, 0.1), inset -2px -2px 3px rgba(0, 0, 0, 0.1);
  display: block;
  font-size: 12px;
  width: 500px;
}

#helpBox {
   position: absolute;
   left: 383px;
   top: 30px;
   width: 64px;
   height: 64px;
   border: 0;
   line-height: 2.5;   
   font-size: 30px;
   text-align: center;
   color: #fff;
   text-shadow: 1px 1px 1px #000;
   border-radius: 5px;
   background-color: rgba(255, 208, 0);
   background-image: linear-gradient(to top left, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0));
   box-shadow: inset 2px 2px 3px rgba(255, 255, 255, 0.6), inset -2px -2px 3px rgba(0, 0, 0, 0.6);
   font-family: 'super_mario_world', Arial, sans-serif;
   font-weight:normal;
   font-style:normal;  
}

#switchHelpBox {
  height: 0;
  width: 0;
  visibility: hidden;
}

#switchHelpBox:checked + #helpBox {
  background-color: rgba(89, 43, 7, 1);
  box-shadow: inset -2px -2px 3px rgba(255, 255, 255, 0.6), inset 2px 2px 3px rgba(0, 0, 0, 0.6);
  text-shadow: 3px 3px #fff, 4px 4px #000;    
  color: rgba(255, 255, 255, 0);  
}

switchHelpBox:active:after {
  width: 64px;
}

#weather_selector::-ms-expand {
   display: none;
}
.debug_select {
   position: relative;   
   width: 64%;
   height: 2em;   
   background: #5c6664;
   overflow: hidden;
   border-radius: .25em;
}

.slider {
  margin-top: 10px;
  margin-bottom: 10px;
  -webkit-appearance: none;  /* Override default CSS styles */
  appearance: none;  
  width: 420px; /* Full-width */
  height: 15px; /* Specified height */
  border-radius: 5px;  
  background: #d3d3d3; /* Grey background */
  outline: none; /* Remove outline */
  opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */
  -webkit-transition: .2s; /* 0.2 seconds transition on hover */
  transition: opacity .2s;
  z-index: 20;
}

/* Mouse-over effects */
.slider:hover {
  opacity: 1; /* Fully shown on mouse-over */
}

/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; /* Override default look */
  appearance: none;
  width: 25px; /* Set a specific slider handle width */
  height: 25px; /* Slider handle height */
  border-radius: 50%;
  background: gray; /* Green background */
  cursor: pointer; /* Cursor on hover */
}

.slider::-moz-range-thumb {
  width: 25px; /* Set a specific slider handle width */
  height: 25px; /* Slider handle height */
  border-radius: 50%;
  background: gray; /* Green background */
  cursor: pointer; /* Cursor on hover */
}

.debug_text {
  width: 50%;
  color: white;
}

#settingsContainer {
  position: absolute;
  z-index:50;
  width: 220px; 
  align-items: center; 
  padding: 0; 
  top:-14px;   
  left: 5px;
  transition: 0.3s;  
}

#switch {
  height: 0;
  width: 0;
  visibility: hidden;
}

#switchLabel {
  cursor: pointer;
  text-indent: -9999px;
  width: 64px;
  height: 32px;
  background: #111111;
  display: block;
  border-radius: 32px;
  position: relative;
}

#switchLabel:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255);
  border-radius: 28px;
  background-image: linear-gradient(to top left, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0));
  box-shadow: inset 2px 2px 3px rgba(255, 255, 255, 0.6), inset -2px -2px 3px rgba(0, 0, 0, 0.6);
  transition: 0.3s;
}

#switch:checked + #switchLabel {
  background: #bada55;
  box-shadow: inset -2px -2px 3px rgba(255, 255, 255, 0.6), inset 2px 2px 3px rgba(0, 0, 0, 0.6);
}

#switch:checked + #switchLabel:after {
  left: calc(100% - 5px);
  transform: translateX(-100%);
}

switchLabel:active:after {
  width: 130px;
}

#modeAuto {
  height: 0;
  width: 0;
  visibility: hidden;
}

#modeAutoLabel {
  cursor: pointer;
  text-indent: -9999px;
  width: 64px;
  height: 32px;
  background: #111111;
  display: block;
  border-radius: 32px;
  position: relative;
}

#modeAutoLabel:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255);
  border-radius: 28px;
  background-image: linear-gradient(to top left, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0));
  box-shadow: inset 2px 2px 3px rgba(255, 255, 255, 0.6), inset -2px -2px 3px rgba(0, 0, 0, 0.6);
  transition: 0.3s;
}

#modeAuto:checked + #modeAutoLabel {
  background: #bada55;
  box-shadow: inset -2px -2px 3px rgba(255, 255, 255, 0.6), inset 2px 2px 3px rgba(0, 0, 0, 0.6);
}

#modeAuto:checked + #modeAutoLabel:after {
  left: calc(100% - 5px);
  transform: translateX(-100%);
}

modeAutoLabel:active:after {
  width: 130px;
}

#sun {
		-webkit-animation: rotation 150s infinite linear;
}

@keyframes rotation {
		from {
				transform: rotate(0deg);
		}
		to {
				transform: rotate(359deg);
		}
}
	
.sky {
  height: var(--height);
  width: var(--width);
  background-size: var(--width) var(--height);
  position: absolute;      
}

#skycontainer {
  position:absolute;
  height: var(--height);
  width: var(--width);
}

#lightnings {
  position:absolute;
  height: var(--height);
  width: var(--width);
  z-index: 8;
}

#scene_day {
  z-index: 11;
}

#skytransitionday {
  background: linear-gradient(#bde4ff 0%, #ffe1a8 100%);
}

#skyday {
  background: #5583BE;
}

#skytransitionnight {
  background: linear-gradient(#5583be 0%, #a38a8c 70%, #e25e00 100%);
}

#skytransition {
  background: linear-gradient(#8ab2d6 0%, #ffa83c 100%);
}

#skynight {
  background: linear-gradient(to bottom,#000010 31%, #00002a 75%, #050b16 100%);  
}

#skynightmoon {  
  background: linear-gradient(to bottom,#000010 31%, #00002a 75%, #050b16 100%);
  clip-path: circle(32px at 50% 50%);
  z-index: 1;
}

#skyovercastday {
  background: linear-gradient(#bababa 0%, #6a6a6a 100%);
}

#skyovercasttransition {
  background: linear-gradient(#505050 0%, #6a6a6a 100%);  
}

#skyovercastthunder {
  background: linear-gradient(#ffffff 0%, #dadada 100%);
  z-index: 1;
}

#overcast_filter {
  background: #c5dbf7;
  opacity: 0;
  z-index: 5;
}

#overcast_filter_night {
  background: #0a0906;
  opacity: 0;
  z-index: 6;
}

#scene_snow_piles_day {
  z-index: 12;
}

#scene_snow_piles_night {
  z-index: 12;
}
