@keyframes popup {
  0% {
    transform: scale(0.8);
  }

  100% {
    transform: scale(1);
  }
}

::-webkit-scrollbar { 
  display: none; 
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  background: black;
  overflow: hidden;
}

canvas {
  /* display: none; */
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
}

.pointer {
  cursor: pointer;
}

.site {
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-between;
  height: 100vh;
  width: 100vw;
}

#chat {
  display: flex;
  flex-flow: column;
  align-items: center;
  flex: 1;
  margin: 2em;
  font-family: 'Fira Code', monospace;
  font-size: 0.85em;
  color: white;
  overflow: hidden;
  overflow-y: scroll;
}

.message {
  width: 100%;
  max-width: 500px;
  margin: 0 0 1em 0;
  word-break: break-all;
}

.message .name-date {
  display: flex;
  justify-content: space-between;
  margin: 0 0 0.1em 0;
}

.message .name {
  font-weight: 600;
}

.message .date {
  opacity: 0.5;
}

.bar {
  width: 100%;
  padding: 0.2em 0;
  font-size: 2em;
  font-weight: 300;
  text-transform: uppercase;
  color: white;
  background: transparent;
  transform: rotateX(60deg);
}

/* .bar-top {
  border-bottom: 1px solid white;
}

.bar-bottom {
  border-top: 1px solid white;
} */

.window {
  position: absolute;
  background: white;
  border-radius: 7px;
  box-shadow: 0.5em 0.5em 2em rgba(0, 0, 0, 0.1);
  z-index: 100;
  overflow: hidden;
  animation: popup 500ms;
  filter: invert(100);
}

.window .frame {
  display: flex;
  align-items: center;
  height: 3.2em;
  font-size: 0.85em;
  padding: 0 1em;
  background: white;
  cursor: move;
  /* border-bottom: 2px solid rgba(0, 0, 0, 0.1); */
}

.window .frame span {
  margin: 0 0.25em 0 0;
}

.window img {
  display: block;
  width: 100%;
  height: 100%;
  outline: 0;
  border: 0;
  overflow: hidden;
}

#reference {
  width: 500px;
}

#doc {
  width: 500px;
  height: 700px;
  filter: invert(100);
}

#doc iframe {
  width: 100%;
  height: 100%;
}

#residency {
  width: 400px;
  height: 500px;
  filter: invert(100);
}

#residency iframe {
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 600px) {
  body {
    font-size: 13px;
  }

  .bar {
    font-size: 2em;
  }

  #doc {
    width: 200px;
    height: 300px;
  }
}