/* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */
body {
  padding-top: 3rem;
  padding-bottom: 3rem;
  color: #5a5a5a;
}

/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */
/* Carousel base class */
.carousel {
  margin-bottom: 4rem;
}

/* Since positioning the image, we need to help out the caption */
.carousel-caption {
  bottom: 3rem;
  z-index: 10;
}

/* Declare heights because of positioning of img element */
.carousel-item {
  height: 32rem;
}

.carousel-item > img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 32rem;
}

/* MARKETING CONTENT
-------------------------------------------------- */
/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.marketing h2 {
  font-weight: 400;
}

.marketing .col-lg-4 p {
  margin-right: 0.75rem;
  margin-left: 0.75rem;
}

/* Featurettes
------------------------- */
.featurette-divider {
  margin: 3rem 0; /* Space out the Bootstrap <hr> more */
}

/* Thin out the marketing headings */
.featurette-heading {
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.05rem;
}

/* RESPONSIVE CSS
-------------------------------------------------- */
@media (min-width: 40em) {
  /* Bump up size of carousel content */
  .carousel-caption p {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    line-height: 1.4;
  }
  .featurette-heading {
    font-size: 50px;
  }
}
@media (min-width: 62em) {
  .featurette-heading {
    margin-top: 7rem;
  }
}
#logo {
  float: left;
  font-size: 1.7em;
  color: #fff;
  letter-spacing: -1px;
  font-weight: bold;
}

.brand-logo-medium {
  max-height: 140px;
  max-width: 180px;
  width: auto;
}

.rails-logo {
  max-height: 100px;
  align-self: center;
}

.ruby-rails-wrapper {
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-titles {
  letter-spacing: -0.05rem;
  font-weight: 500;
}

.rapanui-logo {
  background-color: rgba(90, 90, 90, 0.3764705882);
  min-height: 150px;
  border-radius: 10px;
  align-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.featurette {
  display: inline-flex;
  align-items: center;
}

.featurette-image {
  max-height: 250px;
  align-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.minimal-needed {
  max-width: fit-content;
}

/* LANGUAGE PICKER SLIDER
-------------------------------------------------- */
.flex-cradle {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 15px;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.flex-cradle #generate-btn {
  min-width: 200px;
}
@media (max-width: 420px) {
  .flex-cradle {
    flex-direction: column;
    gap: 20px;
  }
}

.complexity-slider-cradle .complexity-handle, .slider-cradle .handle {
  cursor: pointer;
  width: calc(50% - 8px);
  height: 42.24px;
  border-radius: 3px;
  position: absolute;
  background: white;
  top: 2.88px;
  left: 2.88px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.6), inset 0px 2px 4px rgba(255, 255, 255, 0.8), inset 0px -2px 4px rgba(0, 0, 0, 0.3);
  transition: transform cubic-bezier(0.4, 0, 0.2, 1) 600ms;
}
.complexity-slider-cradle .complexity-handle::before, .slider-cradle .handle::before, .complexity-slider-cradle .complexity-handle::after, .slider-cradle .handle::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 2px;
}
.complexity-slider-cradle .complexity-handle::before, .slider-cradle .handle::before {
  left: calc(50% - 6px);
}
.complexity-slider-cradle .complexity-handle::after, .slider-cradle .handle::after {
  left: calc(50% + 3px);
}

.complexity-slider-cradle, .slider-cradle {
  display: flex;
  text-align: center;
  border-radius: 3px;
  background: #5a5a5a;
  height: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.4);
  transition: background ease-in-out 0.5s;
}
.complexity-slider-cradle div, .slider-cradle div {
  line-height: 48px;
  color: white;
  font-weight: 500;
}

.slider-cradle {
  width: 150px;
}
.slider-cradle .option-1, .slider-cradle .option-2 {
  width: 50%;
}
.slider-cradle.is-transitioned {
  background: #007bff; /* Bootstrap primary blue */
}
.slider-cradle.is-transitioned .handle {
  transform: translateX(75px);
}

/* COMPLEXITY SLIDER
-------------------------------------------------- */
.complexity-slider-cradle {
  width: 315px;
}
.complexity-slider-cradle .complexity-option-1, .complexity-slider-cradle .complexity-option-2 {
  width: 50%;
}
.complexity-slider-cradle.is-transitioned {
  background: #28a745; /* Bootstrap success green */
}
.complexity-slider-cradle.is-transitioned .complexity-handle {
  transform: translateX(157.5px);
}
