.search-result-container{
    /* display: flex; Use flexbox to align items side by side */
    margin-top: 20px;
    /* align-items: flex-start; */
    width: 100%;
}


/* Header */
.header {
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 10px; 
}

/* Search Info */
.search-info {
    flex: 1; 
}

/* Words Segment Length */
#word_length {
    width: 50px;
    min-height: 30px;
}

#show-info {
    background: whitesmoke; 
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px 4px;
    cursor: pointer;
}

#show-info:hover {
    color: #A45D4B; /* Change on hover */
}

#update-results-btn {
    margin-left: 10px;
    border-radius: 3px;
    border: 1px solid #ddd;
    background: #f2f2f2;
    background: -moz-linear-gradient(top, #f2f2f2 0%, #ebebeb 42%, #dddddd 47%, #cfcfcf 100%);
    background: -webkit-linear-gradient(top, #f2f2f2 0%, #ebebeb 42%, #dddddd 47%, #cfcfcf 100%);
    background: linear-gradient(to bottom, #f2f2f2 0%, #ebebeb 42%, #dddddd 47%, #cfcfcf 100%);
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#f2f2f2', endColorstr='#cfcfcf', GradientType=0);
    transition: all 0.1s ease-in;
    border: 1px solid #707070;
}

#update-results-btn:hover,
#update-results-btn:focus {
    outline: 0;
    color: #A45D4B;
    color: -moz-linear-gradient(top, #A45D4B 0%, #A45D4B 100%);
    color: -webkit-linear-gradient(top, #A45D4B 0%, #A45D4B 100%);
    color: linear-gradient(to bottom, #A45D4B 0%, #A45D4B 100%);
    filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#A45D4B', endColorstr='#A45D4B', GradientType=0);
    border: 1px solid #A45D4B;
    box-shadow: 0 0 3px #A45D4B;
    -o-box-shadow: 0 0 3px #A45D4B;
    -webkit-box-shadow: 0 0 3px #A45D4B;
    -moz-box-shadow: 0 0 3px #A45D4B;
}

/* Pagination */
.pagination {
    text-align: right; 
}

/* table */
/* Table Styles */
table {
    width: 100%; 
    border-collapse: collapse;
}

#resultTable{
    margin-bottom: 10px;
}

.table-container th, .table-container td {
    /* border: 1px solid #ccc;  */
    padding: 8px; 
    text-align: center; 
    font-size: 12px;
}

.table-container th {
    /* border: 1px solid #ccc;  */
    background-color: #e0e0e0;
    text-transform: capitalize;
    color: #000;
    font-weight: bold;
    position: relative;
    cursor: pointer;
}

.table-container th:hover {
    background-color: #ddd; /* Change on hover */
}

.table-container tr {
    transition: background-color 0.3s; /* Smooth background transition */
}

.table-container tr:hover {
    background-color: #f0f0f0; /* Change to your desired hover color */
}

/* charter info line under the term */
.charter-info {
    line-height: 1.6;
    margin: 0 0 10px 0;
    padding: 0;
    background: whitesmoke;
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 0px;
}


.charter-info span {
    display: inline-block;
    margin-right: 10px;
}

.charter-info span:first-child:before {
    content: "";
    padding-right: 0;
}

.charter-info span:before {
    content: "|";
    padding-right: 10px;
}

/* Sorting  */
#sorted-header {
    text-decoration: underline; /* Underline the header text */
    color: #0366A5 
}

.sort-arrow {
    font-size: 12px; /* 0.8em*/
    visibility: hidden;
}

.table-container th.sorted-asc::after {
    content: "▲";
    visibility: visible;
}

.table-container th.sorted-desc::after {
    content: "▼";
    visibility: visible;
}

/* Set fixed widths for specific columns */
th:nth-child(1), td:nth-child(1) {
    width: 30%; /* Width for the first column */
}

th:nth-child(2), td:nth-child(2) {
    width: 15%; /* Width for the second column */
}

th:nth-child(3), td:nth-child(3) {
    width: 30%; /* Width for the third column */
}

th:nth-child(4), td:nth-child(4) {
    width: 15%; /* Width for the fourth column */
}

th:nth-child(5), td:nth-child(5) {
    width: 10%; /* Width for the fifth column */
}
