body {
	font-family: Baskerville, serif;
	font-size: min(1.2vw, 2.1vh);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	padding: 1vw;
	background-color: #b53240;
	color: #ffffff;
}

button {
	font-size: min(1.2vw, 2.1vh);
	font-family: Baskerville, serif;
	color: #ffffff;
}

.odds {
	font-size: 1vw;
	color: #ffffff;
}

.player-banker-line {
	position: absolute;
	top: 25%;
	left: 50%;
	width: 0.5vw;
	height: 30%;
	transform: translate(-50%, -50%);
	background-color: #ffd700;
}

.stats {
	position: absolute;
	top: 51.5%;
	left: 17.5%;
	width: 35%;
	height: 48.5%;
	transform: translate(-50%, 0%);
}

.big-road {
	position: absolute;
	top: 32.5%;
	left: 50%;
	width: 80%;
	aspect-ratio: 19/6;
	transform: translate(-50%, -50%);
	display: grid;
    grid-template-columns: repeat(19, 1fr);
    grid-template-rows: repeat(6, 1fr);
    border: 0.1vw solid #ffd700;
	margin: auto;
}

.road-item {
	position: relative;
	border: 0.1vw solid #ffd700;
	width: 100%;
	height: 100%;
	background-color: #ffffff;
}

.win-circle {
	position: absolute;
	top: 50%;
    left: 50%;
	border: 0.2vw solid #00afd800;
    width: 40%;
    aspect-ratio: 1/1;
	border-radius: 50%;
	display: flex;
    justify-content: center;
    align-items: center;
	z-index: 1;
	transform: translate(-50%, -50%);
}

.Pwin {
	border-color: #00afd8;
}

.Bwin {
	border-color: #ed1c24;
}

.tie-dash {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.1vw;
    height: 85%;
	background-color: #00d620;
    transform: translate(-50%, -50%) rotate(45deg);
	z-index: 2;
}

.bpair-dot {
    position: absolute;
    top: 75%;
    left: 75%;
    width: 0.35vw;
    aspect-ratio: 1/1;
	background-color: #ed1c24;
    transform: translate(-50%, -50%) rotate(45deg);
	border-radius: 50%;
	z-index: 2;
}

.ppair-dot {
    position: absolute;
    top: 25%;
    left: 25%;
    width: 0.35vw;
    aspect-ratio: 1/1;
	background-color: #00afd8;
    transform: translate(-50%, -50%) rotate(45deg);
	border-radius: 50%;
	z-index: 2;
}

.tie-counter {
	position: absolute;
    top: calc(50% + 0.05em);
    left: 50%;
    transform: translate(-50%, -50%);
	color: #000000;
	font-weight: bold;
	font-size: 0.5em;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 3;
}

