#video {
    position: absolute;
}
#overlayCanvas {
    position: absolute;
}
.video-container {
    position: relative;
}

.menu-buttons {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.player-input {
    font-weight: 700;
}

#nPlayers {
    box-sizing: content-box;
    border: solid black;
    border-radius: 5px;
    margin: 0 1em 0 0;
    padding: 1em;
    box-shadow: 5px 5px white;
    width: 10px;
    height: auto;
    font-weight: 1000;
}

.menu-buttons-right {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.menu-buttons-left {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}


.site-info-footer {
    position: relative;
}

.live-view {
    max-width: 100%;
}

.debug-window, .result-table-window {
    display: none;
    flex-direction: column;
    flex-grow: 1;
}

.debug-cell {
    display: inline-block;
    margin: 10px;
}

.debug-digit {
    display: block;
    margin: 10px;
}

.debug-cell canvas {
    width: 100px;
}

.debug-table, .debugBinary {
    width: 100%;
    max-width: 460px;  
}

.debug-table canvas, .debugBinary canvas {
    width: 100%;
    height: auto;
    display: block;
}

.github-link {
    margin-top: auto;
    text-align: center;
}

/* After here it's all for the results table */
.result-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.result-table-header th {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    font-weight: 700;
    text-align: center;
    padding: 16px 12px;
    font-size: 16px;
    letter-spacing: 0.5px;
    position: relative;
}

.result-table-header th:first-child {
    border-top-left-radius: 15px;
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
}

.result-table-header th:last-child {
    border-top-right-radius: 15px;
}

.row-calculated:first-child {
    background: red;
}

.table-cell-calculated {
    background-color: rgb(245, 245, 245);
}

.result-table-row td {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    width: 50px;
}

.table-cell-edit:hover {
    background-color: rgb(235, 240, 255);
    transform: translateY(-1px);
}

.result-table-row:last-child td {
    border-bottom: none;
}

.result-table-row:last-child td:first-child {
    border-bottom-left-radius: 15px;
}

.result-table-row:last-child td:last-child {
    border-bottom-right-radius: 15px;
}

.result-table-row td:not(:last-child) {
    border-right: 1px solid #3b82f6;
}

.result-table-row td:first-child {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    /*font-weight: 700;*/
    color: #1e40af;
    border-right: 2px solid #3b82f6;
    font-size: 18px;
    width: 75px;
}

.row-calculated td:first-child {
    background: linear-gradient(135deg, #f0f0f0, #f2f2f2);
    color: black;
}

.result-table-row td[data-value=""]:not(:first-child) {
    background: rgba(248, 250, 252, 0.8);
    border: 2px dashed rgba(59, 130, 246, 0.3);
    cursor: pointer;
    position: relative;
}

.result-table-row td[data-value=""]:not(:first-child)::after {
    content: '?';
    color: rgba(59, 130, 246, 0.4);
    font-size: 20px;
    font-weight: bold;
}

/* Dice symbols */
td:first-child {
    font-size: 20px;
    letter-spacing: 2px;
}

/* Input fields*/
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

input[type=number] {
  width: 100%;
  height: 100%;
  border: none;
  box-sizing: border-box;
  font-size: 1em;
  background-color: inherit;
}

input[type=number]:focus {
  outline: none;
}

input[readonly] {
  pointer-events: none;
  background-color: transparent;
  border: none;
  color: inherit;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}