*, *: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;
	--star: '\e28b';
	--lock: '\f023';
	--quote: '\f10d';
	--puzzle: '\f868';
	--badge: '\f336';
	--colon: '\3a';
	--home: '\f015';
	--slide-anim-delay: 1s;
}
* {
	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; */
    overflow-y: scroll;
    overflow-x: 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 {
	line-height: 20px;
}
header .title a,
header .title a span {
    text-decoration: none;
	font-family: "Arvo", serif;
    font-family: "Peralta", serif;
	font-size: 22px;
    font-weight: 400;
/*     color: var(--ch-dkblue); */
/*     color: var(--dkorange); */
}
.color-title {
    display: flex;
    align-items: baseline;
    column-gap: .02em;
    justify-content: center;
}
header .title a span.icon {
	position: relative;
    width: 30px;
    height: 22px;
    display: inline-block;
	color: orangered;
}
header .title a span.puzzle::before {
/* 
	content: var(--puzzle);
	margin: 0 5px;
    font-size: 20px;
 */
}
header .title a span.icon::before,
header .title a span.icon::after {
	font-family: 'Font Awesome 7 Duotone';
	content: '\f7e4';
	position: absolute;
	text-align: center;
	font-weight: 300;
    font-size: 26px;

    left: 50%;
    transform: translateX(-50%);
}
header .title a span.icon::before {
    opacity: 1;
}
header .title a span.icon::after {
	opacity: .4;
	font-feature-settings: "ss01"; /* This will enable the second layer */
}
header .title a span.ferris {
    position: relative;
    display: inline-block;
    width: 30px;
}
/* ferris wheel */
*.wheel-container, *.wheel-container:before, *.wheel-container:after {
	--container: 30px;
	--border-width: 2px;

	--base-color: var(--ch-turquoise);
	--base-outer: 16px;
	--base-shape: 50% 0%, 0% 100%, 100% 100%;
	--fill-color: var(--base-color);
	--wheel-size: 22px;
	--wheel-color: var(--dkorange);
	--wheel-degree: 45deg;
	--spokes-size: calc(100% + var(--border-width));
	--spokes-offset: calc(var(--border-width) / -2);
	--spoke-ends: 5px;
	--center-size: calc(var(--border-width) * 4);
}
.wheel-container {
	height: var(--container);
	width: var(--container);
	position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
	bottom: -5px;
}
.base {
    width: var(--base-outer);
    height: var(--base-outer);
    background-color: var(--base-color);
    clip-path: polygon(var(--base-shape));
    position: absolute;
    z-index: 0;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
}
/* 
.base::before {
    content: "";
    position: absolute;
    width: var(--base-inner);
    height: var(--base-inner);
    background-color: var(--fill-color);
    clip-path: polygon(var(--base-shape));
    z-index: 1;
    bottom: var(--border-width);
    left: 50%;
    transform: translateX(-50%);
}
 */
.wheel {
	height: var(--wheel-size);
    width: var(--wheel-size);
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: var(--border-width) solid var(--wheel-color);
    border-radius: 50%;
	z-index: 0;
	animation-duration: 12s;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	animation-name: spin;

}
.spokes {
    height: var(--spokes-size);
    width: var(--spokes-size);
    position: absolute;
    top: var(--spokes-offset);
    left: var(--spokes-offset);
}
.spoke {
	position: absolute; 
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
 	width: var(--border-width); 
	height: 100%;
	background-color: var(--wheel-color); 
}
.spoke-1 {
	transform: translate(-50%, -50%) rotate(calc(var(--wheel-degree) * 0)); 
}
.spoke-2 {
	transform: translate(-50%, -50%) rotate(calc(var(--wheel-degree) * 1)); 
}
.spoke-3 {
	transform: translate(-50%, -50%) rotate(calc(var(--wheel-degree) * 2)); 
}
.spoke-4 {
	transform: translate(-50%, -50%) rotate(calc(var(--wheel-degree) * 3)); 
}
.spoke::before,
.spoke::after {
	content: "";
	height: var(--spoke-ends);
	width: var(--spoke-ends);
	position: absolute;
	border-radius: 50%;
	background-color: white;
}
.spoke::before {
	left: 50%;
	transform: translate(-50%, -50%);
}
.spoke::after {
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);	
}
.spoke-1::before {
	background-color: var(--ch-blue);
}
.spoke-2::before {
	background-color: var(--ch-green);
}
.spoke-3::before {
	background-color: violet;
}
.spoke-4::before {
	background-color: var(--lime);
}
.spoke-1::after {
	background-color: var(--medblue);
}
.spoke-2::after {
	background-color: var(--ch-blue);
}
.spoke-3::after {
	background-color: var(--lime);
}
.spoke-4::after {
	background-color: var(--dkpurple);
}
.center {
	height: var(--center-size);
	width: var(--center-size);
	position: absolute;
	border: var(--border-width) solid var(--wheel-color);
	border-radius: 50%;
	background-color: white;
	left: 50%;
	transform: translate(-50%, -50%);
	top: 42%;
	z-index: 2;
}


