*, *:before, *:after {
	box-sizing: border-box;
	--silver: #a6afac;
	--ch-salmon: lightsalmon;
	--ch-orange: orange;
	--ch-green: #86BA90;
	--ch-blue: lightskyblue;
	--ch-purple: #9370dbc7;
	--ch-pink: lightpink;
	--ch-brown: burlywood;
	--ch-coral: coral;
	--ch-dkblue: cadetblue;
	--ch-turquoise: paleturquoise;
	--medblue: royalblue;
	--medred: orangered;
	--dkpurple: darkorchid;
	--lime: limegreen;
	--dkorange: darkorange;
	--modal-bkgd: #fcfbfb;
	--lock: '\f023';
	--quote: '\f10d';
	--puzzle: '\f868';
	--colon: '\3a';
	--home: '\f015';
}
* {
	font-family: "Libre Franklin", sans-serif;
	font-optical-sizing: auto;
	font-style: normal;
}
html {
/*     overflow: hidden; */
    height: 100%;
/* 	height: 100vh; */
}
body {
	height: 100%;
/* 	height: 100vh; */
	width: 100%;
	margin: 0 auto;
/*     padding: 2%; */
    max-width: 600px;
    background: aliceblue;
    background: darkkhaki;
    background: ghostwhite;
    background: honeydew;
    background: paleturquoise;
    background: whitesmoke;
}
#page {
	overflow: hidden;
    padding: 2%;
    height: 100%;
    position: relative;
    background: white;
}

/* toolbar */
header {
	display: flex;
/* 	justify-content: flex-end; */
    border-bottom: 1px solid lightgray;
    margin: 5px 0;
    align-items: start;
}
/* 
header::before {
	content: "";
	flex: 1;
}
 */
header .menu-group,
header .tool-group {
	flex: 1;
	display: flex;
	justify-content: flex-start;
}
header .tool-group {
	justify-content: flex-end;
}
header .menu-icon,
header .tool {
	margin: 0 5px 5px 10px;
    position: relative;
}
header .menu-icon a,
header .tool a {
	height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
header .menu-icon.icon::before,
header .tool.icon::before {
    font-size: 20px;
}
header .icon#feedback::before {
	content: '\f27a';
	font-weight: 400;
}
header .icon#instructions::before {
	content: '\f059';
	font-weight: 400;
}
header .icon#menu::before {
	content: '\f0c9';
	font-weight: 600;
}

header .title a {
    text-decoration: none;
	font-family: "Arvo", serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--ch-dkblue);
}

/* colors */
.red {
	background: var(--ch-salmon);
}
.orange {
	background: var(--ch-orange);
}
/* 
.yellow {
	background: var(--ch-yellow);
}
 */
.green {
	background: var(--ch-green);
}
.blue {
	background: var(--ch-blue);
}
.purple {
	background: var(--ch-purple);
}
.pink {
	background: var(--ch-pink);
}
.brown {
	background: var(--ch-brown);
}
.coral {
	background: var(--ch-coral);
}
.dkblue {
	background: var(--ch-dkblue);
}
.turquoise {
	background: var(--ch-turquoise);
}







/* icons */
.icon::before,
.icon::after {
    font-family: 'Font Awesome 7 Pro';
/* 	font-family: 'Font Awesome 6 Pro'; */
/* 	font-family: 'Font Awesome 5 Pro'; */
	-webkit-font-smoothing: antialiased;
}
.icon.home::before {
	content: var(--home);
}
.icon.lock::before {
	content: var(--lock);
}
.icon.quote::before {
	content: var(--quote);
}
.icon.puzzle::before {
	content: var(--puzzle);
}
.icon.colon::before {
	content: var(--colon);
}

/* menu */
.menu-overlay {
/*     position: fixed; */
    top: 0;
    height: 100%;
/*     left: -235px;  */
/*     width: 225px;  */
	left: calc(-75% - 6px);
    width: 75%; /* Adjust as needed */
    transition: left 0.3s ease; /* Only transition the left property */
	z-index: 3;
	position: absolute;
	background: white;
    box-shadow: 1px 0 6px 0 gray;
}
.menu-overlay.active {
    left: 0; /* Slide the menu into view */
}
.menu-overlay.active .menu-close-layer {
	height: 100%;
    width: 100vw;
    position: absolute;
    top: 0;
    left: 0;
}
.menu {
    position: relative;
    background: white;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
	width: 80%;
    margin: 0 auto;
}
.menu .close-container {
    display: flex;
    justify-content: flex-end;
}
.menu .close {
    text-align: right;
/*     margin: 10px; */
/*     padding: 10px; */
    cursor: pointer;
    margin: 10px 0 10px 10px;
    padding: 10px 0 10px 10px;
}
.menu .close.icon::before {
	content: '\f057';
	font-weight: 400;
    font-size: 22px;
}

