@import url("https://fonts.googleapis.com/css?family=Lato:400,700");

:root {
  --body-bg: linear-gradient(135deg, #f5f7fa 0%, #ffc380 100%);
  --msger-bg: #fff;
  --border: 2px solid #ddd;
  --left-msg-bg: #ffd700;
  --right-msg-bg: #868e99;
}

html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-image: var(--body-bg);
  font-family: Helvetica, sans-serif;
}

/* ---------------------------------------------------
    CHAT CONTENT
----------------------------------------------------- */

.msger {
  display: flex;
  flex-flow: column wrap;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin: 100px 10px 25px 10px;
  height: calc(100% - 100px);
  border: var(--border);
  border-radius: 5px;
  background: var(--msger-bg);
  box-shadow: 0 15px 15px -5px rgba(0, 0, 0, 0.2);
}

.msger-chat {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}
.msger-chat::-webkit-scrollbar {
  width: 6px;
}
.msger-chat::-webkit-scrollbar-track {
  background: #ddd;
}
.msger-chat::-webkit-scrollbar-thumb {
  background: #bdbdbd;
}
.msg {
  display: flex;
  align-items: flex-end;
  margin-bottom: 10px;
}

.msg-img {
  width: 70px;
  height: 70px;
  margin-right: 10px;
  background: #ddd;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 50%;
  background-image: url("../assets/bot-img.png");
}
.msg-bubble {
  max-width: 450px;
  padding: 15px;
  border-radius: 15px;
  background: var(--left-msg-bg);
}
.msg-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.msg-info-name {
  margin-right: 10px;
  font-weight: bold;
}
.msg-info-time {
  font-size: 0.85em;
}

.left-msg .msg-bubble {
  border-bottom-left-radius: 0;
}

.right-msg {
  flex-direction: row-reverse;
}
.right-msg .msg-bubble {
  background: var(--right-msg-bg);
  color: #fff;
  border-bottom-right-radius: 0;
}
.right-msg .msg-img {
  margin: 0 0 0 10px;
}

.msger-inputarea {
  display: flex;
  padding: 10px;
  border-top: var(--border);
  background: #ffd700;
}
.msger-inputarea * {
  padding: 10px;
  border: none;
  border-radius: 3px;
  font-size: 1em;
}
.msger-input {
  flex: 1;
  background: #fff;
}
.msger-send-btn {
  margin-left: 10px;
  background: #fff;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.23s;
}
.msger-send-btn:hover {
  background: rgb(255, 186, 36);
}

.msger-chat {
  background-color: #fcfcfe;
  background-image: url("../assets/children-book-transparent.png");
  background-position-x: center;
  background-position-y: center;
  background-repeat: no-repeat;
}

/* ---------------------------------------------------
  MODAL
----------------------------------------------------- */

.modal-dialog {
  vertical-align: middle;
  align-content: center;
  overflow-y: initial !important;
}

.modal {
  overflow-y: auto !important;
}

.modal .modal-content {
  padding: 10px 10px 10px 10px;
  -webkit-animation-name: modal-animation;
  -webkit-animation-duration: 0.5s;
  animation-name: modal-animation;
  animation-duration: 0.5s;
}

@-webkit-keyframes modal-animation {
  from {
    top: -100px;
    opacity: 0;
  }
  to {
    top: 0px;
    opacity: 1;
  }
}

@keyframes modal-animation {
  from {
    top: -100px;
    opacity: 0;
  }
  to {
    top: 0px;
    opacity: 1;
  }
}

.modal-header {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  text-transform: uppercase;
  color: #f03224;
  background: #ffd700 !important;
}

.modal-body {
  height: 400px;
  overflow: hidden;
}

h6 {
  margin-top: 40px;
}
.nav {
  position: fixed;
  margin-right: 5px;
}

.modal-body:hover {
  overflow-y: auto;
}

.nav-tabs {
  background-color: #fff;
}

.nav-tabs > li > a {
  border: medium none;
  color: #f03224;
  font-size: 14px;
}
.nav-tabs > li > a:hover {
  background-color: #e9eb9a !important;
  border: medium none;
  border-radius: 0;
  color: #fff;
}

.tab-content {
  padding: 5px;
}

p {
  font-size: 14px;
}

table {
  margin-top: 55px;
}

thead {
  font-size: 14px;
  color: #000;
}

tbody {
  font-size: 14px;
}

