body {
    font-family: Arial, sans-serif;
}

.container {
    display: flex;
    width: 100%;
    height: 100vh;
}

.column {
    width: 50%;
    padding: 20px;
    overflow-y: scroll;
    border-right: 1px solid #ddd;
}

/* Add indentation for the first line of each paragraph */
p {
    text-indent: 40px; /* Indent the first line of the paragraph */
}

.sentence {
    cursor: pointer;
}

.phrase {
    cursor: pointer;
}

.word {
    cursor: pointer;
    margin-right: 1px; /* Remove padding and control word spacing with margin */
}

/* Remove extra spacing between words and punctuation */
.word + .punctuation {
    margin-left: 0; /* Ensure punctuation sticks closely to words */
}

.sentence.highlighted {
    background-color: #d7d7d7; /* Light grey for sentence */
}

.phrase.phrase-highlighted {
    background-color: #c5dcf3; /* Light blue for phrase */
}

.word.word-highlighted {
    background-color: #b3ffd9; /* Light purple for word */
}

#translationPopup {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    max-width: 500px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
