html {
	box-sizing: border-box;
}

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

html,
body {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}
	
body {
	background-color:#FADA69;
	background-image: url("../../_mm-pages/bg-big_pages/bg-big_pages.gif"); 
	background-repeat:no-repeat; 
	
	/*
	font-family: 'Permanent Marker', cursive;
	font-size: 16px;
	color: #993300;
	*/
		
}


.deck .card { font-size: 13; color: #faf8eb; }

.deck .card.show { font-size: 33px; }

.deck .card.match { font-size: 33px; }

.popup { /* font-family: 'Gloria Hallelujah', cursive; */ 
         font-family:"Comic Sans MS","Arial","Helvetica"; 
		 color: #faf8eb; }

.popup h2 { /* font-family: 'Permanent Marker', cursive; */
           font-family:"Comic Sans MS","Arial","Helvetica"; 
		   color: #faf8eb;  }

.popup .close { color: #faf8eb; }

.popup .close:hover { color: #faf8eb; }


#play-again { /* font-family: 'Gloria Hallelujah', cursive; */
             font-family:"Comic Sans MS","Arial","Helvetica"; 
             color: #faf8eb; font-size: 1.1rem;	}

/* ---------------- schriften - ende --------------- */
.container {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}



/*
 * Styles for the deck of cards
 */

.header 	{ text-align: left; }
 
.deck {
	width: 85%;
	background: #996600;
	padding: 1rem;
	border-radius: 12px;
	box-shadow: 8px 9px 26px 0 rgba(46, 61, 73, 0.5);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	align-items: center;
	margin: 0 0 3em;
}

.deck .card {
	/*
	height: 3.7rem;
	width: 3.7rem;
	*/
		
	height: 150px;
	width: 150px;
	margin: 0.1rem 0.1rem;
	background: #993300;
		
	border-radius: 0px; 
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 5px 2px 20px 0 rgba(46, 61, 73, 0.5);
	
	/*
	font-size: 13;
	color: #CA9864;
	*/
	
}

.deck .card .bild { /* visibility:hidden; */ opacity: 0.0;  } 

.deck .card.open .bild { /* visibility:hidden; */ opacity: 1.0;  } 
.deck .card.show .bild { /* visibility:hidden; */ opacity: 1.0;  } 
.deck .card.match .bild { /* visibility:hidden; */ opacity: 1.0;  } 

.deck .card.open {
	transform: rotateY(0);
	background: #CA9864
	cursor: default;
	animation-name: flipInY;
	-webkit-backface-visibility: visible !important;
	backface-visibility: visible !important;
	animation-duration: .75s;
}

.deck .card.match {
	cursor: default;
	background: #EBF6E1;
	animation-name: rubberBand;
	-webkit-backface-visibility: visible !important;
	backface-visibility: visible !important;
	animation-duration: .75s;
	/*
	font-size: 33px;
	*/
}

.deck .card.unmatched {
	animation-name: pulse;
	-webkit-backface-visibility: visible !important;
	backface-visibility: visible !important;
	animation-duration: .75s;
	background: #EBF6E1;
}

.deck .card.disabled {
	pointer-events: none;
	opacity: 0.9;
}


/*
 * Styles for the Score Panel
 */


.score-panel {
	text-align: left;
	margin-bottom: 10px;
}

.score-panel .stars {
	margin: 0;
	padding: 0;
	display: inline-block;
	margin: 0 5px 0 0;
}

.score-panel .stars li {
	list-style: none;
	display: inline-block;
}

.score-panel .restart {
	float: right;
	cursor: pointer;
}

.fa-star {
	color: #4a1511; /* stern farbe gelb */
}

.timer {
	display: inline-block;
	margin: 0 1rem;
}


/*
 * Styles for congratulations modal
 */


.overlay {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.7);
	transition: opacity 500ms;
	visibility: hidden;
	opacity: 0;
}

.overlay:target {
	visibility: visible;
	opacity: 1;
}
  
.popup {
	margin: 70px auto;
	padding: 20px;
	/*
	background: #EAC366;
	opacity: 0.5;
	*/
	border-radius: 5px;
	width: 85%;
	position: relative;
	transition: all 5s ease-in-out;
    text-align: center
	
	/*
	font-family: 'Gloria Hallelujah', cursive;
	*/

}
  
.popup h2 {
	margin-top: 0;
	
	/*
	color: #993300;
	font-family: 'Permanent Marker', cursive;
	*/
}

.popup .close {
	position: absolute;
	top: 20px;
	right: 30px;
	transition: all 200ms;
	font-size: 30px;
	font-weight: bold;
	text-decoration: none;
	
	*/
	color: #333;
	*/
}

.popup .close:hover {
	/*
	color: #E5F720;
	*/
}

.popup .content-1,
.content-2 {
	max-height: 30%;
	overflow: auto;
	text-align: center;
}

.show {
	visibility: visible !important;
	opacity: 100 !important;
}

#starRating li {
	display: inline-block;
}

#play-again {
	background-color: #141214;
	padding: 0.7rem 1rem;

	display: block;
	margin: 0 auto;
	width: 50%;
	
	border-radius: 5px;
	
	/*
	font-family: 'Gloria Hallelujah', cursive;
	color: #ffffff;
	font-size: 1.1rem;	
	*/
}

/* animations */
@keyframes flipInY {
	from {
		transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
		animation-timing-function: ease-in;
		opacity: 0;
	}

	40% {
		transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
		animation-timing-function: ease-in;
	}

	60% {
		transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
		opacity: 1;
	}

	80% {
		transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
	}

	to {
		transform: perspective(400px);
	}
}

@keyframes rubberBand {
	from {
		transform: scale3d(1, 1, 1);
	}

	30% {
		transform: scale3d(1.25, 0.75, 1);
	}

	40% {
		transform: scale3d(0.75, 1.25, 1);
	}

	50% {
		transform: scale3d(1.15, 0.85, 1);
	}

	65% {
		transform: scale3d(.95, 1.05, 1);
	}

	75% {
		transform: scale3d(1.05, .95, 1);
	}

	to {
		transform: scale3d(1, 1, 1);
	}
}

@keyframes pulse {
	from {
		transform: scale3d(1, 1, 1);
	}

	50% {
		transform: scale3d(1.2, 1.2, 1.2);
	}

	to {
		transform: scale3d(1, 1, 1);
	}
}


/****** Media queries
***************************/


@media (max-width: 320px) {
	.deck {
		width: 85%;
	}

	.deck .card {
		height: 4.7rem;
		width: 4.7rem;
	}
}


/* For Tablets and larger screens
****************/

@media (min-width: 768px) {
	.container {
		font-size: 22px;
	}

	.deck {
		width: 660px;
		height: 680px;
	}

	.deck .card {
		height: 150px;
		width: 150px;
	}

	.popup {
		width: 60%;
	}
}


/* ----- reihe_header --------- */ 
/*
#header  { float:left; padding-left:0px;  max-width:1100px; text-align:center; }
#sheriff-star { float:left; }  
#logo-cowboy { float:left; padding-top:20px; padding-left:10px; } 
#logo-cowboy_quer { float:left; padding-top:20px; padding-left:0px; padding-right:0px;} 
*/	

/* --------------------------- div_content ---------------------------- */

#div_content_wrapper { width: 100%; min-height:350px; margin:auto; padding-top:10px; /* padding-bottom:10px; */ }
#div_content { margin: 0 auto; /* margin-top:20px; */ /* margin-bottom:20px; */ width:1100px; height:auto; /*min-height:360px;*/ text-align: center; }


#div_content_left { /* background-color:#330000; */ float:left; padding-left: 20px; margin-left:0px; width:210px; height:auto; /*min-height:360px;*/ text-align:left; /* border:1px solid #cccccc; */ }
#div_content_right { float:left; width:700px; height:auto; /*min-height:360px;*/ margin-left:0px; padding:0px; padding-top:25px; padding-bottom:25px; text-align:left; /* border:1px solid #cccccc; */	}

#div_clearer { clear:both; position: relative; }		


