body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #000;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
}

h1 {
    color: rgb(224, 11, 121);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.logo {
    max-width: 200px;
    margin-right: 20px;
}

.controls {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 5px solid rgb(224, 11, 121);
}

.controls label {
    font-weight: bold;
    margin-right: 10px;
    color: #000;
}

select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid rgb(224, 11, 121);
    background-color: white;
    font-size: 16px;
    width: 100%;
    max-width: 550px;
}

select:focus {
    outline: none;
    border-color: rgb(224, 11, 121);
    box-shadow: 0 0 5px rgba(224, 11, 121, 0.5);
}

select option {
    padding: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    table-layout: fixed;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: rgb(224, 11, 121);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: normal;
    vertical-align: middle;
    hyphens: auto;
}

/* Style specifically for the first header column */
th:first-child {
    min-width: 70px;
    word-break: break-word;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #f1f1f1;
}

.centered {
    text-align: center;
}

.height-column {
    background-color: #000;
    color: white;
    font-weight: bold;
    position: sticky;
    left: 0;
    z-index: 5;
}

/* Add a thicker border after each height section */
.height-section-end {
    border-bottom: 3px solid rgb(224, 11, 121);
}

.highlight {
    font-weight: bold;
    color: rgb(224, 11, 121);
}

#loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: rgb(224, 11, 121);
}

/* Footer styling */
.footer {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #eee;
    color: #000;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        table-layout: auto;
    }

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

    th {
        font-size: 13px;
        line-height: 1.3;
        padding: 8px;
    }

    th:first-child {
        width: auto;
        max-width: 80px;
    }

    .controls {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }

    select {
        width: 100%;
        font-size: 15px;
    }

    .header {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-right: 0;
        margin-bottom: 15px;
        max-width: 150px;
    }

    h1 {
        font-size: 1.5rem;
    }

    /* Add hint for scrollable table */
    #table-container::after {
        content: "";
        display: block;
        text-align: center;
        padding: 8px;
        font-size: 14px;
        color: #666;
        font-style: italic;
        margin-top: 10px;
    }
}

/* Additional styles for better mobile experience */
@media (max-width: 480px) {
    th, td {
        padding: 8px 10px;
        font-size: 13px;
    }

    .height-column {
        min-width: 50px;
    }
}