*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

:focus {
  outline: none;
}

::-moz-focus-inner {
  border: 0;
}

body {
  background: #f3f3f3;
  font-family: Arial, sans-serif;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

#topics {
  position: relative;
  height: 100vh;
  overflow: hidden auto;
}

#topics div {
  position: absolute;
  width: 80%;
  margin: 20px 10%;
  padding: 5px 8px;
  padding-bottom: 6px;
  border-radius: 3px;
  box-shadow: 0  5px 10px rgba(0, 0, 0, 0.2),
              0 15px 40px rgba(0, 0, 0, 0.1);
  transition: all .3s ease;
  cursor: default;
  z-index: auto;
}

#topics div.active {
  animation: .3s liftover;
}

#topics div.deactive {
  animation: .3s liftunder;
}

@keyframes liftover {
  0% {
    z-index: 1;
  }

  50% {
    transform: scale(1.02);
    box-shadow: 0  8px 15px rgba(0, 0, 0, 0.15),
                0 18px 45px rgba(0, 0, 0, 0.05);
  }

  100% {
    z-index: 1;
  }
}

@keyframes liftunder {
  0% {
    z-index: -1;
  }

  50% {
    transform: scale(.98);
    box-shadow: 0  3px 7px rgba(0, 0, 0, 0.3),
                0 10px 30px rgba(0, 0, 0, 0.2);
  }

  100% {
    z-index: -1;
  }
}

#topics div h2 {
  margin: 0;
  color: #fff;
}

#topics div p {
  color: #fff;
}

#topics div button {
  background-color: transparent;
  border: 1px solid #eee;
  border-radius: 3px;
  color: #eee;
  font-size: 14px;
}

#topics div button:hover {
  background-color: #eee;
  color: #555;
  cursor: pointer;
}

#topics div button.start {
  float: right;
}

#topics div span.votes {
  display: inline;
  height: 20px;
  color: #fff;
  font-size: 14px;
  cursor: default;
}

#topics button.new {
  position: fixed;
  right: 10%;
  bottom: 30px;
  width: 35px;
  height: 35px;
  background-color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0  5px 10px rgba(0, 0, 0, 0.2),
              0 15px 40px rgba(0, 0, 0, 0.1);
  transition: all .3s ease-out;
}

#topics button.new:hover {
  transform: scale(1.05);
  cursor: pointer;
  box-shadow: 0  8px 15px rgba(0, 0, 0, 0.3),
              0 18px 45px rgba(0, 0, 0, 0.2);
}

#topics.hide {
  opacity: 0;
}

#topics.submodule {
  z-index: 1;
  transition: all 1s ease;
}

#module {
  position: absolute;
  width: 80%;
  height: 100vh;
  z-index: 101;
  margin-left: 10%;
  margin-right: 10%;
}

#module.fadeIn {
  animation: .5s fadeIn ease-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
/*    top: 100px;*/
  }

  100% {
    opacity: 1;
/*    top: 0;*/
  }
}

div.close-button {
  cursor: pointer;
  z-index: 102;
}
