/* ============================ font ======================== */
@import url('https://use.fontawesome.com/releases/v5.15.2/css/all.css');
@-webkit-keyframes fas-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}
@keyframes fas-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}

:root {
  --elementDark: #408000;
  --elementLight: rgba(189, 255, 128,1.0);
  --elementLightSemi: rgba(189, 255, 128,0.5);  
  --backgroudLight: #f0fff0;
}

html{ 
	margin:auto;	
	width:500px; 
	height:auto; 
	background: var(--backgroudLight);
    font-family: Arial, sans-serif;
}

#divslideshowouter {
	position: relative;
	left:0;
	right:0;  
	margin:0 auto 0 auto;
	width:480px;	
	height: 270px;
}

#divcontrols{
	position: absolute;
	background-color: rgba(0, 0, 0, 0.26);
	z-index: 2;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	display:none;
}

#closebutton {
	position: absolute;
	top:30px;
	left:0;
	right:0;
	margin:auto;
}

#backwardbuttonfull {
	position: absolute;
	bottom:120px;
	left:20%;
	margin:auto;
}

#playbuttonfull {
	position: absolute;
	bottom:120px;
	left:0;
	right:0;
	margin:auto;
}

#forwardbuttonfull {
	position: absolute;
	bottom:120px;
	right:20%;
	margin:auto;
}

#divsliderpositionfull {
	position: absolute;	
	bottom:20px;
	left:0;	
	right:0;
	margin:auto;
}

#divslideshow {
	position: absolute;
	left: 0%;
	right: 0%;
	width: fit-content;
	margin: auto;
	height: 100%;
	font-size: 16px;
	color: #ffffff;
	text-shadow:  
     1px  1px 1px black,
     1px -1px 1px black,
    -1px  1px 1px black,
    -1px -1px 1px black;
}

#img {
   width:auto;
   height:auto;
   max-width:100%;
   max-height:100%;
   margin: auto;
}	
	
#imginfo {
	position: absolute;
	bottom: 5px;
	right: 5px;
}

#divcontrols{
	display: none;
	position: absolute;
	bottom: 5px;
	left: 5px;
}	

/*---------------- Positions Slider ---------------*/
#divsliderposition {
	position: relative;	
	width: 480px;
	margin-top: 20px;
}

#divdateframe {
	margin-top: 10px;
	height: 48px;
	background: transparent url("./../img/settings.png") center center no-repeat;
	background-size: contain;  
	text-align: center;		
	z-index: 1;
}

#divdate {
	display: inline-block;
	font-size: 18px;
	font-weight: bold;
	color:var(--elementDark);
	text-align: center;	
	height: 48px;
	width:auto;
	line-height: 48px;
	background: transparent;
	z-index: 2;
}

#pickerdate {
  position: absolute;
  left:0;
  right:0;  
  margin:auto;
  width: 48px;
  height: 48px;
  border: 0;
  overflow: hidden;
  cursor: none;
  opacity: 0;
  z-index: 3;  
}

#pickerdate::-webkit-calendar-picker-indicator {
  position: absolute;
  top: -100%;
  left: -100%;
  width: 200%;
  height: 200%;
  cursor: pointer;
}

/*---------------- Interval Slider ---------------*/
#divsliderinterval {
  position: absolute;	
  width: 480px;  
  margin-top: 140px;
}

#intervaltext{
	color:var(--elementDark);
	font-size: 18px;
	font-weight: bold;
	margin-top:-45px;
	margin-left:12px;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 90%;
  margin: 0;
  margin-left: 5%;
  margin-right: 5%;  
}

input[type="range"]:focus {
  outline: none;
}

/*----- Thumb auf Slider -----*/
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 36px;
  width: 36px;
  border: 2px solid var(--elementDark);
  border-radius: 18px;
  background: var(--elementLight);
  cursor: pointer;
  margin-top: -16px;
  box-shadow: 2px 5px 8px 0 rgba(0,0,0,0.6), 2px 6px 10px 0 rgba(0,0,0,0.3);  
}

/*---- Track des Sliders -----*/
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 10px;
  border: 2px solid var(--elementDark);  
  border-radius: 5px;
  background: var(--elementLight);
  cursor:pointer;
  box-shadow: 2px 5px 8px 0 rgba(0,0,0,0.6), 2px 6px 10px 0 rgba(0,0,0,0.3);
}

