body {
  color: black;
}

.replay {
  cursor: pointer;
  color:#2296f3ff;
  font-size: 12pt;
  display: inline-block;
  font-style: normal;
}

.teaser-video {
  margin: 0.5rem auto 1rem auto;
  display: flex;
  flex-direction: column;
  position: relative;
}
.teaser-img {
  width: 80%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  display: block;
}
.teaser-caption {
  margin-left: auto;
  margin-right: auto;
}

.teaser-caption img {
  width: 15px;
  height: 15px;
  vertical-align: middle;
}

.layered-video {
  position: absolute;
  max-width: 80%;
  z-index:2;
}

.info-icon {
  width: 15px;
  margin-right: 5px;
}

.btn-caption {
  padding: 0px !important;
  margin: 0px !important;
  color: gray;
  font-family: 'DM Sans';
  background-color: white;
}

.caption {
  /*margin-top: 15px !important;*/
  /* width: auto !important;*/
  /*min-width: 400px;*/
  margin-bottom: 20px;
  font-size: 12pt;
  color: black;
  text-align: center;
  font-style: italic;
}

.has-text-purple {
 color: #683d68ff;
}

/* Style the range input */
input[type="range"] {
  -webkit-appearance: none;
  width: 80%;
  margin: 15px;
}

/* Style the track */
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 10px;
  cursor: pointer;
  background: #ddd; /* Set the background color of the track */
  border-radius: 2px;
}

/* Style the fill color of the track */
input[type="range"]::-webkit-slider-thumb {
  height: 25px;
  width: 25px;
  background: url('../../assets/icon.png') center/cover; 
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -8.5px;
}

.btn {
  box-shadow: none !important;
}

.btn-row {
  font-weight: bold;
  color: black;
  margin-bottom: 15px;
  font-size: 14px;
}

.btn-select {
  white-space: normal;
  text-align: left;
  font-size: 14px;
  padding: 5px;
  font-family: 'DM Mono';
  margin: 2px;
}

.btn-select:hover {
  font-weight: bold;
}

.btn-active {
  font-weight: bold;
  background-color: #683d68ff;
  color: #fff9bfff;
}

.btn-outline-danger,
.btn-outline-danger:hover,
.btn-outline-danger:active,
.btn-outline-danger:disabled {
  cursor: default;
  background-color: transparent;
  color: #cc0000ff;
  border-color: #cc0000ff;
  opacity: 1.0;
}

hr {
  background-color: black;
  margin: auto;
  width: 70vw;
}

/* 
  https://github.com/rl-diffusion/rl-diffusion.github.io
*/

.results-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  justify-content: center;
}

.results-grid>div{
  display: grid;
  grid-template-rows: fit-content(100%);
  max-width: 80%;
  min-width: 350px;
  gap: 0.1rem;
  align-items: center;
  justify-items: center;
  margin: auto 0;
  overflow: hidden;
}

.results-grid .results-single {
  grid-template-columns: repeat(1, 1fr);
}

.results-grid .results-pair {
  grid-template-columns: repeat(2, 1fr);
}

.results-grid>div>div {
  grid-column: 1 / -1;
  display: flex;
  justify-self: center;
  width: 100%;
  align-items: center;
}

/*from boyang*/

/*h1, h2, h3, h4{
    color: #222222bd;
    text-align: center;
    font-family: 'Google Sans', sans-serif;
}*/
i, p {
    color: #222222bd;
    text-align: left; 
    font-family: 'Google Sans', sans-serif;
    margin-left: 10%;
    margin-right: 10%;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

.container-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /*background-color: #e5e5e5bd;*/
    width: 80vw;
    margin: 0 auto; /* ✅ Horizontally centers the block */
}

.row1 {
    display: grid;
    grid-template-columns: 4fr 2fr;
    width: 80vw;
    max-width: 1000px;
    margin: auto;
    gap: 8px;
    align-items: stretch;
}

.media1, .media2 {
    padding: 0;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
img, video {
    max-width: 100%;
    height: auto;
}

.select-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.row2 {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.media-section {
    flex: 0 0 25%;
    text-align: center;
}

.frame-text {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30%;
    text-align: center;
}

.clickable-images {
    display: flex;
    justify-content: center;
}

.clickable-image {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30%;
    text-align: center;
    cursor: pointer;
    padding: 4px;
}

.clickable-image-selected {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30%;
    text-align: center;
    cursor: pointer;
    padding: 4px;
    background-color: #222222bd;
}

.row1 .media1 video {
    height: 240px;
    width: auto;
    max-width: none;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid #ec9387;
    box-shadow: none;
}
.row1 .media2 video {
  height: 240px;
  width: auto;
  max-width: none;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid #85c7ee;
  box-shadow: none;
}

.section,
.hero,
.container {
    padding-top: 3rem !important;
    padding-bottom: 1rem !important;
}
.hero,
.hero-body,
.columns,
.column,
.container,
.is-max-desktop,
section,
body {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}


.row1 img, .row1 video {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
