html {
    cursor: text;
}

body {
    width: 100%;
    background-color: #171717;
}

.passage {
    width: 65%;
    margin: 0 auto;
    font-family: 'Old Standard TT', serif;
    font-size: 1em;
    line-height: 1.2;
    text-align: justify;
    padding: 20px;
    color: #333;
    letter-spacing: 0.01em;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: text;
    user-select: text;
}

@media (max-width: 768px) {
    .passage {
        width: 90%;
        font-size: 1.2em;
        line-height: 1.6;
        padding: 15px;
    }
    
    .word {
        padding: 2px 4px;
    }
}

::selection {
    background: transparent;
}

/* Light green when selecting but no matches */
.selecting ::selection {
    background-color: rgba(59, 255, 105, 0.3);
    transition: background-color 0.2s ease;
}

/* Full green when matches are found */
.selecting .match-highlight ::selection {
    background-color: #3bff69;
}

.match-highlight {
    background-color: #3bff69;
    transition: background-color 0.2s ease;
}

/* Legacy class - can be removed if not used */
.displaced-highlight {
    background-color: #3bff69;
    transition: background-color 0.1s ease;
}