/*!
Theme Name: Bonitasinsurance
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: bonitasinsurance
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Bonitasinsurance is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/


/* Basic reset */
/** {*/
/*    box-sizing: border-box;*/
/*    margin: 0;*/
/*    padding: 0;*/
/*}*/

html, body {
	height: 100vh;
	margin: 0;
}

body {
	font-family: Arial, Helvetica, sans-serif;
	background-image: url("assets/img/bg.png");
	background-size: cover;
	color: #222;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
}

.main-container {
	display: flex;
	flex-direction: column;
	height: 100vh; /* full viewport height */
	width: 480px;
}

.header, .footer {
	/*background: #ccc;*/
	/*padding: 1rem;*/
	flex-shrink: 0; /* Prevent shrinking */
	text-align: center;
}


.header {
	/*position: fixed;*/
	top: 0;
	left: 0;
	width: 100%;
}

.header img,
.footer img{
	width: 80%;
}

.footer {
	/*position: fixed;*/
	bottom: 0;
	left: 0;
	width: 100%;
	margin-top: 10px;
}


span.outer-moves,
span#timer{
	font-weight: 800;
}

span.outer-moves{
	color: #a99d89;
}


span#timer {
	color: #323436;
}

/* wrapper */
.wrap {

	display: flex;
	align-items: center;
	flex: 1; /* take all remaining space */
	/*margin-top: 60px; !* Adjust based on header height *!*/
	/*margin-bottom: 40px; !* Adjust based on footer height *!*/
	overflow: auto; /* Scroll if content exceeds */
	/*height: 100%;*/
	/*width: 380px; */
	/*margin: 24px auto;*/
	text-align: center;

	/*padding: 30px;*/
}

.inner-wrap{
	background-color: white;
	border-radius: 10px;
	padding: 30px;
}

/* header */
h1 {
	margin-bottom: 14px;
	font-size: 20px;
}

/* score panel */
.score-panel {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.score-panel-stars {
	margin: auto;
}

.score-panel .stars {
	list-style: none;
	display: flex;
	gap: 6px;
	padding-left: 0;
}
.score-panel .stars li i {
	color: #f8be19;
	font-size: 25px;
}

/* restart button */
#restartClick {
	background: transparent;
	border: 1px solid #ddd;
	padding: 6px 8px;
	cursor: pointer;
	border-radius: 4px;
	display: none;
}

/* Deck: 2 columns x 3 rows */
.deck {
	display: grid;
	grid-template-columns: repeat(2, 200px);
	grid-template-rows: repeat(2, 167px);
	gap: 15px;
	justify-content: center;
	list-style: none;
	padding: 0;
}

/* Card */
.card {
	width: 200px;
	height: 167px;
	border-radius: 10px;
	perspective: 900px;
	cursor: pointer;
	border: none !important;
}

/* inner part does the flip */
.card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	transition: transform 0.25s ease;
	border-radius: 10px;
}

/* when open, rotate to show back */
.card.open .card-inner {
	transform: rotateY(180deg);
}

/* front and back faces */
.card-front,
.card-back {
	position: absolute;
	inset: 0;
	border-radius: 10px;
	backface-visibility: hidden;
}

/* closed look (front) */
.card-front {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* back shows image */
.card-back {
	transform: rotateY(180deg);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

/* matched style */
.card.match .card-inner {
	transform: rotateY(180deg);
}

/* modal */
.modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.6);
}

.modal .modal-content {
	background: white;
	color: #222;
	padding: 18px;
	border-radius: 8px;
	width: 320px;
}

/*.modal button,*/
/*.btn-plans{*/
/*    margin-top: 12px;*/
/*    padding: 8px 12px;*/
/*    border: none;*/
/*    border-radius: 6px;*/
/*    cursor: pointer;*/
/*    text-transform: uppercase;*/
/*    font-weight: 800;*/
/*    width: 100%;*/
/*}*/


.btn{
	font-weight: 800;
	width: 100%;
}

#outer-welcome,
#outer-welcome .inner-wrap{
	background-color: #ba1f39;
}

.btn-warning{
	background-color: #f8be19;
	border-color: #f8be19;
	color: black;
}

.p-plans{
	margin-top: 20px;
}

.p-plans a{
	text-decoration: none;
}


.modal button {
	background: #323436;
	color: white;
}

h2#modal-heading {
	text-transform: uppercase;
	font-weight: 800;
	white-space: pre-line;
	margin-bottom: 10px;
}

/* small: keep stable on tiny screens */
@media (max-width: 420px) {

	.inner-wrap {
		padding: 15px;
	}

	.main-container {
		width: 300px;
	}

	.deck {
		grid-template-columns: repeat(2, 130px);
		grid-template-rows: repeat(2, 111px);
		gap: 10px;
	}
	.card {
		width: 130px;
		height: 111px;
	}
	.wrap {
		/*width: 320px;*/
	}
}

#image-benefit .card-front {
	background-image: url("assets/img/benefit-image.png");
	background-color: #323436;
	background-size: contain; /* scale to fit */
	background-repeat: no-repeat; /* prevent tiling */
	background-position: center; /* center horizontally & vertically */
}

#benefit .card-front {
	background-image: url("assets/img/benefit.png");
	background-color: #ba1f39;
	background-size: contain; /* scale to fit */
	background-repeat: no-repeat; /* prevent tiling */
	background-position: center; /* center horizontally & vertically */
}

.modal-content img,
#outer-welcome .header img{
	width: 50%;
}




