a {
  color: #a260f8;
  text-decoration: none;
}

p {
  margin-top: 0px;
}

b {
  color: #2f2b32;
}

#data b:hover {
  color: #a260f8;
}


body {
  background: #f1f1f1;
  font-family: "Roboto Slab";
  margin: 0;
  color: #2f2b32;
  display: flex;
  flex-direction: column;
  height: 100svh;
  font-weight: 500;
  word-spacing: 3px;
}

.container {
  flex-grow: 1; /* Allow the container to fill the available space */
  display: flex;
  flex-direction: column;
  width: 90%;
  max-width: 650px;
  margin: 0px auto; /* Maintains the top and bottom margin */
  padding: 10px;
  overflow: hidden; /* Prevents content from overflowing */
}

.navbar {
  display: flex;
  background: #f1f1f1;
}

.navbar:hover a {
  color: #a260f8; /* Change color on hover */
}

.navbar:hover .navIcon {
  box-shadow: 0.2rem 0.2rem 0 #2f2b32;
}

.navbar h1 {
  margin: 0;
  font-size: 24px;
}

#data {
  height: calc(100svh - 290px);
  margin-bottom: 20px; /* Adds space above and below */
  margin-top: 10px;
  width: 100%;
  flex-grow: 1; /* Allows the content to fill the space */
  overflow-y: scroll; /* Add scroll for vertical overflow */
  border: 2px solid #2f2b32;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.5;
}

.tooltip {
  box-shadow: 5px 5px 0px #2f2b32;
  max-width: 400px;
  max-height: 400px; /* Set the maximum height as needed */
  position: absolute;
  padding: 10px;
  background-color: #f1f1f1;
  color: #2f2b32;
  border: 1px solid #2f2b32;
  border-radius: 10px;
  opacity: 0; /* Start invisible */
  transition: opacity 0.3s;
  z-index: 1000; /* Make sure it's on top of other elements */
  font-size: 0.85em; /* Smaller font size; adjust as needed */
  box-sizing: border-box;
}

.tooltip p {
  overflow-y: scroll; /* Enable vertical scrolling */
  max-height: 180px; /* Set the maximum height as needed */
}

.tooltip p::-webkit-scrollbar-track {
  background: #f1f1f1; /* Light grey track */
  border-radius: 10px;
  margin-top: 3px;
  margin-bottom: 3px;
}

/* Styling the scrollbar thumb (the part you drag) */
.tooltip p::-webkit-scrollbar-thumb {
  background: #2f2b32; /* Dark grey thumb */
  border-radius: 10px;
}

/* Styling the scrollbar thumb on hover */
.tooltip p::-webkit-scrollbar-thumb:hover {
  background: #796f81; /* Darker grey on hover */
}

/* Styling the scrollbar itself (width or height) */
.tooltip p::-webkit-scrollbar {
  width: 5px; /* Width of the vertical scrollbar */
  height: 5px; /* Height of the horizontal scrollbar */
}

.wikiLink {
  position: absolute; /* Position the element absolutely within its parent */
  top: 10px; /* Distance from the top of the parent container */
  right: 10px; /* Distance from the right of the parent container */
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 5px;
  border: 2px solid #2f2b32;
  background-color: #f1f1f1;
}

.wikiLink:hover {
  background: #f1f1f1; /* Slightly lighter shade for hover */
  box-shadow: 3px 3px 0px #2f2b32;
}

.wikiLink:active {
  box-shadow: 1px 1px 0px #2f2b32;
}

.tooltip p {
  margin: 0px;
}

.tooltip h2 {
  margin: 0px;
  padding: 0px;
}
.tooltip h3 {
  margin: 0px;
}

/* To smoothly transition the tooltip in and out */
.show-tooltip {
  opacity: 1;
}

sup[citation] {
  margin: 0; /* Adjust margin as needed */
  padding: 0; /* Adjust padding as needed */
  font-size: 0.7em; /* Smaller font size; adjust as needed */
  color: #a260f8;
  /* Additional styling here */
}

sup[citation]:hover {
  cursor: default;
}


.spinner {
  display: inline-block; /* Or 'inline' depending on the exact behavior you want */
  border-radius: 10px;
  padding: 10px;
  background-color: #f1f1f1; /* or any color of your choice */
  border: 2px solid #2f2b32;
  animation: oscillate 1s infinite;
  margin-bottom: 10px;
}

@keyframes oscillate {
  0%,
  100% {
    box-shadow: 5px 5px 0px #2f2b32;
  }
  50% {
    box-shadow: 0px 0px 0px #2f2b32;
  }
}



.nav-links {
  list-style-type: none;
  margin: 0;
  padding: 0;
}


.nav-links li {
  display: inline;
  margin-left: 20px;
  font-size: 24px;
}

.content {
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Allows the content to fill the space */
  justify-content: space-between; /* Distributes space between children */
  box-sizing: border-box;
  padding: 0px;
}

h1,
h2,
h3,
h4 {
  line-height: 40px;
}

/* Styling the scrollbar track (the part the thumb moves along) */
#data::-webkit-scrollbar-track {
  background: #f1f1f1; /* Light grey track */
  border-radius: 10px;
  margin-top: 3px;
  margin-bottom: 3px;
}

/* Styling the scrollbar thumb (the part you drag) */
#data::-webkit-scrollbar-thumb {
  background: #2f2b32; /* Dark grey thumb */
  border-radius: 10px;
}

/* Styling the scrollbar thumb on hover */
#data::-webkit-scrollbar-thumb:hover {
  background: #796f81; /* Darker grey on hover */
}

/* Styling the scrollbar itself (width or height) */
#data::-webkit-scrollbar {
  width: 10px; /* Width of the vertical scrollbar */
  height: 10px; /* Height of the horizontal scrollbar */
}

.user {
  padding: 10px;
  margin-left: 25px;
}

.bot {
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 10px;
  margin: 0px;
}

.navbar a {
  color: #2f2b32;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  text-align: center;
}

.inputField {
  display: flex;
  gap: 10px;
}
input {
  -webkit-appearance: none;
  font-family: "Roboto Slab";
  border: 2px solid #2f2b32;
  flex-grow: 1;
  box-sizing: border-box; /* This line ensures padding and border are inside the width */
  color: #2f2b32;
  background: #f1f1f1;
  padding: 12px;
  height: 50px;
  transition: width 0.3s ease-in-out;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 16px;
}
input::placeholder {
  color: #2f2b32; /* Replace #yourColorCode with the color you want */
}

input:focus {
  outline: none;
  box-shadow: 5px 5px 0px #2f2b32;
}
button {
  font-family: "Roboto Slab";
  border: 2px solid #2f2b32;
  height: 50px; /* Set a fixed height */
  margin-bottom: 10px;
  width: 15%;
  background: #f1f1f1; /* Same as body background */
  color: #2f2b32; /* Matching the anchor tag color */
  cursor: pointer; /* Make the button show a hand cursor on hover */
  font-size: 18px;
  border-radius: 10px;
  border-radius: 10px;
  text-align: center;
  font-size: 16px;
}
button:hover {
  background: #f1f1f1; /* Slightly lighter shade for hover */
  box-shadow: 5px 5px 0px #2f2b32;
}

button:active {
  box-shadow: 3px 3px 0px #2f2b32;
}

@media only screen and (max-width: 620px) {
  #data {
    height: calc(100svh - 240px);
    border: 0px solid #f1f1f1;
  }
  button {
    width: 25%;
  }
}