/* Example styling for menu items */
.menu-item {
/*     padding: 10px; */
    text-decoration: none;
    display: block;
    font-size: 18px;
    font-family: 'Arvo', serif;
	padding: 20px 10px;
	width: 100%;
    text-align: center;
    box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, .2);
	border-radius: 15px 0 15px 0;
}
.menu-item.icon::before {
    font-size: 22px;
    padding-right: 10px;
	font-weight: 700;
}
.menu-item.home {
    background: var(--ch-blue);
    color: white;
}
.menu-item.combo {
    background: var(--ch-coral);
    color: white;
}
.menu-item.blank {
    color: white;
    background: var(--ch-dkblue);
}
.menu-item.real {
    color: white;
    background: var(--ch-orange);
}
.menu-item.pair {
	color: white;
    background: var(--medblue);
}
.menu-item:hover,
.menu-item:focus {
	opacity: .7;
}



/* modal */
.modal-overlay {
	display: flex;
    position: fixed;
    justify-content: center;
    align-items: center;
    position: absolute;
/*     position: fixed; */
    top: 0;
    left: 0;
    width: 100%;
    padding: 2%;
    height: 100vh;
    height: 100%;
	visibility: hidden;
	opacity: 0;
	transition: visibility .5s, opacity .5s linear;
/* 	background: rgba(0, 0, 0, .3); */
}
.modal-overlay.active {
/* 	display: block; */
	z-index: 3;
	visibility: visible;
	opacity: 1;
	transition: visibility .5s, opacity .5s linear;
}
.modal-content {
	width: fit-content;
    max-width: 100%;
    max-height: 100%;
    text-align: center;
    margin: 0 auto;
    border: none;
    padding: 0;
    position: relative;
    background: var(--modal-bkgd);
    width: 87%;
    height: 90%;
	box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, .15);
	overflow: scroll;
/* 	z-index: 2; */
}
.modal-content .close-container {
    display: flex;
    justify-content: flex-end;
}
.modal-content .close {
    text-align: right;
    margin: 10px;
    padding: 10px;
    cursor: pointer;
}
.modal-content .close.icon::before {
	content: '\f057';
	font-weight: 400;
    font-size: 20px;
}
.close-layer {
	height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.modal-content .content {
	display: none;
	text-align: left;
	padding: 0 20px 20px;
}
.modal-content .content.active {
	display: block;
}
.modal-content .content h2 {
	text-align: center;
	margin-top: 0;
	margin-bottom: 15px;
}
.modal-content .content ul {
    margin: 10px 0;
    padding-inline-start: 25px;
}
.modal-content .content li {
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
}
.modal-content .content li:not(:last-child) { 
   margin-bottom: 4px;  
}
.content p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
}
.modal-content .feedback-content,
.modal-content .testing-content {
	text-align: center;
}
.modal-content .feedback-content p {
    font-size: 18px;
    line-height: 28px;
}

/* page */
.game-title h1 {
	text-align: center;
    margin: 20px 0 12px;
}
.game-title h1 a {
	font-family: "Arvo", serif;
	font-weight: 700;
	font-size: 60px;
    line-height: 60px;
	font-style: normal;
	text-align: center;
	text-decoration: none;
	color: unset;
}
.game-title span.icon::before {
	font-weight: 700;
/*     color: chocolate; */
    font-size: 36px;
    vertical-align: top;
    margin: 0 5px;
}

p.game-name {
	text-align: center;
	margin: 0 0 12px;
}
p.pageSubhead {
	text-align: center;
	font-size: 20px;
	font-weight: 600;
    margin: 0;
    margin-bottom: 20px;
    line-height: 1;
}
p.pageSubhead.finish.pop {
    position:relative;
	animation-duration: .5s;
	animation-timing-function: ease-in;
	animation-name: pop;
	display: block;
}

/* gameboard */

