/* THE READING RULER SWITCH */
.trr-title-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0;
}

.trr-title-row a {
  margin-bottom: 0;
}

.trr-title-container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  min-height: 2rem;
}

.trr-title-container a {
  grid-column: 1;
  grid-row: 1;
  white-space: nowrap;
}


.trr-title-special {
  display: block;
}


.trr-switch-container {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

.trr-demo-text {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 400;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.trr-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}

.trr-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.trr-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(60, 26, 64);
  transition: .2s;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
}

.trr-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .2s;
  box-shadow: 2px 2px 0 rgb(0, 0, 0);
}

input:checked + .trr-slider {
  background-color: rgb(240, 109, 255);
}

input:checked + .trr-slider:before {
  transform: translateX(16px);
}

/* THE READING RULER OVERLAY */
#trr-demo-overlay {
  position: fixed;
  width: 100%;
  height: 0;
  bottom: 0;
  left: 0;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background-color: rgba(0, 0, 0, 0.7);
  border-top: 2px solid rgb(240, 109, 255);
}

/* Hide switch on mobile and tablet */
@media screen and (max-width: 1024px) {
  .trr-switch-container {
    display: none !important;
  }
}

/* SPECIAL TITLE STYLING */
.trr-title-special {
  font-family: "Sixtyfour", sans-serif !important;
  color: rgb(23, 232, 138) !important;
  text-shadow: 5px 5px 0 rgb(8, 14, 24) !important;
  font-size: 1.1rem !important;
  font-weight: 300 !important;
  width: auto !important;
  height: auto !important;
  line-height: 1.8rem !important;
  letter-spacing: -0.05em !important;
  word-spacing: -0.6em !important;
  text-decoration: underline !important;
}

@media (max-width: 600px) {
  .trr-title-special {
    font-size: 1rem !important;
    line-height: 1.3rem !important;
    word-spacing: -0.2em !important;
  }
}

.trr-title-special.trr-underline-cyan {
  text-decoration-color: rgb(35, 222, 241) !important;
}

.trr-title-special.trr-underline-lilac {
  text-decoration-color: rgb(240, 109, 255) !important;
}

.trr-title-special.trr-underline-yellow {
  text-decoration-color: rgb(248, 247, 2) !important;
}

.trr-title-special.trr-underline-green {
  text-decoration-color: rgb(87, 247, 2) !important;
}

.trr-title-special.trr-underline-red {
  text-decoration-color: rgb(255, 71, 71) !important;
}