/* --- Main --- */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
}

img {
    width: 63%;
}

.container {
    max-width: 800px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    margin-top: 0px;
}


/* --- Nav ---  */

.button-container {
    margin-top: 5px;
    margin-bottom: 18px;
}

.button {
    padding: 10px 20px;
    border: 2px solid black;
    border-radius: 10px;
    color: #000;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, border-color 0.3s ease; 
    margin: 5px 3px 5px 3px;
    background-color: transparent;
}

.button:hover {
    transform: translateY(-2px);
}


/* --- Search --- */

.search-container {
    display: none;
    margin-top: -5px;
    margin-bottom: 18px;
}

#searchInput {
    padding: 10px 20px;
    border: 2px solid black;
    border-radius: 10px 0px 0px 10px;
    color: #000;
    width: 150px;
    font-size: 16px;
    font-weight: bold;
    margin-right: 0px;
}

#searchButton {
    padding: 10px 20px;
    background-color: #b0b3af;
    color: black;
    border: 2px solid black;
    border-radius: 0px 10px 10px 0px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-left: -10px
}


/* --- Content ---  */

.content-div {
    display: none; /* Hide divs by default */
    border: 2px solid #cccccc;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#info {
    padding: 20px;
}

.content-div p {
    color: #333333;
}


/* --- Tables ---  */

.sortable-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow-x: auto; /* Allow horizontal scrolling */
    table-layout: auto;
    margin: 0; /* Remove any default margin */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sortable-table caption {
    font-size: 2em;
    margin: 0px;
    padding: 5px;
    color: #000;
}

.sortable-table th, .sortable-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.sortable-table th {
    cursor: pointer;
    background-color: #eaeaea;
    color: #333;
}

.sortable-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.sortable-table tr:last-child td:first-child {
        border-bottom-left-radius: 10px; /* Bottom left corner */
}

.sortable-table tr:last-child td:last-child {
        border-bottom-right-radius: 10px; /* Bottom right corner */
}

.sortable-table tr:hover {
    background-color: #dcdcdc;
}


/* --- Footer ---  */

.footer {
    color: black;
    text-align: center;
    font-size: 12px;
    padding: 10px 0;
    position: relative;
}


/* --- Responsive styles --- */

@media (max-width: 830px) {
    img {
        width: 69%;
    }

    .sortable-table caption {
        text-align: left;
    }

    .sortable-table {
        display: block; /* Allow scrolling on small screens */
        overflow-x: auto; /* Enable horizontal scrolling */
    }

    .sortable-table th, .sortable-table td {
        white-space: nowrap; /* Prevent text wrapping */
    }
}
