body {
    background-color: Black;
    color: #ff7300;
    font-family:Arial, Helvetica, sans-serif;
    font-size:100%;
    margin:0;
}

h1 {
    color      : #00ffcd;
    font-size  : 1.5em;
}

a {
	color: #ff7300;
}

a:visited {
	color: #ff7300;
}

a:hover {
	font-weight:bold;
}


img.rotate-0 {
	max-width:	100%;
	max-height:	100%;
}

img.rotate-90 {
	transform:  rotate(90deg) translate(-12.5%, 0%);
	max-width:  70%;
	max-height: 100%;
}

img.rotate-180 {
	transform:  rotate(180deg) translate(-12.5%, 0%);
	max-width:	100%;
	max-height:	100%;
}

img.rotate-270 {
	transform:  rotate(270deg) translate(-12.5%, 0%);
	max-width:  70%;
	max-height: 100%;
}



input:read-only {
 background-color:LightGray;
 font-style:italic;
}

.myId {
	min-width:  50px;
	text-align: right;
}

.myDate {
	min-width: 100px;
	text-align: left;
}

.myString {
	min-width: 100px;
	text-align: left;
}

.halfWidth {
	display: block;
	width: 50%;
}

/* Menu dingen */
.topnavContainer {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    color: white;
    background-color: #004aff;
    z-index:1;
    margin: 0;
    font-size: 1em;
    text-decoration: none;
}

.topnavContainer div {
  overflow: hidden;
}

.topnav {
    overflow:        hidden;
    margin: 0;
   
}

.topnav-left {
  float: left;
}

.topnav-right {
  float: right;
}

.topnavdiv {
  float: left;
  color: #ffffff;
  padding: 5px 5px;
  text-decoration: none;
  font-size: 1em;
  overflow:hidden;
}



.topnav a {
  float: left;
  color: #ffffff;
  text-align: center;
  padding: 5px 5px;
  text-decoration: none;
  
}

.topnav a:hover {
  background-color: #ffffff;
  color: #004aff;
}

.topnav a.active {
  background-color: #ffffff;
  color: white;
}

.topnav a.topnav-right {
	float: right;
	color:red;
	
}

.topnavMenu {
	float: left;
	padding: 5px 5px;
}

.topnavMenu-content {
	display: none;
	padding-top:10px;
	position: absolute;
	color: #ffffff;
	min-width: 10em;
    background-color: #004aff;
	box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
	z-index: 2;
}

.topnavMenu-content a {
	text-align: left;
	display: block;
	width:100%;
}

.topnavMenu:hover .topnavMenu-content {
	display: block;
}


/* Responsive dingen */
.left {
	float:  left;
	width:  40%;
    padding:0 20px;
}

.main {
	float:  left;
	width:  60%;
	padding:0 20px;
}

table.data-groep {
	border: 1px solid yellow;
	width: 100%;
	border-collapse:collapse;
}

@media only screen and (max-width:800px) {
  /* For mobile phones: */
  .left, .main {
    width:100%;
  }
}


/* Popup stuff*/
.popupHidden {
  visibility:hidden;
}

.popupBackground {
	position: fixed;
	display: block;
	left:0px;
	top:0px;
	bottom:0px;
	right:0px;
	background-color:white;
	z-index:2;
	opacity:0.5;
	text-align:center;
}

.popupFrame {
	position:fixed;
	top: 30%;
	left: 50%;
	transform: translateX(-50%);
	display:block;
	background-color:white;
	border: 3px solid black;
	padding: 10px;
	opacity:1;
	z-index:3;
	vertical-align:middle;
	text-align:center;
}

.popupShowBG {
    visibility: visible;
    -webkit-animation: fadeInBG 1s;
    animation: fadeInBG 1s;
}

.popupHideBG {
    -webkit-animation: fadeOutBG 1s;
    animation: fadeOutBG 1s;
    visibility:hidden;
}


.popupShow {
    visibility: visible;
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s;
}

