* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  	min-height: 100%;
  	font-family: "Titillium Web", sans-serif;
	/*background: radial-gradient(ellipse at center, #adbf41 20%, #328a26 80%);*/
}
body > header {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	align-items: center;
	background: #fff;
	background-repeat: no-repeat;
	background-position: bottom;
	box-shadow: 3px 3px 3px rgba(0,0,0,0.3);
	z-index: 200;
	position: relative;
	width: 100vw;
    padding: 5px 0;
}
header a{
	
}
.title-container{
    height: 20vw;
	padding-top: 2vh;
}

.title-container h1{
	font-size: 7vw;
	    line-height: 5vh;
}



#showCount {
    color: white;
    position: absolute;
    top: 12vh;
    left: 0;
    right: 0;
    font-size: 1.7vh;
	padding: 5px;
    z-index: 1;
	border: 2px solid white;
    width: fit-content;
    margin: 0 auto;
}

.logo_ave {
   max-width: 200px;
   padding-left: 20px;
}

.fb-share-button {
   padding-right: 20px;
}
.wrap {
  position: relative;
  height: 100%;
	max-width: 1200px;
	margin: auto;
	text-align: center;
}

.game {
  	-webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
 	 -webkit-perspective: 500px;
          perspective: 500px;
  	min-height: 100%;
  	height: 120%;
	padding: 10vw 2vw 0 2vw;
	margin: 0 auto 0 auto;
	background: url(dark-geometric.png) cadetblue;

    
}

@-webkit-keyframes matchAnim {
  0% {
    background: #bcffcc;
  }
  100% {
    background: white;
  }
}

@keyframes matchAnim {
  0% {
    background: #bcffcc;
  }
  100% {
    background: white;
  }
}
.card {
  float: left;
  width: 25%;
  height: 18vh;
  padding: 2vw;
  text-align: center;
  display: block;
  -webkit-perspective: 500px;
          perspective: 500px;
  position: relative;
  cursor: pointer;
  z-index: 50;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	min-height: 100px;
	cursor: pointer;
}


.card .inside {
  width: 100%;
  height: 100%;
  display: block;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  transition: .4s ease-in-out;
}
.card .inside.picked, .card .inside.matched {
  -webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
}
.picked{
	border-radius: 5px;
    box-shadow: 0px 3px 10px #000;
}
.card .inside.matched {
  -webkit-animation: 1s matchAnim ease-in-out;
          animation: 1s matchAnim ease-in-out;
  -webkit-animation-delay: .4s;
          animation-delay: .4s;
}
.card .front, .card .back {
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  border-radius: 5px;
}
.card .front img, .card .back img {
  display: block;
  margin: 0 auto;
  max-height: 100%;
}
.card .front {
  -webkit-transform: rotateY(-180deg);
          transform: rotateY(-180deg);
	background: #f8b195;
	display: flex;
    align-items: center;
	background-size: cover !important;
	background-position: center center !important;
}
.card .front img {
	visibility: hidden;
}

	.card .back img {
		max-width: 150px;
	}



  .card .front {
    padding: 5px;
  }
  .card .back img {
  	max-width: 100%;
	}

.card .back {
  -webkit-transform: rotateX(0);
          transform: rotateX(0);
	box-shadow: 0px 3px 5px rgba(0,0,0,0.5);
	background: url(texture_bloc.png) cadetblue;
	display: flex;
	align-items: center;
}


  .card .back {
    padding: 2vw;
  }

.card .front {
	display: flex;
    align-items: center;
}
.modal-overlay {
  display: none;
  background: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}
