/** {box-sizing: border-box}
body {font-family: "Lato", sans-serif;}
*/

:root {
  --light-blue: #def3f3;
  --dark-green: #248f89;
  --medium-green: #96d7d2;
  --light-green: #b2fef8;
}

#footer {
  font-size: 16px;
  text-align: center;
}

.wrapper {
  margin: auto;
  margin-top: 20px;
  max-width: 90%;
  min-width: 600px;
  overflow-x: auto;
}

h1 {
  font-family: "comic-sans", sans-serif;
  font-weight: 700;
  font-size: 60px;
  color: rgba(255, 255, 255, 0.87);
  letter-spacing: 1.61px;
  text-align: center;
  line-height: 79px;
}

h2 {
  font-family: "Roboto", sans-serif;
  font-size: 48px;
  color: rgba(0, 0, 0, 0.87);
}

h3 {
  font-family: "Roboto", sans-serif;
  font-size: 34px;
  color: rgba(0, 0, 0, 0.87);
  letter-spacing: 0.25px;
}

body {
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.87);
  text-align: left;
  letter-spacing: 0.75px;
}

img {
  width: 190px;
  height: 150px;
}

.navbar {
  position: fixed;
  background-color: var(--dark-green);
  width: 100%;
}

#open {
  margin-bottom: 0;
}

.btn-outline-info {
  border-color: var(--light-blue);
  border-width: 2px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 10px;
  color: var(--light-blue);
  margin: 20px;
  padding: 10px 35px;
  letter-spacing: 1.6px;
}

.btn-outline-info:hover {
  cursor: pointer;
  background-color: var(--dark-green);
  border-color: var(--dark-green);
}

#load {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  position: relative;
  border: 10px solid var(--dark-green);
  border-top: 10px solid var(--light-blue);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  margin: 10px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#chat {
  color: grey;
  display: none !important;
}

#open.flex-container {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
  background-color: #96d7d2;
  color: var(--light-blue);
  text-decoration: bold;
  flex-direction: column;
}

#chathistory {
  margin-top: 0;
  height: 60vh;
  overflow-y: scroll;
  padding-top: 0.25em;
  padding-bottom: 0.25em;
}

#chat_admin {
  position: inline-block;
  width: 100%;
}

.received_msg {
  width: 50%;
}

.received_msg p {
  background: white none repeat scroll 0 0;
  border-radius: 3px;
  color: #b1c6c4;
  font-size: 14px;
  margin-top: 10px;
  margin-right: 10px;
  padding: 5px;
  width: 95%;
}

#chat_user {
  position: inline-block;
  width: 100%;
  background: grey;
}

.sent_msg {
  background: grey;
  float: right;
  width: 50%;
}

.sent_msg p {
  background: #b1c6c4 none repeat scroll 0 0;
  border-radius: 3px;
  font-size: 14px;
  color: black;
  margin-top: 10px;
  margin-right: 10px;
  padding: 5px;
  width: 95%;
}

#chatbar {
  visibility: hidden;
  width: 80%;
  border-width: 1px;
  padding-top: 5px;
}

#e_space {
  background: white;
  height: 0;
}

#type_msg {
  width: 100%;
  flex-wrap: nowrap;
}

@media (min-width: 620px) {
  #inputBox {
    min-height: 10px;
    width: 90%;
    resize: none;
    border-bottom-left-radius: 3px;
    border-top-left-radius: 3px;
    border: solid rgb(200, 200, 200) 1px;
  }
}

/* change to fit the needed space */
@media (max-width: 620px) {
  #inputBox {
    min-height: 10px;
    width: calc(100% - 50px);
    resize: none;
    border-bottom-left-radius: 3px;
    border-top-left-radius: 3px;
  }
}

@media (min-width: 620px) {
  #sendButton {
    height: 55px;
    width: 20%;
  }

  #sendButton:hover {
    cursor: pointer;
  }

  #sendButtonText {
    text-align: center;
  }
}

@media (max-width: 620px) {
  #sendButton {
    height: 55px;
    width: 50px;
  }

  #sendButton:hover {
    background-color: rgb(200, 200, 200);
  }

  #sendButtonText {
    text-align: center;
  }
}

#typingIcon {
  display: none;
  width: 3em;
  height: auto;
  margin-left: 0.6em;
  margin-bottom: 0.25em;
}

#typingIcon img {
  width: 100%;
  height: 100%;
}

@media screen and (max-height: 600px) {
  #chatbox {
    display: none;
    height: 80%;
    width: 80%;
  }
}

@media screen and (min-height: 600px) {
  #chatbox {
    display: none;
    height: 80%;
    width: 80%;
  }

  #open.flex-container {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background-color: var(--medium-green);
    color: var(--light-blue);
    text-decoration: bold;
    flex-direction: column;
  }

  #chathistory {
    margin-top: 50px;
    height: 500px;
    overflow-y: scroll;
  }
}

#input-group {
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#delete {
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 3px;
  border: solid rgb(200, 200, 200) 1px;
  padding: 1em;
}

#goHomeLink {
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: var(--dark-green);
}

#delete:hover {
  background-color: var(--dark-green);
  color: white;
  transition: 0.3s;
  cursor: pointer;
}

@media (max-width: 820px) {
  #chatbar {
    width: 100%;
    visibility: hidden;
    border-width: 1px;
    padding-top: 5px;
  }

  #chatbox {
    display: none;
    height: 80%;
    width: 100%;
  }
}
