body {
  /* https://www.color-hex.com/color/d3d3d3 */
  background-image: url(../assets/background.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: 1;
  animation: blur 0.5s ease-out;
  overflow: hidden;
}

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

#title_container {
  width: auto;
  height: auto;

  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  background-color: #024f8e;
  /*#467599;*/
  box-shadow: 0 0 30px -18px #4d99e7;
}

#title_inner_container {
  width: 100%;
  height: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  /* background-color: #083D77; */
  border-radius: 200px;
}

#title {
  display: inline-block;
  color: rgb(255, 204, 2);
  /*EBEBD3, C5283D*/
  font-size: 55px;
  letter-spacing: 2px;
  user-select: none;
}

#join_container {
  width: 100%;
  height: calc(100vh - 100px);

  display: flex;
  justify-content: center;
  align-items: center;

  float: left;
  margin-top: 0;
}

#join_inner_container {
  width: 90%;
  max-width: 500px;
  height: auto;
  padding: 20px;
}

#join_input_container {
  width: 100%;
  height: 50px;

  display: flex;
  justify-content: center;
  align-items: center;

  float: left;
}

#join_input {
  width: 100%;
  height: 40px;

  color: rgb(255, 255, 255) 4;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  background-color: Transparent;
  border-bottom: 2px dashed #024f8e;
}

#join_input:focus {
  box-shadow: 0 10px 30px -17px #024f8e;
}

#join_button_container {
  width: 100%;
  height: 50px;

  display: flex;
  justify-content: center;
  align-items: center;
}

#join_button {
  width: 40%;
  min-width: 120px;
  height: 45px;
  border-radius: 50px;

  font-family: Varela Round;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  color: rgb(255, 255, 255);
  cursor: pointer;
  transition: all 0.3s ease;
}

#chat_container {
  width: 100%;
  height: calc(100vh - 150px);
  min-height: 500px;

  display: flex;
  justify-content: center;

  float: left;
  margin-top: 0px;
  /* Fade in container */
  animation: fadeIn 1s linear;
}

#chat_inner_container {
  margin-top: 20px;
  margin-left: 30px;
  margin-right: 30px;
  margin-bottom: 0px;
  width: calc(100% - 60px);
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#chat_content_container {
  width: 100%;
  flex: 1;
  overflow-y: auto;
  font-family: Varela Round;
  padding: 10px;
  margin-bottom: 10px;
}

#chat_input_container {
  width: 100%;
  min-height: 50px;
  max-height: 280px;
  display: flex;
  align-items: flex-end;
  border-bottom: 2px dashed #1d3354;
  background-color: Transparent;
  padding: 10px 15px;
  gap: 10px;
}

#chat_input {
  flex: 1;
  min-height: 30px;
  max-height: 250px;
  background-color: Transparent;
  color: #1d3354;
  font-size: 15px;
  font-family: "Nunito", sans-serif;
  resize: none;
  overflow-y: auto;
  padding: 5px 0;
  line-height: 1.4;
}

#chat_input_send {
  width: 40px;
  height: 40px;
  font-size: 18px;
  background-color: Transparent;
  text-align: center;
  color: #024f8e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#chat_input_send.enabled {
  color: #024f8e;
  background-color: Transparent;
  cursor: pointer;
}

#chat_logout_container {
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  flex-shrink: 0;
}

#chat_logout {
  text-decoration: none;
  width: 100%;
  max-width: 300px;
  height: 50px;
  border-radius: 50px;
  background-color: #024f8e;
  color: rgb(255, 255, 255);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Varela Round;
  font-size: 15px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.message_container {
  width: 100%;
  display: inline-block;
  margin-bottom: 8px;
  animation: slideIn 0.3s ease-out;
}

.message_container.grouped_message {
  margin-bottom: 8px;
  margin-top: 0;
}

.message_inner_container {
  width: auto;
  max-width: 80%;
  display: inline-block;
  padding: 12px 16px;
  border-radius: 16px;
  background: #024f8e;
  box-shadow: 0 2px 8px rgba(2, 79, 142, 0.25);
  color: #ffffff;
  word-wrap: break-word;
}

.message_user_container {
  width: 100%;
  display: inline-block;
  margin-bottom: 6px;
}

.message_user {
  font-weight: bold;
  font-size: 13px;
  color: rgb(255, 204, 2);
}

.message_content_container {
  width: 100%;
  display: inline-block;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.message_content {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 4px;
  color: #ffffff;
}

.enabled {
  transition: background-color 0.5s;
  color: #ffffff;
  background-color: #024f8e;
  /*#5B7553;*/
  cursor: pointer;
}

#title_container.chat_title_container {
  transition: 0.8s;
  transition-timing-function: ease-in-out;
  height: 100px;
}

#title.chat_title {
  transition: 0.8s;
  font-size: 47px;
}

.loader_container {
  width: 100%;
  height: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
}

.loader {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;

  border-top: 6px solid #024f8e;
  border-bottom: 6px solid #024f8e;
  border-left: 6px solid #e9fff9;
  border-right: 6px solid #e9fff9;
}

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

  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blur {
  0% {
    filter: blur(5px);
  }

  100% {
  }
}

::selection {
  background-color: #024f8e;
  color: #fff;
}

/* width */
::-webkit-scrollbar {
  width: 6px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #ccc;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #024f8e;
  border-radius: 5px;
}

/* mobile */
@media screen and (max-width: 768px) {
  #title {
    font-size: 40px;
  }

  #chat_inner_container {
    margin: 15px;
    width: calc(100% - 30px);
  }

  #chat_content_container {
    padding: 8px;
  }

  #chat_logout {
    max-width: 100%;
  }

  .message_inner_container {
    max-width: 85%;
  }

  .message_user {
    font-size: 12px;
  }

  .message_content {
    font-size: 13px;
  }
}
