/* Design interface */
head {
  display: inline-block;
}

html {
  font-family: lores-21-serif, sans-serif;
}

body {
  margin: 0;
  background: black;
  height: 100vh;
  overflow: hidden;
}

main {
  display: grid;
  grid-template-rows: 85vh 15vh;
  height: 100vh;
  color: rgb(0, 0, 0);
}

form {
  padding: 2%;
}

textarea {
  background: none;
  border: 1px solid white;
  border-radius: 10px;
  color: white;
  font-family: lores-21-serif, sans-serif;
  font-size: 1.5em;
}

button {
    font-family: lores-21-serif, sans-serif;
}

form > textarea, form > button {
  width: 95%;
  display: block;
  margin: 1% auto;
}

form > input {
  width: 100%;
}
/* feature */
#emoji {
  margin: 0;
  bottom:auto;
  background-color: #FFD700;
}

.someclass {
  width: 20px;
  background-color: #FFD700;
}
/* end of feature */
#chatLogin {
  position: relative;
  top: 50%;
  width: 50vw;
  height: inherit;
  margin: 0 auto;
  background: #FFD700;
  border-radius: 10px;
  color: black;
  padding: 2%;
  transform: translateY(-50%);
  font-size: 10px;
}

#chatLogin form > button {
  font-size: 2em;
  background: black;
  border: 0;
  color: #FFD700;
  width: 20%;
  border-radius: 10px;
}

#chatLogin form > input {
  border: 0;
  border-bottom: 1px solid black;
  background: none;
  font-size:2em;
  font-family: lores-21-serif, sans-serif;
  color: black;
}

#chat-mgmt form {
  display: grid;
  grid-template-columns: 90% 10%;
}

#chat-mgmt form > button {
  border: none;
  font-size: 2em;
  color: black;
  background: rgb(0, 0, 0);
  border-radius: 10px;
  width: 50%;
  height: 50%;
  position: relative;
  transform: translateY(-50%);
  top: 50%;
  background: #FFD700;
}

#chat-container {
  display: grid;
  grid-template-columns: 70vw 30vw;
}

#chat-window {
  color: white;
  margin: 2.5%;
  overflow-y: scroll;
  animation: .15s;
  width: 95vw;
  padding-right: 5%;
}

#chat-window > p {
  margin: .5%;
  font-size: 2rem;
}

#chat-window > p:first-child {
  margin: 0 0 5% 0;
}

#chat-window > p > .chat-msg {
  border-radius: 5px;
  text-shadow: 1px 1px rgb(0, 0, 0);
  word-wrap: break-word;
}

#chat-users {
  color: #FFF;
}

@media only screen and (max-width: 1024px) {

  main {
    grid-template-columns: auto;
    font-size: 1.5rem;
    grid-template-rows: 15vh 85vh;
  }

  #chat-mgmt {
    order: 1;
  }

  #chat-mgmt form {
    display: grid;
    grid-template-columns: 90% 10%;
    grid-template-rows: 100% 100%;
    height: 85%;
  }

  #chat-mgmt textarea {
    font-size: 2rem;
  }

  #chat-mgmt form > button {
    font-size: 2em;
    bottom: 0;
    width: 75%;
    position: relative;
  }

  #chat-window {
    order: 2
  }

  #chatLogin, #chatLogin input, #chatLogin button {
    font-size: 1em;
  }

  #chatLogin {
    width: 75vw;
  }
}
