/* Wraps
-------------------------------------------------- */

.wrap {
	width: 100%;
	position: relative;
	overflow: hidden;
	padding: 10px 0 90px;
	z-index: 1;
}
.wrap.header {
	padding: 0 0 1.2em 0;
	z-index: 100;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 100%);
}
body.home .wrap.header {
	background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 90%);
}
body.admin .wrap.header {
	position: fixed;
	transition: background 0.8s cubic-bezier(0.190, 1.000, 0.220, 1.000);
}
	body.admin .wrap.header.shadow {
		background: rgba(34,46,56,0.95);
	}
#luxy {
	position: relative;
	z-index: 2;
	pointer-events: none;
}
#luxy * {
	pointer-events: all;
}
.wrap.footer {
	position: absolute;
	bottom: 0;
	padding: 50px 0 30px;
	background: #222e38;
	z-index: 1;
}

/* Header
-------------------------------------------------- */

#logo {
	position: relative;
	padding-left: 1.666em;
}
#logo a {
	display: grid;
}
#logo img {
	width: 80px;
	transition: filter 0.8s cubic-bezier(0.190, 1.000, 0.220, 1.000);
}
#logo a:focus img {
	filter: saturate(0) brightness(3)
}
#menu {
	margin-right: 1.666em;
	position: relative;
    z-index: 11;
}
#menu nav {
	display: flex;
    align-items: center;
}
#menu.progress {
    display: flex;
    justify-content: space-between;
	align-items: center;
    flex: 1;
	margin: 0 1.666em;
}
#menu a {
	margin-left: 1.1em
}
	#menu a:first-child {
		margin-left: 0
	}

/* Menu button and overlay */

.hamburger {
	position: relative;
	z-index: 200;
	height: 28px;
	padding: 0 !important;
	display: block;
	cursor: pointer;
	transition-property: opacity, filter;
	transition-duration: 0.15s;
	transition-timing-function: linear;
	font: inherit;
	color: inherit;
	text-transform: none;
	background-color: transparent;
	border: 0;
	margin: 0;
	overflow: visible;
	opacity: 1;
}
.hamburger:active,
.hamburger:hover {
	background-color: transparent !important;
	/*outline: none;*/
}
.hamburger.is-active .hamburger-inner,
.hamburger.is-active .hamburger-inner::before,
.hamburger.is-active .hamburger-inner::after {
	background-color: #676c72;
}
.hamburger-box {
	width: 40px;
	height: 24px;
	display: inline-block;
	position: relative;
}

.hamburger-inner {
	display: block;
	top: 50%;
	margin-top: -2px;
}
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
	width: 40px;
	height: 4px;
	background-color: #fbb040;
	border-radius: 4px;
	position: absolute;
	transition-property: transform;
	transition-duration: 0.15s;
	transition-timing-function: ease;
}
.hamburger-inner::before, .hamburger-inner::after {
	content: "";
	display: block;
}
.hamburger-inner::before {
	top: -10px;
}
.hamburger-inner::after {
	bottom: -10px;
}

.hamburger--spin .hamburger-inner {
	transition-duration: 0.22s;
	transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
.hamburger--spin .hamburger-inner::before {
	transition: top 0.1s 0.25s ease-in, opacity 0.1s ease-in;
}
.hamburger--spin .hamburger-inner::after {
	transition: bottom 0.1s 0.25s ease-in, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
.hamburger--spin.is-active .hamburger-inner {
	transform: rotate(225deg);
	transition-delay: 0.12s;
	transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
	background-color: #fff;
}
.hamburger--spin.is-active .hamburger-inner::before {
	top: 0;
	opacity: 0;
	transition: top 0.1s ease-out, opacity 0.1s 0.12s ease-out;
}
.hamburger--spin.is-active .hamburger-inner::after {
	background-color: #fff;
	bottom: 0;
	transform: rotate(-90deg);
	transition: bottom 0.1s ease-out, transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
}

#menuOverlay {
	height: 100%;
	width: 100%;
	position:fixed;
	left: -9999px;
	bottom: 0;
	background: rgba(51,62,72,0.95);
	z-index: 3;
	opacity: 0;
	transition: opacity 0.5s cubic-bezier(0.190, 1.000, 0.220, 1.000);
	pointer-events: none;
	overflow-y: auto;
}
#menuOverlay .container {
	height: 100%;
}
#menuOverlay.showing {
	opacity: 1;
	left: 0;
	pointer-events: visible;
}

		
/* Content
-------------------------------------------------- */