/* 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);
}

.color-salmon {
	color: var(--ch-salmon);
}
.color-orange {
	color: var(--ch-orange);
}
.color-green {
	color: var(--ch-green);
}
.color-blue {
	color: var(--ch-blue);
}
.color-purple {
	color: var(--ch-purple);
}
.color-pink {
	color: var(--ch-pink);
}
.color-brown {
	color: var(--ch-brown);
}
.color-coral {
	color: var(--ch-coral);
}
.color-dkblue {
	color: var(--ch-dkblue);
}
.color-turquoise {
	color: 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'; */
	display: inline-block;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
}
.icon.home::before {
	content: var(--home);
}
.icon.star::before {
	content: var(--star);
}
.icon.lock::before {
	content: var(--lock);
}
.icon.quote::before {
	content: var(--quote);
}
.icon.puzzle::before {
	content: var(--puzzle);
}
.icon.badge::before {
	content: var(--badge);
}
.icon.colon::before {
	content: var(--colon) var(--colon);
	letter-spacing: 5px;
	margin-right: -5px;
}

/* 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,
.menu-item .icon::before {
    font-size: 22px;
/*     padding-right: 10px; */
    padding: 0 5px;
	font-weight: 700;
}
.menu-item.home {
    background: var(--ch-blue);
    color: white;
}
.menu-item.luckystar {
    background: var(--medred);
    color: white;
}
.menu-item.combo {
    background: var(--ch-dkblue);
    color: white;
}
.menu-item.blank {
    color: white;
    background: var(--ch-coral);
}
.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;
	font-size: 16px;
}
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,
.selections.dots .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.dots .item span.incorrect::before,
.selections .item.incorrect span.choice::before,
.solutions .ans  span.incorrect::before {
	content: '\f057';
}
.selections .item span.correct::before,
.selections.dots .item span.correct::before,
.selections .item.correct span.choice::before,
.solutions .ans  span.correct::before {
	color: green;
	content: '\f058';
}
.selections .item span.correct,
.selections .item span.correct a,
.solutions .ans  span.correct,
.solutions .ans  span.green,
.solutions .ans  span.analogy,
.solutions .ans  span.correctword {
    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;
}
.selections.dots:not(.demo) {
	display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    justify-items: center;
    width: 80%;
	margin-bottom: 20px;
}
.selections.dots:not(.demo) .item span {
    font-size: 28px;
}
.selections.dots .item span::before {
	content: "";
	height: 28px;
	width: 28px;
	display: block;
	background: lightgray;
	border-radius: 28px;
}
.selections.dots .item span::before, 
.selections.dots .item span a::before, 
.selections.dots .item span.choice::before, 
.selections.dots .item span.choice a::before {
    padding-right: 0;
}
.selections.dots .item span.correct::before, 
.selections.dots .item span.incorrect::before {
	background: unset;
}
.selections.demo .item span {
    padding: 5px 10px;
    display: inline-block;
}

/* solutions */
.solutions.slide {
    font-size: 18px;
}
.solutions.slide .solution {
	opacity: 0;
	transform: translateX(-100%);
	animation: slideIn 1s ease forwards; /* Apply animation to all elements */
	margin-bottom: 20px;
	display: flex;
    flex-direction: column;
}
.solutions.slide .solution span {
    line-height: 22px;
    text-transform: capitalize;
    font-family: "Arvo", serif;
    font-size: 18px;
}
.solutions.slide .solution span.uline {
	content: "";
    border-bottom: 2px solid;
    font-weight: 700;
}
.solutions.slide .solution:nth-child(1) {
	animation-delay: calc(var(--slide-anim-delay) * 0);
}

.solutions.slide .solution:nth-child(2) {
	animation-delay: calc(var(--slide-anim-delay) * 1);
}

.solutions.slide .solution:nth-child(3) {
	animation-delay: calc(var(--slide-anim-delay) * 2);
}

.solutions.slide .solution:nth-child(4) {
	animation-delay: calc(var(--slide-anim-delay) * 3);
}
.solutions.slide .finish-inner .result,
.solutions.slide .finish-inner .thank-you {
	opacity: 0;
	transform: translateX(-100%);
	animation: slideIn 1.5s ease forwards; 
}
.solutions.slide .finish-inner .result {
	animation-delay: calc(var(--slide-anim-delay) * 4);
}
.solutions.slide .finish-inner .thank-you {
	animation-delay: calc(var(--slide-anim-delay) * 5.5);
}

/* 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; */
    margin: 0 auto 15px;
    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);}
}
@keyframes slideIn {
	to {
		opacity: 1;
		transform: translateX(0);
	}
}
@keyframes spin {
	0% {transform: translate(-50%, -50%) rotate(0deg);}
	100% {transform: translate(-50%, -50%) rotate(360deg);}
}

.hide {
	display: none;
}
.show {
	display: block;
}

@media only screen and ((max-width: 380px) or (max-height: 640px)) {
	header .title {
		line-height: 26px;
	}
	header .title a,
	header .title a span {
		font-size: 16px;
		line-height: 16px;
	}
	header .title a span.icon {
		width: 24px;
		height: 20px;
	}
	header .title a span.icon::before,
	header .title a span.icon::after {
		font-size: 20px;
		bottom: 0;
	}
	.color-title {
		align-items: normal;
	}
	.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: 6px 20px;
		font-size: 14px;
        line-height: 1;

	}
	.selections .item span, 
	.selections .item span a {
	    font-size: 16px;
	}
	.solutions.slide .ans {
		margin-bottom: 10px;
	}
	.solutions.slide .ans span {
		font-size: 16px;
		line-height: 20px;
	}
	.solutions.slide .finish-msg {
		font-size: 18px;
	}
	.finish-inner p.result.show {
		margin: 10px auto;
		font-size: 16px;
	}
	p.thank-you {
        width: 100%;
        font-size: 14px;
        line-height: 16px;
        padding: 5px 10px;
    }

/* 
	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;
	}
}

