body {
    margin:0;
}


h1 {
    color:#FCFAA6; /* Pale Lemon Yellow */
    margin:0;
}

ul {
  display: flex; 
  gap: .25rem;    
  list-style-type: none;
  padding: 0;          
  margin: 0;          
}

#source-text, #result-text {
    height:auto;
    max-height: 60rem;
    background-color:#fffef0;
    width:35%;
    padding:2rem;
    margin-left:auto;
    margin-right:auto;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 1rem 0;
    border: 1px solid #dee2e6;
    border-radius: 0.4rem;
    overflow-x: auto;
}

p.title {
    margin-bottom:0;
    font-size:1.5rem;
    font-weight:800;
}

p.author {
    margin-bottom:2rem;
    margin-top:0;
    font-size:1.3rem;
}

#controls {
    width: 28%;
    margin: 1rem;
}

.is-hidden {
    display: none;
}

.invisible {
    visibility: hidden;
}

pre {
    white-space: pre-wrap;       /* Since CSS 2.1 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

header {
    background-color: #ab4b52; /* English Red */
    height: 5rem;
    padding-left:1rem;
    display: grid;
    align-items: center;
}

.container {
    display: flex;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.control-set button {
    width:88%;
    background-color: white;
    margin: 6%;
    background-color: #f0f0f0;
    border: 3px solid #000;
    border-radius: 0;
    padding: .8rem;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
}

.control-set textarea {
    width: 80%;
    padding: .8rem; 
    padding-bottom: 5rem;
    border: 3px solid black;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.2s;
    margin:6%;
}

.control-set button:hover {
    background-color: black;
    color: #f0f0f0;
}

.control-set button.pos-selected {

    background-color: black;
    color: #f0f0f0;
    transition: transform 0.1s, box-shadow 0.1s;
}

.control-set button.btn-up-down {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    flex-grow: 0;
    box-shadow:none;
    font-size: .75rem;
    font-weight: 600;
    padding:.1rem;
    border: 1px solid #000;
    margin:0 1.6rem;
}

span.pos-selected, span.highlighted, span.selectable:hover {
    background-color:black;
    color: white; 
    display: inline-block;
    padding: 2px 4px;
    border-radius: 3px;
    margin-bottom:0;
}

.flex-container {
    display: flex;
    width: 100%;
    align-items: center;
}

/* Slider controls */

.ui-slider {
    position: relative;
    text-align: left;
    background: #f0f0f0; /* Light gray base */
    border: none;
    border-radius: 10px; /* Rounded corners for a modern feel */
    height: 8px; /* Thinner track */
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
    min-width: 0;
}

/* --- The Main Slider Track (The background bar) --- */
/* This targets the main div that jQuery creates */
.ui-slider {
    position: relative;
    text-align: left;
    background: #f0f0f0; /* Light gray base */
    border: none;
    border-radius: 10px; /* Rounded corners for a modern feel */
    height: 8px; /* Thinner track */
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* --- The Slider Range (The filled portion) --- */
/* This targets the bar that fills up as you slide */
.ui-slider-range {
    position: absolute;
    z-index: 1;
    font-size: .7em;
    display: block;
    border: 0;
    border-radius: 10px;
    background: #4A90E2; /* Vibrant accent color (Modern Blue) */
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5); /* Subtle glow */
}

/* --- The Slider Handle (The draggable circle/dot) --- */
/* This targets the draggable element */
.ui-slider .ui-slider-handle {
    position: absolute;
    z-index: 2;
    width: 24px; /* Make the handle a clear circle */
    height: 24px;
    cursor: pointer;
    background: #ffffff; /* White handle */
    border: 3px solid #4A90E2; /* Border matches the range color */
    border-radius: 50%; /* Perfect circle */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* Clear shadow */
    /* Center the handle over the 8px track: 
       (handle height - track height) / 2 = (24px - 8px) / 2 = 8px 
       Move handle up 8px from center. */
    top: -8px; 
    margin-left: -12px; /* Pull left half the handle width */
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

/* Add a visual effect when the user interacts with the handle */
.ui-slider .ui-slider-handle:hover,
.ui-slider .ui-slider-handle.ui-state-active {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Larger shadow on hover/active */
    transform: scale(1.1); /* Slightly enlarge the handle when active */
    border-color: #357ABD; /* Slightly darker blue on hover */
}

/* Ensure the focus outline is visible for keyboard navigation */
.ui-slider .ui-slider-handle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
}

[id^="slider-value-"] {
    text-align:center;
    font-size:.75rem;
}

#selectors {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
    margin-bottom: 5px;
    margin-left:1.5rem;
}

select {
    background-color: #f0f0f0;
    border: 3px solid #000;
    border-radius: 0;
    padding: 12px 40px 12px 16px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 4px 4px 0px #000;
    transition: transform 0.1s, box-shadow 0.1s;
}

select:hover {
    background-color: #ffde03;
}

select:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000;
}

.moodset {}



