/* Base styles */
:root {
  --primary-color: #8b5cf6;
  --text-color: #4a4a4a;
  --content-width-lg: 1024px;
  --content-width-md: 1024px;
  --font-family: "Mulish", sans-serif;
}

/* Typography scale using Bootstrap's classes */
.h1,
h1 {
  font-size: calc(1.3rem + 1.3vw) !important;
}

.h2,
h2 {
  font-size: calc(1.2rem + 0.9vw) !important;
}

.h3,
h3 {
  font-size: calc(1.1rem + 0.6vw) !important;
}

figcaption {
  font-size: 1rem !important;
}

/* Updated video-content text sizes */
.video-content p {
  font-size: 1rem !important;
  line-height: 1.1;
}

/* Gallery styles */
.video-gallery-carousel {
  overflow: hidden;
  width: 100%;
  padding: 0;
  display: flex;
  justify-content: center;
}

.video-gallery-item {
  display: none;
  width: 100%;
  max-width: var(--content-width-md);
}

/* Custom styles for headings */
#comparison-scene-buttons h3 {
  font-family: 'Arial', sans-serif;
  font-weight: bold;
}

.human-study h3 {
  font-family: 'Arial', sans-serif;
  font-weight: bold;
}

.video-gallery-item.active {
  display: block;
}

/* Video caption styles */
.video-caption {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.caption-left, .caption-right {
  width: 50%;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Video gallery carousel styles */
.video-gallery-carousel video {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

/* Button container styles */
.video-gallery-buttons {
  margin: 1rem auto;
  width: 100%;
  max-width: var(--content-width-md);
  text-align: center;
}

/* General button styles */
.video-gallery-buttons .button {
  padding: 0;
  height: auto;
  overflow: hidden;
  width: 150px;
  height: 39px;
  transition: all 0.3s ease;
  border-radius: 12px;
}

.button p {
  font-size: 0.96rem;
  font-family: "Mulish", sans-serif !important;
}

.video-gallery-buttons .button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Primary button state */
.video-gallery-buttons .button.is-primary {
  background-color: var(--primary-color);
  border: 3px solid var(--primary-color);
  padding: 0;
}

/* Button variations */
.video-gallery-buttons .button.is-wide {
  width: 180px;
}

.video-gallery-buttons .button.is-two-line {
  width: 180px;
  height: 50px;
}

.video-gallery-buttons .button.is-two-line p {
  white-space: nowrap;
  width: 200px;
  padding: 5px;
  text-align: center;
  word-wrap: break-word;
}

/* Scene button styles */
.scene-button {
  padding: 0 !important;
  border: none !important;
  background: none !important;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0.2rem;
  width: 25%;
  max-width: 180px;
  position: relative;
  display: inline-block;
}

/* Add these new styles */
#gallery-buttons-results {
  width: 100%;
  max-width: 800px;
  margin: 1rem auto;
}

/* Keep existing scene button styles */
.scene-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 40px;
}

.scene-button:hover {
  transform: scale(1.05);
}

.scene-button.is-primary {
  position: relative;
}

.scene-button.is-primary::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 8px solid var(--primary-color);
  border-radius: 40px;
  pointer-events: none;
}

/* Content styles */
.video-content {
  margin: 1.5rem auto;
  text-align: center;
  padding: 0 1rem;
  max-width: var(--content-width-md);
}

.hero-body .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.title.is-2 {
  text-align: center;
  margin-top: 0.8rem;
  margin-bottom: 1.6rem;
}

/* Figure styles */
figure {
  width: 100%;
  max-width: var(--content-width-lg);
  margin: 0.1rem auto;
  text-align: center;
}

figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0.1rem;
}

figure video {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0.1rem;
}

figure figcaption {
  color: var(--text-color);
  padding: 0 1rem;
  text-align: left;
  font-size: 1.3rem !important;
}

/* Container responsive styles */
.container {
  max-width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Image-Video pair layout */
.image-video-pair {
  display: flex;
  gap: 20px;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 1200px;
}

.image-container, .video-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.image-container {
  flex: 0 0 100%;
  max-width: 25%;
}

.video-container {
  flex: 0 0 100%;
  max-width: 400px;
}

.image-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.video-container video {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Action button styles */
.button.is-action-button {
  background-color: white;
  border: 1px solid #dbdbdb;
  color: #363636;
  transition: all 0.3s ease;
}

.button.is-action-button.is-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* Two-line button styles */
.button.is-two-line {
  background-color: white;
  border: 1px solid #dbdbdb;
  color: #363636;
  transition: all 0.3s ease;
}

.button.is-two-line.is-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}
.camera-prompt {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 12px 0 20px 0;
    font-size: 30px;
    color: #555;
}

.prompt-icon {
    font-size: 15px;
}

.prompt-text {
    font-weight: 1000;
}

.human-study {
  margin-top: 48px;
  text-align: center;
}

.human-study h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.study-desc {
  max-width: 900px;
  margin: 0 auto 28px auto;
  color: #5b5b5b;
  font-size: 1rem;
  line-height: 1.6;
}

.study-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.study-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px 18px;
  text-align: left;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.study-card h4 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-align: center;
  color: #1f2937;
}

.metric-row {
  margin-bottom: 16px;
}

.metric-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.bar-track {
  width: 100%;
  height: 34px;
  background: #ede9fe;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  font-weight: 700;
  color: white;
  font-size: 0.95rem;
  white-space: nowrap;
}

.bar-fill.physics {
  background: #7c3aed;
}

.bar-fill.motion {
  background: #a78bfa;
}

@media (max-width: 900px) {
  .study-grid {
    grid-template-columns: 1fr;
  }
}