/* ist jetzt bei den formaten

html {
	box-sizing: border-box;
}

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

html,
body {
	width: 100%;
	height: 100%;

}*/

header span {
	/*background: #fff url("../img/bg.jpeg"); Jolanda - auskommentiert 
	font-family: 'Permanent Marker', cursive;
	font-size: 16px;
    font-family: 'Roboto Slab', serif; color:#e2001a; font-size:15pt; font-weight: 700; */
}

header span b {
	/*background: #fff url("../img/bg.jpeg"); Jolanda - auskommentiert 
	font-family: 'Permanent Marker', cursive;
	font-size: 16px;
    font-family: 'Roboto Slab', serif; color:#505050; font-size:25pt; font-weight: 700; */
}

.container {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
    text-align: center;
	padding: 0;
}

/*h1 {
	font-family: 'Roboto Slab', serif; font-size:35pt; font-weight: 700; line-height: 2em;
}*/

/*
 * Styles for the deck of cards
 */

.deck {
	width: 85%;
	/*background: #716F71; Felix - auskommentiert */
	padding: 1rem; /* abstand vorher padding: 1rem;  */
	border-radius: 4px;
	/*box-shadow: 8px 9px 26px 0 rgba(46, 61, 73, 0.5); Felix - auskommentiert */
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	align-items: center;
	margin: 0 0 3em; /* abstand vorher margin: 0 0 3em;  */
}

.deck .card {
	height: 3.7rem;
	width: 3.7rem;
	margin: 0.2rem 0.2rem; 
	background: #141214 url("../img/arsch_bg.jpeg");
	font-size: 0;
	color: #ffffff;
	border-radius: 5px;
	cursor: pointer;
	display: flex;
	justify-content: center;
	/*align-items: center;*/
	box-shadow: 2px 2px 2px 1px rgba(0,0,0,.4); /* box-shadow: 5px 2px 20px 0 rgba(46, 61, 73, 0.5); Jolanda - auskommentiert */
}

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

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

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

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

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

.arsch {
  display: inline-block;
}

li.open .arsch, li.match .arsch {
    background-repeat: no-repeat;
    background-size: contain;
    width: 300px; /*or your image's width*/
    height: 300px; /*or your image's height*/
    margin: 0;
    padding: 0;
}

.arsch1 {background-image: url("../img/arsch1.jpeg");}
.arsch2 {background-image: url("../img/arsch2.jpeg");}
.arsch3 {background-image: url("../img/arsch3.jpeg");}
.arsch4 {background-image: url("../img/arsch4.jpeg");}
.arsch5 {background-image: url("../img/arsch5.jpeg");}
.arsch6 {background-image: url("../img/arsch6.jpeg");}
.arsch7 {background-image: url("../img/arsch7.jpeg");}
.arsch8 {background-image: url("../img/arsch8.jpeg");}

/*.restart1 {background-image: url("../img/arsch1.jpeg");}  testversuch ob restartimage ersetzt werden kann*/

/*
 * Styles for the Score Panel
 */


.score-panel {
	text-align: left;
	margin-bottom: 10px;
    font-size:11pt; 
    text-align: center;
}

.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: #FFD700;
}

.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: 10% auto; /* VORHER margin: 70px auto;  */
	padding: 20px;
	background: #ffffff;
	border-radius: 5px;
	width: 400px; /*width: 85%; */ /*JOLANDA egal was ich hier eintrage bleibt es gleich breit*/
	position: relative;
	transition: all 5s ease-in-out;
	/*font-family: 'Roboto Slab', serif; font-family: 'Gloria Hallelujah', cursive;*/
    /*line-height: 1.2em;  JOLANDA eingefügt*/
	font-size: 0.6em;
}
  
.popup h1 {
	margin-top: 0;
	color: #333;
	/*font-family: 'Roboto Slab', serif; font-family: Tahoma, Arial, sans-serif;*/
    font-size:1.7em; /*JOLANDA eingefügt - funktioniert in dem gratulation-popup*/
}

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

.popup .close:hover {
	color: #E5F720; font-weight: 700; 
}

.popup .content-1,
.content-2 {
	max-height: 70%; /*VORHER 30*/
	overflow: auto;
	text-align: center;
	line-height: 1.4em;
      /*font-size:1em; JOLANDA eingefügt rot: #cd0a0a;*/
}

.popup .content-2 a {color:#505050; text-decoration:underline; }
.popup .content-2 a:hover    {color: #e2001a; text-decoration:underline;}

.popup b{ /*JOLANDA eingefügt - ganzer block*/
color:darkgreen; font-weight: 700; line-height: 1em; font-size:1.1em;/*  color: darkgreen #505050;   #E5F720; #e2001a;*/
    }
.popup a{ /*JOLANDA eingefügt - ganzer block*/
color:#fff; font-weight: 700; 
    }

.popup a:hover { color:#E5F720; text-decoration:none; } /*#00f800 underline color:#E5F720;*/

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

#starRating li {
	display: inline-block;
}

#play-again {
	background-color: #141214;
	padding: 0.7rem 1rem;
	font-size: 1.1rem;
	display: block;
	margin: 0 auto;
	width: 50%;
	font-family: 'Playfair Display', serif;
	/*font-family: 'Roboto Slab', serif; font-family: 'Gloria Hallelujah', cursive;*/
	color: #ffffff; /*schriftfarbe auf dem button*/
	border-radius: 7px; /*runde ecken*/
    cursor:pointer;
}

/* 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: 25px;
	}

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

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

	.popup {
		width: 60%;
	}
}

