/* Fonts */
@font-face {
  font-family: am3;
  src: url("/font/am.otf");
}

/* Base */
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  font-family: am3, sans-serif;
}
a {
  color: #eeeeee !important;
  text-decoration: none !important;
}
#register {
  overflow-x: hidden;
  text-shadow: 1px 0px 10px rgba(0, 0, 0, 1);
}
.pane {
  text-align: center;
  min-width: 100vw;
  min-height: 100vh;
  padding-top: 15%;

  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
  overflow-y: auto;
}
.pane::after {
  /* Display and position the pseudo-element */
  content: " ";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  /* Move the pseudo-element back away from the camera,
    * then scale it back up to fill the viewport.
    * Because the pseudo-element is further away, it appears to move more slowly, like in real life. */
  -webkit-transform: translateZ(-1px) scale(1.5);
          transform: translateZ(-1px) scale(1.5);
  /* Force the background image to fill the whole element. */
  background-size: 100%;
  /* Keep the image from overlapping sibling elements. */
  z-index: -1;
}
h2 {
  font-family: am3, sans-serif;
  font-size: 5em;
  margin-bottom: 10vh;
  color: #ffffff;
}
label {
  font-size: 4em;
  color: #fff;
  font-family: am3, sans-serif;
  position: relative;
  margin-right: 10px;
}

/* Welcome */
#welcome {
  background-image: url("/img/welcome.jpg");
  text-align: center;
  font-family: "Lora", serif;
  font-size: 2em;
  color: #ffffff;
}
#welcome p {
  font-size: 1.8em;
}

/* Start */
#start {
  background-image: url("/img/start.jpg")
}
#start div {
  cursor: pointer;
  margin-top: 26px;
  border: 4px solid #ffffff;
  background-color: rgb(255,255,255, 0.2);
}
#start div:hover {
  background-color: rgb(255, 255, 255, 0.3);
}
#start span {
  font-size: 3em;
  line-height: 3em;
  color: #ffffff;
}

/* About */
#about {
  background-image: url("/img/join.jpg");
}
#about p {
  color: #ffffff;
  font-size: 2em;
}

/* Chat */
#index {
  font: 13px Helvetica, Arial;
}
#index form {
  padding: 5px;
  position: fixed;
  bottom: 0;
  width: 100%;
}
#index #m {
  margin-bottom: 10px;
  margin-left: 10px;
  border-bottom: solid 4px #000;
  font-family: am3, sans-serif;
  background-color: #ffffff;
}
#index form input {
  border: 0;
  padding: 20px;
  width: 98.5%;
}
#index form button {
  width: 9.5%;
  background: #fff;
  border: none;
  padding: 0px;
  font-family: am3, sans-serif;
  position: relative;
  bottom: -10px;
  display: none;
}
#messages {
  font-family: am3, sans-serif;
  list-style-type: none;
  margin: 0;
  padding: 0;
  margin-bottom: 100px;
  margin-top: 70px;
}
#messages li {
  padding: 10px;
  word-break: break-all;
  padding-right: 120px;
  font-size: 1.5em;
}
#messages li:nth-child(odd) {
  background: #eee;
}
#signout {
  margin: 20px;
  font-family: am3, sans-serif;
  color: #eee;
  border: none;
  background-color: transparent;
  font-size: 1.7em;
  position: absolute;
  top: 0px;
  right: 0px;
}
#roomid {
  margin: 15px;
  font-family: am3, sans-serif;
  font-size: 1.7em;
  color: #eee;
}
.inf {
  position: fixed;
  background-color: #000;
  top: 0px;
  width: 100%;
  padding: 5px;
}

/* Responsive */
@media (max-width: 1024px) {
  body {
    font-size: 1em;
  }
  #start div {
    font-size: 0.8em;
  }
  .pane {
    padding-top: 40%;
  }
}