#game {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	overflow: hidden;
	user-select: none;
}

.gameOption, .kwizly-game-overlay .kwizly-inner {
	position: relative;
	background: #fff;
	color: #000;
	margin-bottom: 39px;
	padding: 30px 26px;
}
.gameOption .kwizly-heading {
	font-size: 24px;
	font-family: Georgia, 'Times New Roman', Times, serif;
	text-transform: uppercase;
	margin: 0 0 34px;
}
.gameOption.vs-friend .kwizly-input-container {
	margin: 0 0 26px;
}
.gameOption.vs-friend .kwizly-input-container input {
	border: 2px solid #002B49;
	border-radius: 0;
	height: 52px;
	text-align: center;
	color: #002B49;
	font-size: 18px;
	display: block;
	background: transparent;
	width: 100%;
}
.gameOption.vs-friend .kwizly-input-container input::placeholder {
	color: #002B49;
	opacity: 1;
}
.gameOption.vs-friend .kwizly-code-area {
	padding: 26px 26px 22px;
	margin: 38px 0 0;
	background: #e5e9ec;
}
.gameOption.vs-friend .kwizly-code-area .kwizly-intro {
	font-family: Georgia, 'Times New Roman', Times, serif;
	text-transform: uppercase;
	margin: 0;
	font-size: 14px;
}
.gameOption.vs-friend .kwizly-code-area #playerCode {
	font-size: 24px;
	letter-spacing: .06em;
	font-weight: bold;
	margin: 15px 0 4px;
	text-transform: uppercase;
}
.gameOption.vs-friend .kwizly-code-area .kwizly-copy {
	font-size: 12px;
	margin: 0 0 20px;
	text-decoration: underline;
	cursor: pointer;
}
.gameOption.vs-friend .kwizly-code-area .kwizly-text {
	font-size: 14px;
}

#sendTapBtn, #sendTapBtn::after {
	box-sizing: border-box;
    position: fixed;
    bottom: -200px;
    left: 50%;
    margin: 0 0 0 -52px;
    border: 5px solid #fff;
    width: 104px !important;
	height: 104px !important;
    border-radius: 50% !important;
	padding: 0 0 .15em !important;
    cursor: pointer;
	user-select: none;
	color: #fff !important;
	text-transform: uppercase !important;
	font-size: 22px !important;
	line-height: 25px !important;
}
#sendTapBtn::after {
	content: '';
	background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7);
	animation: pulse-tap-btn infinite 1s;
}
#sendTapBtn.active, #sendTapBtn.active::after {
    bottom: 48px;
}

@keyframes pulse-tap-btn {
	0% {
		opacity: 1;
		transform: scale(1);
	}
	100% {
		opacity: 0;
		transform: scale(1.29);
	}
}

#crackerArea {
    text-align: center;
}

#crackerArea::before {
    content: "";
    position: absolute;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='2' viewBox='0 0 32 2'%3E%3Cpath d='M0 1h32' fill='none' stroke='%23fff' stroke-width='2' stroke-dasharray='16'/%3E%3C/svg%3E") repeat-x;
	height: 2px;
    top: 60vh;
    left: 0;
    right: 0;
    bottom: 40vh;
    pointer-events: none;
}

.in-game-message {
	font-family: Georgia, 'Times New Roman', Times, serif;
	background: #fff;
    position: fixed;
	left: 50%;
    top: 26px;
	height: 130px;
    width: 376px;
	max-width: 90%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 46px;
	font-weight: bold;
	color: #000;
	font-variant-numeric: lining-nums;
	opacity: 0;
	transition: opacity .2s;
}

.in-game-message.displayed {
	opacity: 1;
}

.in-game-message img {
	max-width: 80% !important;
}

.in-game-message::before {
	content: '';
	position: absolute;
	inset: 10px;
	border: 2px solid #D6C696;
}

