@font-face {
  src: url(../fonts/genera/Genera-AltLight.ttf);
  font-family: genera;
}

nav{
  padding: 0.5vh 0;
  display: table;
  width: 100%;
  text-align: center;
  font-family: genera;
  font-size: calc(100vw / 80);
  font-style: italic;
  z-index: 10;
  background: #4363ac;
}

nav ul{
  margin: 0; padding: 0;
  list-style-type: none;
  display: inline-block;
}

nav li{
  padding: 0 calc(100vw / 75);
  float: left;
  text-align: center;
  display: inline-block;
}

nav a{
  color: lightgrey;
  text-decoration: none;
  display: inline-block;
  position: relative;
}

nav a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -10%;
  left: 0;
  background-color: lightgrey;
  visibility: hidden;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.2s ease-in-out 0s;
  transition: all 0.2s ease-in-out 0s;
}

nav a:hover:before {
  visibility: visible;
  width: 100%;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

main{
  margin: 0; padding: 0;
  display: block;
  width: 100%;
  font-family: genera;
}

#title{
  font-size: 2vw;
  font-family: genera;
  margin: 3.5vh 2.5vw 3.5vh 2.5vw;
  color: grey;
  font-weight: bold;
}

.products{
  width: 70%;
  margin: 0 15%;
  display: inline-block;
}

.products a{
  display: inline-block;
  float: left;
  text-decoration: none;
  width: calc(80% / 3);
  margin: calc(20% / 3 / 2 - 6px);
  border: 1px solid lightgrey;
  cursor: pointer;

  background-image: url(../img/juwelen/Bruno.jpg);
  background-position: center;
  background-size: cover;
}

/*lightbox*/
/* The Modal (background) */
#lightbox {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%;
  text-align: center;
  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 */
.lightbox-content {
  margin: auto;
  display: block;
  max-width: 700px;
}


#slide{
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#slide img{
  height: 50vh;
  display: block;
}

/* The Close Button */
.close {
  position: absolute;
  top: 15vh;
  right: 5vh;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

footer{
  margin-top: 5vh;
  font-family: Genera;
  display: table;
  text-align: center;
  width: 100%;
  background-color: #4363ac;
}

footer .box{
  margin: 2vh 10vw 10vw 0;
  color: white;
  display: inline-block;
  vertical-align: top;
  text-align: left;
}

.state-indicator {
    position: absolute;
    top: -999em;
    left: -999em;
}
.state-indicator:before { content: 'desktop'; }



@media (max-width: 1024px) {
  .state-indicator:before { content: 'mobile'; }
  #title{
    font-size: 7vw;
  }
  .products{
    width: 80%;
    margin: 0 10%;
  }
  .products a{
    width: calc(80% / 2);
    margin: calc(20% / 4 - 4px);
  }
  .close {
    top: 10vh;
    right: 2vh;
    font-size: 10vw;
  }
  .box{
    width: 60vw;
    margin: 2vh 20vw 0 20vw;
    font-size: 3vw;
  }

}
