/*----------------------------------  
Global Styles
------------------------------------*/
/***************************************
* FONTS
***************************************/
@font-face {
    font-family: 'acmeregular';
    src: url('../fonts/acme-regular-webfont.woff2') format('woff2'),
         url('../fonts/acme-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}
@font-face {
    font-family: 'alataregular';
    src: url('../fonts/alata-regular-webfont.woff2') format('woff2'),
         url('../fonts/alata-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}
@font-face {
    font-family: 'neulandgrotesk';
    src: url('../fonts/neulandgrotesk-condensedbold-webfont.woff2') format('woff2'),
         url('../fonts/neulandgrotesk-condensedbold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}
*,p,h1,h2,h4,h5,h6,span,input,a,div{
    font-family: 'neulandgrotesk' !important;
}
* {
	margin: 0;
	padding: 0;
}
.text-white {color: #fff;}
.text-black {color: #000000;}
.text-brown {color: #382209;}
.text-red {color: #D70826;}
.text-beige {color: #EAD8A3;}
.text-purple{color:#391450}


.bg-white {background: #fff;}
.bg-black {background: #000;}
.bg-brown {background: #382209;}
.bg-red {background: #D70826;}
.bg-beige {background:#EAD8A3;}
.bg-purple{background:#8364A0;}


.border-glow-pink{
	-webkit-box-shadow:0px 0px 7px 10px rgb(97, 55, 93);
	-moz-box-shadow: 0px 0px 7px 10px rgba(225,111,216,1);
	box-shadow: 0px 0px 7px 10px rgba(225,111,216,1);
	border-radius: 50px;
}

.bg-postit{
    background:url(../img/Post-it-Bienvenida.png) no-repeat;
    background-size: cover;
    background-position: top;
}

.popup {
    position: fixed !important;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 110vh;
    background: #00000090;
    z-index: 999;
}
.hidden {
    display:none;
}
/* border box fix */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

body {
	/* Background pattern from Subtle Patterns */
	background: url('../img/background.png') no-repeat;
	background-size: cover;
	font-family: "Open Sans", sans-serif;
	/*one Em roughly ten pixels (16 x 62.5% = 10)*/
	font-size: 62.5%;
	letter-spacing: 1.5px;
	margin: 0;
	text-align: center;
}

.container {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	margin-top: 4em;
}

ul > li {
	list-style: none;
}

.card,
.reset-btn {
	cursor: pointer;
}

.btn {
	border-radius: 1em;
	border: none;
	color: #fff;
	box-shadow: 5px 2px 20px 0 rgba(46, 61, 73, 0.5);
	margin-top: 1em;
	padding: 1em;
}

/*----------------------------------  
Header
------------------------------------*/

h1 {
	font-size: 5em;
	font-weight: 400;
}

h2 {
	font-size: 3em;
	font-weight: 600;
	padding-bottom: 0.5em;
}

p {
	font-size: 1.6em;
}

h3 {
	font-weight: 400;
}

/*----------------------------------  
Section - Score Panel
------------------------------------*/

.score-panel {
	font-size: 1.6em;
	padding: 1em;
}

.star-rating > li {
	display: inline-block;
	padding: 0.5em;
}

.moves-counter {
	padding: 0.5em;
}

.reset-btn {
	background: #D70826;
}

.timer-container {
	border-radius: 0.5em;
	margin: 0 0 1em;
	padding: 0.5em;
}

.timer {
	font-size: 1em;
}

/*----------------------------------  
Section - Modal
------------------------------------*/
/*
Help with the modal from
https://www.w3schools.com/howto/howto_css_modals.asp
*/

/* Modal (background) */
.modal {
	/*Hidden by default */
	display: none;
	position: fixed;
	z-index: 99;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	/* Fallback color */
	background-color: rgb(46, 61, 73);
	/* With opacity */
	background-color: rgba(46, 61, 73, 0.6);
}

/* Modal Content/Box */
.modal-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: #fff;
	/* 5% from the top and centered */
	margin: 5% auto;
	padding: 2em;
	border: 0.8em solid #fc4;
	width: 80%;
}

/* The Close Button */
.close {
	align-self: flex-end;
	color: #28e;
	font-size: 5em;
}

.close:hover,
.close:focus {
	color: #5cf;
	text-decoration: none;
	cursor: pointer;
}

/* Modal Image*/
.modal-img {
	display: inline-block;
	margin: 1em 0 1em;
	width: 20em;
}

p.stats {
	font-weight: 600;
}

p.stats:last-child {
	margin-bottom: 1em;
}

.play-again-btn {
	/*background: #28e;
	margin-bottom: 1em;*/
}

/*----------------------------------  
Deck of Cards
------------------------------------*/
/*Mobile first responsivness*/
.deck {
	/*background: linear-gradient(to bottom, #5cf, #28e);*/
	border-radius: 1.5em;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	align-items: center;
	height: 35em;
	margin-bottom: 6em;
	padding: 0.5em;
	width: 35em;
}

.deck,
.card {
	box-shadow: 5px 2px 20px 0 rgba(46, 61, 73, 0.5);
}

.card {
	background: #D70826;
	background: url(../img/Card-Back.png) no-repeat;
	background-size: cover;
	border-radius: 0.5em;
	height: 7em;
	width: 7em;
}

/*
To disable the color highlight if and img is clicked
https://stackoverflow.com/questions/21107439/disable-or-change-firefoxs-element-image-highlight-color
*/
img {
	user-select: none;
	width: 6em;
}

.deck img {
	visibility: hidden;
}

.deck .card.flip {
	background: #8364A0;
	border: none;
	cursor: default;
	transform: rotateY(360deg);
	transition: transform 0.3s linear;
	pointer-events: none;
	align-items: center;
}

.flip img {
	width: 100%;
	border-radius: 0.5em;
	background: #8364A0;
	visibility: visible;
}

.deck .card.match {
	background: #8364A0;
	visibility: visible;
	cursor: default;
	animation: pulse 1s;
	align-items: center;
}

.match img {
	background: #8364A0;
}

@keyframes pulse {
	0% {
		transform: scale(1);
	}
	80% {
		transform: scale(1.1);
	}
	100% {
		transform: scale(1);
	}
}

/*---------------------------------- 
Footer
------------------------------------*/

.footer {
	color: #666;
	margin-bottom: 2em;
}

.footer > p {
	font-size: 1em;
	padding: 1em;
}

.footer a:link,
.footer a:visited {
	color: #28e;
	text-decoration: none;
}

/*---------------------------------- 
Media Queries
------------------------------------*/

/*--Tablets-------------------------*/
@media screen and (min-width: 550px) {

	.deck  {
		height: 50em;
		padding: 2em;
		width: 50em;
	}

	.card {
		height: 10em;
		width: 10em;
	}

	.deck img {
		width: 9em;
	}

	.modal-content h2 {
		font-size: 4em;
	}

	.play-again-btn {
		font-size: 1.8em;
	}
}

/*---------------------------------- 
Desktops
------------------------------------*/
@media screen and (min-width: 800px) {
	
	h1 {
		font-size: 6em;
	}

	p {
		font-size: 2.3em;
	}

	.deck  {
		height: 70em;
		width: 70em;
	}

	.card {
		height: 15em;
		width: 15em;
	}

	.deck img {
		width: 14em;
	}

	.reset-btn {
		font-size: 0.8em;
	}

	.footer {
		font-size: 1.2em;
	}
	
	.modal-content h2 {
		font-size: 5em;
	}

	/* Modal Image*/
	.modal-img {
		width: 30em;
	}

	.play-again-btn {
		font-size: 2em;
	}
}