.popupHide {
    -webkit-animation: fadeOut 1s;
    animation: fadeOut 1s;
    visibility:hidden;
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeInBG {
    from {opacity: 0;} 
    to {opacity: 0.5;}
}

@keyframes fadeInBG {
	from {opacity: 0;}
    to {opacity:0.5;}
}

@-webkit-keyframes fadeOutBG {
    from  {opacity: 0.5; visibility:visible;}
    to    {opacity: 0.0; visibility:hidden} 
}

@keyframes fadeOutBG {
    from  {opacity: 0.5; visibility:visible;}
    to    {opacity: 0.0; visibility:hidden} 
}

@-webkit-keyframes fadeIn {
    from {opacity: 0;} 
    to {opacity: 1;}
}

@keyframes fadeIn {
	from {opacity: 0;}
    to {opacity:1;}
}

@-webkit-keyframes fadeOut {
    from  {opacity: 1.0; visibility:visible;}
    to    {opacity: 0.0; visibility:hidden} 
}

@keyframes fadeOut {
    from  {opacity: 1.0;visibility:visible;}
    to    {opacity: 0.0; visibility:hidden} 
}


.InputTable {
	text-align:start;
}


table.Stage {
	border:none;
	border-collapse:collapse;
	padding: 5px;
	width:100%;
}

td.StageID {
	width:30px;
	text-align:right;
}

td.StageName {
}

td.StageDistance {
	width:50px;
	text-align: right;
}

td.StageScroll {
	width:30px;
}

td.StageCompleted {
	width:70px;
}

ul.etappes {
  margin: 0;
  padding: 0;
  display: flex;
  display: -webkit-flex;
  flex-direction: column;
  width: 100%;
  height: 150px;
  overflow: auto;
  list-style: none;
}

ul.etappes il {
	flex: 0 0 auto;
	width:100%;
}

div.etappes {
	margin: 0;
	width: 100%;
	height: 150px;
	overflow: auto;
}

table.etappes {
	min-width:100%;
}

td.distance {
	min-width:70px;
	max-width:110px;
	text-align:right;
}

td.elevation {
	min-width:70px;
	max-width:110px;
	text-align:right;
} 


xxxul.images div {
	display: block;
	float: left bottom;
	background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0, 0.4); /* Fallback color */
}

xxul.images burpil {
	flex: 0 0 auto;
	height: 150px;
}

ul.images img {
	border: 1px solid black;
	padding: 1px;
}

xxul.images a {
	float: right;
    z-index: 9;
}

xxul.images div {
    xxfloat:left;
    xxz-index: 9;
}


.Block {
	display: flex;
	display: -webkit-flex;
}

.leftBlock {
	width: 50%;
	display: block;
	float: left;
}

.rightBlock {
	width: 50%;
	display: block;
	float: right;
}


div.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: none; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    text-align:center;
    border:none;
}

div.modal img {
    max-width: 100%;
    max-height:100%;
	
}

@media only screen and (max-width:800px) {
  /* For mobile phones: */
  .leftBlock, .rightBlock {
    width:100%;
   }
  .Block {
	display:block;
  }

}

div.busy {
 position:absolute;
 display:block;
 left: 0px;
 right: 0px;
 top: 0px;
 bottom: 0px;
 background-color: rgba(255, 255, 255, 0.75);
 color: black;
 font-size: 5em;
 text-align: center;
 vertical-align:middle;
 z-index:2;
 
}

div.bottomLeft {
	position: absolute;
	left: 0px;
	bottom: 0px;
}
div.bottomRight {
	position: absolute;
	bottom: 0px;
	right: 0px;
}




div.new_map {
  position:relative;
  width:100%;
  height: calc(100% - 310px); 
}

svg.new_map {
  position:absolute;
  top:0px;
  right:0px;
  left:0px;
  bottom:0px;
}

div.MLMap {
  position:absolute;
  right: 5px;
  top: 5px;
  z-index: 100;
  color: black;
  font-family:Arial, Helvetica, sans-serif;
  font-size:100%;
  margin:10px;
}

