.highlight {
  margin-bottom: 15px; }

#speed-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e8e8e8;
  outline: none; }

#speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2a7ae2;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.3); }

#speed-slider::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: #e8e8e8; }

#speed-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2a7ae2;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.3); }

#speed-slider::-ms-track {
  height: 6px;
  border-color: transparent;
  color: transparent;
  background: transparent; }

#speed-slider::-ms-fill-lower,
#speed-slider::-ms-fill-upper {
  background: #e8e8e8;
  border-radius: 3px; }

#speed-slider::-ms-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2a7ae2;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.3); }

body {
  position: relative;
  padding-top: 100px; }

code br:last-child {
  display: none; }

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

.footer-featurette-divider {
  margin: 60px 0; }

.footer-separator {
  display: inline-block;
  height: 10px;
  margin: 0 15px;
  border-right: 1px solid #DDD; }

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

/* CUSTOMIZE THE NAVBAR
-------------------------------------------------- */
/* Special class on .container surrounding .navbar, used for positioning it into place. */
.navbar-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20; }

.navbar-inverse .navbar-brand,
.navbar-inverse .navbar-nav > li > a {
  color: #EEE; }

/* Flip around the padding for proper display in narrow viewports */
.navbar-wrapper > .container {
  padding-right: 0;
  padding-left: 0; }

.navbar-wrapper .navbar {
  padding-right: 15px;
  padding-left: 15px; }

.navbar-wrapper .navbar .container {
  width: auto; }

/**
 * Syntax highlighting styles
 */
.highlight {
  background: #fff; }
  .highlight .c {
    color: #998;
    font-style: italic; }
  .highlight .err {
    color: #a61717;
    background-color: #e3d2d2; }
  .highlight .k {
    font-weight: bold; }
  .highlight .o {
    font-weight: bold; }
  .highlight .cm {
    color: #998;
    font-style: italic; }
  .highlight .cp {
    color: #999;
    font-weight: bold; }
  .highlight .c1 {
    color: #998;
    font-style: italic; }
  .highlight .cs {
    color: #999;
    font-weight: bold;
    font-style: italic; }
  .highlight .gd {
    color: #000;
    background-color: #fdd; }
  .highlight .gd .x {
    color: #000;
    background-color: #faa; }
  .highlight .ge {
    font-style: italic; }
  .highlight .gr {
    color: #a00; }
  .highlight .gh {
    color: #999; }
  .highlight .gi {
    color: #000;
    background-color: #dfd; }
  .highlight .gi .x {
    color: #000;
    background-color: #afa; }
  .highlight .go {
    color: #888; }
  .highlight .gp {
    color: #555; }
  .highlight .gs {
    font-weight: bold; }
  .highlight .gu {
    color: #aaa; }
  .highlight .gt {
    color: #a00; }
  .highlight .kc {
    font-weight: bold; }
  .highlight .kd {
    font-weight: bold; }
  .highlight .kp {
    font-weight: bold; }
  .highlight .kr {
    font-weight: bold; }
  .highlight .kt {
    color: #458;
    font-weight: bold; }
  .highlight .m {
    color: #099; }
  .highlight .s {
    color: #d14; }
  .highlight .na {
    color: #008080; }
  .highlight .nb {
    color: #0086B3; }
  .highlight .nc {
    color: #458;
    font-weight: bold; }
  .highlight .no {
    color: #008080; }
  .highlight .ni {
    color: #800080; }
  .highlight .ne {
    color: #900;
    font-weight: bold; }
  .highlight .nf {
    color: #900;
    font-weight: bold; }
  .highlight .nn {
    color: #555; }
  .highlight .nt {
    color: #000080; }
  .highlight .nv {
    color: #008080; }
  .highlight .ow {
    font-weight: bold; }
  .highlight .w {
    color: #bbb; }
  .highlight .mf {
    color: #099; }
  .highlight .mh {
    color: #099; }
  .highlight .mi {
    color: #099; }
  .highlight .mo {
    color: #099; }
  .highlight .sb {
    color: #d14; }
  .highlight .sc {
    color: #d14; }
  .highlight .sd {
    color: #d14; }
  .highlight .s2 {
    color: #d14; }
  .highlight .se {
    color: #d14; }
  .highlight .sh {
    color: #d14; }
  .highlight .si {
    color: #d14; }
  .highlight .sx {
    color: #d14; }
  .highlight .sr {
    color: #009926; }
  .highlight .s1 {
    color: #d14; }
  .highlight .ss {
    color: #990073; }
  .highlight .bp {
    color: #999; }
  .highlight .vc {
    color: #008080; }
  .highlight .vg {
    color: #008080; }
  .highlight .vi {
    color: #008080; }
  .highlight .il {
    color: #099; }

/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */
.intro-inner {
  margin: 20px auto 0;
  max-width: 768px; }

.intro {
  text-align: center; }

.intro-actions {
  margin-top: 60px; }
  @media (max-width: 768px) {
    .intro-actions {
      display: flex; } }

.intro-btn {
  width: 300px;
  margin: 0 20px; }
  @media (max-width: 768px) {
    .intro-btn {
      margin: 0 10px; } }

/* Bump up size of carousel content */
.intro-inner p {
  margin: 20px 0;
  font-size: 21px;
  line-height: 1.4; }

/* MARKETING CONTENT
-------------------------------------------------- */
.sub-features {
  display: flex;
  justify-content: space-around; }
  @media (max-width: 768px) {
    .sub-features {
      flex-direction: column; } }

.sub-feature {
  width: 25%; }
  @media (max-width: 768px) {
    .sub-feature {
      width: 100%; } }
  .sub-feature h2 {
    font-size: 18px;
    font-weight: 500;
    margin-top: 0; }

@media (max-width: 768px) {
  .middle-subfeature {
    margin: 20px 0; }

  .marketing-top-divider {
    margin-bottom: 40px; }

  .marketing-bottom-divider {
    margin-top: 40px; } }
.marketing {
  padding-bottom: 20px; }

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

.marketing h2 {
  font-weight: normal; }

.marketing .col-lg-4 p {
  margin-right: 10px;
  margin-left: 10px; }

/* RESPONSIVE CSS
-------------------------------------------------- */
@media (min-width: 768px) {
  /* Navbar positioning foo */
  .navbar-wrapper {
    margin-top: 20px; }

  .navbar-wrapper .container {
    padding-right: 15px;
    padding-left: 15px; }

  .navbar-wrapper .navbar {
    padding-right: 0;
    padding-left: 0; }

  .featurette-heading {
    font-size: 50px; } }
@media (min-width: 992px) {
  .featurette-heading {
    margin-top: 120px; } }
/* --------------------------------------- */
.char {
  display: inline-block;
  height: 200px;
  width: 200px;
  margin: 0 20px; }
  @media (max-width: 568px) {
    .char {
      width: 100px;
      height: 100px;
      margin: 0 10px; } }

.demo-target {
  background: white;
  clear: both;
  border: 1px solid #AAA;
  min-height: auto;
  padding: 10px;
  margin: 0 auto;
  text-align: center;
  white-space: nowrap;
  overflow-x: auto;
  width: fit-content;
  max-width: 100%;
  -webkit-overflow-scrolling: touch; }
  .demo-target::-webkit-scrollbar {
    -webkit-appearance: none;
    height: 8px; }
  .demo-target::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 1px rgba(255, 255, 255, 0.5); }
  .demo-target > div {
    display: inline-block !important;
    vertical-align: top; }

.demo {
  text-align: center; }

.demo-divider {
  margin: 40px 0; }

.demo-docs-link {
  display: inline-block;
  margin-top: 20px; }

.char-select-form {
  margin-bottom: 20px; }
  @media (max-width: 768px) {
    .char-select-form {
      text-align: center; } }

.beginner-chars-btn {
  margin-left: 10px; }
  @media (max-width: 768px) {
    .beginner-chars-btn {
      margin-left: 0;
      margin-top: 10px;
      display: inline-block; } }

.language-script-settings {
  background-color: #f5f5f5;
  padding: 10px 15px;
  border: 1px solid #ddd;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px; }
  .language-script-settings .settings-group {
    display: flex;
    gap: 12px;
    align-items: center;
    white-space: nowrap; }
    .language-script-settings .settings-group label {
      display: inline-flex;
      align-items: center;
      font-size: 14px;
      font-weight: normal;
      margin: 0;
      cursor: pointer;
      white-space: nowrap; }
      .language-script-settings .settings-group label input {
        margin: 0 6px 0 0;
        cursor: pointer; }
    .language-script-settings .settings-group.speed-slider-group {
      gap: 8px; }
      .language-script-settings .settings-group.speed-slider-group label {
        font-size: 13px; }
      .language-script-settings .settings-group.speed-slider-group input[type="range"] {
        width: 120px; }
      .language-script-settings .settings-group.speed-slider-group small {
        min-width: 28px;
        text-align: center;
        color: #6c757d;
        font-size: 13px; }
  .language-script-settings .settings-divider {
    width: 1px;
    height: 30px;
    background-color: #ddd;
    align-self: stretch; }
  @media (max-width: 1000px) {
    .language-script-settings {
      flex-wrap: wrap;
      gap: 10px; }
      .language-script-settings .settings-divider {
        display: none; } }
  @media (max-width: 768px) {
    .language-script-settings {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 10px; }
      .language-script-settings .settings-group {
        justify-content: center; }
        .language-script-settings .settings-group.speed-slider-group input[type="range"] {
          flex: 1;
          min-width: 120px; } }

.demo-controls {
  margin: 10px auto;
  padding: 10px;
  max-width: 800px; }

.demo-controls .btn {
  margin: 5px; }

.demo-controls .btn-group {
  margin: 5px 0; }

.demo-controls .checkbox {
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  margin-right: 20px; }

.demo-controls .checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin-right: 10px;
  flex-shrink: 0; }

.demo-controls .checkbox label {
  font-size: 16px;
  cursor: pointer;
  user-select: none;
  margin: 0;
  display: flex;
  align-items: center; }

@media (max-width: 768px) {
  .demo-controls .checkbox {
    margin-right: 15px; }

  .demo-controls .checkbox input[type="checkbox"] {
    margin-right: 12px; }

  .demo-controls form {
    display: flex;
    flex-direction: column;
    align-items: center; }

  .demo-controls .btn-group {
    margin: 5px 0; }

  .demo-controls .btn {
    font-size: 14px;
    padding: 8px 12px; } }
.character-select {
  width: auto !important;
  display: inline-block !important; }

.script-selector {
  display: inline-flex;
  align-items: center;
  margin-left: 15px;
  gap: 10px; }

.radio-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 6px 12px;
  border: 2px solid #ddd;
  background: white;
  transition: all 0.2s ease;
  user-select: none;
  font-size: 14px;
  font-weight: 500;
  margin: 0; }

.radio-label:hover {
  border-color: #337ab7;
  background: #f8f9fa; }

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none; }

.radio-label input[type="radio"]:checked + span {
  color: white; }

.radio-label:has(input[type="radio"]:checked) {
  background: #337ab7;
  border-color: #337ab7;
  color: white; }

.radio-label span {
  color: #333;
  transition: color 0.2s ease; }

@media (max-width: 768px) {
  .char-select-form {
    flex-direction: column;
    align-items: center; }

  .script-selector {
    margin-left: 0;
    margin-top: 10px; }

  .translation-display-position {
    margin-left: auto;
    margin-right: auto; } }
.beginner-chars-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050; }
  .beginner-chars-modal .beginner-chars-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); }
  .beginner-chars-modal .beginner-chars-modal-content {
    position: relative;
    background: white;
    margin: 50px auto;
    max-width: 600px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1051; }
    @media (max-width: 768px) {
      .beginner-chars-modal .beginner-chars-modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px); } }
  .beginner-chars-modal .beginner-chars-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa; }
    .beginner-chars-modal .beginner-chars-modal-header .close-modal-btn {
      background: none;
      border: none;
      font-size: 28px;
      line-height: 1;
      color: #999;
      cursor: pointer;
      padding: 0;
      width: 30px;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center; }
      .beginner-chars-modal .beginner-chars-modal-header .close-modal-btn:hover {
        color: #333; }
  .beginner-chars-modal .beginner-chars-modal-body {
    padding: 20px; }

.license-block {
  margin: 50px 0; }

#speed-slider {
  background: #e8e8e8; }

#speed-slider::-webkit-slider-thumb,
#speed-slider::-moz-range-thumb,
#speed-slider::-ms-thumb {
  background: #2a7ae2; }

@media (min-width: 768px) {
  .navbar-nav > li:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.2); }

  .navbar-nav > li.active > a,
  .navbar-nav > li.active > a:hover,
  .navbar-nav > li.active > a:focus {
    background-color: transparent; } }
@media (max-width: 768px) {
  .beginner-chars {
    max-width: 100% !important; }

  .beginner-chars-content {
    min-width: 0 !important;
    width: 100% !important; }

  .char-buttons {
    display: flex;
    flex-wrap: wrap; } }