.natural-win-triangle {
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: #ffd700;
	clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.deck-progress {
	position: absolute;
	top: 66%;
	left: 50.1%;
	width: calc(80% - 1vw);
	height: 5%;
	transform: translate(-50%, -50%);
	border: 0.5vw solid #ffd700;
}

.deck-bar {
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: #ffffff;
}

.cut-card {
	position: absolute;
	left: calc(15% - 1%);
	width: 1%;
	height: 100%;
	background-color: #ffd700;
}

.bets {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 30%;
	height: calc(49% - 0.5vw);
	transform: translate(-50%, 0%);
}

.side-bets {
	position: absolute;
	top: 0%;
	left: 0%;
	width: 100%;
	height: 33.3%;
}

.winner {
	position: absolute;
	top: 0%;
	left: 0%;
	width: 100%;
	height: 100%;
	background-color: #adff2f;
	z-index: -1;
}

.player-pair {
	position: absolute;
	top: 0%;
	left: 0%;
	width: calc(33.3% - 0.5vw);
	height: 100%;
	border: 0.5vw solid #ffd700;
	line-height: 0.9;
	text-align: center;
	justify-content: center;
	align-items: center;
	font-family: Baskerville, serif;
	font-size: 1.5em;
	color: #ffd700;
	flex-wrap: wrap;
	display: flex;
	flex-direction: column;
	
}

.player-pair:hover {
	position: absolute;
	background-color: #ffffff55;
	cursor: pointer;
}

.tie {
	position: absolute;
	top: 0%;
	left: 33.3%;
	width: calc(33.4% - 0.5vw);
	height: 100%;
	border: 0.5vw solid #ffd700;
	line-height: 0.9;
	justify-content: center;
	align-items: center;
	font-size: 3em;
	flex-wrap: wrap;
	display: flex;
	flex-direction: column;
}

.tie:hover {
	position: absolute;
	background-color: #ffffff55;
	cursor: pointer;
}

.banker-pair {
	position: absolute;
	top: 0%;
	left: 66.7%;
	width: calc(33.3% - 0.5vw);
	height: 100%;
	border: 0.5vw solid #ffd700;
	line-height: 0.9;
	text-align: center;
	justify-content: center;
	align-items: center;
	font-family: Baskerville, serif;
	font-size: 1.5em;
	color: #ed1c24;
	flex-wrap: wrap;
	display: flex;
	flex-direction: column;
}

.banker-pair:hover {
	position: absolute;
	background-color: #ffffff55;
	cursor: pointer;
}

.banker-bet {
	position: absolute;
	top: calc(33.3% + 0.5vw);
	left: 0%;
	width: calc(100% - 0.5vw);
	height: calc(33.3% - 0.5vw);
	border: 0.5vw solid #ffd700;
	line-height: 0.9;
	justify-content: center;
	align-items: center;
	font-size: 3.5em;
	color: #ed1c24;
	flex-wrap: wrap;
	display: flex;
	flex-direction: column;
}

.banker-bet:hover {
	position: absolute;
	background-color: #ffffff55;
	cursor: pointer;
}

.player-bet {
	position: absolute;
	top: calc(66.6% + 0.5vw);
	left: 0%;
	width: calc(100% - 0.5vw);
	height: calc(33.3% - 0.5vw);
	border: 0.5vw solid #ffd700;
	line-height: 0.9;
	justify-content: center;
	align-items: center;
	font-size: 3.5em;
	color: #ffd700;
	flex-wrap: wrap;
	display: flex;
	flex-direction: column;
}

.player-bet:hover {
	position: absolute;
	background-color: #ffffff55;
	cursor: pointer;
}

.player {
	font-size: 6em;
	font-weight: bold;
	color: #ffd700;
	position: absolute;
	top: 25%;
	left: 28.25%;
	transform: translate(-50%, -50%);
}

.banker {
	font-size: 6em;
	font-weight: bold;
	color: #ed1c24;
	position: absolute;
	top: 25%;
	left: 71.75%;
	transform: translate(-50%, -50%);
}

.pScore {
	font-size: 6em;
	font-weight: bold;
	color: #ffd700;
	position: absolute;
	top: 25%;
	left: 5%;
	transform: translate(-50%, -50%);
}

.bScore {
	font-size: 6em;
	font-weight: bold;
	color: #ed1c24;
	position: absolute;
	top: 25%;
	left: 95%;
	transform: translate(-50%, -50%);
}

.player-1 {
	position: absolute;
	left: 40%;
	top: 25%;
	transform: translate(-50%, -50%);
}

.player-2 {
	position: absolute;
	left: 30%;
	top: 25%;
	transform: translate(-50%, -50%);
}

.player-3 {
	position: absolute;
	left: 18.5%;
	top: 25%;
	transform: translate(-50%, -50%) rotate(90deg);
	
}

.banker-1 {
	position: absolute;
	left: 60%;
	top: 25%;
	transform: translate(-50%, -50%);
}

.banker-2 {
	position: absolute;
	left: 70%;
	top: 25%;
	transform: translate(-50%, -50%);
}

.banker-3 {
	position: absolute;
	left: 81.5%;
	top: 25%;
	transform: translate(-50%, -50%) rotate(90deg);
}

.card {
	width: 6vw;
	height: 9vw;
	border-radius: 0.5vw;
	padding: 1vw;
	background-color: white;
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
	position: relative;
}

.back-of-card {
	font-size: 0.13em;
	position: absolute;
	top: 50.5%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	line-height: 0.23;
}

.card .rank {
	font-size: 1em;
	font-weight: bold;
	text-align: center;
	position: absolute;
	margin-left: -0.5vw;
	margin-right: -0.5vw;
	margin-top: -0.5vw;
	margin-bottom: -0.5vw;
	line-height: 0.9;
}

.card .rank:last-child {
	transform: rotate(180deg);
	bottom: 1vw;
	right: 1vw;
}

.card .suit {
	font-size: 2em;
	position: absolute;
	text-align: center;
	margin-left: -0.69vw;
	margin-right: -0.69vw;
	margin-top: -1.35vw;
	margin-bottom: -1.35vw;
}

.centre-column {
	left: 50%;
}

.left-column {
	left: 30%;
}

.right-column {
	left: 70%;
}

.top-row {
	top: 20%;
}

.top-centre-row {
	top: 35%;
}

.centre-top-row {
	top: 40%;
}

.centre-row {
	top: 50%;
}

.centre-bottom-row {
	top: 60%;
	transform: rotate(180deg);
}

.bottom-centre-row {
	top: 65%;
	transform: rotate(180deg);
}

.bottom-row {
	top: 80%;
	transform: rotate(180deg);
}

.picture-card {
	font-size: 0.13em;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	font-weight: bold;
	line-height: 1.1;
}

.red {
	color: red;
}

.black {
	color: black;
}

.controls {
	position: absolute;
	top: 51.5%;
	left: 82.75%;
	width: 34.5%;
	height: 48.5%;
	transform: translate(-50%, 0%);
}

.play-button {
	background-color: transparent;
	cursor: pointer;
	border-radius: 0;
	border: 0.5vw solid #ffd700;
	position: absolute;
	top: 42%;
	left: 25%;
	width: 25%;
	height: 10%;
	transform: translate(-50%, -50%);
}

.play-button:not(:disabled):hover {
	background-color: #ffffff55;
}

.play-button:disabled {
	border: 0.5vw solid #ffd70055;
	cursor: default;
	color: #ffffff55;
}

.shoe {
	position: absolute;
	top: 42%;
	left: 50%;
	width: 25%;
	height: 15%;
	transform: translate(-50%, calc(-50% - 0.15em));
	text-align: center;
	font-size: 0.7em;
	display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: center;
}

label {
	color: #ffd700;
	line-height: 1.5;
}

select {
	width: 30%;
	height: 25%;
	font-size: 1em;
	border-color: #ffd700;
	-webkit-appearance: none;
	-moz-appearance: none;
	text-align: center;
	cursor: pointer;
	font-family: Baskerville, serif;
}

select:focus {
	border-color: #ed1c24;
	outline: none;
}

select option {
	border: 1px solid #ed1c24;
}

select option:hover {
	background-color: #ffd700;
}

.penetration {
	position: absolute;
	top: 42%;
	left: 75%;
	width: 25%;
	height: 10%;
	transform: translate(-50%, calc(-50% - 0.15em));
	text-align: center;
	font-size: 0.7em;
	display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: center;
}

.simulate-button {
	background-color: transparent;
	cursor: pointer;
	border-radius: 0;
	border: 0.5vw solid #ffd700;
	position: absolute;
	top: 55%;
	left: 25%;
	width: 25%;
	height: 10%;
	transform: translate(-50%, -50%);
}

.simulate-button:not(:disabled):hover {
	background-color: #ffffff55;
}

.simulate-button:disabled {
	border: 0.5vw solid #ffd70055;
	cursor: default;
	color: #ffffff55;
}

.speed {
	position: absolute;
	top: 55%;
	left: 50%;
	width: 25%;
	height: 10%;
	transform: translate(-50%, calc(-50% - 0.15em));
	text-align: center;
	font-size: 0.7em;
	display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: center;
}

input {
	width: 30%;
	height: 25%;
	font-size: 1em;
	border-color: #ffd700;
	text-align: center;
	font-family: Baskerville, serif;
	vertical-align: middle;
	line-height: normal;
}

input:focus {
	border-color: #ed1c24;
	outline: none;
}

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;
}

