* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #1f1f1f;
    background: #ffffff;
}

.container {
    display: flex;
    flex-direction: column; /* Change to column layout */
    align-items: center;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.search-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    margin-bottom: 20px; /* Add margin to separate from content boxes */
    width: 100%;
    max-width: 720px;
}

#searchBox {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 10px;
    font-size: 16px;
    border: 1px solid #999;
    border-radius: 8px;
}

#searchButton {
    min-height: 42px;
    padding: 10px 18px;
    cursor: pointer;
}

#searchBox:focus-visible,
#searchButton:focus-visible,
a:focus-visible {
    outline: 3px solid #7a5c00;
    outline-offset: 3px;
}

#suggestions {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 160px;
    overflow-y: auto;
    width: 100%;
}

#suggestions li {
    padding: 8px;
    cursor: pointer;
    border: 1px solid #ccc;
}

.content {
    display: flex;
    flex-direction: row; /* Change to row layout */
    width: 100%;
    justify-content: center; /* Center content horizontally */
    gap: 20px;
}

.original-content,
.found-content {
    width: 50%; /* Take half of the container width */
    padding: 10px;
    overflow-x: auto;
}

table {
    border:1px;
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

caption {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
    border:red;
    background-color:black;
    padding: 10px;
    line-height: 1.6;
}

.highlight {
    background-color: yellow;
}

.found-content {
    color:maroon;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .container {
        padding: 12px;
    }

    .content {
        flex-direction: column;
        gap: 12px;
    }

    .original-content,
    .found-content {
        width: 100%;
        padding: 6px;
    }

    table {
        min-width: 720px;
    }

    th, td {
        padding: 9px;
        font-size: 15px;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 10px;
    }

    caption {
        font-size: 15px;
    }

    th, td {
        font-size: 14px;
    }
}
