.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #f5f7fa;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.input-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

label {
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

textarea {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px auto;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    resize: vertical;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}

textarea:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

button {
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(145deg, #4CAF50, #45a049);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

#alignment-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.word-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
}

.target-word, .source-word {
    padding: 2px;
    margin: 1px;
    border: 1px solid #ccc;
    cursor: pointer;
    display: inline-block; /* Important for highlighting */
}

.target-word.highlighted, .source-word.highlighted {
    background-color: yellow;
}

.source-word:hover, .target-word:hover {
    background: #e0e0e0;
}

.source-word.highlighted, .target-word.highlighted {
    background: #ffd866;
    border-color: #ffcc00;
}

@media (max-width: 600px) {
    textarea {
        max-width: 100%;
    }
}
