body {
    margin: 20px;
}

.greyed {
    opacity: 50%;
}

.button {
    padding: 0.2rem 0.5rem;
    /* width: 100%; */
}

.vertical {
    writing-mode: tb-rl;
    transform: rotate(-180deg);
}



h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.2rem;
}


/* Ranking table headers */
  
.area-header {
    height: 175px
}

.table-container th .vertical {
    transform: rotate(-45deg) translateY(15px) translateX(20px);
    transform-origin: bottom left;
    display: inline-block;
    white-space: nowrap;
    position: absolute;
    bottom: 5px;
    left: 10px;
    z-index: 10;
}






/* Ranking scroll arrows */
.scroll-wrapper {
    position: relative;
}

.scroll-arrow-container {

    display: flex;
    justify-content: space-between;

    z-index: 100;
    width: 100%;
    padding: 10px;
    background: transparent;


    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.scroll-arrow {
    transform: translateY(-50%);
    width: 30px;
    height: 150px;

}





.spinner-container {
    position: absolute;
    top: 30%;
    left: 50%;

}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid black;
    background: linear-gradient(45deg, orange 50%, white 50%);
    position: absolute;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


.vertical-container {
    position: relative;
    
}

/* Main container for scrolling */
.table-container {
    overflow: visible;
    /* max-height: 90vh; */
    position: relative;
    border: 1px solid #ddd;
    padding-bottom: 10px;
}





body {
    padding: 20px;
}

table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

th, td {
    white-space: nowrap;
    padding: 10px;
    border: 1px solid #ddd;
    background: white;
}

/* Sticky Header */
thead tr th.sticky{
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

/* Sticky First Column */
tbody tr td:first-child, thead tr th:first-child {
    position: sticky;
    left: 30px;
    background: white;
    z-index: 3;
}

/* Ensure first column overlaps correctly */

thead tr th:first-child {
    z-index: 4;
}

.transparent {
    background-color: transparent;
}
.sort-arrow {
    font-weight: bold;
    margin-left: 5px;
}