html, body{
  padding: 0;
  margin: 0;
  background-color: black;
}

#gallery{
  width:100%;
}


.g1, .g2, .g3, .g4, .g5, .g6, .g7, .g8, .g9, .g10, .g11, .g12, .g13, .g14, .g15{
  width: 50%;
  display: inline-block;
  margin-right: -4;
  margin-top: -4;
  background-color: white;
  opacity: 1;
  z-index: 1;
}

@media screen and (min-width: 1000px) {
  .g1, .g2, .g3, .g4, .g5, .g6, .g7, .g8, .g9, .g10, .g11, .g12, .g13, .g14, .g15{
    width: 33.33%;
  }
}

#test1 img, #test2 img, #test3 img, #test4 img, #test5 img, #test6 img, #test7 img, #test8 img, #test9 img, #test10 img, #test11 img, #test12 img:hover{
  opacity: .5;
   transition: opacity .25s ease-in-out;
   -moz-transition: opacity .25s ease-in-out;
   -webkit-transition: opacity .25s ease-in-out;
    z-index: 1;
   }


.g1:hover span, .g2:hover span, .g3:hover span, .g4:hover span, .g5:hover span, .g6:hover span, .g7:hover span, .g8:hover span,
.g9:hover span, .g10:hover span, .g11:hover span, .g12:hover span, .g13:hover span, .g14:hover span, .g15:hover span{
  display: inline-block;
    color: white;
    font-size: 20px;
    /*display: none;*/
}


#text{
  margin-top: 5%;
  margin-right: 2%;
  position: absolute;
  width: inherit;
  text-align: center;
  z-index: 1;
}

#test{
  margin-top: 0%;
  margin-right: 2%;
  position: absolute;
  width: inherit;
  text-align: center;
  z-index: 1;
}

#test:hover img{
  opacity:0;
}



#testpic{
  z-index: 2;
  position: absolute;
  width:500px;
  height:500px;

}


:root{
  --display-change: none;
}

.lobby{
  display:none;
}

/* modal background color */

#modalbackground{
  z-index: 3;
  position: fixed;
  height:100%;
  width:100%;
  background-image: url('../images/bg.png');
  background-repeat: repeat;
  display:none;
}

/* modal container for header and pic */
#modalc{
  z-index: 4;
  position: absolute;
  margin-top: 5%;
  margin-left: 20%;
  margin-right: 20%;
  width:60%;
  display:block;
  background-color: black;
}

/* modal header */
#modalh{
  position: absolute;
  width:100%;
  display:block;
}

/* this is the 'X' that closes picture */
#modalh p{
  height:30px;
  color:tomato;
  font-family: sans-serif;
  font-size: 18pt;
  position: absolute;
  width:98%;
  text-align:right;
  display:block;
}

/* container for the modal picture*/
#modalpic{
  display:block;
}

/* styling for the modal picture */
#modalpic img{
  width:100%;
}
