@import url("https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Kablammo&family=Monsieur+La+Doulaise&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Press+Start+2P&family=Quicksand:wght@300..700&family=Tektur:wght@400..900&display=swap");

/* Global scrollbar styling for all browsers */
/* For Webkit browsers (Chrome, Safari, newer Edge) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: #ffffff;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #cccccc;
}

/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #ffffff #000;
}

/* For IE and Edge (legacy) */
* {
  -ms-overflow-style: none;
}

/* For Opera */
::-o-scrollbar {
  width: 8px;
}

::-o-scrollbar-track {
  background: #000;
}

::-o-scrollbar-thumb {
  background: #ffffff;
  border-radius: 4px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto Flex", sans-serif;
}

body {
  font-family: "Roboto Flex", sans-serif;
}

/* AI */
@import url("https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Kablammo&family=Monsieur+La+Doulaise&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Press+Start+2P&family=Quicksand:wght@300..700&family=Tektur:wght@400..900&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Kablammo&family=Monsieur+La+Doulaise&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Press+Start+2P&family=Quicksand:wght@300..700&family=Tektur:wght@400..900&display=swap");

/* Basic style for the modal */
.ai .modal {
  display: none; /* Initially hidden */
  position: fixed;
  z-index: 60; /* Higher z-index to be on top of the overlay */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: black;
  padding: 20px;
  border-radius: 5px;
  width: auto;
  min-width: 40%;
  margin: auto;
  box-shadow: 0px 0px 15px rgb(255, 255, 255);
  font-family: "Roboto Flex";
}

.ai .modal .aiScroll .response {
  font-family: "Roboto Flex";
  /* font-weight: 600; */
  font-size: 23px;
  color: white;
  margin-bottom: 20px;
  text-align: justify;
}

.ai .modal .aiScroll {
  max-height: 500px;
  overflow-y: auto;
  padding: 20px;
}

.ai .overlay {
  display: none; /* Initially hidden */
  position: fixed;
  z-index: 55; /* Below the modal */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Gray background */
}

.ai .close {
  color: #8c8c8c;
  font-size: 28px;
  font-weight: bold;
  float: right;
  transition: 300ms;
}

.ai .close:hover,
.ai .close:focus {
  color: rgb(255, 255, 255);
  background-color: transparent;
  text-decoration: none;
  cursor: pointer;
}

.ai .chatbot-image {
  width: auto;
  height: 50px;
  margin-right: 20px;
}

.ai .user-input {
  width: 73%;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: "Roboto Flex";
  font-size: 16px;
  text-align: center;
}

.ai .send-button {
  width: 20%;
  padding: 10px;
  margin-top: 10px;
  border: 2px solid rgb(255, 255, 255);
  border-radius: 5px;
  font-family: "Roboto Flex";
  font-size: 16px;
  text-align: center;
  background-color: #000000;
  color: white;
  transition: 400ms;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.8), 0 0 20px rgba(0, 123, 255, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: 300ms;
}

.ai .send-button:hover {
  width: 22%;
  border: 2px solid rgb(62, 62, 62);
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  font-size: 19px;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 123, 255, 1), 0 0 30px rgba(0, 123, 255, 0.8);
}
.ai .send-button:active {
  width: 22%;
  border: 3px solid rgb(62, 62, 62);
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  font-size: 19px;
  transition: 100ms;
}

.ai .open-button {
  z-index: 70;
  height: 60px;
  width: 60px;
  border-radius: 50%;
  background-color: #000000;
  background-repeat: none;
  background-size: cover;
  border: none;
  position: fixed;
  right: 10px;
  bottom: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(255, 255, 255, 0.6);
  animation: pulse 2s infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: 300ms;
}

.ai .open-button:hover {
  cursor: pointer;
  height: 70px;
  width: 70px;
  border-radius: 10%;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 255, 255, 0.8);
}

.ai .flex {
  display: flex;
  margin-top: 10px;
}