#gameCountdown {
	top: auto;
	bottom: 35px;
    font-size: 84px;
	color: #8B1815;
}

#watchOut {
	top: 50%;
	margin-top: -65px;
}

.won #crackerArea::before {
    display: none;
}

#cracker {
    transition: margin-top 0.25s ease-in-out;
    position: relative;
}

#theirCracker {
    position: absolute;
    top: -88%;
}

#cracker.open {
    margin-top: 60vh;
}

#cracker.open #myCracker, #cracker.open #theirCracker {
    transition: all 0.25s ease-in-out;
}

#crackerWinner {
    /* centre in screen and rotate 10deg */
    position: fixed;
    top: 60%;
    left: 60%;
    transform-origin: center center;
    transform: translate(-50%, -50%) rotate(-10deg) scale(0);
    transition: all 0.25s ease-in-out;
}

.won #crackerWinner {
    transform: translate(-50%, -50%) rotate(-10deg) scale(1.7);
}

#crackerWinner img {
    max-width: 80%;
}

#cracker.open #myCracker {
    margin-top: 20vh;
    transform-origin: top center;
    transform: rotate(16deg);
}

#cracker.open #theirCracker {
    top: -100%;
    transform: rotate(-20deg);
    transform-origin: bottom center;
}

/* add a constant "shake" animation to the crackers margin/top position one way or the other repeat/loop */
#crackerShake.active {
    animation: shake 1s ease-in-out infinite alternate, wobble 0.8s ease-in-out infinite alternate;
}

/* add a more intense shake animation when score is 10 or -10 */
#crackerShake.active.shakeMore {
    animation: shakeMore 0.5s ease-in-out infinite alternate, wobbleMore 0.4s ease-in-out infinite alternate;
}

@keyframes shake {
    0% { margin-top: 0vh; }
    7% { margin-top: -0.5vh; }
    15% { margin-top: 1vh; }
    22% { margin-top: -1vh; }
    33% { margin-top: 0.5vh; }
    44% { margin-top: -1vh; }
    52% { margin-top: 1vh; }
    63% { margin-top: -0.5vh; }
    74% { margin-top: 0.5vh; }
    85% { margin-top: -0.5vh; }
    100% { margin-top: 0vh; }
}

@keyframes wobble {
    0% { margin-left: 0vh; }
    7% { margin-left: 0.5vh; }
    15% { margin-left: -0.25vh; }
    22% { margin-left: 0.25vh; }
    33% { margin-left: -0.5vh; }
    44% { margin-left: 0.5vh; }
    52% { margin-left: -0.25vh; }
    63% { margin-left: 0.25vh; }
    74% { margin-left: -0.5vh; }
    85% { margin-left: 0.25vh; }
    100% { margin-left: 0vh; }
}

@keyframes shakeMore {
    0% { margin-top: 0vh; }
    7% { margin-top: -1vh; }
    15% { margin-top: 2vh; }
    22% { margin-top: -2vh; }
    33% { margin-top: 1vh; }
    44% { margin-top: -2vh; }
    52% { margin-top: 2vh; }
    63% { margin-top: -1vh; }
    74% { margin-top: 1vh; }
    85% { margin-top: -1vh; }
    100% { margin-top: 0vh; }
}

@keyframes wobbleMore {
    0% { margin-left: 0vh; }
    7% { margin-left: 1vh; }
    15% { margin-left: -0.5vh; }
    22% { margin-left: 0.5vh; }
    33% { margin-left: -1vh; }
    44% { margin-left: 1vh; }
    52% { margin-left: -0.5vh; }
    63% { margin-left: 0.5vh; }
    74% { margin-left: -1vh; }
    85% { margin-left: 0.5vh; }
    100% { margin-left: 0vh; }
}

#cracker img {
    height: 70vh;
}

#crackerInGameMessage {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: none;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: rgba(0,0,0,.7);
}
#crackerInGameMessage.show {
	display: flex;
}