body {
  margin: 0;
  background-color: #283d3d;
  color: #fff;
  /* font: 16px "Lucida Grande", Helvetica, Arial, sans-serif; */
  font: 16 px "Ubuntu Mono";
}

a {
  color: #00B7FF;
}

.main-container {
  background-color: #283d3d;
  color: #fff;
  /* display: flex; */
  /* flex-direction: column; */
  height: 100dvh;

  .chat-container,
  .chatbox {
    display: block;
  }

  .header {
    display: flex;
    justify-content: space-between;
    background-color: #0f8787;

    #navBtn {
      display: flex;
      justify-content: end;
      gap: 20px;
    }
  }

  #chat-page {
    width: 100vw;
  }

  #about {
    .message-placeholder {
      padding: 20px 40px;
    }

    .chatbox {
      padding: 10px;

      a {
        color: white;
      }
    }
  }
}

.header {
  box-shadow: 0 0 10px 0 black;
  padding-top: 10px;
  margin-bottom: 10px;

  img#liba_logo {
    height: 30px;
    padding-left: 5px;
    margin-bottom: 8px;
  }

  a {
    text-decoration: none;
    color: white;
    cursor: pointer;

    h6 {
      padding-top: 5px;
    }
  }

  h1 {
    font-family: "Baskervville SC", serif;
    font-size: 1.5rem;
    display: inline-block;
  }

  p {
    font-family: "Inconsolata";
  }

  h1,
  p {
    text-align: center;
  }
}

.chat-container {

  .loader {
    left: 0;
    top: 0;
    position: fixed;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;

    .content {
      position: relative;
      top: 50%;
      opacity: 0.5;
    }

    .content::after {
      content: url("/images/tube-spinner.svg");
    }
  }
}

.message-placeholder {
  overflow-y: auto;
  display: block;
  height: calc(100vh - 140px);
  scrollbar-width: none;
  padding: 0 6.25rem;

  #initImage {
    display: none;
  }

  .bot-conversation {
    text-align: left;
  }

  .user-conversation {
    text-align: right;
  }

  .conversation {
    padding: 8px 12px 6px;
    display: block;
  }

  .user-avatar::after {
    content: url("/images/user.png");
    filter: invert(48%) sepia(13%) saturate(3207%) hue-rotate(130deg) brightness(95%) contrast(80%);
  }

  .bot-avatar img {
    height: 40px;
    filter: brightness(0) saturate(100%) invert(96%) sepia(4%) saturate(3012%) hue-rotate(26deg) brightness(99%) contrast(96%);
  }

  .avatar {
    display: block;
  }

  .message {
    display: inline-block;
    text-align: left;
    max-width: 75%;
    overflow-wrap: break-word;
  }

  .citations {
    display: block;
  }
}

.chatbox {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 6.25rem;
  background-color: #0f8787;

  .querybox {
    position: relative;

    #query {
      resize: none;
      border-radius: 20px;
      height: 2.5rem;
    }

    #query-submit {
      width: 34px;
      height: 34px;
      border-color: transparent;
      border-radius: 10rem;
      background-image: url(../images/send_icon.png);
      position: absolute;
      right: 0.25rem;
      bottom: 0.23rem;
    }
  }

  #query-submit:hover {
    opacity: 0.5;
  }

  #sample-questions {
    margin-top: 5px;

    .sample-question {
      background-color: #283d3d;
      border-radius: 10px;
      padding: 20px 10px;
      margin: 5px;
      cursor: pointer;
    }

    .sample-question:hover {
      opacity: 0.5;
    }

    .row {
      margin-left: 0;
      margin-right: 0;
    }
  }
}

.main-container.login-page {

  .header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
  }


  .login-container {
    position: absolute;
    z-index: 10;
    left: 0;
    top: 56px;
    bottom: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    background-image: url('/images/login_wide.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100vw calc(100vh - 56px);
    padding-left: 20px;

    .login-phrase {
      display: flex;
      flex-direction: column;
      align-items: flex-start;

      span {
        font-family: Cardo, serif;
        font-weight: 400;
        font-size: 30px;
      }
    }

    .login-button-container {
      border-radius: 30px;
      display: flex;
      height: 50px;
      width: 250px;
      justify-content: center;
      align-items: center;
      gap: 30px;
    }

    .login_button {
      border-radius: 2px;
    }

    .google_logo {
      width: 24px;
    }
  }
}

@media only screen and (max-width: 767px) {
  body {
    .header {
      flex-direction: column;
      padding-top: 2rem;

      #title {
        text-align: center;
      }

      #navBtn {
        display: flex;
        justify-content: end;
        gap: 20px;
      }

      h1 {
        font-size: 20px;
      }

      p {
        font-size: 14px;
      }
    }

    .message-placeholder {
      overflow-y: auto;
      display: block;
      height: calc(100dvh - 14rem);
      padding: 0 1rem;

      #initImage {
        display: inline-block;

        img {
          padding: 10px 10px 0px 0px;
          width: 90vw;
          height: calc(100dvh - 34rem);
          ;
        }
      }
    }

    .chatbox {
      padding: 10px 1rem;
      padding-bottom: 1rem;

      #sample-questions {
        .row {
          display: block;

          .sample-question {
            padding: 10px;
            margin: 10px 0;
          }
        }
      }
    }
  }

  

  .main-container.login-page {

    .login-container {
      top: 78px;
      background-size: 100vw calc(100vh - 78px);
  
      .login-phrase {
  
        span {
          font-size: 22px;
        }
      }
  
      .login-button-container {
        height: 40px;
        width: 220px;
      }
  
      .google_logo {
        width: 24px;
      }
    }
  }
}

@media only screen and (min-width: 1000px) {

  .message-placeholder {
    padding: 0 calc(6.25rem + (100vw - 1000px)/2);
  }

  .chatbox {
    padding: 10px calc(6.25rem + (100vw - 1000px)/2);
  }
}

@media only screen and (max-width: 518px) {
  
  .main-container.login-page {

    .login-container {
      top: 110px;
      background-size: 100vw calc(100vh - 110px);
      background-image: url('/images/login_mob.jpg');
      align-items: center;
      padding-bottom: 100px;
      justify-content: end;
      padding-left: 0;

      .login-phrase {
        align-items: center;

        span {
          text-align: center;
          font-size: 18px;
        }
      }

    }
  }
}