/* Happy Words. The portal links this file automatically when it exists next to client.js. */

/* Tile letters: Roboto Slab Black (Apache 2.0, see assets/fonts). Subsets cover every server alphabet. */
@font-face {
	font-family: "HW Letters";
	font-style: normal;
	font-weight: 700;
	font-display: block;
	src: url('assets/fonts/roboto-slab-latin-900.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "HW Letters";
	font-style: normal;
	font-weight: 700;
	font-display: block;
	src: url('assets/fonts/roboto-slab-latin-ext-900.woff2') format('woff2');
	unicode-range: U+0100-0130, U+0132-0151, U+0154-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF;
}
@font-face {
	font-family: "HW Letters";
	font-style: normal;
	font-weight: 700;
	font-display: block;
	src: url('assets/fonts/roboto-slab-cyrillic-900.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* lobby.css forces crisp-edges on every canvas, which breaks the scaled art */
#game-div canvas {
	image-rendering: auto;
	display: block;
	position: absolute;
	left: 0;
	top: 0;
}

/* The portal places the seat-out and tournament panels with fixed offsets for the 1000x670 game area, which is off centre in fullscreen */
#root-div .tour-starting-content-screen {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* Portal chat, placed in the right column below the menu buttons. Its position comes from client.js. */
#game-chat-div.game-chat-panel {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	background: rgba(24, 74, 112, 0.88);
	border: 1px solid #7fb9dd;
	border-radius: 6px;
	color: #ffffff;
}
#game-chat-div #game-chat-title {
	padding: 4px 8px;
	font-size: 12px;
}
#game-chat-div #game-chat-text {
	flex: 1 1 auto;
	box-sizing: border-box;
	width: auto;
	height: auto;
	min-height: 0;
	margin: 0 4px;
	padding: 2px 3px;
	border: 1px solid #7fb9dd;
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.18);
	color: #ffffff;
	font-size: 11px;
	word-wrap: break-word;
}
#game-chat-div #game-chat-input {
	flex: 0 0 auto;
	box-sizing: border-box;
	width: auto;
	margin: 4px;
	padding-right: 26px;
	border: 1px solid #7fb9dd;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.92);
	color: #000000;
}
#game-chat-div #smiles-btn-open-game {
	position: absolute;
	right: 8px;
	bottom: 8px;
}

/* Dictionary panel. It needs a real text input, so it is HTML over the canvas. */
#hw-dict {
	position: absolute;
	z-index: 5;
	box-sizing: border-box;
	display: none;
	flex-direction: column;
	background: linear-gradient(#5db6e4, #1d7cbc);
	border: 2px solid #f5b81e;
	border-radius: 8px;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
	color: #ffffff;
	font-family: Arial, sans-serif;
}
#hw-dict .hw-dict-title {
	position: relative;
	flex: 0 0 auto;
	padding: 8px 34px;
	background: #d81212;
	border-radius: 5px 5px 0 0;
	font-size: 15px;
	font-weight: bold;
	text-align: center;
}
#hw-dict .hw-dict-close {
	position: absolute;
	right: 10px;
	top: 6px;
	font-size: 18px;
	font-weight: bold;
	cursor: pointer;
}
#hw-dict .hw-dict-search {
	flex: 0 0 auto;
	display: flex;
	padding: 8px;
}
#hw-dict input {
	flex: 1 1 auto;
	min-width: 0;
	box-sizing: border-box;
	height: 26px;
	padding: 0 6px;
	border: 1px solid #0d4d78;
	border-radius: 3px;
	font-size: 13px;
}
#hw-dict button {
	flex: 0 0 auto;
	height: 26px;
	margin-left: 6px;
	padding: 0 12px;
	border: 1px solid #a8740c;
	border-radius: 3px;
	background: #f5b81e;
	color: #4b2f00;
	font-size: 12px;
	font-weight: bold;
	cursor: pointer;
}
#hw-dict .hw-dict-list {
	flex: 1 1 auto;
	min-height: 0;
	margin: 0 8px 8px;
	padding: 4px 8px;
	overflow-y: auto;
	background: rgba(0, 0, 0, 0.2);
	border-radius: 3px;
	font-size: 13px;
	line-height: 19px;
}
#hw-dict .hw-dict-empty {
	opacity: 0.8;
	font-style: italic;
}
