:root {
  /* Light mode */
  --background-color: #F6F6F6;
  --font-color: #000;
  --placeholder-color-inactive: rgba(0,0,0,.1);
  --placeholder-color-active: rgba(0,0,0,.2);
  --border-color-active: rgba(0,0,0,.1);
  --chatbot-message-bg:#F8F7F3;
  --chatbot-text-bg: #EA4828;
  --jobs-text-bg: #727BC3;
  --divider-line: #E9E9E9;
  --wild-text-bg: #000;
  --chatbot-message-bg-user: #FAFAFA;
  --main-bg:#FFF;
  --input-bg:rgba(255,255,255,1);
  --tab-color:#94D0FE;
}

[data-theme="dark"] {
  /* Dark mode */
  --background-color: #222;
  --font-color: #FFF;
  --chatbot-message-bg: #333;
  --divider-line: #333;
  --chatbot-text-bg: #000;
  --placeholder-color-inactive: rgba(255,255,255,.2);
  --placeholder-color-active: rgba(255,255,255,.2);
  --border-color-active: rgba(255,255,255,.2);
  --jobs-text-bg: #333;
  --wild-text-bg: #888;
  --chatbot-message-bg-user: #000;
  --main-bg:#111;
  --input-bg:rgba(255,255,255,.1);
  --tab-color:#888;
}


/* General styles */
html, body {
  margin: 0;
  padding: 0;
  font-family: Sneak, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 120%;
  letter-spacing: -0.18px;
  color:var(--font-color);
  height:100%;
  overflow: hidden;
  width: 100%;
}

/* Reset styles for paragraphs and lists */
p {
  margin: 0;
}

ul, li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Main container */
#main {
  display: flex;
  height: 100%;
  width:100%;
  position: sticky;
  background-color:var(--main-bg);
}

#main > div {
  display: flex;
}

.chatbot__form{
  position: relative;
}

/* Slideshow section */
.slideshow {
  order: 1; 
  width: 57.5%;
  overflow: hidden;
  position: relative;
  background:black;
}

/* Chat section */
.chat {
  order: 2;
  flex: 1 0 300px;
  width: 42.5%;
  justify-content: flex-end;
  flex-direction: column;
}

/* Chat input */
.chat-input, .chat-input input {
  height: 64px;
  width: 100%;
  border: none;
}

.chat-input input {
  flex: 1;
  border-top: 1px solid var(--chatbot-message-bg-user);
  width: 100%;
  padding: 10px 0 10px 20px;
  font-size: 14px;
  min-width: 280px;

  -webkit-appearance: none;
  box-sizing: border-box;
  transition: .4s;
}

.chat-input {
  display: inline-block;
  position: relative;
  background:var(--chatbot-message-bg-user);
}

/* Input focus and placeholder */

input{
   background: var(--input-bg);
}
input:focus {
  outline: none;
  background: var(--chatbot-message-bg-user);
  color:var(--font-color);
}

input ~ .focus-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--placeholder-color-inactive);
  transition: 0.4s;
}

input:focus ~ .focus-border, input:valid ~ .focus-border {
  width: 100%;
  height:1px;
  background-color: var(--border-color-active);
}

input::placeholder {
  color: var(--placeholder-color-inactive);
  transition: .2s;
}

input:focus::placeholder {
  color: var(--placeholder-color-active);
}

button{
  min-height:46px;
  display: inline-block;
  background-color: black;
  color: white;
  border:none;
  padding:0 20px;
  border-radius: 4px;
  cursor: pointer;
}

/* Send button */
.chatbot__button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

/* Chatbot messages */
.chatbot__messages {
  overflow-y: scroll;

  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  align-self:flex-end;
  padding:24px 0;
}
.chatbot__message--chatbot, 
.chatbot__message--user{
    margin:0 24px;
}

.chatbot__message--chatbot, 
.chatbot__message--user,
.chatbot__text,
.chatbot__link {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 16px;
  background: var(--chatbot-message-bg-user);
/*  margin-right: 24px;*/
  align-self: end;
  border-radius: 2px;
}
/* Link styles */
.chatbot__link:after {
  content: "";
  background-image: url("assets/arrow_icon-light.png");
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  top: 50%;
  right: 14px; /* adjust the right position as required */
  transform: translateY(-50%);
  background-size:contain;
  width: 16px; /* adjust the width of the icon as required */
  height: 16px; /* adjust the height of the icon as required */
}

/* Image styles */
.chatbot__images,
.chatbot__message--jobs ul,
.chatbot__message--textlist ul,
.chatbot__message--news ul {
  padding:0;
  margin:0;
  display: flex;
  gap:2px;
  flex-direction: column;
  width: 100%;
}

