
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200");
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Righteous&display=swap');

@keyframes appear-anim {
  from {
    scale: 0.8;
    opacity: 0;
  }
  to {
    scale: 1;
    opacity: 1;
  }
}

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 1,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}

html, body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: normal;
  text-align: center;
}

p {
  margin: 10px 0;
  font-size: 14px;
}

.spacer {
  flex-grow: 1;
}

@media (max-width: 600px) {
  .hide-on-mobile {
    display: none;
  }
}

@media (min-width: 600px) {
  .hide-on-desktop {
    display: none;
  }
}

.wrapper {
  height: 100vh;
}
.wrapper edro-avatarium {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
}
.wrapper edro-avatarium > div {
  display: flex;
  display: flex;
  justify-content: center;
}

.connection {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 5px;
  height: 5px;
  background: #90ff8d;
  border-radius: 5px;
}

.center-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  pointer-events: none;
  margin: 0;
}
.center-area::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,0) 48%, rgba(0,0,0,0.35) 100%);
  background-size: 100% 100%;
}
.center-area > * {
  z-index: 1;
}
.top-area > *, .bottom-area > * {
  pointer-events: auto;
}
.center-area > .spacer, .top-area > *.spacer, .bottom-area > *.spacer {
  pointer-events: none;
}
.top-area {
  display: flex;
  justify-content: start;
  flex-grow: 1;
  margin-bottom: 15px;
  flex-direction: column;
  align-items: stretch;
}
.bottom-area {
  display: flex;
  flex-direction: column;
  align-content: center;
}

.controls {
  margin: 10px;
  display: flex;
}
.controls .button {
  background: #dadada;
  color: white;
  font-size: 32px;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #dadada;
  margin: 10px;
}
.controls .button.disabled {
  background: none;
}
.controls img.button {
  width: 48px;
  height: 48px;
  padding: 0;
}

.multimedia-area {
  display: flex;
  flex-direction: column;
  width: calc(100% - 10px);
  max-width: 600px;
  padding: 10px 15px;
  margin-bottom: 50px;
  align-self: center;
  border-radius: 20px;
  box-shadow: 6px 6px 4px 0px rgba(0, 0, 0, 0.2);
  background: #E9E9E9;
  box-sizing: border-box;
  animation: appear-anim ease-out 0.2s;
}

.answer-message {
  display: flex;
  flex-direction: column;
  width: calc(100% - 10px);
  max-width: 600px;
  align-self: center;
  animation: appear-anim ease-out 0.2s;
}
.answer-message.multimedia {
  justify-content: end;
}
.answer-message-content {
  position: relative;
  display: flex;
  box-shadow: 6px 6px 4px 0px rgba(0, 0, 0, 0.2);
  background: #E9E9E9;
  border-radius: 20px;
  padding: 10px 15px;
  flex-direction: column;
}
.answer-message-content p {
  max-height: 18vh;
  overflow: auto;
}
.answer-message.multimedia .answer-message-content {
  padding-top: 20px;
}
.answer-message.multimedia .answer-message-content:after {
  content: "";
  position: absolute;
  top: -50px;
  left: 10px;
  height: 80px;
  width: 80px;
  background: url("icon.png");
  background-size: contain;
}
.answer-message-content h3 {
  text-align: center;
  margin: 5px 0;
  font-size: 16px;
}
.answer-message-content .suggestion {
  background: white;
  padding: 8px 10px;
  margin: 8px 0;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 4px 4px 4px rgba(0,0,0,0.2);
  cursor: pointer;
  font-size: 14px;
}
.answer-message-content .new-question {
  background: white;
  padding: 8px 10px;
  margin: 8px 0;
  color: #8e8e8e;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  letter-spacing: 1px;
  border: 1px solid #dadada;
  text-align: center;
}
.answer-message-content .suggestion:hover, .answer-message-content .new-question:hover{
  background: #f4f4f4;
}
.answer-message svg {
  margin-left: 60%;
  z-index: 1;
  margin-top: -1px;
}
.answer-message svg path {
  filter: drop-shadow(6px 6px 4px rgba(0, 0, 0, 0.2));
}

