
body{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    width:100vw;
    height: 100vh;
    /* overflow: hidden; */
    margin: 0;
    padding: 0;
}

#container {
    margin:auto;
    display:flex;
    /* width: 100%;
    height: 100%; */
    align-items: center;    
}

table{
    table-layout: fixed;
    overflow: scroll;
    /* width: 100%; */
    border-collapse: collapse;
    padding: 0.1 rem;
    margin: 0;
    /* height: 100%; */
}

th, td {
    padding: 0.5rem;
    vertical-align: top;
    box-sizing: border-box;

    /* Only for td hovers:*/
    /* transition-property: padding-left; */
    transition: padding-left 0.5s ease;
}

th:nth-child(n+2), td:nth-child(n+2){
    border-left: 1px solid #000;
}

table td{
    background-color: #FFFFFF;
}

table th {
    text-align: left;
    background-color: coral;
}

table tr:nth-child(2n+1) td{
    background-color: #f2f2f2;
}
table tr:nth-child(n):hover td{
    background-color: #d2d2d2;
}

table tr:first-child{
    position: sticky;
    top: 0;
    z-index: 3;
}

tr td:first-child, th:first-child{
    position: sticky;
    left: 0;
    z-index: 2;
}

tr td:first-child{
    border-right: 2px solid #000;
}

@media (min-width: 768px) {
    #container {
        width: 80vw;
        height: 100%;
        justify-content: center;
    }

    table{
        border-radius: 15px;
        height: unset;
    }

    tr{
        transition: background-color 0.2s ease;
        
    }

    th, td{
        max-width: 12rem;
    }

    th:nth-child(1), td:nth-child(1) {
        width:max-content;
        width: 6.5em;
    }

    td:nth-child(n+2):hover{
        padding-left: 1em;
    }
    
    .title{
        font-weight: 600;
    }
    
    .ds{
        font-weight: 600;
    } 
}
