/* ---------- GENERAL ---------- */

@font-face {
	font-family: "ComingSoon";
	src: url(../fonts/ComingSoon.ttf);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
	position: absolute;
	top:0;
	background: black;
	background-image: url(../img/wood_bg.jpg);
	background-size: cover;
	min-width: 100%;
	min-height: 100%;
}



/* ---------- LANDINGPAGE ---------- */

#landingpage-text {
	font-family: "ComingSoon";
	color: #ffffff;
	font-size: 4.2vw;
	text-align: center;
	margin-top: 19%;
}

#landingpage-button {
	display:table;
	background-color: #ffffff;
	font-family: "ComingSoon";
	font-size: 2.1vw;
	text-align: center;
	padding: 12px 50px;
	margin: 0 auto;
	margin-top: 8%;
	border: none;
	border-radius: 5px;
	box-shadow: 1px 1px 5px black;
}

#landingpage-button:hover {
	cursor: pointer; 
}

#landingpage-button:active {
	box-shadow: none;
}

#landingpage-button input {
	display: table-cell;
	color: #000000;
	text-decoration: none;
	vertical-align: middle;
	pointer-events: none;
}



/* ---------- GAME ---------- */

.wrap {
  position: absolute;
  height: 80%;
  width: 80%;
  min-height: 500px;
  top: 50%;
  margin-top: -25%;
  margin-left: 10vw;
  margin-right: 10vw;
}

.game {
  -moz-transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  -moz-perspective: 500px;
  -webkit-perspective: 500px;
          perspective: 500px;
  height: 100%;
}

.card {
  float: left;
  width: 12.5%;
  height: 10vw;
  padding: 5px;
  text-align: center;
  display: block;
  -moz-perspective: 500px;
  -webkit-perspective: 500px;
          perspective: 500px;
  position: relative;
  cursor: pointer;
  z-index: 50;
  -moz-tap-highlight-color: transparent;
  -webkit-tap-highlight-color: transparent;
}

.card .inside {
  border-radius: 3px;
  width: 100%;
  height: 100%;
  display: block;
  -moz-transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  -moz-transition: .4s ease-in-out;
  -webkit-transition: .4s ease-in-out;
  transition: .4s ease-in-out;
  background: white;
}

.card .inside.picked, .card .inside.matched {
  -moz-transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
}



.card .front, .card .back {
  -moz-backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 10px;
}

.card .front img, .card .back img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
  max-height: 100%;
}

.card .front {
  -moz-transform: rotateY(-180deg);
  -webkit-transform: rotateY(-180deg);
          transform: rotateY(-180deg);
    padding: 5px;
	background-color:#ffffff;
    z-index: 2;
    border-radius: 5px;
}

.card .matched .front{
	background-color: rgba(50, 215, 60, 0.2);
	-webkit-transition: background 0.5s;
	-moz-transition: background 0.5s;
	transition: background 0.5s;
}

.card .back {
	z-index:1;
}

#bild {
	pointer-events: none;
}

#bg-image {
 	width: 100%;
 	height: 100%;
	background-image: url(../img/card_bg.png);
	background-size: contain;
}

@media (max-width: 800px) {
	.wrap {
		margin-top: 10vh;
		top: 0;
	}
	
	.card {
		width: 25%;
		height: 19vw;
	}
	
	.card .front {
		padding: 5px;
	}
	
	.card .back {
		padding: 8px;
	}
}

@media (max-width: 480px) {
  .card {
    width: 50%;
    height: 37vw;
  }
}



/* ---------- END OF GAME ---------- */

.modal-overlay {
  display: none;
  position: fixed;
  background-image: url(../img/wood_bg.jpg);
  background-size: cover;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.modal {
  display: none;
  position: relative;
  padding: 30px 10px;
}