.motif {
	width: 100px;
	margin-bottom: 25px;
}

/* sub navigation */

#sideBar {
	margin-top: 0;
	margin-bottom: 1rem;
}

ul.subNav, ul.subNav li {
	margin: 0;
	padding: 0;
	list-style: none;
    background: none;
}
ul.subNav {
	margin: 0 0 30px;
}
ul.subNav li {
	border-bottom: 2px solid #fbb040;
}
ul.subNav li a {
	display: block;
	padding: 12px 30px 10px 0;	
	transition: background 0.8s cubic-bezier(0.190, 1.000, 0.220, 1.000), color 0.8s cubic-bezier(0.190, 1.000, 0.220, 1.000), padding-left 0.8s cubic-bezier(0.190, 1.000, 0.220, 1.000);
}
ul.subNav li a:after {
	display: block;
	content: "";
	float: right;
	background: url('../images/icons/arrow-right.svg');
	background-size: 8px 14px;
	width: 8px;
	height: 14px;
	margin-right: -15px;
	margin-top: 7px;
	transition: all 0.8s cubic-bezier(0.190, 1.000, 0.220, 1.000);
}
	ul.subNav li a:not(.selected):hover::after {
		transform: translateX(5px);
	}
ul.subNav li a.selected, ul.subNav li a.selected:hover {
	padding-left: 10px;
}
ul.subNav li a:hover {
	background: #222e38;
	padding-left: 10px;
}
ul.subNav li a.selected, ul.subNav li a.selected:hover {
	background: #fbb040;
	color: #323e48;
	padding-left: 10px;
}
ul.subNav li a.selected:after {
	filter: brightness(0) saturate(100%) invert(21%) sepia(10%) saturate(1292%) hue-rotate(166deg) brightness(91%) contrast(86%);
}

	/* sub sub */
	ul.subNav li ul {
		margin: 0;
	}

	ul.subNav li li a {
		text-transform: none;
		color: #615d59;
		background: #f5f4f4;
		display: block;
		padding: 11px 0 11px 15px;
		border-bottom: 1px solid #ccc;
	}
		ul.subNav li li a:after {
			display: none;
		}
	ul.subNav li li a:hover {
		color: #000;
		border-bottom: 1px solid #ccc;
		padding: 11px 0 11px 20px;
	}
	ul.subNav li li a.selected, ul.subNav li li a.selected:hover {
		background: rgba(255,118,119,0.1);
		color: #615d59;
		padding-left: 20px;
	}
	
/* video embed */

.embedVideo {
	position: relative;
	padding-bottom: 56.25%; /* 16/9 ratio */
	padding-top: 0; /* IE6 workaround*/
	height: 0;
	overflow: hidden;
	/*max-width: 100%;*/
	height: auto;
}

.embedVideo iframe,
.embedVideo object,
.embedVideo embed,
.embedVideo video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

	
/* flex */

