html {
	box-sizing: border-box;
}


*,
*::before,
*::after {
    box-sizing: inherit;
}


html,
body {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	font-family: 'Holtwood One SC';
}

.container {
	display:  flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100%;
	width: 100%;
	background: #ffffff url('../images/geometry2.png'); /* Background pattern from Subtle Patterns */
}

/* header styles */
.game_title {
	width: 100%;
	height: auto;
	text-align: center;
}

.title_text {
	margin: 0;
	padding: 5px 0 0 0;
	color: #008FFF;
	font-style: italic;
	font-size: 1.8em;
	text-shadow: 2px 2px #000;
}


/* section progress styles */
.progress {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-content: center;
	width: 80%;
	height: 10%;
	max-width: 800px;
	padding: 10px 0 0;
	font-size: 0.8em;
}


/* card containers styles */
.dashboard {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	width: 95%;
	height: 70%;
	max-height: 1000px;
	max-width: 1000px;
}

.deck {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	width: 100%;
    height: 98%;
	padding: 5px;
	margin: 0 5px 5px;
	border-radius: 10px;
	box-shadow: 12px 15px 20px 0 rgba(46, 61, 73, 0.5);
	background: linear-gradient(160deg, #000 0%, #aa7ecd 100%);
}

/* Cards styles */
.card {
	display: inline-block;
	justify-content: center;
	align-items: center;
	height: 24.333333%;
	width: 24.333333%;
	padding: 0;
	border: 2px solid #302013;
	border-radius: 8px;
	background: #494942;
	text-align: center;
	font-size: 0; /*makes icon invisible*/
	list-style-type: none;
	transition-duration: 0.5s;
	cursor: pointer;
}


.open {
    transform: rotateY(-180deg);
    background: #1599ca;
    cursor: default;
    font-size: 23px;
}

.match {
	background-color: palegreen;
	transform: rotateY(-180deg);
	font-size: 23px;
	cursor: default;
}

.no_match {
	background-color: red; 
	font-size: 23px;
}

/* Stars styles */
.star {
	list-style-type: none;
	display: inline-block;
}

.stars {
	margin: 0;
	padding: 0;
}

/* Font awesome icon classes styles */
.fa-star {
	color: yellow;
}

.fa-refresh {
	color: green;
}

.fa-check-circle-o {
	color: lightgreen;
	justify-content: center;
	padding: 0 50%;
}

/* Button styles */
.button_appearence {
	padding: 0;
	border-radius: 1rem;
	width: 1rem;
	height: 1rem;
	background-color: #fae4e9;
	cursor: pointer;
}


/* Footer styles */
footer {
	width: 80%;
	height: auto;
	max-width: 800px;
	font-size: 0.7em;
	padding: 5px 0 0;
}

/* End game and Congratulation panel styles */
.hide_container {
	display: none;
}

.congrats_panel{
	background-color: #fae4e9;
	border: 2px groove #E9967A;
	border-radius: 10px;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	padding: 10px;
}

/* Media queries for the icons size across various devices screens */
@media screen and (min-height: 400px) {
	.open,
	.match,
	.no_match {
		font-size: 33px;
	}


@media screen and (min-height: 500px) {
	.open,
	.match,
	.no_match {
		font-size: 43px;
	}
} 	

@media screen and (min-height: 650px) {
	.open,
	.match,
	.no_match {
		font-size: 63px;
	}
} 	

@media screen and (min-height: 650px) {
	.open,
	.match,
	.no_match {
		font-size: 73px;
	}

@media screen and (min-height: 850px) {
	.open,
	.match,
	.no_match {
		font-size: 83px;
	}

@media screen and (max-height: 900px) and (max-width: 500px) {
	.open,
	.match,
	.no_match {
		font-size: 63px;
	}