*,
html,
body {
  margin: 0;
  padding: 0;
}

html {
  max-height: 100vh;
  overflow: hidden;
}

body {
  height: 100vh;
  width: 100%;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 18px;
  overflow: hidden;
}

button {
  padding: 0;
  border: none;
  background: transparent;
}

/************ pre loader ************/

/*@import url(https://fonts.googleapis.com/css?family=Quattrocento+Sans);*/

.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
  font-size: 0.8rem;
}

.loading p {
  bottom: 7%;
  position: absolute;
  color: white;
  text-align: center;
  width: 100%;
  opacity: 0.8;
}

.loading-text {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  text-align: center;
  width: 100%;
  height: 100px;
  line-height: 100px;
}

.loading-text span {
  display: inline-block;
  margin: 0 3px;
  color: #fff;
}

.loading-text span:nth-child(1) {
  filter: blur(0px);
  animation: blur-text 1.5s 0s infinite linear alternate;
}

.loading-text span:nth-child(2) {
  filter: blur(0px);
  animation: blur-text 1.5s 0.1s infinite linear alternate;
}

.loading-text span:nth-child(3) {
  filter: blur(0px);
  animation: blur-text 1.5s 0.2s infinite linear alternate;
}

.loading-text span:nth-child(4) {
  filter: blur(0px);
  animation: blur-text 1.5s 0.3s infinite linear alternate;
}

.loading-text span:nth-child(5) {
  filter: blur(0px);
  animation: blur-text 1.5s 0.4s infinite linear alternate;
}

.loading-text span:nth-child(6) {
  filter: blur(0px);
  animation: blur-text 1.5s 0.5s infinite linear alternate;
}

.loading-text span:nth-child(7) {
  filter: blur(0px);
  animation: blur-text 1.5s 0.6s infinite linear alternate;
}

.loading-text span:nth-child(8) {
  filter: blur(0px);
  animation: blur-text 1.5s 0.7s infinite linear alternate;
}

.loading-text span:nth-child(9) {
  filter: blur(0px);
  animation: blur-text 1.5s 0.8s infinite linear alternate;
}

.loading-text span:nth-child(10) {
  filter: blur(0px);
  animation: blur-text 1.5s 0.9s infinite linear alternate;
}

.loading-text span:nth-child(11) {
  filter: blur(0px);
  animation: blur-text 1.5s 1s infinite linear alternate;
}

.loading-text span:nth-child(12) {
  filter: blur(0px);
  animation: blur-text 1.5s 1.1s infinite linear alternate;
}

.loading-text span:nth-child(13) {
  filter: blur(0px);
  animation: blur-text 1.5s 1.2s infinite linear alternate;
}

.loading-text span:nth-child(14) {
  filter: blur(0px);
  animation: blur-text 1.5s 1.3s infinite linear alternate;
}

@keyframes blur-text {
  0% {
    filter: blur(0px);
  }
  100% {
    filter: blur(4px);
  }
}

/************************************/

.wrapper {
  position: relative;
  width: 88000px;
  height: 100vh;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-repeat: no-repeat;
  background: -webkit-linear-gradient(to right, white 10000px, black 44000px);
  background: -moz-linear-gradient(to right, white 10000px, black 44000px);
  background: -ms-linear-gradient(to right, white 10000px, black 44000px);
  background: -o-linear-gradient(to right, white 10000px, black 44000px);
  background: linear-gradient(to right, white 10000px, black 44000px);
}

@media screen and (max-width: 1000px) {
  #keys,
  #info,
  .modal-wrapper {
    display: none !important;
  }
}

#title {
  position: absolute;
  margin-left: 120px;
  top: 15%;
}

#arrow {
  position: absolute;
  margin-left: 120px;
  top: 85%;
  font-size: 14px;
}

.message {
  position: absolute;
  font-size: 18px;
  top: 45%;
  line-height: 28px;
}

.scale {
  position: absolute;
  bottom: 52.5%;
}

#contentUntilBillion {
  /*     position: absolute;*/
  width: 100%;
  height: 100%;
  /*     line-height: 26px;*/
}

#contentUntilBillion button.events {
  position: absolute;
  top: 85%;
  transition: all 0.2s ease-in-out;
}

.contentAfterBillion {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 800px;
  line-height: 28px;
}

/*.event-group ul {display:none;}*/

.events:hover {
  transform: scale(3.2, 2.4);
}

#contentUntilBillion > .event-group:hover {
  transform: scale(3.2, 2.4);
}

