@import url('https://fonts.googleapis.com/css?family=Raleway');

body{
  margin:0;
  position:fixed;
  font-family: 'Raleway', sans-serif;
}
#bar {
  background-color: rgba(0,0,0,0.5);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  width: 80vh;
  height: 10vh;
  /* overflow-x:hidden; */
}
#loading{
  height:2px;
  background-color: white;
  width: 100%;
  position:absolute;
  bottom:0;
}
.menu {
  height:calc(10vh - 20px);
  width:calc(10vh - 20px);
  background-size: contain;
  background-repeat: no-repeat;
  margin: 10px;
  float:left;
}
.selected{
  position: relative;
  top: -10px; right: 0; bottom: 0; left: -10px;
  background-color: rgba(255,0,0,1);
  content: ' ';
  width:10vh;
  height:10vh;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
}
#bottom{
  position: absolute;
  color: #fff;
  bottom: 0;
  font-family: 'Raleway', sans-serif;
  font-weight: 200;
  font-size: 1.5em;
  text-align: center;
  width:33%;
  margin: 0 33%;
  background-color: rgba(0,0,0,0.5);
  padding: 15px 0;
}
#submenu{
  margin:0 auto;
  align-items: center;
  justify-content: center;
  display:flex;
}
#description{
  margin:0 auto;
}
.submenuItem{
  width:3px;
  height:3px;
  border-radius: 100%;
  border:2.5px white solid;
  float: left;
  margin: 5px;
  -webkit-transition: border 2s; /* Safari */
 transition: border 1s;
}
.submenuSelected{
  border-color:red;
}
#communityName{
  font-size: 1.2em;
  font-weight: 100;
}
svg{
  fill: #999999;
  opacity: 0.5;
}
svg:hover{
  opacity: 0.9;
}
#nightMode{
  position: absolute;
  width: 3vh;
  height: 3vh;
  padding: 10px;
  right: 0;
  z-index: 2;
}
#home{
  position: absolute;
  width: 3vh;
  height: 3vh;
  padding: 10px;
  left: 0;
  z-index: 2;
}

@media only screen and (max-width: 600px), only screen and (max-height: 600px) {
  #bottom{
    width: 100%;
    margin: 0;
  }
  #submenu{
    display:block;
  }
  .submenuItem{
    width: 7px;
    height: 7px;
    border-width: 3px;
    margin: 10px;
  }
  #bar{
    height: 20vh;
    width:auto;
    margin: 0 5vh;
  }
  #home, #nightMode{
    opacity: 0.7;
  }
}

@media only screen and (orientation:landscape) and (max-height: 600px){
  .menu {
    height:calc(7vw - 20px);
    width:calc(7vw - 20px);
  }
  .selected{
    width:7vw;
    height:7vw;
  }
  #bar{
    height: 7vw;
    margin: 0 auto;
    width: 56vw;
  }
  #home, #nightMode{
    width: 3vw;
    height: 3vw;
  }
}