.ai .flex .user-input {
  font-family: "Roboto Flex" !important;
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.ai .flex .send-button {
  margin-left: 10px;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.8), 0 0 20px rgba(0, 123, 255, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai .flex .send-button:hover {
  background-color: #0056b3;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 123, 255, 1), 0 0 30px rgba(0, 123, 255, 0.8);
}

.ai .modal .modal-content .title {
  font-family: "Roboto Flex";
  font-size: 50px;
  color: rgb(255, 255, 255);
  margin-bottom: 20px;
  text-shadow: #ffffff 0px 0px 10px;
}
.ai .modal .modal-content {
  width: 100%;
}
.ai .modal .modal-content hr {
  margin: 8px 0px;
}

.ai .chat-history {
  font-family: "Roboto Flex";
  font-size: 16px;
  color: white;
  margin-bottom: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  border-right: 2px solid #ccc;
  border-radius: 5px;
}

.ai .chat-history .chat-bubble {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 15px;
  margin-bottom: 10px;
  max-width: 70%;
  word-wrap: break-word;
}

.ai .chat-history .user-message {
  background-image: linear-gradient(
    to bottom,
    rgb(0, 98, 255),
    rgb(166, 0, 255)
  );
  background-size: 500% 500%; /* Background animation */
  animation: fade 10s ease infinite;
  color: black;
  align-self: flex-end; /* Align to the right */
  text-align: right;
  box-shadow: 0 0 20px rgba(0, 0, 255, 1);
  animation: fadeIn 0.5s ease;
}

@keyframes fade {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 0%;
  }
  100% {
    background-position: 0% 0%;
  }
}

.ai .chat-history .ai-response {
  background-color: #ffffff; /* White for AI responses */
  color: black;
  align-self: flex-start; /* Align to the left */
  text-align: left;
  box-shadow: 0 0 20px rgba(255, 255, 255, 1);
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.ai .chat-history .user-message,
.ai .chat-history .ai-response {
  position: relative;
}

.ai .chat-history .user-message::after,
.ai .chat-history .ai-response::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
}

.ai .chat-history .user-message::after {
  right: -10px;
  border-left-color: #0000ff;
}

.ai .chat-history .ai-response::after {
  left: -10px;
  border-right-color: #ffffff;
}

.ai .chat-history .loading-animation {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 10px 0; /* Add padding around the icon */
  align-self: flex-start; /* Align to the left for AI */
}

.ai .chat-history .loading-animation .spinner {
  width: 30px;
  height: 30px;
  background-image: url("../images/ai/three-dots-svgrepo-com.svg"); /* Ensure this path is correct */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: bounce 1s infinite;
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
      0 0 20px rgba(255, 255, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 1),
      0 0 40px rgba(255, 255, 255, 0.8);
  }
  100% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
      0 0 20px rgba(255, 255, 255, 0.6);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(5px);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Tooltip container */
.tooltip {
  position: fixed;
  top: 80%; /* Adjust to position near the open button */
  right: 80px; /* Adjust to position near the open button */
  background-color: #333;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: none; /* Initially hidden */
  z-index: 100;
  font-family: "Roboto Flex";
  animation: fadeIn 0.5s ease;
}

/* Tooltip text */
.tooltip-text {
  font-size: 14px;
  margin-right: 10px;
}

/* Tooltip close button */
.tooltip-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

/* Fade-in animation for the tooltip */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Typing indicator styles */
.typing-indicator {
  display: flex !important;
  align-items: center;
  padding: 10px 15px;
  margin: 10px 0;
  background-color: rgba(34, 139, 34, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(34, 139, 34, 0.3);
  color: #22c55e;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #888;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0s;
}

@keyframes typing {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Persistent typing indicator that stays during generation */
.typing-indicator-persistent {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  margin: 5px 0;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.typing-text {
  font-size: 12px;
  color: #888;
  font-style: italic;
}

.response-content {
  margin-top: 5px;
}

/* Background loading animation for generating text */
.ai-response.generating {
  position: relative;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.1) 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-response.generating::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(255, 255, 255, 0.1) 50%, 
    transparent 70%
  );
  background-size: 300% 300%;
  animation: wave 3s infinite;
  border-radius: 15px;
  pointer-events: none;
}

.ai-response.generating .response-content {
  position: relative;
  z-index: 1;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes wave {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

@media screen and (max-width: 1024px) {
  .ai .modal {
    width: 70%;
    min-width: 70%;
  }
  .ai .open-button {
    height: 50px;
    width: 50px;
  }
  .ai .send-button {
    width: 100%;
  }
  .ai .user-input {
    width: 100%;
  }
  .ai .flex {
    flex-direction: column;
    font-family: "Roboto Flex";
  }
}
@media screen and (max-width: 768px) {
  .ai .modal {
    width: 90%;
    min-width: 90%;
  }
  .ai .open-button {
    height: 50px;
    width: 50px;
  }
  .ai .send-button {
    width: 100%;
  }
  .ai .user-input {
    width: 100%;
  }
  .ai .flex {
    flex-direction: column;
  }
}
/* NavBar */
.navbar {
  text-decoration: none;
  display: flex;
  align-items: center;
  background-color: hsla(0, 0%, 0%, 0.2);
  color: white;
  box-shadow: 0 0px 4px rgba(0, 0, 0, 0.1);
  padding: 1em 1em auto 1em;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  height: 6rem;
  transition: 400ms;
  justify-content: space-between;
}
.navbar:hover {
  display: flex;
  align-items: center;
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1em 1em auto 1em;
  position: fixed;
  top: 0;
  z-index: 1000;
  height: 6rem;
  justify-content: space-between;
}

.navbar nav {
  margin-left: auto;
  padding-right: 4rem;
  display: flex;
  align-items: center;
}

.navbar h2 {
  font-size: 2em;
  letter-spacing: 0.09em;
}

.navbar a {
  color: white;
  text-decoration: none;
  margin: 0 1rem 0 1rem;
  transition: 400ms;
}
.navbar:visited {
  color: white;
  text-decoration: none;
}

.navbar a:hover {
  text-decoration: underline;
  transition: 100ms;
}

.navbar .blue {
  border: none;
  border-radius: 0.25rem;
  color: white;
  padding: 0.5rem;
  cursor: pointer;
  margin: 0 0.5rem 0 0.5rem;
  transition: 400ms;
}
.navbar .blue:hover {
  cursor: pointer;
  text-decoration: underline;
  font-size: 1.2rem;
  padding: 0.4rem;
  margin: 0 0.4rem 0 0.4rem;
  border-radius: 0.5rem;
  transition: 100ms;
}
.navbar .blue:active {
  cursor: pointer;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.4rem;
  margin: 0 0.4rem 0 0.4rem;
  transition: 100ms;
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 51;
  transition: all 0.3s ease-in-out;
  margin-right: 20px; /* Add some right margin in the default state */
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

.navbar:hover .hamburger span {
  background-color: #000;
}

/* When menu is open */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Media query for responsive navbar */
@media screen and (max-width: 768px) {
  .navbar {
    padding: 1em 20px;
    justify-content: space-between;
  }

  .hamburger {
    display: flex;
    position: relative; /* Changed from fixed to relative */
    top: auto;
    right: auto;
    margin-left: auto; /* Push to the right side of its container */
    margin-right: 20px;
  }

  /* Ensure the hamburger is visible on very small screens */
  @media screen and (max-width: 350px) {
    .hamburger {
      margin-right: 10px; /* Less margin on very small screens */
    }
  }

  /* When menu is active, position the hamburger on top of overlay */
  .hamburger.active {
    position: fixed;
    top: 30px;
    right: 50px;
    z-index: 52; /* Higher than the menu */
  }

  @media screen and (max-width: 350px) {
    .hamburger.active {
      right: 20px;
    }
  }

  .navbar nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(248, 249, 250, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: 0.5s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .navbar nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }

  .navbar nav a {
    margin: 1.5rem 0;
    color: #000;
    font-size: 1.8rem;
    text-align: center;
    font-weight: 500;
    text-decoration: none;
  }

  .navbar nav a:hover {
    text-decoration: underline;
    transform: scale(1.05);
  }

  .navbar:hover nav a {
    color: #000;
  }

  /* Adjust hamburger appearance when active */
  .hamburger.active span {
    background-color: #000;
  }
}

/* Scrollfield */
.scroll-field .scroll-container {
  width: 350px;
  height: 400px;
  overflow-y: auto;
  padding-left: 20px;
  direction: rtl; /* Moves scrollbar to the left */
  border-left: 1px solid white;
}

/* Webkit browsers (Chrome, Safari, Edge) */
.scroll-field .scroll-container::-webkit-scrollbar {
  width: 8px;
}

.scroll-field .scroll-container::-webkit-scrollbar-track {
  background: black;
}

.scroll-field .scroll-container::-webkit-scrollbar-thumb {
  background-color: #ffffff;
  border-radius: 4px;
}

/* Firefox */
.scroll-field .scroll-container {
  scrollbar-width: thin;
  scrollbar-color: #ffffff black;
}

/* Reset content to normal direction */
.scroll-field .scroll-container .content {
  direction: ltr;
}

.scroll-field .scroll-container::-webkit-scrollbar {
  width: 3px;
}

.scroll-field .scroll-container::-webkit-scrollbar-track {
  background: black;
}

.scroll-field .scroll-container::-webkit-scrollbar-thumb {
  background: gray;
  border-radius: 10px;
}

/* achtergrond scroll */
.achtergrond-scroll {
  position: relative;
}

.achtergrond-scroll iframe {
  position: relative;
  top: 0;
  height: 60vh;
  width: 100vw;
}

.Title {
  margin-top: 30px !important;
}

.fixHeader {
  position: absolute;
  margin-bottom: 30px;
  top: 0;
}

.achtergrond-scroll .parallax {
  position: relative;
  background-color: black;
  height: 60vh;
}

.achtergrond-scroll .content {
  height: max-content; /* Maak de inhoud lang genoeg om te kunnen scrollen */
  padding: 20px;
  text-align: center;
}

/* footer */

footer {
  text-align: center;
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1em 0 1em 0;
}
footer a {
  color: #6f8ab7;
  text-decoration: wavy;
}
