/* The chatbar menu */

body {
  margin: 0;
}

#chatbutton {
  position: fixed;
  right: 0;
  z-index: 1; /* Stay on top */
  top: 0;
  font-size: 20px;
  cursor: pointer;
  background-color: #111, 0.5;
  color: white;
  padding: 10px 15px;
  border: none;
  transition: opacity 0.6s ease-out;
}

#chatbutton:hover {
  background-color: #444, 1;
}

.inactive {
  opacity: 0;
}

.chatbar {
  height: 100%; /* 100% Full-height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed;
  right: 0;
  z-index: 1; /* Stay on top */
  top: 0;
  background-color: #111; /* Black*/
  overflow-x: hidden; /* Disable horizontal scroll */
  transition: 0.5s; /* 0.5 second transition effect to slide in the chatbar */
}

.chatbar .chatbox{
  height: 97%;
  display: flex;
}

.chatbar .chatbox ul{
  padding-left: 1em;
  overflow: auto;
}

.chatbar .chatbox li {
  padding: 1em 8px 8px 0;
  text-decoration: none;
  font-size: 1em;
  color: #dddddd;
  display: block;
  transition: 0.3s;
}

.chatbar form {
  position: fixed;
}

.chatbar .message {
  position: fixed;
  margin-left: 1em;
  margin-right: 1em;
  bottom: 1em;
  width: 14em;
  height: 1.25em;
}

.chatbar .send {
  position: fixed;
  margin-left: 15em;
  bottom: 1em;
  width: 3em;
  height: 1.25em;
  border: none;
  cursor: pointer;
  background-color: #111;
  color: white;
}

#main {
  transition: margin-right .5s;
}

@media screen and (max-height: 450px) {
  .chatbar {padding-top: 15px;}
  .chatbar a {font-size: 18px;}
}