.stop-button {
	background-color: transparent;
	cursor: pointer;
	border-radius: 0;
	border: 0.5vw solid #ffd700;
	position: absolute;
	top: 55%;
	left: 75%;
	width: 25%;
	height: 10%;
	transform: translate(-50%, -50%);
}

.stop-button:not(:disabled):hover {
	background-color: #ffffff55;
}

.stop-button:disabled {
	border: 0.5vw solid #ffd70055;
	cursor: default;
}

.bank {
	position: absolute;
	top: -8%;
	text-align: center;
	width: 100%;
	font-size: 1.5em;
}

.chip-selection {
	position: absolute;
	top: 15%;
	width: 100%;
}

.placed-chips {
	position: absolute;
	top: 50%;
	width: 100%;
	font-size: 1vw;
}

.smaller-chips {
	font-size: 0.5vw;
}

.chip {	
	border-radius: 50%;
	width: min(16%);
	aspect-ratio: 1/1;
	cursor: pointer;
	transform: translate(-50%, -50%);
	color: #ed1c24;
	border: 0.5vw double #ffd700;
}

.chip:hover {
	box-shadow: 0 min(1vh, 0.5vw) min(0.4vh, 0.2vw) #ffffff55;
}

.activated {
	box-shadow: 0 min(1vh, 0.5vw) 0 #adff2f;
	pointer-events: none;
}