.flexrow {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.flexitem {
	display: flex;
	flex: 1 0 33%;
	flex-direction: column;
	transition: transform 1s cubic-bezier(0.190, 1.000, 0.220, 1.000), background 1s cubic-bezier(0.190, 1.000, 0.220, 1.000);
	position: relative;
	box-sizing: border-box;
}

/* grid */

.grid {
    display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-column-gap: 2em;
	grid-row-gap: 1em;
}
.grid .full-width {
    grid-column: 1 / 3;
}

/* admin */

.clientGrid {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 2rem;
	list-style: none;
	margin: 30px 0 10px;
	padding: 0;
}
.clientGrid > li {
	display: flex;
	flex: 0 0 calc(16.6666% - 1.6666rem);
	background: #eee;
	border: 5px solid #eee;
	padding: 2rem;
	margin: 0;
	box-sizing: border-box;
	border-radius: 10px;
	transition: background 1s cubic-bezier(0.190, 1.000, 0.220, 1.000), border 1s cubic-bezier(0.190, 1.000, 0.220, 1.000);
}
.clientGrid > li::before {
	content: "";
	padding-bottom: 100%;
	display: block;
}
.clientGrid > li::before,
.clientGrid > li > a > img {
	grid-area: 1 / 1 / 2 / 2;
}
.clientGrid > li > a {
	width: 100%;
	height: 100%;
	display: block;
}
.clientGrid > li > a > img {
	width: 100%;
	height: 100%;
	filter: grayscale(1);
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: filter 0.6s cubic-bezier(0.190, 1.000, 0.220, 1.000);
}
.clientGrid > li:hover {
	background: #fff;
	border: 5px solid #fbb040;
}
.clientGrid > li:hover > a > img {
	filter: grayscale(0);
}

/* panel */

.panel {
	background: #323e48;
	border: 6px solid #fbb040;
	box-sizing: border-box;
	border-radius: 1.2em;
	padding: 2.3em 3em 2em;
	overflow: hidden;
}
.panel.interstitial {
	display: flex;
	align-items: flex-end;
	max-width: 67vw;
	margin-left: auto;
	margin-right: auto;
	border: none;
	border-bottom: 6px solid #fbb040;
	border-radius: 0;
	padding: 1em 0 0;
}
.interstitial .character {
	display: block;
	flex: 1;
	max-width: 220px;
	opacity: 0;
	animation: 0.8s forwards cubic-bezier(0.680, -0.60, 0.265, 1.6) 0.2s popup;
	transform-origin: bottom center;
}

.speech {
	position: relative;
	align-self: flex-start;
	background: #222e38;
	width: 70%;
	padding: 2em 2em 2.5em;
	box-sizing: border-box;
	border-radius: 3em 3em 0;
	animation: 1s forwards cubic-bezier(0.230, 1.000, 0.320, 1.000) 0.95s speechin;
	opacity: 0;
	transform-origin: bottom right;
	margin: 0 1em 3em 0;
}

.speech a.button {
	margin-top: 1em;
}

.speech:after {
	content: '';
	position: absolute;
	top: 100%;
	right: 0;
	width: 0;
	height: 0;
	border: 1.5em solid transparent;
	border-left-color: #222e38;
	border-bottom: none;
	border-right: none;
	margin-top: -1.5em;
	margin-right: -1.5em;
}

@keyframes flipin {
	from {
		transform: rotateX(90deg);
		opacity: 0;
	}
	to {
		transform: rotateX(0);
		opacity: 1;
	}
}

@keyframes popup {
	from {
		transform: translateY(100px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}
@keyframes speechin {
	from {
		transform: translateX(50px) rotate(-10deg) scale(0.9);
		opacity: 0;
	}

	to {
		transform: translateX(0) rotate(0) scale(1);
		opacity: 1;
	}
}
@keyframes fadeout {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}
@keyframes fadein {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/*.carouselHolder {
	position: relative;
	width: 250px;
	height: 350px;
	margin: 40px auto;
	perspective: 1500px;
}

.carousel {
	width: 100%;
	height: 100%;
	position: absolute;
	transform: translateZ(-350px);
	transform-style: preserve-3d;
	transition: transform 1s cubic-bezier(0.830, -0.220, 0.170, 1.210);
}

.carousel__cell {
	position: absolute;
	display: flex;
	align-items: flex-end;
	width: 250px;
	height: 350px;
	opacity: 0;
	animation: 1s forwards cubic-bezier(0.230, 1.000, 0.320, 1.000) 0.5s fadein;
}
	.carousel__cell img {
		max-height: 100%;
		width: auto;
		filter: brightness(0) blur(4px);
		transition: filter 1s cubic-bezier(0.770, 0.000, 0.175, 1.000);
		padding: 0 10px;
		border-bottom: 6px solid #fbb040;
	}
	.carousel__cell:nth-child(1) img {
		filter: brightness(1) blur(0);
	}

.carousel__cell:nth-child(1) { transform: rotateY( 0deg) translateZ(350px); }
.carousel__cell:nth-child(2) { transform: rotateY( 120deg) translateZ(350px); }
.carousel__cell:nth-child(3) { transform: rotateY( 240deg) translateZ(350px); }*/

.resultsTxt {
	width: 60%;
	margin-bottom: 30px;
}
.controls {
	width: 300px;
	display: flex;
	margin-bottom: 50px;
}
.controls .button {
	flex: 1;
	margin: 0 10px;
}
.panel.admin,
.panel.results {
	max-width: 100%;
	overflow: visible;
	padding: 0;
	border: none;
}
.panel .card {
	position: relative;
	z-index: 1;
	border: 5px solid #515b63;
	border-radius: 20px;
	background: #323e48;
	padding: 3.5em 2em 1.5em;
	transform: scale(0.95);
	transition: transform 0.3s cubic-bezier(0.190, 1.080, 0.755, 1.065);
}
		.panel .card::before {
		content: "\00A0";
		text-transform: uppercase;
		padding: 0.5em 1em 0.4em;
		display: inline-block;
		position: absolute;
		width: 180px;
		left: 50%;
		margin-left: -90px;
		top: -1.4em;
		background: #515b63;
		border-radius: 10px;
		color: #cad1d8;
		box-sizing: border-box;
	}
	.panel .card::after {
		box-shadow: 0px 5px 30px 0px rgba(0,0,0,0.3);
		content: '';
		position: absolute;
		top: -5px;
		left: -5px;
		z-index: -2;
		width: calc(100% + 10px);
		height: calc(100% + 10px);
		opacity: 0;
		border-radius: 20px;
		transition: opacity 0.4s cubic-bezier(0.190, 1.080, 0.755, 1.065);
	}
		.panel .card:hover::after {
			opacity: 1;
		}

/* Results - Default */

.panel.results .grid {
	grid-template-columns: repeat(3, 1fr);
	grid-template-areas: "panel2 panel1 panel3"
						 ". panel4 .";
	grid-gap: 2em;
	margin-top: 4em;
}
.panel.results .card:nth-child(1) {
	grid-area: panel2
}
.panel.results .card:nth-child(2) {
	grid-area: panel1;
	transform: scale(1);
}
.panel.results .card:nth-child(3) {
	grid-area: panel3
}
.panel.results .button {
	grid-area: panel4;
	margin: 1em 0 0;
}

.panel.results .card:nth-child(2) {
	border: 5px solid #fbb040;
	padding: 3em 2em 2em;
}
	
	.panel.results .card:nth-child(2)::before {
		min-width: 200px;
		margin-left: -100px;
		background: #fbb040;
		border-radius: 10px;
		color: #323e48;
	}
	.panel.results .card::before {
		content: "Close Match";
	}
	.panel.results .card:nth-child(2)::before {
		content: "Best Match";
	}
	
.panel.results .card img {
	height: 240px;
	margin-bottom: 20px;
}

.panel.results .card:hover {
	transform: scale(1);
}
.panel.results .card:nth-child(2):hover {
	transform: scale(1.05);
}

/* side results */

.panel.results.side .grid {
	grid-template-columns: repeat(2, 1fr);
	grid-template-areas: "panel1 panel1"
						 "panel2 panel3";
	grid-gap: 2em;
	margin: 20px 0;
}
.panel.results.side .card {
	text-align: center;
	padding: 2em 1em 0.5em 1em;
	transform: scale(1);
}
.panel.results.side .card::before {
	max-width: 150px;
	min-width: 0;
	margin-left: -75px;
	font-size: 0.9em;
}
.panel.results.side .card img {
	height: 100px;
	margin-bottom: 10px;
}
.panel.results.side .card h2 {
	font-size: 1.8em;
}

/* Admin */
.panel.admin .grid {
	grid-template-columns: repeat(4, minmax(0,1fr));
	grid-column-gap: 1em;
	grid-row-gap: 2em;
	margin-top: 3em;
}
.panel.admin .card  {
	text-align: center;
	padding: 2.5em 1em 0.5em;
}
.panel.admin .card::before  {
	width: 100px;
	left: 50%;
	margin-left: -50px;
}
.panel.admin .card:nth-child(1) {
	border: 5px solid #fbb040;
}
.panel.admin .card img {
	height: 80px;
	margin-bottom: 10px;
}
.panel.admin .card h2 {
	font-size: 1.2em;
	margin-bottom: 10px;
}
.panel.admin .card p {
	font-size: 1.5em;
	margin-bottom: 10px;
}

.panel.admin .card:nth-child(1)::before {
	background: #fbb040;
	color: #323e48;
	content: "1st";
}
.panel.admin .card:nth-child(2)::before {
	content: "2nd";
}
.panel.admin .card:nth-child(3)::before {
	content: "3rd";
}
.panel.admin .card:nth-child(4)::before {
	content: "4th";
}
.panel.admin .card:nth-child(5)::before {
	content: "5th";
}
.panel.admin .card:nth-child(6)::before {
	content: "6th";
}
.panel.admin .card:nth-child(7)::before {
	content: "7th";
}
.panel.admin .card:nth-child(8)::before {
	content: "8th";
}

/* Presentation - larger text */

.presentation p,
.presentation li {
	font-size: 1.5rem
}

		
/* Footer
-------------------------------------------------- */

#goTop a {
	display: block;
	background: url('../images/icons/arrow-up.svg') 0 5px no-repeat;
	background-size: 32px 32px;
	width: 32px;
	height: 32px;
	margin: 0 auto;
	float: right;
}

#goTop a:hover {
	background: url('../images/icons/arrow-up.svg') 0 0 no-repeat;
}

.footer ul, #footer li {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}
.footer li {
	margin: 0 0 5px;
}

/* #Media Queries
================================================== */
@media only screen and (max-width: 1600px) {
	.panel.interstitial {
		max-width: 80vw;
	}
}

/* Tablet Landscape size to wide monitor  */
@media only screen and (max-width: 1279px) {
	body {
		font-size: 16px;
	}
	.resultsTxt {
		width: 80%;
	}
	legend {
		font-size: 1.3rem;
	}
	.clientGrid > li {
		flex: 0 0 calc(25% - 1.5rem);
		padding: 1.5rem;
	}
}

/* Tablet Landscape size to wide monitor  */
@media only screen and (min-width: 960px) and (max-width: 1279px) {
	.panel .character {
		max-width: 200px;
	}
}

@media only screen and (orientation: portrait) and (max-width: 1279px) {
	.panel.admin .grid {
		grid-template-columns: repeat(2, minmax(0,1fr));
	}
}

@media only screen and (max-width: 959px) {
	.button, input[type="submit"], input[type="button"], .ms-options-wrap button {
		padding: 0.6em 1.05em;
	}
	input[type="text"],
	input[type="password"],
	input[type="email"],
	input[type="tel"],
	input[type="number"],
	textarea,
	select {
		padding: 0.6em;
	}
	.panel {
		padding: 1.7em 2.25em 1.5em;
	}
	.panel.interstitial {
		max-width: calc(100vw - 3.3em);
	}
	.panel .character {
		max-width: 180px;
	}
	.panel.admin .grid {
		grid-template-columns: repeat(2, minmax(0,1fr));
	}
	.panel.results .grid {
		margin-top: 3em;
		grid-gap: 2.4em 1.2em;
		grid-template-columns: repeat(2, 1fr);
		grid-template-areas:
		  "panel1 panel1"
		  "panel2 panel3"
		  "panel4 panel4";
	}
	.panel.results .button {
		margin: 0 0 1em;
	}
	.panel.results .card {
		padding: 2.5em 1.5em 1em;
	}
	.panel.results .card,
	.panel.results .card:nth-child(2) {
		transform: scale(1);
		border-width: 3px;
	}
	.panel.results .card:hover,
	.panel.results .card:nth-child(2):hover {
		transform: scale(1);
	}
	.panel.results .card::after {
		top: -3px;
		left: -3px;
		width: calc(100% + 6px);
		height: calc(100% + 6px);
	}
}

/* Tablet Portrait size to standard 960  */
@media only screen and (min-width: 768px) and (max-width: 959px) {
	.no-mob-all{
		display: none;
	}
	.mob-only-all {
		display: block !important;
	}
	.no-tab {
		display: none !important;
	}
	.tab-only {
		display: block !important;
	}
}

/* All Mobile Sizes  */
@media only screen and (max-width: 767px) {
	body {
		font-size: 15px;
	}
	.no-mob, .no-mob-all {
		display: none !important;
	}
	.mob-only, .mob-only-all {
		display: block !important;
	}
	.vAlign {
		transform: translateY(calc(-50% - 37px));
	}
	h1 {
		font-size: 2.6em;
	}
	h2 {
		font-size: 2em;
	}
	h3 {
		font-size: 1.6em;
	}
	h4 {
		font-size: 1.45em;
	}
	legend,
	h5 {
		font-size: 1.3em;
	}
	h6 {
		font-size: 1.2em;
	}
	.wrap {
		padding: 10px 0 55px;
	}
	.wrap.header {
		padding: 0 0 1em;
	}
	.wrap.footer {
		padding: 2em 0 1em;
	}
	#logo {
		padding-left: 1em;
	}
	#logo img {
		width: 60px;
	}
	#menu {
		margin: 0 15px;
	}
	#menu.progress.container {
		padding: 0;
	}
	#menuOverlay {
		height: calc(100vh - 74px);
	}
	.meter {
		height: 20px;
		border-radius: 18px;
		padding: 8px;
		margin-right: 15px;
	}
	.meter span:first-child {
		border-radius: 10px 0 0 10px;
	}
	.panel.interstitial {
		max-width: calc(100vw - 30px);
	}
	.clientGrid {
		gap: 1.5rem;
	}
	.clientGrid > li {
		flex: 0 0 calc(33.333% - 1rem);
	}
	ul.subNav {
		flex-direction: column !important;
		margin: 0 0 20px;
	}
		.subNav {
			display: none;
			height: auto;
			padding: 0;
			text-align: left;
		}
			.subNav li:first-child a {
				border-top: none;
			}
	
		#sideBar a#pull,
		#sideBar a#pull:hover,
		#sideBar a#pull:active {
			display: block;
			position: relative;
			height: 54px;
			line-height: 20px;
			color: #fff;
			background: none;
			margin-bottom: 0;
			text-decoration: none;
			border: 2px solid #fbb040;
			box-sizing: border-box;
			padding: 15px 10px;
		}
			#sideBar a#pull.open {
				color: #fff;
				border: 2px solid #fff;
			}
			#sideBar a#pull:after {
				font-size: 1.2em;
				font-weight: 500;
				content: "In this section";
				display: block;
				position: relative;
				left: 0;
				top: 1px;
				background: url(../images/icons/arrow-down.svg) right center no-repeat;
				background-size: 16px 8px;
			}
			#sideBar a#pull.open:after {
				background: url(../images/icons/arrow-up.svg) right center no-repeat;
				background-size: 16px 8px;
			}
		.subNav:after {
			display: none;
		}
		ul.subNav li a{
			font-size: 1em;
			padding-top: 9px;
			padding-left: 0;
			padding-bottom: 10px;
		}
		ul.subNav li a:after {
			margin-right: -16px;
		}
		ul.subNav li a.selected {
			border-right: none;
		}
		ul.subNav li a.selected:after {
			transform: rotate(90deg);
		}
	.panel.admin .grid {
		grid-template-columns: repeat(2, minmax(0,1fr));
		grid-column-gap: 1em;
		grid-row-gap: 2em;
	}
}

