/*
 * The slot machine, on /games/slots, loaded on that page only. The 2006 sheets stay as they are:
 * the machine is made of their dark blue, white and green boxes, the Volter font of the hotel
 * (the advent calendar's) and furni of the game; this sheet only places them.
 */

@font-face { font-family: SlotsVolter; src: url(../advent/fonts/volter.woff2) format('woff2'); font-weight: 400; font-display: block; }
@font-face { font-family: SlotsVolter; src: url(../advent/fonts/volter-bold.woff2) format('woff2'); font-weight: 700; font-display: block; }

#slots [hidden] {
	display: none !important;
}

/* --- the machine: the dark blue box, its name, three reels --- */

.slots-machine {
	position: relative;
	margin: 6px 0 8px 0;
}

.slots-title {
	padding: 6px 0 8px 0;
	font-family: SlotsVolter, Verdana, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 22px;
	color: #ffcf33;
	text-align: center;
	text-transform: uppercase;
	-webkit-font-smoothing: none;
}

/* 3 reels as wide as the box lets them, 8 px apart. */
.slots-reels {
	padding: 0 8px;
}

.slots-reel {
	float: left;
	width: calc((100% - 16px) / 3);
	margin-right: 8px;
}

.slots-reel:nth-child(3) {
	margin-right: 0;
}

/* A reel's window: the symbol on the line, 64 px high, and half of the one above and below. */
.slots-window {
	position: relative;
	height: 128px;
	overflow: hidden;
	-webkit-user-select: none;
	user-select: none;
}

.slots-strip {
	position: absolute;
	left: 0;
	right: 0;
	top: -32px;
}

.slots-cell {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 64px;
}

/* The game's furni, twice their size, pixel for pixel, in the middle of their place. */
.slots-cell img {
	display: block;
	zoom: 2;
	image-rendering: -moz-crisp-edges;
	image-rendering: crisp-edges;
	image-rendering: pixelated;
}

/* The reels that make a win: the green box of the site in place of the white one. */
.slots-reel.is-lit div.content-white {
	background-image: url(../images/box-scale/green-tl.gif);
}

.slots-reel.is-lit div.content-white-body {
	background-image: url(../images/box-scale/green-tr.gif);
}

.slots-reel.is-lit div.content-white-bottom {
	background-image: url(../images/box-scale/green-bl.gif);
}

.slots-reel.is-lit div.content-white-bottom-body {
	background-image: url(../images/box-scale/green-br.gif);
}

/* --- the bet and the button --- */

/* As at the dice table: "Your bet", a white square for each amount, the chosen one framed in
   black on yellow, then "Spin!" below at the right. */
.slots-row {
	margin: 0 0 8px 0;
}

.slots-label {
	display: inline-block;
	width: 80px;
	font-weight: bold;
}

.slots-chip {
	display: inline-block;
	margin-right: 4px;
	cursor: pointer;
}

.slots-chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.slots-chip span {
	display: inline-block;
	min-width: 28px;
	height: 24px;
	padding: 0 2px;
	line-height: 24px;
	text-align: center;
	font-weight: bold;
	font-size: 12px;
	background-color: #ffffff;
	border: 1px solid #a6a6a6;
}

.slots-chip input:checked + span {
	border: 2px solid #000000;
	min-width: 26px;
	height: 22px;
	line-height: 22px;
	background-color: #ffe27a;
}

.slots-chip input:focus-visible + span {
	outline: 1px dotted #000000;
}

/* While the reels turn, the bet stays as it is. */
.slots-form.is-spinning .slots-chip {
	cursor: default;
	opacity: .6;
}

.slots-message {
	min-height: 15px;
	margin: 6px 0 0 0;
	font-weight: bold;
	text-align: center;
}

.slots-message.is-won {
	color: #2f7d00;
}

.slots-guest {
	text-align: center;
}

/* The coins of a win, falling over the machine. */
.slots-shower {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 5;
}

.slots-shower img {
	position: absolute;
}

/* --- around the machine --- */

.slots-paytable td {
	padding: 2px 0;
	vertical-align: middle;
}

.slots-pay-symbols img {
	margin-right: 2px;
	vertical-align: middle;
}

.slots-pay-amount {
	text-align: right;
	white-space: nowrap;
	font-size: 12px;
}

.slots-pay-note {
	margin: 4px 0 0 0;
	text-align: right;
	color: #7f7f7f;
}

.slots-history {
	margin: 0;
	padding-left: 16px;
}

.slots-history li {
	padding: 1px 0;
}

.slots-when {
	color: #7f7f7f;
}
