html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
}

input {
    display: block;
    width: 100%;
    font-size: large;
    text-align: center;
}

button {
    display: block;
    width: 100%;
    font-size: x-large;
}

/* table css */
.table {
    display: table;
    width: 100%;
    font-size: x-large;
    table-layout: fixed;
}

.table-row {
    display: table-row;
}
.table-row > * {
    padding-top: 8px;
    padding-bottom: 8px;
}

.table-cell {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

.freeze {
    position: sticky;
    top: 0px;
    background: white;
}

.freeze > .table-cell {
    border-bottom: 2px solid black;
}

.row-taken > .table-cell {
    border-bottom: 2px solid black;
}

/* header + nav */
.nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    justify-content: center;
}
.nav-opt {
    flex: 1;
}

/* elements */
.won {
    background-color: #cfa;
}
.lost {
    background-color: #faa;
}

.trick-count {
    background-color: black;
    color: white;
}

.incomplete {
    color: grey;
}

.trick-count.valid {
    color: white;
}

.row-bet .valid {
    color: black;
}

.invalid {
    background-color: red;
}

/* text css */
.bold-text {
    font-weight: bold;
}
.small-text {
    font-size: x-small;
}