.answer-navigation {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}
.answer-navigation-prev, .answer-navigation-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #DADADA;
  border-radius: 50%;
  color: white;
  font-size: 60px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.answer-navigation-prev.disabled, .answer-navigation-next.disabled {
  opacity: 0;
  pointer-events: none;
}
.answer-navigation-dots {
  margin: 0 12px;
  display: flex;
  align-items: center;
}
.answer-navigation-dot {
  width: 20px;
  height: 20px;
  margin: 0px 4px;
  border: 1px solid white;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.answer-navigation-dot.active {
  background: #FFFFFF;
}
@media (max-width: 600px) {
  .answer-navigation {
    position: relative;
    height: 75px;
    align-items: start;
  }
  .answer-navigation-dot {
    width: 8px;
    height: 8px;
  }
  .answer-navigation-prev {
    position: absolute;
    right: 85px;
    bottom: 0;
    width: 50px;
    height: 50px;
  }
  .answer-navigation-next {
    position: absolute;
    right: 5px;
    bottom: 0;
    width: 75px;
    height: 75px;
    font-size: 72px;
  }
}

.chat-my-message {
  background: #FFFFFF;
  padding: 6px 10px;
  color: #414141;
  font-size: 12px;
  margin: 20px auto 6px auto;
  border-radius: 6px;
}
.chat-my-message p {
  margin: 0;
}

.chat-area {
  display: flex;
  background: #dadada;
  border-radius: 80px;
  margin: 10px auto;
  width: 800px;
  max-width: calc(100% - 20px);
}
.chat-area input[type="text"] {
  flex-grow: 1;
  background: none;
  padding: 20px;
  outline: 0;
  border: 0;
  font-family: 'Montserrat', sans-serif;
  color: black;
  font-size: 12px;
}
.chat-area input[type="submit"], .chat-area .button {
  background: none;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 32px;
  padding: 10px;
  cursor: pointer;
}
.chat-area .button.recording {
  color: red;
}

.dialog-area {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  backdrop-filter: blur(8px);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.dialog {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  padding: 20px 20px 10px 20px;
  width: calc(100% - 10px);
  box-sizing: border-box;
  max-width: 600px;
}
.dialog img {
  width: 100%;
  margin: 0 auto;
  display: block;
}
.dialog .label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.2);
  border-radius: 30px;
  padding: 2px 5px 2px 15px;
  cursor: pointer;
  margin: 10px 0;
}
.toggle {
  background: #f4f4f4;
  border-radius: 30px;
  padding: 5px;
}
.toggle.enabled {
  background: #a3d165;
}
.toggle .handle {
  background: white;
  width: 20px;
  height: 20px;
  border-radius: 20px;
  margin-right: 25px;
  transition: margin ease 0.2s, background ease 0.2s;
}
.toggle.enabled .handle {
  margin-left: 25px;
  margin-right: 0;
}

.text-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 15px;
  background: #ffffff;
  border: 1px solid #dadada;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  letter-spacing: 3px;
  color: #a9a9a9;
  margin: 10px 4px;
  cursor: pointer;
}
.text-button:hover {
  color: #777;
}
.text-button.welcome {
  background: url('icons/BUTTON_SOLID.png');
  width: 213px;
  box-sizing: border-box;
  border: 0;
  color: white;
}

.tutorial-area {
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.3) 100%);
  background-size: 100% 100%;
  z-index: 10;
  pointer-events: auto;
}
.tutorial-area > * {
  font-family: 'Montserrat', sans-serif;
  color: white;
  pointer-events: none;
  display: inline-block;
  width: 35%;
}
.tutorial-area > *::after {
  position: absolute;
  content: "";
  background: url("arrow_tutorial.png");
  background-size: contain;
  height: 100px;
  width: 100px;
}
.tutorial-area h2 {
  font-size: 22px;
  margin: 20px 0 0 0;
}
.tutorial-area p {
  font-size: 18px;
}
@media (max-width: 600px) {
  .tutorial-area h2 {
    font-size: 16px;
  }
  .tutorial-area p {
    font-size: 14px;
    margin: 4px 0;
  }
}
.tutorial-1 {
  position: absolute;
  left: 24px;
  top: 175px;
}
.tutorial-1::after {
  left: 7px;
  top: -100px;
  transform: rotate(-37deg) scaleX(-1);
}
.tutorial-2 {
  position: absolute;
  right: 29px;
  top: 175px;
  text-align: right;
}
.tutorial-2::after {
  right: -12px;
  top: -97px;
  transform: rotate(30deg);
}
.tutorial-3 {
  position: absolute;
  right: calc(max(0px, (100vw - 800px) / 2) + 22px);
  bottom: 181px;
  text-align: right;
}
.tutorial-3::after {
  right: -10px;
  bottom: -106px;
  transform: rotate(206deg);
}
.tutorial-4 {
  position: absolute;
  left: calc(max(0px, (100vw - 800px) / 2) + 18px);
  bottom: 184px;
}
.tutorial-4::after {
  left: -8px;
  bottom: -110px;
  transform: scaleY(-1) rotate(30deg);
}

.loader {
  width: 15px;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: l5 1s infinite linear alternate;
  margin: 50px auto;
}
@keyframes l5 {
    0%  {box-shadow: 20px 0 #FFF, -20px 0 #FFF2;background: #FFF }
    33% {box-shadow: 20px 0 #FFF, -20px 0 #FFF2;background: #FFF2}
    66% {box-shadow: 20px 0 #FFF2,-20px 0 #FFF; background: #FFF2}
    100%{box-shadow: 20px 0 #FFF2,-20px 0 #FFF; background: #FFF }
}