@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

body {
  min-height: 100%;
  background-color: #fff;
  font-family: "Open Sans", sans-serif;
  color: #333;
  margin: 0 auto;
  padding: 2em 2em;
  box-sizing: border-box;
  line-height: 1.5em;
}

h1 {
  font-size: 2em;
  text-align: center;
  line-height: 1.5em;
  margin-bottom: 0.5em;
}
h2 {
  font-size: 1.3em;
  text-align: center;
  font-weight: 600;
}

a,
a:link,
a:visited {
  color: inherit;
}

section {
  padding-bottom: 40px;
  max-width: 50em;
  margin: 0 auto;
}

p {
  margin-left: auto;
  margin-right: auto;
}

button {
  background-color: #fff; /* Green */
  border-radius: 0.5em;
  border: 1px solid #333;
  padding: 0.5em 2em;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
}

.bk-plot-wrapper table {
  margin: 0 auto;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Carousel container to wrap everything */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  margin-bottom: 40px;
  overflow: hidden; /* Hide overflow to prevent extra videos from showing */
}

/* Carousel track that holds all slides */
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out; /* Smooth transition between slides */
}

/* Each slide contains three videos */
.carousel-slide {
  display: flex;
  min-width: 100%; /* Each slide takes up the full width of the carousel */
  justify-content: space-around; /* Space between videos */
}

/* Container for the video and caption */
.video-container {
  text-align: center; /* Center the captions under each video */
  width: 30%; /* Ensures each video and caption take up around 30% of the width */
}
/* Container for the video and caption */
.video-container-small {
  text-align: center; /* Center the captions under each video */
  width: 19%; /* Ensures each video and caption take up around 19% of the width */
}

/* Video styling for equal sizing */
video {
  width: 100%; /* Video takes full width of its container */
  height: auto; /* Maintain aspect ratio */
}
/* Video styling for equal sizing */
img {
  width: 100%; /* Video takes full width of its container */
  height: auto; /* Maintain aspect ratio */
}

/* Styling the captions */
.video-container figcaption {
  text-align: center;
  margin-top: 8px;
  font-size: 1rem;
  color: #333;
}
.video-container-small figcaption {
  text-align: center;
  margin-top: 8px;
  font-size: 1rem;
  color: #333;
}

/* Left and Right buttons for navigating */
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5); /* Semi-transparent background */
  border: none;
  color: white;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  z-index: 1; /* Makes sure the buttons are above other content */
}

.carousel-button.left {
  left: 10px; /* Positioned on the left */
}

.carousel-button.right {
  right: 10px; /* Positioned on the right */
}

/* Optional: Add hover effect to buttons */
.carousel-button:hover {
  background-color: rgba(0,0,0,0.8); /* Darker when hovered */
}

/* VLM Section Container */
.vlm-section {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* System Prompt Styling */
.system-prompt-container {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f9f9f9;
  border-left: 4px solid #007BFF;
}

.system-prompt-container h3 {
  margin-bottom: 10px;
}

/* Task Example Carousel Styling */
.task-container {
  position: relative;
  margin-top: 20px;
}

/* Example Carousel for tasks (image + text) */
.example-carousel {
  position: relative;
  overflow: hidden; /* Hide overflow to prevent other slides from showing */
  width: 100%;
}

/* Track that moves between slides */
.example-track {
  display: flex;
  transition: transform 0.5s ease-in-out; /* Smooth slide transition */
  width: 100%;
}

/* Individual slide in the example carousel */
.example-slide {
  min-width: 100%; /* Ensure each slide takes up the full width of the carousel */
  display: flex;
  gap: 20px; /* Space between image and text */
  padding: 20px;
  align-items: flex-start;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Left column for the image and caption */
.example-left {
  flex: 1;
  max-width: 250px;
  background-color: #f0f8ff; /* Light blue background */
  padding: 15px; /* Padding for spacing */
  border-radius: 5px; /* Rounded corners */
}

/* Image styling */
.example-left img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* Caption under image */
figcaption {
  margin-top: 10px;
  font-size: 1rem;
  color: #555;
  text-align: left;
}

/* Right column for the text */
.example-right {
  flex: 2;
  padding-left: 20px;
  background-color: #f7f7f7; /* Light gray background */
  padding: 15px; /* Padding for spacing */
  border-radius: 5px; /* Rounded corners */
}

/* Task text styling */
.example-right p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 10px;
}

/* Ordered list styling for steps */
.example-right ol {
  padding-left: 20px;
  margin-top: 10px;
}

.example-right li {
  margin-bottom: 10px;
}

/* Code block styling */
pre {
  background-color: #f7f7f7;
  padding: 5px;
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1.4;
  overflow-x: auto;
  white-space: pre-wrap; /* Wrap code if too long */
}

.carousel-button {
  position: absolute;
  top: 50%; /* Vertically center the button */
  transform: translateY(-50%); /* Adjust for vertical centering */
  background-color: rgba(0, 0, 0, 0.5); /* Add a semi-transparent background for visibility */
  color: white;
  border: none;
  padding: 10px;
  font-size: 20px;
  cursor: pointer;
}

.carousel-button.left {
  left: 10px; /* Adjust the horizontal position */
  transform: translateY(-50%); /* Ensure the same vertical centering as the right button */
}

.carousel-button.right {
  right: 10px; /* Adjust the horizontal position */
}

.example-carousel {
  position: relative; /* Make the carousel a positioned element for button placement */
  display: flex;
  align-items: center; /* Ensure vertical alignment for content inside */
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .example-slide {
    flex-direction: column; /* Stack image and text vertically on smaller screens */
  }
  .example-left {
    max-width: 100%;
  }
}
