@import url('text-reverser.css');

.invisible-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 8px 0 8px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 4px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    scroll-snap-type: x mandatory;
}
.invisible-options label {
    background: rgba(255,255,255,0.07);
    border-radius: 999px;
    padding: 10px 18px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border 0.2s, color 0.2s;
    border: 1.5px solid rgba(255,255,255,0.12);
    user-select: none;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
    margin-bottom: 2px;
    scroll-snap-align: start;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    outline: none;
    flex-shrink: 0;
}
.invisible-options label:hover,
.invisible-options input[type="radio"]:checked + label {
    background: rgba(74,222,128,0.15);
    border-color: #4ade80;
    color: #4ade80;
}
.invisible-options input[type="radio"] {
    margin-right: 6px;
    accent-color: #4ade80;
    width: 1.1em;
    height: 1.1em;
}
@media (max-width: 768px) {
    .invisible-options {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding-bottom: 4px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        scroll-snap-type: x mandatory;
        padding-left: 0;
        padding-right: 0;
        white-space: nowrap;
    }
    .invisible-options label {
        min-width: unset;
        font-size: 0.93rem;
        padding: 10px 8px;
        border-radius: 999px;
        margin-bottom: 0;
        margin-right: 2px;
        margin-left: 0;
        scroll-snap-align: start;
        flex-shrink: 0;
    }
    .invisible-options input[type="radio"] {
        width: 1.2em;
        height: 1.2em;
    }
}

#inputVisible, #outputInvisible {
    width: 100%;
    min-height: 220px;
    padding: 24px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    color: white;
    font-size: 1.18rem;
    font-family: 'Inter', monospace;
    transition: all 0.3s;
    box-sizing: border-box;
    resize: vertical;
}
#inputVisible:focus, #outputInvisible:focus {
    outline: none;
    border-color: #4ade80;
    background: rgba(255,255,255,0.08);
}
#outputInvisible[readonly] {
    background: rgba(255,255,255,0.03);
    color: #b0ffb0;
}
@media (max-width: 768px) {
    #inputVisible, #outputInvisible {
        font-size: 1.05rem;
        padding: 16px;
        min-height: 140px;
    }
}
