html {
  font-size: 12pt;
  scroll-behavior: smooth;
}

body {
  color: black;
}

.fullpage-line {
  margin: 1em 0;
  height: 1px;
  background-color: #edededff;
  border: none;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.header-line {
  margin: 1em 0;
  border-top: 1px solid #edededff;
}

.select-row span{
  display: inline-block;
  padding: 5px;
}

select {
  text-decoration: underline;
  border: none;
  padding: 0;
  margin: 0;
  background-image: none;
  background-color: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

select:hover {
  cursor: pointer;
}

select:focus {
  border: none;
  outline: none;
  box-shadow: none;
}

.section-header {
  font-family: 'Roboto', sans-serif;
  color: black !important;
  margin-bottom: 0 !important;
}

.plain-header {
  margin-bottom: 0.5em !important;
}

.echo {
  font-family: 'Comic Neue', sans-serif;
}

.external-link {
  background-color: #36454F;
  color: white;
  margin: 6px;
  border-radius: 8px;
  box-shadow: 3px 3px 0px black;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.back-to-top:hover {
  opacity: 1;
}

#post-volume-frame {
  border: none;
  width: 100%;
  height: 400px;
}

@media (max-width: 1000px) {
  #post-volume-frame { height: 800px; }
}

@media (min-width: 1000px) {
  #post-volume-frame { height: 420px; }
}

.carousel-control-prev {
  position: absolute;
  left: -50px;
}

.carousel-control-next {
  position: absolute;
  right: -50px;
}

.carousel-item .carousel-card {
  max-width: 550px;
  margin: 0 auto;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.carousel-indicators {
  position: relative;
  bottom: auto;
  margin-top: 20px;
  margin-bottom: 0;
}

.carousel-indicators li {
  background-color: rgba(0, 0, 0, 0.6);
}

.carousel-indicators li.active {
  background-color: rgba(0, 0, 0, 1);
}

.square-container {
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #edededff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  border: 1px solid rgb(239, 243, 244);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.square-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.prompt-container {
  width: 100%;
  max-height: 100%;
  margin: 0 auto;
  background-color: white;
  align-items: flex-start;
  /* display: flex; */
  /* justify-content: center; */
  padding: 10px;
  overflow-y: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  border: 1px solid rgb(239, 243, 244);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  font-family: 'Comic Neue', sans-serif;
}
 
.prompt-column {
  display: flex;
  flex-direction: column;
}

.prompt-column .prompt-container {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}

.label-container {
  margin-top: 0.1rem;
  font-size: 0.9rem;
  text-align: center;
}

#gallery .carousel-inner {
  max-width: 80%;
  margin: 0 auto;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  #gallery .input-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 0;
  }
  #gallery .input-row > .column {
    flex: 0 1 auto !important;
    padding: 10 !important;
    margin: 0 !important;
    min-width: 0 !important;
  }
  #gallery .square-container,
  #gallery .prompt-container {
    max-width: 150px;
    flex: 1 1 0;
    flex-shrink: 0;
  }
  #gallery .prompt-container-no-input {
    min-height: min(150px, 30vw);
  }
  #gallery .carousel-inner {
    height: 400px;
  }
  #gallery .arrow-container svg {
    transform: rotate(90deg) scale(0.8);
  }
}

@media (min-width: 768px) {
  #gallery .input-row {
    display: contents;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  #gallery .square-container {
    height: 130px !important;
  }
  #gallery .prompt-container {
    height: 130px !important;
  }
}

@media (min-width: 1024px) {
  #gallery .square-container {
    height: 200px !important;
  }
  #gallery .prompt-container {
    height: 200px !important;
  }
}

#method-gallery .gallery-image {
  display: block;
  width: 100%;
  margin: 0 auto;
}

#method-gallery .gallery-box {
  max-width: 100%;
  margin: 0 auto;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  #method-gallery .gallery-box {
    height: 450px;
  }
}

@media (min-width: 768px) {
  #method-gallery .gallery-box {
    height: 350px;
  }
}

#specialized-comparison-grid .model-comparison-grid {
  flex: 1 1 auto;
  overflow-x: scroll;
  overflow-y: hidden;
  padding-bottom: 12px;
}

#specialized-comparison-grid .square-container {
  width: 150px !important;
  height: 150px !important;
  margin: 0 auto;
}

#specialized-comparison-grid .prompt-container {
  height: 150px !important;
  overflow-y: auto;
}

.sticky-scroll {
  overflow-y: auto;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.sticky-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.sticky-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.sticky-scroll::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.sticky-scroll::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#specialized-comparison-grid .grid-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  min-width: 100%;
}

#specialized-comparison-grid .grid-item {
  flex: 0 0 auto;
  text-align: center;
}

iframe {
  overflow: hidden;
  scroll-margin-top: 0;
}

iframe:focus {
  outline: none;
}

.iframe-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  font-family: 'DM Sans', sans-serif;
  font-size: 1em;
  z-index: 1;
  border-radius: 6px;
  overflow: hidden;
  transition: opacity 1s ease;
}

.iframe-placeholder .emoji-seq {
  display: flex;
  gap: 0.4em;
  font-size: 2.6em;
  margin-top: 0.5em;
}

.iframe-placeholder .emoji {
  display: inline-block;
  animation: bounce-seq 1s ease-in-out infinite;
}

.iframe-placeholder .emoji:nth-child(1) { animation-delay: 0s; }
.iframe-placeholder .emoji:nth-child(2) { animation-delay: 0.18s; }
.iframe-placeholder .emoji:nth-child(3) { animation-delay: 0.36s; }

@keyframes bounce-seq {
  0%, 100%   { transform: translateY(0); }
  25%        { transform: translateY(-10px); }
  45%        { transform: translateY(0); }
  65%        { transform: translateY(-4px); }
}