.chatbot__image--container {
  position: relative;
  background: black;
  overflow: hidden;
}

.chatbot__image--container:hover .chatbot__image--loaded {
  opacity: .9;
}

.chatbot__image--title {
  color:white;
  text-decoration: none;
  position: absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  text-align: center;
  width:70%;
}

/*.chatbot__message--chatbot img {
  width:100%;
  margin:0;
  display: block;
  transition:§;
}
*/
/* Message styles */
.chatbot__message--chatbot,
.chatbot__text,
.chatbot__link {
  background: var(--chatbot-message-bg);
  align-self: start;
  position: relative;
}

.chatbot__message--projects,
.chatbot__message--jobs,
.chatbot__message--news,
.chatbot__message--wild,
.chatbot__message--textlist {
  background: var(--chatbot-message-bg);
  align-self: start;
  flex-direction: column;
  padding: 0;
  background:transparent;
  gap:2px;
  max-width:350px;
  display: flex;
}

.chatbot__message--jobs {
  background: var(--chatbot-message-bg);
  align-self: start;
  flex-direction: column;
  padding: 0;
  background:transparent;
  gap:2px;
  max-width:350px;
}

/* Cursor styles */
@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.chatbot__cursor {
  width: 10px;
  height: 1.10em;
  background-color: var(--font-color);
  animation: blink 0.7s infinite;
  position: absolute;
  top:1px;
  right:-12px;
}


/* Text and link styles */
.chatbot__text,
.chatbot__link,
.chatbot__message--jobs a {
  background:var(--chatbot-text-bg);
  margin-right:0;
  text-decoration: none;
  color:white;
  box-sizing:border-box;
  width:100%;
}

.chatbot__message--jobs a,
.chatbot__message--jobs .chatbot__text {
  background: var(--jobs-text-bg);
}

.chatbot__message--wild .chatbot__text,
.chatbot__message--wild .chatbot__link {
  background:black;
}

.chatbot__image {
  opacity: 0;
  position: absolute;
  top:0;
  width:100%;
  transition: .2s opacity ease-in;
}

.chatbot__image.chatbot__image--loaded {
  opacity: .8;
}


/* Animation styles */
@keyframes slideUpFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animations */
.chatbot__message--user,
.chatbot__message--chatbot{
  animation: slideUpFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
  position: relative;
}

.chatbot__message--default,.chatbot__message--undefined{
  display: inline-block;
  max-width: 350px;
}

.chatbot__message--chatbot span{
  position: relative;
  display: inline;
}

.chatbot__message--chatbot,
.chatbot__text,
.chatbot__link{
  animation-delay: .2s;
}

/* Wild Message */
.chatbot__message--wild {
  position: relative;
  background: transparent;
  align-self: start;
  flex-direction: column;
  padding: 0;
  gap: 2px;
  max-width: 350px;
}

.chatbot__message--wild .chatbot__images{
  min-height: 300px;
  position: relative;
}

.chatbot__message--wild .chatbot__image--container {
  position: absolute;
  left: 10px;
  top: 120px;
  transform: rotate(-15deg);
  width: 200px;
  height:130px;
  border-radius: 3px;
  z-index: 1;
}

.chatbot__message--wild .chatbot__image--container:nth-child(2) {
  left: 140px;
  top: 120px;
  transform: rotate(25deg);
}

.chatbot__message--wild .chatbot__image--container:nth-child(3) {
  top: 25px;
  left: 90px;
  transform: rotate(8deg);
}

.chatbot__message--wild .image-skeleton {
  padding-top:65%;
}


.image-skeleton {
  width: 100%;
  height: 0;
  padding-top: 55%;
  background-color: #222;

  overflow: hidden;
  border-radius: 2px;
  opacity: 1;
}

