* {
  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%);
}
header {
   display: flex;
   justify-content: space-between;
   align-items: center;
	padding-top: 10px;
}

header h1 {
	color: #fff;
	font-size: 36px;
	font-weight: bold;
	background: #345a79;
	padding: 5px 10px;
}
header h1 span {
	background: url(texture_bloc.png) #fff;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	 -webkit-background-clip: text;
}

.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: 100%;
	margin-bottom: 20px;
}

@-webkit-keyframes matchAnim {
  0% {
    background: #bcffcc;
  }
  100% {
    background: white;
  }
}

@keyframes matchAnim {
  0% {
    background: #bcffcc;
  }
  100% {
    background: white;
  }
}
.card {
  float: left;
  width: 20%;
  height: 25%;
  padding: 5px;
  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;
}

@media (max-width: 800px) {
  .card {
    width: 25%;
    height: 16.666%;
  }
}
.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);
}
.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 {
  border: 1px solid black;
  -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;
}
@media (min-width: 801px) {
	.card .back img {
		max-width: 150px;
	}
}

@media (max-width: 800px) {
  .card .front {
    padding: 5px;
  }
  .card .back img {
  	max-width: 100%;
	}
}
.card .back {
  -webkit-transform: rotateX(0);
          transform: rotateX(0);
	background: url(texture_bloc.png) #355c7d;
	display: flex;
	align-items: center;
}

@media (max-width: 800px) {
  .card .back {
    padding: 10px;
  }
}
.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%;
}
.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);
	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;
}

#previous{
	background-color: #F29400;
	text-decoration: none;
	color: black;
	padding: 10px;
	width: 100%;
	margin-top: 5px;
	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 (max-width: 767px) {
	h1 {
		display: none;
	}
}
