

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  font-family: "Lato";
  height: 100%;
  transition: transform 0.3s ease-in-out;
  overflow-x: hidden;
}

#checking{
  position: fixed;
  bottom: 2vh;
  right: 2vw;
  display: none;
}

.cf:after {
  content: "";
  display: table;
  clear: both;
}

.show-me {
  transition: transform 0.3s ease-in-out;
  transform: translate3d(-300px, 0, 0);
}

.title {
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  color: white;
  height: 100px;
  text-align: center;
  font-size: 8vw;
  font-weight: 600;
}

#chat_button {
  position: fixed;
  bottom: 2vh;
  right: 2vw;
  font-family: "Lato";
  font-style: normal;
  -webkit-appearance: none;
  font-size: 1rem;
  line-height: 1.2;
  border-radius: 3px;
  border: 3px solid #0082e6;
  background: #0082e6;
  color: white;
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-decoration: none !important;
  cursor: pointer;
  text-align: center;
  font-weight: normal;
  padding: 10px 16px;
  padding-left: 30px;
  outline: 0;
  transition: all .5s ease;
}


/*before selector is used to insert something before the selected element.
Here green dot has been inserted*/

#chat_button:before {
  position: absolute;
  top: 0;
  left: 10px;
  bottom: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  background: #53DD6C;
  content: "";
  border-radius: 100px;
}
#chat_button:hover {
  background: #4d4d50;
}

#chat_button:active {
  bottom: 1.5vh;
}
/*changed chat from absolute to fixed;and top:0px removed*/
.chat {
  position: fixed;
  background: #28282B;
  right: -300px;
  height: 100vh;
  top: 50px;
  width: 300px;
  transition: all .5s ease;
}

.chat__human {
  display: block;
  width: 100%;
  padding: 10px 20px;
  color: white;
  transition: 0.3s;
  cursor: pointer;
}
.chat__human:nth-child(odd) {
  background: #232326;
}
.chat__human:hover {
  background: #0c0c0c;
}
.chat__human > * {
  display: inline-block;
  vertical-align: middle;
}

.chat__avatar {
  width: 40px;
  background: #fff;
  border-radius: 100px;
  margin-right: 20px;
}

.chat__users {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 1px;
  font-weight: 100;
  color: #ccc;
  padding: 10px 20px;
  background: black;
}

/*changed conversation from absolute to fixed*/
.conversation {
  display: none;
  position: fixed;
  bottom: 0;
  right: 500px;
  width: 40vw;
  height: 40vh;
  background: black;
}

/*Hiding chat box for mobile view*/
@media only screen and (max-width: 985px){
    #chat_button,.chat{
      display: none;
    }
}

@media only screen and (max-width: 968px) {
  .conversation{
    display: none;
  }
}

.conversation__header {
  color: #ccc;
  padding: 15px 10px;
  background: #343436;
  border-top: 2px solid #FEDD31;
  margin-bottom: 10px;
  cursor: pointer;
}

.conversation__msg {
  padding: 5px 10px;
  color: white;
  list-style-type: none;
  font-size: 12px;
}
.conversation__msg span {
  background: white;
  color: black;
  display: table;
  padding: 10px 20px;
  border-radius: 100px;
  float: left;
}

.conversation  .right {
  float: right !important;
  background: #0ebeff !important;
  color: white !important;
}


.conversation  .input {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  background: #121212;
  border: 0;
  outline: 0;
  transition: 0.3s;
  color: white;
}
.conversation  .input:focus {
  background: #121212;
}

.conversation  .close-msg {
  float: right;
  font-size: 20px;
  margin-top: -4px;
}

#checking:checked ~ .chat{
  transition: all 0.3s ease-in-out;
  transform: translate3d(-300px, 0, 0);
}

#checking:checked ~ label #chat_button{
  transition: all 0.3s ease-in-out;
  transform: translate3d(-300px, 0, 0);
}