body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  font-family: "Open Sans", sans-serif;
}

.dot {
  width: 5px;
  height: 5px;
  margin-bottom: 5px;
  border-radius: 50%;
  background-color: rgb(27, 32, 100);
  animation: blink 0.5s infinite alternate;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

#remark {
  display: none;
  margin-top: 5px;
  font-size: 14px;
  text-align: center;
  justify-content: center;
  color: rgb(27, 32, 100);
}

a {
  padding: 4px 8px;
  overflow: hidden;
  font-weight: bold;
  font-style: italic;
  position: relative;
  align-items: center;
  display: inline-flex;
  text-decoration: none;
  color: rgb(132, 139, 200);
  border-bottom: 1px solid rgb(132, 139, 200);
}

a:hover {
  cursor: pointer;
  background-color: rgb(132, 139, 200, 0.15);
}

a::before {
  content: "🔗";
  margin-right: 6px;
}

a::after {
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  content: "";
  position: absolute;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
  background-color: rgb(132, 139, 200);
}

a:hover::after {
  transform: scaleY(1);
}

a:active {
  transform: translateY(1px);
}

ul li::marker {
  color: rgb(57, 65, 136);
}

b,
strong {
  color: rgb(27, 32, 100);
}

table {
  width: 100%;
  margin: 10px 0;
  font-size: 16px;
  overflow: hidden;
  text-align: left;
  border-radius: 8px;
  border-collapse: collapse;
}

th {
  padding: 10px;
  font-weight: bold;
  color: rgb(51, 51, 51);
  background: rgb(244, 244, 244);
  border-bottom: 2px solid rgb(221, 221, 221);
}

td {
  padding: 10px;
  border-bottom: 1px solid rgb(221, 221, 221);
}

tr:nth-child(even) {
  background: rgb(249, 249, 249);
}

tr:hover {
  background: rgb(241, 241, 241);
  transition: background 0.3s ease;
}

pre code {
  padding-top: 14px !important;
  line-height: 1.2 !important;
}

.progress,
.progress div {
  box-sizing: border-box;
}
.progress {
  width: 34px;
  height: 34px;
  position: relative;
  display: inline-block;
  transform: scale(0.6, 0.6);
}
.progress div {
  top: 15.33333px;
  width: 15.33333px;
  height: 13.33333px;
  border-radius: 50%;
  position: absolute;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
  background: linear-gradient(45deg, rgb(57, 65, 136), rgb(132, 139, 200));
}
.progress div:nth-child(1) {
  left: -14px;
  animation: progress1 0.6s infinite;
}
.progress div:nth-child(2) {
  left: -13px;
  animation: progress2 0.6s infinite;
}
.progress div:nth-child(3) {
  left: 14px;
  animation: progress2 0.6s infinite;
}
.progress div:nth-child(4) {
  left: 32px;
  animation: progress3 0.6s infinite;
}
@keyframes progress1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes progress3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes progress2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

.particles {
  width: 100%;
  height: 100%;
  z-index: -1;
  position: fixed;
}