ul.grouped-events {
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.event-group,
ul.grouped-events button.events {
  transition: all 0.2s ease-in-out;
}

a {
  color: inherit;
}

div.event-group {
  position: absolute;
  top: 85%;
  width: 5px;
  height: 40px;
  outline-offset: -1px;
  outline: 0.5px solid black;
}

ul.grouped-events {
  position: fixed;
  top: 75%;
  left: 50%;
}

ul.grouped-events button.events {
  margin: 0 12px;
  height: 20px !important;
}

#topTitle {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 1px;
  position: -webkit-fixed;
  position: fixed;
  top: 2%;
  left: calc(50% - 140px);
  width: 280px;
  text-align: center;
  z-index: 1000;
}

#info {
  font-weight: 100;
  font-size: 28px;
  position: -webkit-fixed;
  position: fixed;
  top: 2%;
  left: 96%;
  color: #263238;
  opacity: 0.8;
  cursor: default;
  z-index: 1000;
}

#info:hover {
  opacity: 0.5;
}

#counterWrapper {
  position: -webkit-fixed;
  position: fixed;
  font-size: 18px;
  top: 8%;
  text-align: center;
  width: 100%;
}

#counterWrapper2 {
  position: -webkit-fixed;
  position: fixed;
  font-size: 18px;
  top: 8%;
  text-align: center;
  width: 100%;
  z-index: 1000;
}

.captionHolder {
  line-height: 1.5em;
  font-size: 1.2rem;
  width: 800px;
  max-width: 90%;
  height: auto;
  padding-bottom: 24px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#line {
  position: -webkit-fixed;
  position: fixed;
  width: 1.5px;
  height: 96px;
  top: calc(85% - 28px);
  text-align: center;
  left: 50%;
  background: black;
  z-index: 100;
}

#keys {
  position: -webkit-fixed;
  position: fixed;
  top: 8%;
  left: 2%;
  font-size: 14px;
  display: table;
  z-index: 1000;
}

#keys span {
  font-size: 12px;
  vertical-align: text-top;
}

.modal-wrapper {
  max-width: 400px !important;
  height: auto !important;
  position: fixed !important;
  right: 24px !important;
  top: 8% !important;
  left: unset !important;
  border: 1px solid;
  z-index: 999 !important;
}

.modal-content {
  font-size: 16px;
  padding: 20px;
  line-height: 1.8rem;
}

.modal-overlay {
  position: fixed !important;
  position: webkit-fixed !important;
  z-index: 700 !important;
}

.modal-close {
  display: none !important;
}

img.wht {
  display: none;
}

#particles-js {
  position: absolute;
  width: 2200px;
  height: 100%;
}

#blackhole-wrapper {
  position: absolute;
  width: 1800px;
  text-align: center;
}

#fluid-wrapper {
  position: absolute;
  width: 1200px;
  height: 100%;
}

#fluid {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#hawking {
  position: absolute;
  width: 1600px;
  height: 100%;
}

#wormhole {
  position: absolute;
  width: 4000px;
  height: 100%;
}

#filter {
  position: absolute;
  width: 4000px;
  height: 100%;
  z-index: 100;
  background: -webkit-linear-gradient(
    to right,
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.5)
  );
  background: -moz-linear-gradient(
    to right,
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 1)
  );
  background: -ms-linear-gradient(
    to right,
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 1)
  );
  background: -o-linear-gradient(
    to right,
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 1)
  );
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 5%,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 1) 95%
  );
}

#brain {
  position: absolute;
  width: 1600px;
  height: 100%;
  justify-content: center;
  align-items: center;
  display: flex;
}

#brainText {
  font-weight: 100;
  font-size: 22px;
  z-index: 1200;
  color: #0f0;
}

#brainMatrix {
  position: absolute;
  width: 1800px;
  height: 100%;
  opacity: 0.7;
}

#explosion {
  position: absolute;
  width: 1700px;
  z-index: 100;
  cursor: pointer;
}

.final {
  position: absolute;
  top: 45%;
  z-index: 2000;
}

.final span {
  margin-left: 400px;
}

#end {
  position: absolute;
  width: 100vw;
  height: 20px;
  line-height: 20px;
  color: white;
  text-align: center;
  cursor: default;
  top: 50%;
  left: 100%;
  margin-left: -100vw;
}

#end span {
  display: inline-block;
  width: 20px;
  height: 20px;
}

div.flashback {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  color: black;
  z-index: 8000;
}

div.flashback > p {
  font-size: 16px;
  position: fixed;
  top: 50%;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
}
