
* {
  box-sizing: border-box;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 0.96rem;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: white;
}

img {
  border-radius: 4px;
}

body {
   background-image: linear-gradient(to bottom right, rgba(0,20,50,1), rgba(0,50,20,1));  
}

/** Language **/

span[lang=de], span[lang=en] {
   display: none;
}

/** Menu **/

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

li {
  float: left;
}

li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  cursor: pointer;
}

/* li a:hover {
  background-color: #111; 
} */


a:link {
  color: white;
  text-decoration: none;
}
a:visited {
  color: grey;
  text-decoration: none;
}
a:hover {
  color: white;
  text-decoration: underline; 
}
a:active {
  color: yellow;
  text-decoration: underline; 
}

li c {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  cursor: pointer;
  width: max-content;
  position: relative;
}

/* li c:hover {
  background-color: #111; 
} */

c::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 4px;
  height: 3px;
  width: 0;
  background: linear-gradient( to right, white, rgba(0,150,60,1));
}

c:hover::after {
  transition: 150ms;
  width: 90%;
}

c:link {
  color: white;
  text-decoration: none;
}
c:visited {
  color: grey;
  text-decoration: none;
}
c:hover {
  color: white;
}


/* The dropdown container */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Dropdown button */
.dropdown .dropbtn {
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit; /* Important for vertical align on mobile phones */
  margin: 0; /* Important for vertical align on mobile phones */
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  /* background-color: black; */
  background-image: linear-gradient(to bottom right, rgba(0,20,50,1), rgba(0,50,20,1));
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content b {
  float: none;
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Add a grey background color to dropdown links on hover */
.dropdown-content b:hover {
  /* background-color: black; 
  text-decoration: underline; */
  cursor: pointer;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}


/** big screen mode, width over 1000 or height over 500 and not a touch device */

.grid {
  display: grid;
  grid-template-columns: 60dvw 38dvw; 
  grid-gap: 10px;
  padding: 10px;
}

#egoshooter_target {
  height: 90vh;
  touch-action: none;
}

#flutter_target {
  height: 90vh;
  border: 2px solid #aaa;
  min-width: 150px;
  min-height: 300px;
  border-radius: 0px;
  align-self: center;
  touch-action: none;
}

#blahblah_target {
  height: 90vh;
  touch-action: pan-y;
  overflow: scroll;
}

/** small screen mode, width under 1000 and height under 500 or any touch device */

@media only screen and ((max-width: 1000px) or (max-height: 500px) or (pointer: coarse))
{ 
  .topmenu { 
    display: none; 
  } 
  .egoshooter { 
    display: none; 
  } 
  .blahblah { 
    display: none; 
  } 

  .grid {
    display: grid;
    grid-template-columns: 100dvw 38dvw; 
    /* grid-template-rows: 100dvh 0dvh; */
    grid-gap: 0px;
    padding: 0px;
  }

  #flutter_target {
    height: 100dvh; /*  for address bar in mobile browsers */
    width: 100%;
    border: 2px solid #aaa;
    min-width: 150px;
    min-height: 300px;
    touch-action: none;
    border-radius: 0px;
    align-self: center;
  } 
}


.modal_image:hover {opacity: 0.7;}

#sight_image {
  cursor: pointer;
  transition: 0.3s;
  float:right;
  padding:0px;
  height:400px;
  margin-left:1vw;
  margin-right:2vw;
} 


.modal, .splash {
  display: none;  
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  right: 0;
  top: 0;
  width: 100%;   /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
  display: none; 
  margin: auto auto;
  max-width: 90%;
  max-height: 140%;
}

/* Splash Content (Image) */
.splash-content {
  display: none; 
  margin: auto auto;
  max-width: 90%;
  max-height: 80%;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#modal-caption, #splash-caption {
  display: none; 
  margin: auto;
  width: 100%;
  max-width: 800px;
  min-width: 340px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 100px;
} 

/* Add Animation - Zoom in the Modal */
.modal-content, .splash-content, #modal-caption, #splash-caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
} 