input[type="range"]:active::-webkit-slider-runnable-track {
  background: var(--elementLight);
}


button {
	display: inline-block;
	height:90px;
	width:90px;	
	border: 18px solid transparent;
	border-radius: 45px;	
	font-size: 24px;
	color:var(--elementDark);
	background-color: var(--elementLightSemi);
    cursor:pointer;
	box-shadow: inset 0 0 0 3px var(--elementDark), 2px 5px 8px 0 rgba(0,0,0,0.6), 2px 6px 10px 0 rgba(0,0,0,0.3);	
}

button:disabled {
	opacity: 0.5;
    cursor:default;	
}

button:focus {
	outline:none;
}

#divmaincontrols {
	position: relative;	
	width: 480px;
	height: 530px;
	margin-top: 30px;
}

#backwardbutton {
	position: absolute;
	left:15%;	
}

#playbutton {
	position: absolute;
	left:0;	
	right:0;		
	margin:auto;
}

#forwardbutton {
	position: absolute;
	right:15%;	
}


#directionbackward,
#directionforward {
	position: absolute;
	margin-top: 180px;
	height:58px;
	width:58px;	
	border: 6px solid transparent;	
	border-radius: 35px;	
	background-color: var(--elementLightSemi);	
	box-shadow: inset 0 0 0 3px var(--elementDark), 2px 5px 8px 0 rgba(0,0,0,0.6), 2px 6px 10px 0 rgba(0,0,0,0.3);		
	color:var(--elementDark);	
}
#directionbackward { left:20%; }
#directionforward {	right:20%; }

#automodusbutton { 
	position: absolute;
	left:0;	
	right:0;		
	margin-top: 186px;	
	margin-left:auto;
	margin-right:auto;	
	height:58px;
	width:58px;	
	border: 0;	
	border-radius: 29px;	
	background-color: var(--elementLightSemi);	
	box-shadow: 2px 5px 8px 0 rgba(0,0,0,0.6), 2px 6px 10px 0 rgba(0,0,0,0.3);	
	color:var(--elementDark);	
}	

#automodussymbol { 
	font-size: 1.5em;
	
}	

#oneshotbutton {
	position: absolute;
	left:10%;	
	bottom:130px;
}

#videobutton {
	position: absolute;
	left:calc(50% - 45px);	
	bottom:130px;
}

#settingsbutton {
	position: absolute;
	right:10%;
	bottom:130px;
}

#homebutton {
	position: absolute;
	left:calc(50% - 45px);	
	bottom:2px;
}

[type=radio].fasymbol { 
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;

}

[type="radio"].fasymbol + label {
	padding:5px;
	background-color: transparent;
    cursor:pointer;
}

[type="radio"].fasymbol.left + label::before {
    content: "\f060";
}

[type="radio"].fasymbol.left:checked + label::before {
	content: "\f0a8";
}

[type="radio"].fasymbol.right + label::before {
    content: "\f061";
}

[type="radio"].fasymbol.right:checked + label::before {
	content: "\f0a9";
}

#spinner {
    display: none;
    position: fixed;
    z-index: 2;
    left: 230px;
    top: 250px;
    width: 50px;
    height: 50px;
	color:var(--elementDark);
}


/*--- Modales Fenster hintergrund ---*/
.modal {
  display: none; 
  position: fixed; 
  z-index: 1; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgb(0,0,0); 
  background-color: rgba(0,0,0,0.4); 
}

.modal-content {
  background-color: var(--backgroudLight);
  margin: 15% auto; 
  border: 1px solid var(--elementDark);
  border-radius: 10px;
  min-height: 50px;
  min-width: 50px;  
  width: fit-content; 
  box-shadow: 2px 5px 8px 0 rgba(0,0,0,0.6), 2px 6px 10px 0 rgba(0,0,0,0.3);	
}

.close {
  color: var(--elementDark);
  float: right;
  font-size: 28px;
  font-weight: bold;
  margin-top:-5px;
  margin-right:2px;  
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: var(--elementDark);
  text-decoration: none;
  cursor: pointer;
}

#divmessage {
	margin:25px;
	text-align: center;	
}

@media (orientation: landscape) { 
	#img { height:100%; object-fit: contain; } 
}
@media (orientation: portrait) {
	#img { width:100%; object-fit: contain; } 
}




