
/*! *****************************************************************************
Copyright (c) R. Barry Young, 2023. All rights reserved.
***************************************************************************** */

/* #region ELEMENT TYPES - General */
body {
	margin: 0;
	padding: 0;
	height: 100%;
	font-size: 15px;
	color: #656565;
	text-align: center;
	font-family: Arial, sans-serif;

}

body div {
	margin-left: auto;
	margin-right: auto;
}

a {
	text-decoration: none;
}

strong a {
	background-color: #E30613;
	color: white;
	padding: 1px 3px 2px 3px;
}

/*
h1,
h2,
h3 {
	color: #E30613;
	margin: 14px 0;
}
*/
h1 {
	margin: 15px;
	font-size: 35px;
}

/* h2 {
	margin-top: 45px;
}
 */
h3 {
	font-size: 20px;
	margin: 10px 0 5px 0;
}

p,
ul {
	margin: 8px;
	line-height: 1.4em;
}

li {
	float: left;
	width: fit-content;
	clear: both;
	text-align: left;
}
br { float: left }

/* #endregion */


/* #region BORROWED CLASSES */
.control {
	border-radius: 3px;
	border-width: 1px;
	cursor: pointer;
	border-style: solid;
	color: #FFF;
	text-align: center;
}

.control:active {
	box-shadow: inset .8px 1.2px 2px #333;
}

.slider {
	position: relative;
	height: 25px;
	background: #EEE;
	margin: 6px 0;
}

.slider .handle {
	position: absolute;
	width: 80px;
	background: #E30613;
	line-height: 23px;
	border-color: #C00107;
}

.slider .handle:hover {
	background-color: #D30107;
	border-color: #B00104;
}