.deactivated {
	pointer-events: none;
}

.inner-chip {
	border-radius: 50%;
	border: 0.5vw groove #ffd700;
	position: absolute;
	width: 50%;
	height: 50%;
	top: 50%;
	left: 50%;
	background-color: white;
	transform: translate(-50%, -50%);
	font-weight: bold;
	display: flex;
	justify-content: center;
	align-items: center;
}

.five {
	position: absolute;
	left: 11%;
	background-color: #ffffff;
}


.ten {
	position: absolute;
	left: 30.5%;
	background-color: #008000;
}

.twenty {
	position: absolute;
	left: 50%;
	background-color: #4169e1;
}

.fifty {
	position: absolute;
	left: 69.5%;
	background-color: #ff69b4;
}

.hundred {
	position: absolute;
	left: 89%;
	background-color: #000000;
}

.bet-count {
	position: relative;
	width: 100%;
	z-index: 1;
	color: #ffd700;
	cursor: no-drop;
}

.pp-counters {
	position: absolute;
	left: 2%;
	top: 55%;
	width: calc(33.3% - 0.5vw);
}

.tie-counters {
	position: absolute;
	left: 35.3%;
	width: calc(33.4% - 0.5vw);
	top: 55%;
}

.bp-counters {
	position: absolute;
	left: 68.75%;
	width: calc(33.3% - 0.5vw);
	top: 55%;
}

.b-counters {
	position: absolute;
	width: 100%;
	top: 55%;
	left: 5%;
	font-size: 2.5em;
}

.p-counters {
	position: absolute;
	width: 100%;
	top: 88.3%;
	left: 5%;
	font-size: 2.5em;
}

.small-count {
	font-size: 1.5vw;
}

.five-count {
	font-size: 1em;
	position: absolute;
	left: 11%;
	background-color: #ffffff;
}


.ten-count {
	position: absolute;
	left: 30.5%;
	background-color: #008000;
}

.twenty-count {
	position: absolute;
	left: 50%;
	background-color: #4169e1;
}

.fifty-count {
	position: absolute;
	left: 69.5%;
	background-color: #ff69b4;
}

.hundred-count {
	position: absolute;
	left: 89%;
	background-color: #000000;
}

.N {
	position: absolute;
	top: 7.5%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.NE {
	position: absolute;
	top: 20%;
	left: 80%;
	transform: translate(-50%, -50%) rotate(45deg);
}

.E {
	position: absolute;
	top: 50%;
	left: 92.5%;
	transform: translate(-50%, -50%) rotate(90deg);
}

.SE {
	position: absolute;
	top: 80%;
	left: 80%;
	transform: translate(-50%, -50%) rotate(135deg);
}

.S {
	position: absolute;
	top: 92.5%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(180deg);
}

.SW {
	position: absolute;
	top: 80%;
	left: 20%;
	transform: translate(-50%, -50%) rotate(-135deg);
}

.W {
	position: absolute;
	top: 50%;
	left: 7.5%;
	transform: translate(-50%, -50%) rotate(-90deg);
}

.NW {
	position: absolute;
	top: 20%;
	left: 20%;
	transform: translate(-50%, -50%) rotate(-45deg);
}

table {
	width: 80%;
	border-collapse: collapse;
	position: absolute;
	top: 82%;
	left: 50%;
	transform: translate(-50%, -50%);
	table-layout: fixed;
}

th, td {
	border:  0.5vw solid #ed1c24;
	font-size: 0.5em;
	padding: 1%;
	text-align: center;
}

th {
	color: #ffd700;
}

td:first-child {
	font-weight: bold;
	color: #ffd700;
}

.hide-cell {
	border-top: none;
	border-left: none;
}