form#choices,
.play-area {
    margin-bottom: 20px;
    display: block;
}
form#choices .round,
.play-area .round .base-words {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 12px;
    row-gap: 12px;
    margin-bottom: 10px;
}
form#choices .round.hide,
.play-area .round.hide {
	display: none;
}
form#choices .item,
.play-area .item {
	padding: 25px 10px;
/* 	cursor: pointer; */
	text-transform: capitalize;
	font-family: "Arvo", serif;
	text-align: center;
	font-size: 18px;
	letter-spacing: .5px;
/* 	-webkit-tap-highlight-color: transparent; */
}
form#choices .item {
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
form#choices .item.pos-1,
.base-words .item.pos-1 {
	border-radius: 0 15px 0 15px;
}
form#choices .item.pos-2,
.base-words .item.pos-2 {
	border-radius: 15px 0 15px 0;
}
form#choices .item.pos-3,
.base-words .item.pos-3 {
	border-radius: 15px 0 15px 0;
}
form#choices .item.pos-4,
.base-words .item.pos-4 {
	border-radius: 0 15px 0 15px;
}
form#choices .item.selected {
	color: white;
	text-shadow: 1px 0; 
}
form#choices .item.correct,
form#choices .item.incorrect {
    position:relative;
	-webkit-animation-duration: 1s;
	-moz-animation-duration: 1s;
	-o-animation-duration: 1s;
	animation-duration: 1s;
	-webkit-animation-timing-function: ease-in-out;
	-moz-animation-timing-function: ease-in-out;
	-o-animation-timing-function: ease-in-out;
	animation-timing-function: ease-in-out;
	animation-delay: 150ms;
}
form#choices .item.correct {
	-webkit-animation-name: upanddown;
	-moz-animation-name: upanddown;
	-o-animation-name: upanddown;
	animation-name: upanddown;
}
form#choices .item.incorrect {
	-webkit-animation-name: backandforth;
	-moz-animation-name: backandforth;
	-o-animation-name: backandforth;
	animation-name: backandforth;
}



