body {
	margin: 0;
	padding: 0;
	font-size: 100%;
	background-image: url('../images/sephora_bg.webp');
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	min-height: 100vh;
	position: relative;
}

* {
	box-sizing: border-box;
}
img {
	width: 100%;
	height: auto;
}

header {
    position: absolute;
    top: 50px;
    width: 95%;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
header img {
	max-width: 200px;
	width: 100%;
	height: auto;
}
header .newsletter {
	text-decoration: none;
}
header .newsletter svg {
    fill: #fff;
    width: 50px;
    height: auto;
    background: #000;
    border-radius: 10px;
    padding: 5px 10px;
    box-sizing: border-box;
}
/* WRAPPER CARD GAME */
.wrapper-game {
	min-height: 100vh;
	padding: 150px 20px 80px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.wrapper-game .container {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 80%;
	position: relative;
	z-index: 1;
}

.playgame  {
	text-align: center;
	display: block;
	max-width: 400px;
	width: 100%;
	margin: 50px auto 0;
}
.playgame  img {
	width: 100%;
	height: auto;
}

#playgame {
    background: #000;
    border-radius: 20px;
    padding: 20px 30px 20px 0;
		transition: all .5s;
}
#playgame:hover {
    background: #fff;
}
#playgame svg{
	fill: #fff;
	transition: all .5s;
}
#playgame:hover svg{
	fill: #000;
	transition: all .5s;
}

#card-game, #end-game {
	display: none;
} 

#card-game .container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: center;
    max-width: 50%;
}

#card-game .item-card {
	position: relative;
}


#card-game .item-card img {
	display: block;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    overflow: hidden;
    height: 38vh;
    width: auto;
    max-height: 500px;
    border-radius: 12%;
}

.item-card {
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.card-show, .card-back {
  backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

.show-front {
  transform: rotateY(0deg);
}

.show-back {
  transform: rotateY(180deg);
}

.card-back {
  transform: rotateY(180deg);
}


#card-game .item-card img.card-show {
	position: absolute;
	z-index: 5;
	top: 0;
	left: 0;
}

#end-game {
	position: relative;
}
#end-game::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
}
#replaygame {
    background: #000;
    border-radius: 20px;
    padding: 20px 30px;
		transition: all .5s;
}
#replaygame:hover {
    background: #fff;
}
#replaygame svg{
	fill: #fff;
	transition: all .5s;
}
#replaygame:hover svg{
	fill: #000;
	transition: all .5s;
}

#vienitrovarci {
	margin: 100px 0 40px 0;
	display: block;
}

.copy {
    font-weight: 900;
    font-family: sans-serif;
    text-align: center;
    margin-top: 10%;
}

@media (max-width: 1025px){
	#card-game .container {
		display: grid;
	    grid-template-columns: repeat(2, 1fr);
	    gap: 20px;
	    justify-items: center;
	    align-items: center;
	    max-width: 50%;
	}
	#card-game .item-card img {
		height: 25vh;
	}
}