.btn {
	font-size: 14px;
	padding: 4px 10px;
	margin: 5px 5px 3px 5px;
	border-color: #3079ED;
	background-color: #4D90FE;
	display: inline-block;
	background-image: linear-gradient(180deg, #fff, #ddd 40%, #ccc);
}

.btn:hover {
	background-color: #3079ED;
	border-color: #1562D5;
	background-image: none;
}

.btn:active {
	background-color: darkgray;
	border-color: green;
	background-image: none;
}

.cb {
	cursor: pointer;
	margin-bottom: 10px;
	padding: 2px;
	font-size: 16px;
	background-color: #EEE;
	border-radius: 3px;
}

hr {
	width: 85%;
	margin: 30px auto;
	border: none;
	height: 1px;
	background-color: #ddd;
}
/* #endregion */


/* #region GAME CLASSES - General */
.shadowbox {
	width: 15em;
	border: 1px solid #333;
	box-shadow: 8px 8px 5px #444;
	padding: 8px 12px;
	background-image: linear-gradient(180deg, #fff, #ddd 40%, #ccc);
}

.panel1 {
	border: #1562D5;
	border-width: 1px;
	border-radius: 1px;
	border-style: solid;
	box-sizing: border-box;
}

.panel2 {
	border: #444;
	border-width: 0px;
	border-bottom-width: 1px;
	border-radius: 1px;
	border-style: none;
	box-sizing: border-box;
	width: 100%;
	display: flex;
	flex-direction: row;
	height: 15%;
	align-content: center;
	vertical-align: middle;
}

.guessPanel {
	width: 100%; 
	display: flex; 
	flex-direction: column; 
    height: 60%;
	overflow-y: auto;
}

.targetCellEnd {
	background-color: bisque;
	border: #D30107;
	border-width: 1px;
	border-radius: 3px;
	border-style: solid;
	box-sizing: border-box;
	margin: 2px;
	aspect-ratio: 1/1;
	/* width: 7%; */
	height: 90%;
	font-size: 3vh;
	line-height: 175%;
}

.targetCellMiddle {
	background-color: beige;
	border: blueviolet;
	border-width: 1px;
	border-radius: 3px;
	border-style: solid;
	box-sizing: border-box;
	margin: 3px;
	aspect-ratio: 1/1;
	/*width: 6%; */
	height: 80%;
	font-size: 3vh;
	line-height: 175%;
}

.targetPadMid {
	border: none;
	box-sizing: border-box;
	margin: 0px;
	aspect-ratio: 1/1;
	/*width: 6%; */
	height: 80%;
	font-size: 3.5vh;
	line-height: 175%;
}

.guessPadMid {
	border: none;
	color: none;
	box-sizing: border-box;
	margin: 2px;
	aspect-ratio: 1/1;
	height: 90%;
	height: 80%;
	font-size: 3.5vh;
	line-height: 175%;
}

.guessCellEnd {
	background-color: #dddddd;
	border: none;
	border-radius: 2px;
	color: none;
	box-sizing: border-box;
	margin: 3px 4px 3px 4px;
	aspect-ratio: 1/1;
	height: 80%;
	font-size: 3vh;
	line-height: 175%;
}

.guessCellMiddle {
	background-color: #dddddd;
	border: none;
	border-radius: 2px;
	color: none;
	box-sizing: border-box;
	margin: 3px 5px 3px 5px;
	aspect-ratio: 1/1;
	height: 80%;
	font-size: 3vh;
	line-height: 175%;
}
/* #endregion */


/* #region KEYBOARD CLASSES - General */
:root {
	/* Note: these are CSS Custom Properties ("variables")
		putting them in :root makes them available everywhere
		(they may not work in media or container queries */
	--thx_cow_color : #ffff50;
	--thx_bull_color: rgb(94, 248, 94);
	--thx_empty_color: #FFFFFF00;
	--thx_unused_color: #75747450;
	--thx_invalid_color: red;
	--keyLeftBG: var(--thx_empty_color);
	--keyMidBG: var(--thx_empty_color);
	--keyRightBG: var(--thx_empty_color);
	--guessInvalidFG: var(--thx_invalid_color);
}

.thxKeyLeft_E { --thxKeyLeftBG: var(--thx_empty_color); }
.thxKeyLeft_C { --thxKeyLeftBG: var(--thx_cow_color); }
.thxKeyLeft_B { --thxKeyLeftBG: var(--thx_bull_color); }
.thxKeyLeft_W { --thxKeyLeftBG: var(--thx_unused_color); }
.thxKeyLeft_D { --thxKeyLeftBG: var(--thx_unused_color); }

.thxKeyMid_E { --thxKeyMidBG: var(--thx_empty_color); }
.thxKeyMid_C { --thxKeyMidBG: var(--thx_cow_color); }
.thxKeyMid_B { --thxKeyMidBG: var(--thx_bull_color); }
.thxKeyMid_W { --thxKeyMidBG: var(--thx_unused_color); }
.thxKeyMid_D { --thxKeyMidBG: var(--thx_unused_color); }

.thxKeyRight_E { --thxKeyRightBG: var(--thx_empty_color); }
.thxKeyRight_C { --thxKeyRightBG: var(--thx_cow_color); }
.thxKeyRight_B { --thxKeyRightBG: var(--thx_bull_color); }
.thxKeyRight_W { --thxKeyRightBG: var(--thx_unused_color); }
.thxKeyRight_D { --thxKeyRightBG: var(--thx_unused_color); }

.keyboard {
	background-color: aquamarine;
	height: 100%;
	aspect-ratio: 11.5/3;
}

.keyboardRow {
	height: 33%;
	width: 100%;
	display: flex;
	flex-direction: row
}

.keyboardKey {
	background-color: rgb(235, 232, 232);
	height: 95%;
	aspect-ratio: 1/1;
	margin: 1px;
	border-radius: 4px;
	font-size: 4vh;
	text-align: center;
	line-height: 150%;
	background-image: linear-gradient(
		to right, 
		var(--thxKeyLeftBG) 0% 33%, 
		var(--thxKeyMidBG) 33% 67%, 
		var(--thxKeyRightBG) 67% 100%
	);
}

.keyboardFiller {
	height: 100%;
	aspect-ratio: 1/2;
	margin: 0;
}

.thx_cow {
	background-color: #ffff50;
}
.thx_bull {
	background-color: rgb(94, 248, 94);
}
.thx_inactive {
	visibility: hidden;
}
.thx_unknown {
	border: 1%;
}
.thx_invalid {
	color: red;
}
/* #endregion */


/* #region DIALOGS - General */
.popupContainer {
	display: block;
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	margin:auto;	/* centered vertically & horizontally */
	background-color: #00000000;
	width: 100%; height: 100%; 
	border-style: none;
}

.gameSelectDialog {
	margin: 8% auto;  /* 15% from top nd centered */
	border: 1px solid #222;
	padding: 2%;
	width: fit-content;
	height: fit-content;
	/* width: 200px;
	height: 300px; */
	background-color: #d8d8d8;
}

.gameSelectButton {
	background-color: rgb(240, 240, 240);
	height: 85%;
	margin: 2px;
	border-radius: 3px;
	font-size: 3.5vh;
	text-align: center;
	line-height: 100%;
}

.commandButton {
	background-color: rgb(200, 200, 240);
	height: 85%;
	margin: 2px;
	border-radius: 6px;
	font-size: 3.5vh;
	text-align: center;
	line-height: 100%;
}
/* #endregion */


/* #region MOBILE OVERRIDES */

@media screen and (max-width: 992px) {
	.guessCellEnd {
		margin: 3px 3px 3px 3px;
	}
	.guessCellMiddle {
		margin: 3px 4px 3px 4px;
	}
}
/* #endregion */


/* Add/Remove this class to hide/show an Element */
.classHidden { visibility: hidden;}
.classNoDisplay {display: none;}

.styleDisplayBlock {display: block;}
