/* style.css */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #af0089;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* Add this line */
    justify-content: flex-start; /*Changed align items to start*/
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 20px; /* Added margin-top */
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.input-area {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.column {
    flex: 1;
}

.column h2 {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 10px;
}

textarea {
    width: 100%;
    height: 200px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.4;
    resize: vertical; /* Allows vertical resizing */
}

.comparison-table-container {
    margin-bottom: 30px;
    overflow-x: auto; /* Enable horizontal scrolling on smaller screens */
}

#comparisonTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#comparisonTable th,
#comparisonTable td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

#comparisonTable th {
    background-color: #f0f0f0;
    font-weight: bold;
}

.match {
    background-color: #d4edda; /* Light green */
}

.mismatch {
    background-color: #f8d7da; /* Light red */
}

.results-area {
    margin-top: 20px;
}

.results-area h2 {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 10px;
}

#resultsList {
    list-style: none;
    padding: 0;
}

#resultsList li {
    padding: 8px 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 5px;
    background-color: #f9f9f9;
    font-size: 0.9rem;
    color: #444;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .input-area {
        flex-direction: column;
    }

    textarea {
        height: 150px;
    }
}