html {
  overscroll-behavior-y: none;
  touch-action: manipulation;
}
body {
    margin: 0;
    height: 100svh;
    height: 100dvh;
    overflow: hidden;
    background: #ffffff;
    font-family: "Contact", sans-serif;
    touch-action: manipulation;
}

.text-scroll {
    height: calc(100svh );
    height: calc(100dvh );
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.buttons-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 0;
    height: 40px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 0 10px;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    z-index: 100;
}

.control {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
}

.control-label {
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 0, 0, 0.5);
    padding-right: 3px;
    white-space: nowrap;
}

.control-buttons {
    display: flex;
    gap: 0;
}


.control-buttons .ss-toggle {
    
    padding-left: 2px;
    padding-right: 0;
}


.ss-controls {
    gap: 5px;
}

.ss-toggle {
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    padding: 0.5rem 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 0, 0, 0.5);
}

.ss-toggle:hover {
    color: rgba(255, 0, 0, 1);
}
.ss-toggle.active {
    color: rgba(255, 0, 0, 1);
}

.editable-text {
    width: 100%;
    padding: 0 20px;
    margin: 0 0 20px 0;
    /* Extra leading from line-height is split above/below the text;
       pull the top back up so the first line never drifts. */
    margin-top: calc(20px - (var(--lh, 1) - 1) * 0.5em);
    background: #ffffff;
    color:black;
    font-size: 2rem;
    line-height: var(--lh, 1);
    outline: none;
    border: none;
}

.editable-text::selection {
    background-color: #e8e8e8;
}