/* action buttons */
.buttons {
/* 	display: grid; */
/* 	grid-template-columns: repeat(2, 1fr); */
	column-gap: 60px;
/*     margin-bottom: 20px; */
    margin-bottom: 15px;
	display: flex;
    justify-content: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.buttons button {
    align-self: center;
	background: transparent;
    border: 1px solid #121212;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
	cursor: pointer;
	min-width: 110px;
}
.buttons button.deselect {
	justify-self: right;
}
.buttons button.submit {
	justify-self: left;
	background: #121212;
	color: white;
}
.buttons button:disabled,
.buttons button[disabled]{
	border-color: #8b8b8b;
	color: #8b8b8b;
	background: transparent;
	cursor: not-allowed;
}

/* user selections */
.selections {
	display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}
.selections .item.pop {
    position:relative;
	animation-duration: .5s;
	animation-timing-function: ease-in;
	animation-name: pop;
}
.selections .item span,
.selections .item span a {
	text-transform: capitalize;
	font-family: "Arvo", serif;
	text-align: center;
    font-size: 18px;
}
/* 
.selections .item span {
	padding: 5px 10px;
    border-radius: 15px;
    display: inline-block;
}
 */
.selections .item span.incorrect,
.solutions .ans  span.incorrect,
.selections .item.incorrect span.choice {
	color: rgba(255, 0, 0, .6);
    color: red;
}
.selections .item span::before,
.selections .item span a::before,
.selections .item span.choice::before,
.selections .item span.choice a::before,
.solutions .ans  span::before {
	font-family: 'Font Awesome 7 Pro';
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	padding-right: 5px;
}
.selections .item span.incorrect::before,
.selections .item.incorrect span.choice::before,
.solutions .ans  span.incorrect::before {
	content: '\f057';
}
.selections .item span.correct::before,
.selections .item.correct span.choice::before,
.solutions .ans  span.correct::before {
	color: green;
	content: '\f058';
}
.selections .item span.correct a,
.solutions .ans  span.correct,
.solutions .ans  span.green {
    color: green;
}
.selections .item.success {
	background: #008000cc;
	background: rgba(0, 128, 0, .7);
}
.selections .item.success a {
	color: white;
}
.selections .item.failure {
    background: #ff0000bf;
    background: rgba(255, 0, 0, .6);
    color: white;
}


/* finish message */
.finish-msg {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}
.finish-inner {
	display: none;
}
.finish-inner.show {
	display: block;
}
.finish-inner p.result {
	display: none;
}
.finish-inner p.result.show {
	display: block;
}


/* testing */
.modal-overlay.show {
	display: flex;
}
.modal-content .testing-content p {
    font-size: 16px;
    line-height: 20px;
}
.button {
    background: var(--ch-dkblue);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
	border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
	cursor: pointer;

}
.testing-container {
    border-top: 1px solid black;
	width: 96%;
	max-width: calc(600px - 4%);
	left: 50%;
	transform: translateX(-50%);
/* 	bottom: 2%; */
	bottom: 0;
	padding-bottom: 2%;
	padding-top: 14px;
	display: flex    ;
/* 	position: fixed; */
	position: absolute;
	background: white;
}
.testing-container::before {
	content: "Test Games - try another!";
	position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
	text-align: center;
    width: max-content;
}
.link-container {
    display: flex;
    column-gap: 5px;
	width: 100%;
/* 
    bottom: 2%;
	left: 50%;
    transform: translateX(-50%);
    justify-content: space-between;
    width: 96%;
    max-width: calc(600px - 4%);
 */
}
.game-link {
	color: black;
    background: bisque;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
	position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.game-link:hover {
	color: white;
}
.game-link.active {
	color: white;
}
.game-link span {
    font-size: 16px;
    padding: 5px;
    text-align: center;
}
.game-link a {
    text-decoration: none;
	position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
}
p.thank-you {
	font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    background: var(--ch-blue);
    padding: 10px;
    border-bottom-right-radius: 20px;
    border-top-left-radius: 20px;
    margin: 0 auto;
    margin-top: 60px;
    width: 90%;
}


/* 
.noscroll {
	overflow: hidden;
}
 */


@-webkit-keyframes backandforth {
	0% {left: 0;}
	20% {left: -5px;}
	40% {left: 5px;}
	60% {left: -3px;}
	80% {left: 3px;}
	100% {left: 0;}
}
@-webkit-keyframes upanddown {
	0% {bottom: 0;}
	20% {bottom: -5px;}
	40% {bottom: 5px;}
	60% {bottom: -3px;}
	80% {bottom: 3px;}
	100% {bottom: 0;}
}
@-moz-keyframes backandforth {
	0% {left: 0;}
	20% {left: -5px;}
	40% {left: 5px;}
	60% {left: -3px;}
	80% {left: 3px;}
	100% {left: 0;}
}
@-moz-keyframes upanddown {
	0% {bottom: 0;}
	20% {bottom: -5px;}
	40% {bottom: 5px;}
	60% {bottom: -3px;}
	80% {bottom: 3px;}
	100% {bottom: 0;}
}
@-o-keyframes backandforth {
	0% {left: 0;}
	20% {left: -5px;}
	40% {left: 5px;}
	60% {left: -3px;}
	80% {left: 3px;}
	100% {left: 0;}
}
@-o-keyframes upanddown {
	0% {bottom: 0;}
	20% {bottom: -5px;}
	40% {bottom: 5px;}
	60% {bottom: -3px;}
	80% {bottom: 3px;}
	100% {bottom: 0;}
}
@keyframes backandforth {
	0% {left: 0;}
	20% {left: -5px;}
	40% {left: 5px;}
	60% {left: -3px;}
	80% {left: 3px;}
	100% {left: 0;}
}
@keyframes upanddown {
	0% {bottom: 0;}
	20% {bottom: -5px;}
	40% {bottom: 5px;}
	60% {bottom: -3px;}
	80% {bottom: 3px;}
	100% {bottom: 0;}
}
@keyframes pop {
	0% {transform: scale(0);}
	25% {transform: scale(1.1);}
	75% {transform: scale(0.9);}
	100% {transform: scale(1);}
}
.hide {
	display: none;
}
.show {
	display: block;
}

@media only screen and ((max-width: 380px) or (max-height: 640px)) {
	.game-title h1 {
		margin: 10px 0 12px;
	}
	.game-title h1 a {
		font-size: 40px;
		line-height: 40px;
	}
    .game-title span.icon::before {
        font-size: 24px;
    }
	p.game-name {
		margin: 0 0 10px;
	}
	p.pageSubhead {
	    margin-bottom: 15px;
	}
	form#choices, 
	.play-area {
		margin-bottom: 15px;
	}
	form#choices .item,
	.play-area .item {
	    padding: 20px 10px;
	    font-size: 16px;
	}
	.buttons {
	    margin-bottom: 10px;
		column-gap: 20px;
	}
	.buttons button {
		padding: 8px 20px;
	}
	.selections .item span, 
	.selections .item span a {
	    font-size: 16px;
	}
	p.thank-you {
		margin-top: 30px;
	}
}

/* reorients the screen to portrait mode when rotated */
@media only screen and (orientation: landscape) and ((max-width: 599px) or (max-height: 560px)) {
	html {
		transform: rotate(-90deg);
		transform-origin: left top;
		width: 100vh;
		height: 100vw;
		overflow: auto;
		position: absolute;
		top: 100%;
		left: 0;
	}
}

