:root {
  background-color: transparent !important;
  --p: 245 100% 49%;
  --pf: 245 100% 40%;
}

html, body {
  height: unset;
  font-size: 16px;
  /* min-width: 100%; */
  /* height: 100%;
  margin: 0;
  padding: 0; */
}

/* @media only screen and (max-width: 640px) {
  html, body {
    font-size: 16px;
  }
} */

body {
  background: radial-gradient(circle, #ffff 0%, #fff0 40%), radial-gradient(99% 110.25% at 100% 84.32%, rgba(11, 1, 254, 0.15) 0%, rgba(10, 1, 254, 0.00) 100%), radial-gradient(56.18% 59.98% at 0% 14.33%, rgba(247, 1, 213, 0.2) 0%, rgba(247, 1, 213, 0.00) 100%), #FAF1FE;
  /* background-blend-mode: normal, normal, normal; */
  background-attachment: fixed;
  overflow-x: hidden;
  font-size: 1rem;
  font-family: 'Kurious', sans-serif;
  color: #222;
  transition: background 1s;
}

body.dark {
  background: radial-gradient(99% 110.25% at 100% 16.32%, rgba(11, 1, 254, 0.50) 0%, rgba(10, 1, 254, 0.00) 100%), radial-gradient(56.18% 59.98% at 0% 86.33%, rgba(247, 1, 213, 0.25) 0%, rgba(247, 1, 213, 0.00) 100%), #DD9EED;
  color: white;
}

a:not(.btn) {
  color: hsl(var(--p)) !important;
  font-weight: 600;
}



/* #container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
} */

h1 {
  color: white;
}

#chat_UI {
  position: relative;
  overflow-y: auto;
}
#ChatFlow {
  position: absolute;
  width: 100%;
  /* inset: 0; */
  /* height: calc(100svh - 35rem);
  height: calc(100vh - 35rem); */
  overflow: auto;
  scroll-behavior: smooth;
}

/* #universe {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
} */

@media only screen and (max-width: 640px) {
  .steps-horizontal li.step, .step-horizontal li.step, li.step {
    min-width: 0;
  }
  .steps-horizontal li.step:after, .step-horizontal li.step:after, li.step:after {
    height: 1.5rem;
    width: 1.5rem;
  }
  #chat_UI {
    position: relative;
  }
  /* #ChatFlow {
    position: absolute;
    inset: 0;
  } */
}

  /* #video
  {
      transform: rotateY(180deg);
      -webkit-transform:rotateY(180deg); /* Safari and Chrome 
      -moz-transform:rotateY(180deg); /* Firefox 
  }
   */
.card {
  width: 100% !important;
  max-width: 600px;
}

@media only screen and (max-width: 450px) {
  .page {
    border-radius: 0 !important;
  }
}
/* @media only screen and (min-width: 450px) {
  #container {
    overflow: hidden;
  }
} */

.popup-container {
  position: fixed;
  inset: 0;
  background-color: #0008;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}
  
.popup {
  background-color: white;
  position: fixed;
  margin: auto;
  border-radius: 8px;
  padding: 2rem 1rem;
  width: calc(100% - 2rem);
  max-width: 500px;
  text-align: center;
}


#qrcode img {
  margin: auto;
}

.popup .close {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 1.5rem;
}

/* -------------------------------------- */

.page-title {
  color: #222;
  
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.survey-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
  margin-bottom: 32px;
}

.survey-block::before {
  content: ' ';
  width: 32px;
  height: 8px;
  border-radius: 24px;
  background: #FA00D4;
}


.survey-question-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  align-self: stretch;
}

.survey-question {
  color: #222;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.survey-description {
  color: #222;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  opacity: 0.6;
}

.survey-input {
  display: flex;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  border-radius: 8px;
  border: 1.5px solid #1400FB;
  background: #FFF;
  font-size: 14px;
}

.page {
  transition: all 0.3s;
  display: flex;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  max-height: 100%;
  overflow-y: auto;
  margin-left: -16px;
  margin-right: -16px;
  /* padding: 1rem; */
}

.page-hidden {
  /* opacity: 0;
  transform: translateY(50%);
  pointer-events: none; */
  /* height: 0; */
  display: none !important;
}

.link-action {
  color: #1400FB;
  font-weight: bold;
}

.link-action:hover {
  text-decoration: underline;
}

.glow-aurora {
  filter: 
    drop-shadow(10px -20px 30px rgba(240, 1, 207, 0.30))
    drop-shadow(-10px 20px 30px rgba(26, 1, 251, 0.80));
  /* filter: drop-shadow(10px -20px 60px rgba(240, 1, 207, 0.30)) drop-shadow(-10px 20px 60px rgba(26, 1, 251, 0.80)); */
  animation: mymove 7s infinite;
}