.image-skeleton::before {
  content: "";
  display: block;
  position: absolute;
  top: -30%;
  left: 0;
  width: 100%;
  height: 160%;
  background: linear-gradient(to right, transparent 0%, #444 50%, transparent 100%);
  animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}


.chatbot__loading {
  display: none;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 25px;
  top: 50%;
}

.chatbot__loading-dot {
  width: 4px;
  height: 4px;
  margin: 0 2px;
  border-radius: 50%;
  background-color: #333;
  animation: chatbot__bounce 1.5s infinite ease-in-out;
}

.chatbot__loading-dot:nth-child(2) {
  animation-delay: -0.33s;
}

.chatbot__loading-dot:nth-child(3) {
  animation-delay: -0.66s;
}

@keyframes chatbot__bounce {
  0%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
}

.floating-menu {
  border-radius: 5px;
  z-index: 3;
  padding: 10px;
  display: block;
  position: absolute;
  bottom: 19px;
  left: -16px;
  background: var(--main-bg);
  padding: 8px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  min-width: 370px;
}

.floating-menu ul {
  list-style-type: none;
  padding: 0;
  margin: 0;

  max-height: 240px;
  overflow: scroll;

}

.floating-menu li {
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-size:14px;
  border-bottom: 1px solid var(--divider-line);
  transition:.1s;
}

.floating-menu li:last-child{
  border-bottom: none;
}

.floating-menu li.active {
  background:var(--chatbot-message-bg);
  /* background-color: #94D0FE;  */
  transition: .1s;
}

.floating-menu .title {
  font-weight: medium;
}

.floating-menu .title b {
  font-weight: bold;
}


.floating-menu .description {
  font-size: 0.9em;
  color: #666;
}

.no-results-message {
  background:var(--background-color);
    display: block;
    padding: 20px;
    font-size: 14px;
}

input.floating-menu__filter-input{
  padding: 16px;
  height: 52px;
}

.floating-menu__filter-input:focus{
  background: var(--main-bg);
  box-shadow: 0px 0px 4px var(--tab-color);
  border-radius: 4px;
  padding: 16px;
  height: 52px;
}

/* Responsive styles */
@media screen and (max-width: 800px) {
  #main .slideshow{
    display: none;
  }
  .logo{
    filter: brightness(0);
  }
  .chat,
  .chat-input {
    width: 100vw;
  }

  .floating-menu {
    left: 2vw;
    bottom: 16px;
    width: 96vw;
    padding:0;
    min-width: auto;
  }
}

textarea{
    min-width: 250px;
    padding: 15px;
    min-height: 70px;
    font-size: 14px;
    border: none;
    margin-bottom: 8px;
    border-radius: 6px;
    font-family: 'Sneak';
}

.chatbot__form--feedback{
  display: flex;
  flex-direction: column;
}

.logo{
 position: absolute;
 z-index: 2;
 top:24px;
 left:24px;
}

.swiper-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.swiper-slide {
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.swiper-slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.swiper-slide-title {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1;
  color: white;
  display: flex;
  width:150px;
  justify-content: center;
  align-items: center;
}

.slide-title.visible {
  max-width: 90%;
  overflow: hidden;
  opacity: 1;
  transition: all 0.5s ease-out;
  transform: translateY(0);
}

.slide-title {
  opacity: 0;
  pointer-events: none;
  position: relative;
  top: 5px;
  transition: all 0.5s ease-out;
  transform: translateY(0);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 11px;
}

/* Add this class to trigger the animation */
.slide-title.invisible {
  opacity: 0;
  pointer-events: auto;
  transform: translateY(5px);
}

/* Add this class to make the element invisible */
.slide-title.visible {
  opacity: 1;
  pointer-events: none;
  transform: translateY(-5px);
  transition-delay: 0.2s;
}
.content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  text-align: center;
  color: white;
}

.chatbot__message--textlist{
  background-color: transparent;
  padding:0;
}

.chatbot__message--textlist li{
  padding:16px;
  /* border-radius:4px; */
  background: var(--chatbot-message-bg);
}

.chatbot__message--news li{
  justify-content: flex-start;
  /* border-radius: 4px; */
  color: #111;
  background-color: #94D0FE;
  text-decoration: none;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 350px;
}

.chatbot__message--news li a{
  text-decoration: none;
  display: flex;
}

.chatbot__icon{
  width: 72px;
  height: 72px;
  position: relative;
  display: inline-block;
  flex-grow: 0;
  flex-shrink: 0;
  margin:8px 0 8px 8px;
}

.chatbot__icon img{
  border-radius: 4px;
  -o-object-fit: cover;
  object-fit: cover;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
}

.chatbot__clipcontent{
  border-radius: 2px;
  text-decoration: none;
  display: flex;
  color:#1D1D1D;
  flex-direction: column;
  margin:16px;
}

.chatbot__meta{
  opacity:0.7;
  margin-bottom:4px;
}

ul li{
  border-radius:0;
}

ul li:first-child{
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

ul li:last-child{
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.slash-word {
  font-weight: 500;
  margin:0 2px;
}

.slash-word::after{
  content:' ';
  display: inline-block;
  width: calc(100% + 6px);
  background-color: rgba(0, 0, 0, 0.05);
  position: absolute;
  top: -1px;
  left: -3px;
  height: 21px;
  border-radius: 6px;
}