div.MLMap td {
  text-align: center;
  vertical-align:center;
  cursor:default;
}

.MLMapMenuBlock {
    background-color: White;
    color: black;
    font-family:Arial, Helvetica, sans-serif;
    font-size:100%;
    margin:0;
    z-index:100;
}

div.MLMapMenuBlock {
  position:absolute;
  top: 75px;
  right: 5px;
  visibility: hidden;
  z-index:100;
  max-height:calc(100% - 80px);
  overflow:auto;
}

.MLMapMenuBlockShow {
  visibility: visible !important;
  background-color: White;
}


/* Nieuw en geverifieerd...*/
/* Stage scherm */
div.hoofd_blok {
  position:absolute;
  display:block;
  padding:0;
  left: 0px;
  right: 0px;
  top: 62px;
  bottom: 0px;
  overflow: hidden;
}

div.etappe_blok {
  position:absolute;
  display:block;
  left: 0px;
  top: 0px;
  width: 100%;
  height: calc(50% - 235px);
  overflow: auto;
}

div.foto_blok {
  position:absolute;
  display:block;
  left: 0px;
  top: calc(50% - 235px);
  width: 100%;
  height: 235px;
  overflow: hidden;
}

div.kaart_blok {
  position: absolute;
  display: block;
  left: 0px;
  width: 100%;
  bottom: 0px;
  height:50%;
  clip:auto;
  -webkit-clip-path:view-box;
  clip-path:view-box;
  touch-action:none;
 }


ul.lijst_foto {
  margin: 0;
  padding: 0;
  display: flex;
  display: -webkit-flex;
  flex-direction: row;
  width: 100%;
  overflow-x: auto;
  list-style: none;
}

div.lijst_foto {
    position: relative;
    display: block;
    width:   258px;
    height:  218px;
    text-align:center;
}

div.foto_tekst_links {
  position: absolute;
  display: block;
  left: 0;
  bottom: 0;
}

div.foto_tekst_rechts {
  position: absolute;
  display: block;
  right: 0;
  bottom: 0;
  
}

ul.lijst_foto img.selected {
	border: 1px solid red;
}

td.etappes_col1 {

}

td.etappes_col2 {
  width: 15px;
}

td.etappes_col3 {
  text-align: right;
}

td.etappes_col4 {
  text-align: right;
}

td.etappes_col5 {
  text-align: right;
}

td.etappes_col6 {
  text-align: right;
}

td.etappes_col7 {
  text-align: right;
}

td.etappes_col8 {
  text-align: right;
}

td.etappes_col9 {
  text-align: right;
}

@media only screen and (max-height:800px) {
  /* For mobile phones: */
  div.etappe_blok {
    height: calc(50% - 150px);
  }
  div.foto_blok {
    top:  calc(50% - 150px);
    height: 150px;
  }
  div.lijst_foto {
    height: 133px;
  }
}

@media only screen and (max-height:500px) {
  /* For mobile phones: */
  div.etappe_blok {
    height: 100px;
  }
  div.foto_blok {
    top:  100px;
    height: 100px;
  }
  div.lijst_foto {
    height: 117px;
  }
  div.kaart_blok {
    top:200px;
    height:200px;
  }
  div.hoofd_blok {
    overflow: auto;
  }
}


@media only screen and (max-width:660px) {
  td.etappes_col9 {
    display: none;
  }
}

@media only screen and (max-width:555px) {
  td.etappes_col8 {
    display: none;
  }
}

@media only screen and (max-width:470px) {
  td.etappes_col5 {
    display: none;
  }
}

@media only screen and (max-width:360px) {
  td.etappes_col4 {
    display: none;
  }
}


div.mapButton
{
  text-align	   : center;
  line-height      : 40px;
  width		   : 40px;
  height           : 40px;
  float		   : right;
  background-color : rgba(0, 0, 0, 0.1);
}

div.mapButtonPressed
{
  background-color : black;
}


