/* Type Tester Styles */
.type-tester {
    margin-bottom: 1rem;
}

.controls {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    /*flex-wrap: wrap;*/
}


.control-group {
    flex: 1;
    min-width: 0; /* Allow flex items to shrink */
}

.control-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    white-space: nowrap;
    color: #999;
}

.control-group input[type="range"] {
    flex: 1;
    min-width: 0;
}

.main-controls label {
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Style the range inputs */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 1px;
    background: #666;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    background: #666;
    cursor: pointer;
    border-radius: 50%;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #666;
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

/* Display values styling */
.pixel-display,
.letter-spacing-display,
.line-height-display {
    font-weight: regular;
    min-width: 1rem;
    text-align: right;
    font-size: 14px;
    color: #999;
}

/* Output div styling */
.output {
    color: #d8d8d8;
    padding: 0;
    min-height: 1rem;
    outline: none;
    /*white-space: nowrap;*/
    overflow: hidden;
}


/* Responsive adjustments */
@media (max-width: 601px) {
    .controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .control-group {
        width: 100%;
    }

    /* On mobile, hide the letter-spacing and line-height controls */
    .control-group:has(.letter-spacing),
    .control-group:has(.line-height) {
        display: none;
    }

}