em {
  font-family: 'Hanabi', serif;
  font-style: italic !important;
  font-synthesis: none;
}

.toolbar-basic {
  display: flex;
  gap: 20px;
  padding: 5px;
}

.toolbar__group {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.icon {
  width: 24px;
  height: 24px;
  fill: var(--bs-body-color);
}

.stylish-select {
  padding: 8px 25px 0px 0px;
  font-size: 21px;
  border: none;
  background-color: transparent;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23555'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right;
  cursor: pointer;
  color: var(--bs-body-color);
}

.stylish-select:focus {
  outline: none;
}

/* Optional: Style for hover state */

.stylish-select:hover {
  color: #333;
}

/* Ensure the options in the dropdown are visible */

.stylish-select option {
  background-color: white;
  color: #555;
}

/* Existing styles... */

/* Style for range inputs */

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  padding: 0;
  margin: 0;
}

/* Track styles */

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 1px;
  background: var(--bs-body-color);
  border: none;
  border-radius: 0;
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 1px;
  background: var(--bs-body-color);
  border: none;
  border-radius: 0;
}

input[type="range"]::-ms-track {
  width: 100%;
  height: 1px;
  background: transparent;
  border-color: transparent;
  border-width: 16px 0;
  color: transparent;
}

input[type="range"]::-ms-fill-lower {
  background: var(--bs-body-color);
}

input[type="range"]::-ms-fill-upper {
  background: var(--bs-body-color);
}

/* Thumb styles */

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: 1px solid var(--bs-body-color);
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  margin-top: -7.5px;
}

input[type="range"]::-moz-range-thumb {
  border: 1px solid var(--bs-body-color);
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

input[type="range"]::-ms-thumb {
  border: 1px solid var(--bs-body-color);
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

/* Focus styles */

input[type="range"]:focus {
  outline: none;
}

input[type="range"]:focus::-webkit-slider-runnable-track {
  background: var(--bs-body-color);
}

input[type="range"]:focus::-moz-range-track {
  background: var(--bs-body-color);
}

/* Adjust slider container */

.slider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 200px;
}

.slider input[type="range"] {
  flex-grow: 1;
}

.slider span {
  min-width: 40px;
  text-align: right;
}

.editor {
  width: 100%;
  min-height: 1em;
  border-bottom: 1px solid #c31341;
  caret-color: #c31341;
  padding-top: 20px;
  padding-bottom: 20px;
  box-sizing: border-box;
  font-size: var(--font-size, 3.5vw);
  line-height: var(--line-height, 1.3);
  letter-spacing: var(--letter-spacing, -0.01);
  overflow: hidden;
  resize: none;
  column-gap: 20px;
}

@media only screen and (max-width: 833px) {
  .editor {
    width: 100%;
    min-height: 1em;
    border-bottom: 1px solid #c31341;
    padding-top: 10px;
    padding-bottom: 10px;
    box-sizing: border-box;
    font-size: var(--font-size, 8vw);
    line-height: var(--line-height, 1.3);
    letter-spacing: var(--letter-spacing, -0.01);
    overflow: hidden;
    resize: none;
    column-gap: 20px;
  }
}

@media only screen and (max-width: 833px) {
  .toolbar-basic {
    flex-direction: column;
    align-items: stretch;
  }
}

@media only screen and (max-width: 833px) {
  .toolbar__group {
    width: 100%;
  }
}

.editor:focus {
  caret-color: #c31341;
  outline: none;
  /*Optional: removes the default focus outline;*/
}

/* Align Button */

.btn-align {
  padding: 5px;
  background-color: #000000;
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-align:hover {
  background-color: #f0f0f0;
}

.btn-align.active {
  background-color: #e0e0e0;
}

.btn-align svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-icon {
  padding: 5px;
  background-color: #000;
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
}

.btn-icon:hover {
  background-color: #f0f0f0;
}

.btn-icon.active {
  background-color: #e0e0e0;
}

.btn-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* SVG icon */

.slider {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* You might want to adjust these styles to fit your design */

input[type="range"] {
  width: 100px;
}

span[id$="Value"] {
  min-width: 40px;
  text-align: right;
}

/* ... (keep existing styles) ... */

.opentype-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 15px;
}

.feature-btn {
  padding: 5px 10px;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.feature-btn.active {
  background-color: #007bff;
  color: #ffffff;
}

