body {
    margin: 0;
    padding: 0;
    background-color: #1F2937;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-family: Inter, sans-serif;
}

.container {
    text-align: left;
    font-family: Inter, sans-serif;
    max-width: 800px; 
}

h1 {
    color: white;
    font-family: Karla, sans-serif;
    margin-bottom: 0;
    font-size: 40px;
    font-weight: 800;
}

#subheader-el {
    margin-top: 10px;
    margin-bottom: 0;
    color: #D5D4D8;
    font-size: 20px;
    text-align: left;
}

button {
    background-color: #10B981;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 45px;
    margin-bottom: 0;
}

.line-el {
    width: 450px;
    height: 1px;
    background-color: #D5D4D8;
    margin: 35px 0;
}

.output-el {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px;
    width: 450px;
    background-color: transparent;
}

.output-el p {
    background-color: #273549;
    border-radius: 6px;
    color: #55F991;
    text-align: center;
    width: 50%;
    font-family: Inter, sans-serif;
    font-size: 16px;
    height: 40px;
    line-height: 40px;
}

.output-el p:empty {
    color: transparent;
}

.slider-container {
    margin: 25px 0 15px;
    width: 450px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #D5D4D8;
    font-family: Inter, sans-serif;
    font-size: 16px;
    flex-wrap: nowrap;
}

.slider-label {
    white-space: nowrap;
    flex-shrink: 0;
}

#lengthValue {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

#lengthSlider {
    -webkit-appearance: none;
    appearance: none;
    flex-grow: 1;
    height: 8px;
    border-radius: 5px;
    background: white;
    outline: none;
    opacity: 0.9;
    transition: opacity .2s;
    margin-left: 50px;
}

#lengthSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #10B981;
    cursor: pointer;
}

#lengthSlider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #10B981;
    cursor: pointer;
}

#lengthSlider:hover {
    opacity: 1;
}

.toggle-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.toggle-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.toggle-label {
    font-family: Inter, sans-serif;
    font-size: 16px;
    color: #D5D4D8;
    min-width: 150px;
}

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

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #555;
    transition: .3s ease;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s ease;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #10B981;
}

input:focus + .slider {
    box-shadow: 0 0 3px #10B981;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.output-el p {
    background-color: #273549;
    border-radius: 6px;
    color: #55F991;
    text-align: center;
    width: 50%;
    font-family: Inter, sans-serif;
    font-size: 16px;
    height: 40px;
    line-height: 40px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

.output-el p:hover {
    background-color: #3B4758;
}

.output-el p::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.output-el p.active:hover::after {
    opacity: 1;
}