/* Mobile Landscape Size to Tablet Portrait  */
@media only screen and (min-width: 480px) and (max-width: 767px) {
	.panel.interstitial {
		align-items: flex-end;
	}
	.panel .character {
		max-width: 120px;
	}
}

/* Mobile Portrait Size to Mobile Landscape Size  */
@media only screen and (max-width: 479px) {
	.wrap:not(.footer) .twoCol {
		column-count: 1;
		column-gap: 0;
	}

	.no-mob-p {
		display: none !important;
	}

	.mob-only-p {
		display: block;
	}

	.grid {
		display: block;
	}
	.clientGrid {
		gap: 1rem;
	}
	.clientGrid > li {
		flex: 0 0 calc(50% - 0.5rem);
	}
	.panel {
		padding: 1.3em 1.5em 1em;
	}

		.panel.interstitial {
			flex-direction: column;
			padding-top: 0.5em;
		}
		.panel.results .grid {
			margin-top: 2em;
			display: grid;
			grid-gap: 0;
			grid-auto-rows: minmax(100px, auto);
			grid-template-columns: 1fr;
			grid-template-areas:
			  "panel1"
			  "panel4"
			  "panel2"
			  "panel3";
		}
		.panel.results .card {
			margin-top: 1.5em;
			margin-bottom: 1em;
		}
		.panel.results .button {
			margin: 1em 0 2em;
		}
		/*.panel.results {
			flex-direction: column;
		}*/

		.panel .character {
			max-width: 160px;
		}

		.panel .speech {
			width: 100%;
			border-radius: 2em;
			padding: 1.3em 1.5em 1.9em;
			transform-origin: bottom center;
			margin: 0;
		}

	.speech:after {
		content: '';
		position: absolute;
		top: auto;
		right: auto;
		bottom: 0;
		left: 50%;
		width: 0;
		height: 0;
		border: 1.5em solid transparent;
		border-top-color: #222e38;
		border-bottom: none;
		margin-bottom: -1.5em;
		margin-left: -1.5em;
	}

	.speech a.button {
		margin-top: 0.3em;
	}

	@keyframes speechin {
		from {
			transform: translateY(20px) rotateX(-45deg) scale(0.9);
			opacity: 0;
		}

		to {
			transform: translateY(0) rotateX(0) scale(1);
			opacity: 1;
		}
	}

	.carouselHolder {
		width: 225px;
		height: 315px;
		margin: 20px auto 30px;
		perspective: 1100px;
	}
	.carousel {
		transform: translateZ(-300px);
	}
	.carousel__cell {
		width: 225px;
		height: 315px;
	}
	.carousel__cell:nth-child(1) { transform: rotateY( 0deg) translateZ(300px); }
	.carousel__cell:nth-child(2) { transform: rotateY( 120deg) translateZ(300px); }
	.carousel__cell:nth-child(3) { transform: rotateY( 240deg) translateZ(300px); }
	
	.resultsTxt {
		width: 100%;
		margin-bottom: 10px;
	}
}