.modal {
	overflow-y: auto;
}
.modal-info {
	overflow: visible;
}
.modal-info .fa-times-circle {
	position: absolute;
	top: -15px;
	right: -15px;
	z-index: 1000;
	color: #fff;
	font-size: 30px;
	cursor: pointer;
}
.modal, .modal-info {
  display: none;
  position: relative;
  width: 500px;
  max-height: 90%;
  max-width: 90%;
  min-height: 380px;
  margin: 0 auto;
  background: #355c7d;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  padding: 30px 10px;
  /*box-shadow: 0px 0px 20px 10px rgba(255,255,255,0.2);*/
  box-shadow: 0px 0px 100vw 50vw rgba(255,255,255,0.5);
	color: #fff;
	
}
.modal ul {
	margin-top: 10px;
}
.modal ul li a {
	color: #e3a334;
    font-family: 'Titillium Web', sans-serif;
    text-decoration: none;
}
.description-container {
	padding: 10px 20px;
	font-family: 'Titillium Web', sans-serif;
	color: #fff;
}
.description-container .description-inner {
	border-top: 1px solid #355c7d;
	padding-top: 10px;
}
.description-container .description-inner p {
	padding-bottom: 10px;
}
.divers ul li {
	padding-bottom: 10px;
}
.btn-container a .fa, .divers ul a .fa {
	transition: 0.5s;
}
.btn-container a:hover .fa, .divers ul a:hover .fa {
	padding-left: 5px;
}
.modal-info {
	padding: 0;
}
.btn-container {
	padding: 5px 20px 10px 20px;
	color: #fff;
}
.btn-container a {
	color: #e3a334;
	font-family: 'Titillium Web', sans-serif;
	text-decoration: none;
}
.modal-info img {
	max-width: 100%;
}
.modal h2 {
	font-family: 'Titillium Web', sans-serif;
	font-size: 24px;
	padding-bottom: 20px;
	font-weight: 700;
	color: #fff;
}
.modal-info h2 {
	font-family: 'Titillium Web', sans-serif;
	font-size: 18px;
	position: absolute;
	bottom: 0px;
	padding: 10px 20px;
	font-weight: 700;
	z-index: 10;
	color: #fff;
}
.modal-info h2::before {
	content: "";
	width: 300%;
	height: 200%;
	position: absolute;
	z-index: -1;
	left: -2px;
	transform: rotate(-2deg);
	top: -25px;	
	background: #355c7d;

}
.modal-info .titleImg-container {
	position: relative;
	overflow: hidden;
}

.modal .restart {
	font-family: "Titillium Web", sans-serif;
	margin: 10px auto;
	padding: 0px 30px;
	display: block;
	font-size: 18px;
	border: none;
	background: #e3a334;
	border-radius: 5px;
	color: #355c7d;
	cursor: pointer;
}
.modal .restart:hover {
  background: linear-gradient(#222, black);
}
.modal .message {
  text-align: center;
}
.modal .message a {
  text-decoration: none;
  color: #28afe6;
  font-weight: bold;
}
.modal .message a:hover {
  color: #56c0eb;
  border-bottom: 1px dotted #56c0eb;
}
.modal .share-text {
  text-align: center;
  margin: 10px auto;
}
.modal .social {
  margin: 20px auto;
  text-align: center;
}
.modal .social li {
  display: inline-block;
  height: 50px;
  width: 50px;
  margin-right: 10px;
}
.modal .social li:last-child {
  margin-right: 0;
}
.modal .social li a {
  display: block;
  line-height: 50px;
  font-size: 20px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}
.modal .social li a.facebook {
  background: #3b5998;
}
.modal .social li a.facebook:hover {
  background: #4c70ba;
}
.modal .social li a.google {
  background: #D34836;
}
.modal .social li a.google:hover {
  background: #dc6e60;
}
.modal .social li a.twitter {
  background: #4099FF;
}
.modal .social li a.twitter:hover {
  background: #73b4ff;
}

.winner-scores-container {
    display: flex;
    flex-flow: wrap;
	width: 40%;
    margin: 0 auto;
    height: 100%;
}

.scores{
	width: 50%;
}
#previous{
	background-color: #F29400;
	padding: 10px;
	width: 100%;
	margin: 0;
}
#previous-link a{
	text-decoration: none;
	color: black;
	font-size: 1.5em;
}

footer {
  height: 20px;
  position: absolute;
  bottom: 0;
  width: 100%;
  z-index: 0;
}
footer .disclaimer {
  line-height: 20px;
  font-size: 12px;
  color: #727272;
  text-align: center;
}
@media (min-width: 801px) {
	
	html, body{
		position: relative;
    	overflow-x: hidden;
        overflow-y: unset;
	}
	body > header {
		flex-wrap: nowrap;
	}
	.title-container {
		height: 10vh;
		padding-top: 1.5vh;
	}
	.title-container h1{
		font-size: 3em;
		line-height: 1em;
	}
	#showCount{
		font-size: 1.5em;
		padding: 10px;
	}

	.game {
		padding: 10vh 20vw 10vh 20vw;
	}
	.wrap {
		max-width: unset;
	}
	.card{
		width: 20%;
    	height: 24%;
    	padding: 1%;
	}
	.back:hover{
		box-shadow: 0px 10px 10px rgba(0,0,0,0.5);
		transition: 0.5s;
		background: url(texture_bloc.png) #6aaeb0;
	}
	.modal, .modal-info{
		 width: 700px;
		 box-shadow: 0px 0px 100vw 50vw rgba(255,255,255,0.5);
	}
	
}