.chat-container {
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.block {
  margin: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 1400px) {
  .block {
    height: auto;
  }
}

h2 {
  margin-bottom: 0px;
  color: rgb(53, 53, 53);
  font-size: clamp(24px, 5vw, 36px);
}

h1 {
  margin-top: 0px;
  color: transparent;
  background-clip: text;
  font-size: clamp(32px, 8vw, 48px);
  background-image: linear-gradient(
    to right,
    rgb(57, 65, 136),
    rgb(132, 139, 200)
  );
}

h3,
h4,
h5,
h6 {
  margin-top: 0px;
  color: transparent;
  background-clip: text;
  background-image: linear-gradient(
    to right,
    rgb(57, 65, 136),
    rgb(132, 139, 200)
  );
}

.input-container {
  width: 90%;
  display: flex;
  margin: 0 auto;
  max-width: 1200px;
  position: relative;
  align-items: center;
}

.input-wrapper {
  flex: 1;
}

input[type="text"] {
  width: 100%;
  border-radius: 30px;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
  height: clamp(50px, 10vw, 60px);
  background: rgb(237, 240, 255);
  font-size: clamp(16px, 3.5vw, 18px);
  padding: clamp(12px, 2.5vw, 16px) 30px;
  border: 1px solid rgb(129, 134, 182, 0.5);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus {
  outline: none;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 6px,
    rgb(129, 134, 182, 0.5) 0px 0px 0px 2px,
    rgba(187, 192, 231, 0.294) 0px 1px 0px inset;
  transform: translateY(-1px);
}

input:disabled {
  opacity: 0.7;
  cursor: no-drop;
}

input::placeholder {
  color: rgb(129, 134, 182, 0.7);
}

.send-button.new {
  margin-top: -24px;
}

.send-button {
  width: 50px;
  height: 50px;
  border: none;
  display: flex;
  color: white;
  cursor: pointer;
  font-size: 22px;
  margin-left: 10px;
  border-radius: 50%;
  margin-right: -50px;
  align-items: center;
  justify-content: center;
  transition: all 0.1s ease-in-out;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px;
  background-image: linear-gradient(
    to right,
    rgb(57, 65, 136),
    rgb(132, 139, 200)
  );
}

.send-button:hover {
  transform: scale(1.1, 1.1);
  background-image: rgb(90, 98, 180);
}

.send-button:disabled {
  opacity: 0.7;
  cursor: no-drop;
}

.send-button:active {
  transform: scale(0.97, 0.97);
  background-image: rgb(90, 98, 180);
}

@media (max-width: 1200px) {
  .send-button {
    top: 50%;
    right: 10px;
    width: 50px;
    height: 50px;
    border: none;
    display: flex;
    color: white;
    cursor: pointer;
    margin-right: 0;
    font-size: 22px;
    transition: none;
    position: absolute;
    align-items: center;
    border-radius: 50%;
    justify-content: center;
    transform: translateY(-50%);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px;
    background-image: linear-gradient(
      to right,
      rgb(57, 65, 136),
      rgb(132, 139, 200)
    );

    .send-button.new {
      margin-top: -12px;
      margin-right: 10px;
    }
  }

  .send-button:hover {
    transform: translateY(-50%);
    background-image: rgb(90, 98, 180);
  }

  input:focus {
    outline: none;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 6px,
      rgb(129, 134, 182, 0.5) 0px 0px 0px 2px,
      rgba(187, 192, 231, 0.294) 0px 1px 0px inset;
    transform: translateY(0px);
  }
}

@media (max-width: 500px) {
  .send-button {
    width: 40px;
    height: 40px;
  }

  .send-button.new {
    margin-top: -32px;
    margin-right: 10px;
  }
}

.square {
  height: auto;
  display: flex;
  padding: 10px;
  align-items: stretch;
  justify-content: space-between;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  width: clamp(372px, 74.4vw, 1115px);
  background: linear-gradient(45deg, rgb(57, 65, 136), rgb(132, 139, 200));
}

@media (max-width: 768px) {
  .square {
    gap: 2px;
    height: auto;
    display: flex;
    padding: 10px;
    margin-bottom: 15px;
    flex-direction: column;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    width: clamp(250px, 74.4vw, 500px);
  }

  .hint {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    align-self: stretch;
    box-sizing: border-box;
  }

  .caution {
    display: none;
  }
}

@media (max-width: 550px) {
  .logo {
    display: none;
  }
}

.hint {
  flex: 1;
  gap: 10px;
  margin: 5px;
  width: auto;
  height: auto;
  padding: 20px;
  border: none;
  display: flex;
  color: white;
  font-size: 16px;
  cursor: pointer;
  flex-wrap: wrap;
  text-align: left;
  text-align: center;
  align-items: center;
  border-radius: 24px;
  box-sizing: border-box;
  background-color: #edf0ff;
  justify-content: space-between;
  box-shadow: inset 0px 8px 0 0 rgb(121, 129, 202);
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.hint:hover {
  transform: scale(0.98, 0.98);
  background-color: rgb(220, 225, 252);
  box-shadow: inset 0px 8px 0 0 rgb(90, 98, 180);
}

.icon {
  display: flex;
  color: white;
  flex-shrink: 0;
  font-size: 20px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  width: clamp(30px, 4vw, 50px);
  height: clamp(30px, 4vw, 50px);
  background-color: rgb(132, 139, 200);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.hint:hover .icon {
  transform: rotate(10deg) scale(1.1);
  background-color: rgb(90, 98, 180);
}

.title {
  flex: 1;
  margin: 0;
  display: flex;
  margin-top: 5px;
  min-height: 40px;
  overflow: hidden;
  white-space: nowrap;
  align-items: center;
  text-overflow: ellipsis;
  color: rgb(32, 33, 102);
  font-size: clamp(18px, 3vw, 25px);
}

.text {
  margin: 0;
  width: 100%;
  text-align: left;
  color: rgb(79, 80, 113);
  font-size: clamp(14px, 2vw, 20px);
}

.caution {
  text-align: left;
  margin-top: 20px;
  margin-bottom: 0px;
  color: rgb(88, 90, 166);
  width: clamp(335px, 67vw, 1004px);
}

.cautionli {
  margin-bottom: 0;
}

.logo {
  cursor: pointer;
  margin-right: 10px;
  width: clamp(65px, 5vw, 70px);
  height: clamp(65px, 5vw, 70px);
}

@media (max-width: 900px) {
  .logo.main {
    display: none;
  }
}

.sitetitle {
  display: flex;
  text-align: center;
  margin-bottom: 20px;
  justify-content: center;
}

.controls {
  gap: 10px;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: flex;
  position: fixed;
  align-items: center;
}

.theme-switch {
  width: 40px;
  height: 20px;
  position: relative;
  display: inline-block;
}

.theme-switch input {
  width: 0;
  height: 0;
  opacity: 0;
}

.theme-icon {
  width: 25px;
  position: relative;
  display: inline-block;
  transform: scale(1.3, 1.3);
}

.slider {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  cursor: pointer;
  position: absolute;
  transition: 0.3s;
  border-radius: 20px;
  background-color: rgb(237, 240, 255);
}

.slider:before {
  left: 3px;
  bottom: 3px;
  width: 14px;
  height: 14px;
  content: "";
  transition: 0.3s;
  border-radius: 50%;
  position: absolute;
  background-color: rgb(62, 64, 149);
}

input:checked + .slider {
  background-color: rgb(214, 221, 255);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.custom-dropdown {
  position: relative;
  display: inline-block;
  font-family: Arial, sans-serif;
}

.language-select {
  display: none;
}

.dropdown-btn {
  gap: 5px;
  border: none;
  display: flex;
  font-size: 14px;
  cursor: pointer;
  min-width: 59px;
  padding: 5px 10px;
  border-radius: 8px;
  background: white;
  align-items: center;
  color: rgb(57, 65, 136);
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.arrow {
  transition: transform 0.3s ease;
}

.custom-dropdown.open .arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  left: 0;
  top: 100%;
  padding: 0;
  width: 100%;
  margin: 5px 0;
  display: none;
  overflow: hidden;
  list-style: none;
  position: absolute;
  background: white;
  border-radius: 8px;
  color: rgb(57, 65, 136);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.custom-dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  cursor: pointer;
  text-align: center;
  padding: 10px 15px;
  transition: background 0.3s ease;
}

.dropdown-menu li:hover {
  background: rgb(237, 240, 255);
}

::selection {
  color: white;
  background: rgb(62, 64, 149);
}

.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: rgb(57, 65, 136) transparent;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: rgb(57, 65, 136, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgb(57, 65, 136, 0.7);
}

.chat-container {
  transition: all 0.5s ease;
}

.hidden {
  display: none !important;
}

.logo.animated {
  top: 3px;
  left: 3px;
  width: 50px;
  height: 50px;
  position: fixed;
  transition: all 0.5s ease;
}

.input-container.fixed {
  flex: 1;
  padding: 10px;
}

.chat-container.visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.chat-container.hidden {
  opacity: 0;
  visibility: hidden;
}

.message-container {
  margin: 5px 0;
  padding: 20px;
  padding: 10px;
  margin: 5px 0;
  max-width: 70%;
  font-size: 16px;
  line-height: 1.5;
  border-radius: 10px;
  white-space: normal;
  display: inline-block;
  word-wrap: break-word;
}

.message-container.user {
  color: white;
  margin-left: auto;
  background: linear-gradient(
    45deg,
    rgb(57, 65, 136) 0%,
    rgb(96, 104, 171) 75%,
    rgb(57, 65, 136) 100%
  );
}

.message-container.bot {
  color: black;
  margin-right: auto;
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(186, 186, 186);
  box-shadow: 0px 4px 11.4px -8px black;
}

.dialogue-container {
  flex: 1;
  width: 90%;
  display: none;
  margin-top: 3%;
  overflow-y: auto;
  max-width: 1200px;
  padding-right: 15px;
  scroll-behavior: smooth;
}

.dialogue-container.visible {
  display: flex;
  flex-direction: column;
}

.block.dialogue {
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1200px) {
  .send-button.new {
    margin-top: -12px;
    margin-right: 10px;
  }
}

@media (max-width: 600px) {
  .send-button.new {
    margin-top: -24px;
    margin-right: 10px;
  }
}

@media (max-width: 400px) {
  .send-button.new {
    margin-top: -23px;
    margin-right: 10px;
  }
}

@media (max-width: 1400px) {
  .dialogue-container {
    padding-bottom: 80px;
  }

  .input-container.new {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px;
    position: fixed;
    background-color: white;
    border-top: 1px solid rgb(204, 204, 204);
  }

  .send-button.new {
    margin-right: 10px;
  }
}

.message-wrapper {
  opacity: 1;
  display: flex;
  margin: 15px 0;
  align-items: center;
  transform: translateY(0);
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.user-wrapper {
  align-items: flex-start;
  justify-content: flex-start;
}

.bot-wrapper {
  align-items: flex-start;
  justify-content: flex-start;
}

.avatar {
  width: 50px;
  height: 50px;
  margin: 0 10px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgb(132, 139, 200);
}

.user-avatar {
  order: 2;
}

.bot-avatar {
  order: 0;
}

.user .message-text {
  color: white;
  border-radius: 10px 10px 0 10px;
}

.bot .message-text {
  color: black;
  padding-top: 0;
  padding-left: 15px;
  padding-right: 15px;
  border-radius: 10px 10px 10px 0;
}