/*
 * Copyright (c) 2023 Thomas Hansen - For license inquiries you can contact thomas@ainiro.io.
 */

.hide_input {
  opacity: 0.2;
}

.message {
  display: block;
  padding: 1rem;
  margin-bottom: 1rem;
}

.relative {
  position: relative;
}

.upload-button {
  color:#777;
  position:absolute;
  right:10px;
  top:2px;
}
.attachment {
  position: absolute;
  top: 14px;
  right: 24px;
  border-radius: 8px;
  background-color: #fefefe;
  padding: 10px 35px 10px 10px;
  border: solid 1px rgba(0, 0, 0, 0.2);
  mat-icon {
    position: absolute;
    right: 5px;
    margin-top: -1px;
    font-size: 18px;
    color: #a0a0a0;
  }
}

.human {
  background-color: #f0f0f0;
  border-radius: 5px;
}

@keyframes jump {
  0% {
    bottom: 0px;
  }
  20% {
    bottom: 5px;
  }
  40% {
    bottom: 0px;
  }
}

::ng-deep .input-textarea {
   .mat-form-field-wrapper {
      padding-bottom: 0;
   }
}

::ng-deep p > span.ainiro-dot {
  position: relative;
  animation: jump 1s infinite;
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 3px;
  background-color: #a0a0a0;
}
::ng-deep p > span.ainiro-dot.ainiro-dot-1 {
  animation-delay: 150ms;
}
::ng-deep p > span.ainiro-dot.ainiro-dot-2 {
  animation-delay: 300ms;
}
::ng-deep p > span.ainiro-dot.ainiro-dot-3 {
  animation-delay: 450ms;
}
::ng-deep .no-margin {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}
::ng-deep pre.no-margin {
  font-size: 12px;
}
::ng-deep pre.plaintext {
  white-space: pre-line;
}

::ng-deep .output blockquote {
  font-size: 18px;
  color: #707070;
  margin: 0;
  padding: 5px 15px;
  font-style: italic;
}

.output {
  position: relative;
  height: calc(100vh - 380px);
  min-height: calc(100vh - 380px);
  overflow-y: auto;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.75;

  .graphics {
    max-height: 300px;
    height: 300px;
    width: auto;
    display: block;
  }

  @keyframes flash-btn {
    0% {
      box-shadow: 0 0 20px rgba(0,0,255, 1);
    }
    100% {
      box-shadow: 0 0 20px rgba(0,0,255, 0);
    }
  }

  .intro-message {
    font-size: 14px;
    line-height: 18px;
  }

  .quick-start {
    animation-name: flash-btn;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
    border-radius: 10px;
    font-size: 20px;
    padding:3px 50px;
  }
}

::ng-deep .output img:not(.exclude) {
  max-width: 100%;
  max-height: 400px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 15px;
  border-radius: 5px;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2);
}

::ng-deep .error-message {
  display: block;
  background-color: rgba(255, 220, 220) !important;
}

@keyframes function_waiting {
  0% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
  }
}

::ng-deep .message table {
  width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  margin-bottom: 1rem;
}

::ng-deep .message table thead tr th {
  font-weight: bold;
  text-align: left;
  border-bottom: solid 1px rgba(0, 0, 0, 0.1);
}

::ng-deep .message table thead tr th,
::ng-deep .message table tbody tr td {
  padding: 5px 7px;
}

::ng-deep .message table tbody tr td {
  white-space: normal;
  vertical-align: top;
}

::ng-deep .message pre {
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  line-height: 16px;
}

::ng-deep .message div.think {
  font-size: 14px;
  line-height: 17px;
  border: solid 1px rgba(220, 220, 220);
  border-radius: 5px;
  padding: 1rem;
  background-color: #fafafa;
  margin-bottom: 1rem;
  color: #808080;
}

::ng-deep .mermaid {
  svg {
    width: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
  }
}

::ng-deep .function_waiting {
  color: #a0a0a0;
  animation: function_waiting 1s infinite alternate;
}

::ng-deep .function_succeeded {
  color: #00cf00;
}

::ng-deep .function_failed {
  color: #cf0000;
}

::ng-deep pre.hyperlambda {
  background: #2b2b2b;
  color: #d4d0ab;
  padding: 14px;
}

::ng-deep .download_file {
  display: block;
  border: solid 1px rgba(0,0,0,.1);
  border-radius: 5px;
  padding: 5px 25px;
  text-decoration: none;
  margin-left: auto;
  margin-right: auto;
  width: 200px;
  text-align: center;
  margin-top: 25px;
  margin-bottom: 25px;
}

::ng-deep .hljs_ignore {
  margin-top: 25px;
  margin-bottom: 25px;
}