@media only screen and (max-width: 680px) {
  /* ---------------------------------------------------
    CHAT CONTENT
  ----------------------------------------------------- */
  .msger {
    display: flex;
    flex-flow: column wrap;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    margin: 60px 10px 0 10px;
    height: calc(100% - 90px);
    border: var(--border);
    border-radius: 5px;
    background: var(--msger-bg);
    box-shadow: 0 15px 15px -5px rgba(0, 0, 0, 0.2);
  }
  .msger-chat {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
  }
  .msger-chat::-webkit-scrollbar {
    width: 6px;
  }
  .msger-chat::-webkit-scrollbar-track {
    background: #ddd;
  }
  .msger-chat::-webkit-scrollbar-thumb {
    background: #bdbdbd;
  }
  .msg {
    display: flex;
    align-items: flex-end;
    margin-bottom: 10px;
  }

  .msg-img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    background: #ddd;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 50%;
    background-image: url("../assets/bot-img.png");
  }
  .msg-bubble {
    max-width: 300px;
    padding: 5px;
    border-radius: 7px;
    background: var(--left-msg-bg);
  }
  .msg-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
  }
  .msg-info-name {
    margin-right: 10px;
    font-weight: bold;
  }
  .msg-info-time {
    font-size: 0.5em;
  }

  .left-msg .msg-bubble {
    border-bottom-left-radius: 0;
    font-size: 10px;
  }

  .right-msg {
    flex-direction: row-reverse;
  }
  .right-msg .msg-bubble {
    background: var(--right-msg-bg);
    color: #fff;
    border-bottom-right-radius: 0;
    font-size: 10px;
  }
  .right-msg .msg-img {
    margin: 0 0 0 10px;
  }

  .msger-inputarea {
    display: flex;
    padding: 7px;
    border-top: var(--border);
    background: #ffd700;
  }
  .msger-inputarea * {
    padding: 7px;
    border: none;
    border-radius: 3px;
    font-size: 10px;
  }
  .msger-input {
    flex: 1;
    background: #fff;
  }
  .msger-send-btn {
    margin-left: 10px;
    background: #fff;
    color: #000;
    font-size: 10px;
    cursor: pointer;
    transition: background 0.23s;
  }
  .msger-send-btn:hover {
    background: rgb(255, 186, 36);
  }

  .msger-chat {
    background-color: #fcfcfe;
    background-image: url("../assets/children-book2-transparent.png");
    background-position-x: center;
    background-position-y: center;
    background-repeat: no-repeat;
    background-size: 60%;
  }

  #help-btn {
    font-size: 12px;
  }

  /* ---------------------------------------------------
    MODAL
  ----------------------------------------------------- */

  .modal .modal-content {
    padding: 0 0 0 0;
  }

  .modal-title {
    font-size: 12px;
  }

  .nav {
    margin-right: 5px;
  }

  .nav-tabs > li > a {
    border: medium none;
    color: #f03224;
    font-size: 10px;
  }
  .nav-tabs > li > a:hover {
    background-color: #e9eb9a !important;
    border: medium none;
    border-radius: 0;
    color: #fff;
  }

  .tab-content {
    padding: 5px;
  }

  h6 {
    font-size: 12px;
    margin-top: 15px;
  }

  p {
    font-size: 10px;
  }

  table {
    margin-top: 45px;
  }

  thead {
    font-size: 10px;
    color: #000;
  }

  tbody {
    font-size: 10px;
  }

  #btn-close {
    font-size: 10px;
  }
}

@media only screen and (max-width: 380px) {
  /* ---------------------------------------------------
    CHAT CONTENT
  ----------------------------------------------------- */
  .msger {
    display: flex;
    flex-flow: column wrap;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    margin: 55px 10px 0 10px;
    height: calc(100% - 80px);
    border: var(--border);
    border-radius: 5px;
    background: var(--msger-bg);
    box-shadow: 0 15px 15px -5px rgba(0, 0, 0, 0.2);
  }
  .msger-chat {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
  }
  .msger-chat::-webkit-scrollbar {
    width: 6px;
  }
  .msger-chat::-webkit-scrollbar-track {
    background: #ddd;
  }
  .msger-chat::-webkit-scrollbar-thumb {
    background: #bdbdbd;
  }
  .msg {
    display: flex;
    align-items: flex-end;
    margin-bottom: 10px;
  }

  .msg-img {
    width: 25px;
    height: 25px;
    margin-right: 10px;
    background: #ddd;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 50%;
    background-image: url("../assets/bot-img.png");
  }
  .msg-bubble {
    max-width: 250px;
    padding: 5px;
    border-radius: 7px;
    background: var(--left-msg-bg);
  }
  .msg-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
  }
  .msg-info-name {
    margin-right: 10px;
    font-weight: bold;
  }
  .msg-info-time {
    font-size: 0.5em;
  }

  .left-msg .msg-bubble {
    border-bottom-left-radius: 0;
    font-size: 8px;
  }

  .right-msg {
    flex-direction: row-reverse;
  }
  .right-msg .msg-bubble {
    background: var(--right-msg-bg);
    color: #fff;
    border-bottom-right-radius: 0;
    font-size: 8px;
  }
  .right-msg .msg-img {
    margin: 0 0 0 10px;
  }

  .msger-inputarea {
    display: flex;
    padding: 7px;
    border-top: var(--border);
    background: #ffd700;
  }
  .msger-inputarea * {
    padding: 7px;
    border: none;
    border-radius: 3px;
    font-size: 10px;
  }
  .msger-input {
    flex: 1;
    background: #fff;
  }
  .msger-send-btn {
    margin-left: 10px;
    background: #fff;
    color: #000;
    font-size: 10px;
    cursor: pointer;
    transition: background 0.23s;
  }
  .msger-send-btn:hover {
    background: rgb(255, 186, 36);
  }

  .msger-chat {
    background-color: #fcfcfe;
    background-image: url("../assets/children-book2-transparent.png");
    background-position-x: center;
    background-position-y: center;
    background-repeat: no-repeat;
    background-size: 60%;
  }

  #help-btn {
    font-size: 10px;
  }

  /* ---------------------------------------------------
    MODAL
  ----------------------------------------------------- */

  /* .modal .modal-content {
    padding: 0px;
  } */

  .modal-title {
    font-size: 12px;
  }

  .nav {
    max-width: 310px;
  }
  .nav-tabs {
    /* width: fit-content; */
    margin-right: 10px;
  }
  .nav-tabs > li > a {
    border: medium none;
    color: #f03224;
    font-size: 9px;
  }
  .nav-tabs > li > a:hover {
    background-color: #e9eb9a !important;
    border: medium none;
    border-radius: 0;
    color: #fff;
  }

  .tab-content {
    padding: 5px;
  }

  h6 {
    font-size: 12px;
    margin-top: 40px;
  }

  p {
    font-size: 10px;
  }

  table {
    margin-top: 55px;
  }

  thead {
    font-size: 10px;
    color: #000;
  }

  tbody {
    font-size: 10px;
  }

  #btn-close {
    font-size: 10px;
  }
}
