@import url(../fonts/fonts.css);

* {
  box-sizing: border-box;
}

html,body {
  margin: 0px;
  padding: 0px;
  max-height: 100vh;
  background-color: #222;
}

body * {
  box-sizing: border-box;
  font-family: "Cutive Mono", monospace;
  font-weight: bold;
  background-color: #000;
  color: #b8b8b8;
  font-size: 20px;
  text-rendering: auto;
  letter-spacing: normal;
  word-spacing: normal;
}

img.icon {
  width: 32px;
  background-color: transparent;
}

#app {
  padding: 0px;
  width: 100%;
  max-height: 100vh;
}

#loader {
  position: absolute;
  width: 64px;
  height: 64px;
  animation: spin 1s infinite linear;
  top: 50%;
  left: 50%;
  margin-top: -32px;
  margin-left: -32px;
  display: block;
}

@keyframes spin {
    from {transform:rotate(0deg);}
    to {transform:rotate(360deg);}
}

#wrapper {
  max-height: 100vh;
}

#burger {
  position: fixed;
  right: 1em;
  border: 0px;
  top: 1em;
  background-color: transparent;
  outline-style: none;
}

#channel-info {
  position: fixed;
  padding: 0.5em;
  padding-top: 2em;
  max-width: 100%;
  width: 320px;
  top: 0px;
  right: 0px;
  border: 1px solid #555;
  background-color: #333;
  min-height: 100vh;
}

#channel-info * {
  background-color: transparent;
}

#channels {
  margin-top: 0.5em;
}

#channels .tab {
  padding: 0.2em;
  margin: 0.1em;
  cursor: pointer;
}

#channels .tab .name {
  position: absolute;
  left: 4.5em;
}

#channels .tab.selected {
  background-color: #666 !important;
}

#channels .tab .connections {
  position: absolute;
}

#channels .tab .icon {
  width: 32px;
  margin-right: 10px;
}

#channels .tab:hover .icon {
}

#users > div > span {
  display: inline-block;
  width: 50%;
  max-width: 50%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#buttons {
  text-align: right;
  background-color: #333;
}

.left {
  float: left;
}

#message-area {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-bottom: 1px;
}

#messages {
  flex: 1;
  padding: 0em 0.5em;
  margin: 0.25em 0em;
  height: 100%;
  overflow: auto;
}

#messages .time, .who, .message {
  margin-right: 0.25em;
  white-space: pre-wrap;
  word-wrap: break-word;
}

#messages .who {
  color: #666;
  width: 5em;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#messages > div {
  white-space: pre-wrap;
  word-wrap: break-word;
}

#messages > div > * {
  vertical-align: top;
}

#messages .message {
  margin: 0px;
  margin-left: 0.5em;
  display: inline-block;
}

#input {
  width: 100%;
  position: fixed;
  bottom: 0px;
}

#input form {
  width: 100%;
  display: flex;
  flex-direction: row;
}

input {
  flex: 1;
  border: none;
  background-color: #000;
  padding: 0.25em 0.5em;
}

button#send {
  border: none;
  padding: 0.25em 0.5em;
  cursor: pointer;
}

#fin {
  position: absolute;
  top: 50%;
  margin-top: -1em;
  display: block;
  width: 100%;
  text-align: center;
}

.waiting span {
  animation: throb 1.4s infinite ease-in-out both;
  display: inline-block;
}

.waiting .dot-1 {
  animation-delay: -0.32s;
}

.waiting .dot-2 {
  animation-delay: -0.16s;
}

@keyframes throb {
  0%, 80%, 100% {
    opacity: 1;
  } 40% {
    opacity: 0;
  }
}
