/* from https://stackoverflow#com/questions/8232713/how-to-display-scroll-bar-onto-a-html-table */

#table-scroll {
    height: 40%;
    overflow: scroll;
    margin-top: 20px;
    border: 1px solid black;
    border-radius: 5px;
    width: fit-content;
    max-height: 500px;
}

#table-wrapper table {
    width: 100%;
}


.left-buttons {
    display: flex;
    vertical-align: middle;
    position: relative;
}

/* #table-wrapper {
    border: 1px solid black;
} */

#table-header {
    display: table-header-group;
    background-color: black;
    color:white;
}

#table-header > * > * {
    color:white;
}

#winner-cell {
    background-color: #3bd806;
}

#match-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid black;
    border-radius: 5px;
    justify-content: center;
}

#match-wrapper Table {
    margin:auto;
}

#match-wrapper table thead {
    background-color: #f1f1f1;
}

#match-buttons {
    /*Place div to the left of parent container*/
    position: center;
    margin: 10px;

}

#match-wrapper table tr td {
    text-align: right;
    padding: 10px
}

#connectionAlert{
    /*Put in bottom left corner*/
    position: fixed;
    bottom: 5%;
    right: 5%;
    border-radius: 10px;
    padding: 10px;
}

#syncingAlert{
    display: flex;
    height: 25px;
    justify-content: right;
    align-items: center;
    position: relative;
    left: 25%;
    color: gray;
}

#player-row > * > *{
    font-weight: bold;
}

.matchRow {
    margin: 5px;
    height: 30px;
    outline: 1px solid rgb(165, 164, 164);
    cursor: pointer;
}

.points-box {
    /* Align content in a row */
    display: flex;
    justify-content: center;
    align-items: center;
}

.player-input-group {
    padding-top: 10px;
}

.player-input-group > div {
    padding-top: 10px;
    padding-bottom: 10px;
    display: table;
    vertical-align: middle;
}

.navbar {
    padding-bottom: 10px;
    border-color: black;
    border-radius: 5px;
    display: flex;
}

.navbar>div {
    padding-inline: 5px;
}

.MuiAppBar {
    border-radius: 5px;
}

.MuiToolbar>div {
    padding-inline: 5px;
}

#matchCreator {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.player-input-group {
    margin-left: 100;
    margin-right: 100;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
}

#matchCreator > form > div {
    display: flex;
    justify-content: center;
    align-content: center;
}

.matchInfo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.players {
    display: flex;
    justify-content: center;
    align-items: center;
}

.table-class {
    outline: 1px solid black;
    border-radius: 10px;
    overflow: auto;
}

.grid-column-class {
    font-weight: bold !important;
}

div.MuiDataGrid-columnHeaderTitle {
    font-weight: bold;
    color:#ffffff
}

div.MuiDataGrid-columnHeader {
    background-color: #9c1116;
}

div.MuiDataGrid-row {
}