@keyframes mymove {
  0% {
    filter: 
      drop-shadow(10px -20px 30px rgba(240, 1, 207, 0.30))
      drop-shadow(-10px 20px 30px rgba(26, 1, 251, 0.80));
  }
  33% {
    filter: 
      drop-shadow(-20px 0px 30px rgba(240, 1, 207, 0.30))
      drop-shadow(20px 0px 30px rgba(26, 1, 251, 0.80));
  }
  67% {
    filter: 
      drop-shadow(10px 20px 30px rgba(240, 1, 207, 0.30))
      drop-shadow(-10px -20px 30px rgba(26, 1, 251, 0.80));
  }
  100% {
    filter: 
      drop-shadow(10px -20px 30px rgba(240, 1, 207, 0.30))
      drop-shadow(-10px 20px 30px rgba(26, 1, 251, 0.80));
  }
}

.glow-aurora-sm {
  filter: 
    drop-shadow(5px -10px 10px rgba(240, 1, 207, 0.2))
    drop-shadow(-5px 10px 10px rgba(26, 1, 251, 0.5));
  /* filter: drop-shadow(10px -20px 60px rgba(240, 1, 207, 0.30)) drop-shadow(-10px 20px 60px rgba(26, 1, 251, 0.80)); */
  animation: aurora-sm 7s infinite;
}

@keyframes aurora-sm {
  0% {
    filter: 
      drop-shadow(5px -10px 10px rgba(240, 1, 207, 0.20))
      drop-shadow(-5px 10px 10px rgba(26, 1, 251, 0.50));
  }
  33% {
    filter: 
      drop-shadow(-10px 0px 10px rgba(240, 1, 207, 0.20))
      drop-shadow(10px 0px 10px rgba(26, 1, 251, 0.50));
  }
  67% {
    filter: 
      drop-shadow(5px 10px 10px rgba(240, 1, 207, 0.20))
      drop-shadow(-5px -10px 10px rgba(26, 1, 251, 0.50));
  }
  100% {
    filter: 
      drop-shadow(5px -10px 10px rgba(240, 1, 207, 0.2))
      drop-shadow(-5px 10px 10px rgba(26, 1, 251, 0.5));
  }
}

.card-body {
  gap: 1.5rem;
}

.chat-controls {
  display: flex;
  padding: 1rem 1rem 2rem 1rem;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  align-self: stretch;
  
  border-radius: 16px 16px 0px 0px;
  border: 1px solid #FFF;
  background: rgba(255, 255, 255, 0.80);
}

/* .btn-small {
  display: flex;
  padding: 6px 16px;
  justify-content: center;
  align-items: center;
  gap: 8px;
} */

.btn-sub {
  border-radius: 8px;
  background: var(--BG-primary-light, #E9E6FF);
  color: #1400FB;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  border: none;
}

.btn-sub:hover {
  background: var(--BG-primary-light, #E9E6FF);
  filter: brightness(0.96);
}

.warning {
  transition: all 0.2s;
}

.warning-hidden {
  transform: translate(-50%, -100px) !important;
  opacity: 0;
  pointer-events: none;
}

.questionnaire-page, .form-page {
  display: flex;
  flex-direction: column;
  
  padding: 2rem 1rem;
  gap: 2rem;
}

.questionnaire-page .questionnaire-page-title {
  font-weight: bold;
}

.questionnaire-page * {
  margin: 0;
}

.questionnaire-page .questionnaire-group {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input, .textarea {
  font-size: 1rem;
  min-height: 2.875rem;
  padding: 0.25rem 1rem;
  box-sizing: border-box;
  line-height: 1.5;
}

input.input {
  height: 0;
}

.input-bordered, .textarea-bordered {
  border-color: hsl(var(--pf, var(--p)));
  /* border-width: 1.5px; */
}

.btn:not(.btn-sm) {
  min-height: 2.875rem;
  height: 0;
  padding: 0.25rem 2rem;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  /* height: inherit; */
  font-weight: bold;
}

.questionnaire-page .questionnaire-group label {
  margin: 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.25rem;
}

.questionnaire-page .questionnaire-group .question-main {
  font-weight: 600;
}

.questionnaire-page .questionnaire-group .question-sub {
  font-size: 0.875rem;
  color: #222b;
}

.questionnaire-page .questionnaire-group .question-sub ul {
  list-style: disc inside;
}

.questionnaire-page .questionnaire-group .question-icon {
  font-size: 2rem;
  line-height: 1;
}

/* .questionnaire-page .questionnaire-group::before {
  content: ' ';
  width: 32px;
  height: 8px;
  border-radius: 24px;
  background: #FA00D4;
} */
/* 
.survey-frame {
  width: 100%;
  flex-grow: 1;
} */


.language-toggle {
  position: fixed;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.language-toggle a.active {
  font-weight: bold;
}

.spin {
  animation: spin 0.3s linear infinite;
}

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

.input-highlight {
  border: 3px solid #ff0066;
}
