*, *::before, *::after {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: unset;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;

}

.wrap {
    width: 100%;
    min-height: 600px;
    height: 100%;
    background-color: antiquewhite;
    perspective: 2000px;
    display: grid;
    overflow: hidden;
    place-items: center;
    background:  linear-gradient(135deg, #8ACCB9, #038C67);
}

.wrap .base {
	transform-style:  preserve-3d;
	width:  100%;
	height:  100%;
	display: grid;
	place-items:  center;
	position: relative;
	overflow: hidden;
}

.wrap .base .memory-container {
	width: 500px;
	height: 500px;
	display: grid;
	background-color: rgba(0,0,0,0.3);
	grid-template-columns: repeat(4, 1fr);
	border-radius: 5px;
	transform-style:  preserve-3d;
	transform: rotateY(90deg);
	transition: .5s .3s ease-in-out;
	opacity: 0;
}


.wrap .base .memory-container .cards {
	background-color: rgba(255,255,255,0.6);
	width: calc(100% - 20px);
	height:  calc(100% - 20px);
	position: relative;
	place-self:  center;
	cursor: pointer;
	overflow: hidden;
	transition:  50ms ease-in-out;
	box-shadow: 4px 4px 4px rgba(255,255,255,0.5) inset,
				-4px -4px 4px rgba(0,0,0,0.4) inset,
				2px 2px 2px rgba(0,0,0,0.4);
	border-radius: 5px;
}

.wrap .base .memory-container .cards:not([data-enabled="true"]):active {
	transform: scale(0.95);
}

.wrap .base .memory-container .cards[data-enabled="true"] > .card-content	{
	opacity:  1;
}

.wrap .base .memory-container .cards .card-content {
	position: absolute;
	width: 100%;
	height:  100%;
	background-color: #D186A3;
	opacity: 0;
	transition: 200ms ease-in-out;
	box-shadow: inherit;
}

.wrap .base .memory-container .cards:not([data-enabled="true"]):hover {
	background-color: #ddd;
	box-shadow: 4px 4px 4px rgba(255,255,255,1) inset,
				-4px -4px 4px rgba(0,0,0,0.4) inset,
				2px 2px 2px rgba(0,0,0,0.4);
}

.wrap .base .score-board {
	position:  absolute;
	background-color: rgba(255,255,255,0.2);
	border-radius: 5px;
	box-shadow: 0 0 0 3px rgba(0,0,0,0.5);
	min-width:  150px;
	height: auto;
	padding:  10px;
	top: 30%;
	left: 30px;
	transform:  translateY(-50%) translateX(-300px);
	transition: .3s .7s ease-in-out;
	opacity: 0;
}

.wrap .base .score-board p {
	font-size: 14px;
	color:  #363636;
	font-weight: 600;
	width: 100%;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.4),
				 -1px -1px 1px rgba(255,255,255,0.5);
}

.wrap .base .score-board p span#score {
	color:  #333;
	float: right;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.3),
				 -1px -1px 1px rgba(255,255,255,0.4);
}

.wrap .base .score-board p span#correct {
	color:  #073703;
	float: right;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.3),
				 -1px -1px 1px rgba(255,255,255,0.4);
}

.wrap .base .score-board p span#wrong {
	color:  #B10000;
	float: right;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.3),
				 -1px -1px 1px rgba(255,255,255,0.4);
}

.wrap .base .restart {
	position:  absolute;
	padding:  10px 30px;
	outline: none;
	border:  none;
	background: linear-gradient(to top, #007A4F, #44B58A);
	background-color: transparent;
	color: #363636;
	font-size: 16px;
	font-weight: 600;
	border-radius: 5px;
	bottom:  50px;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	transition: all .2s ease;
	cursor: pointer;
	box-shadow: 2px 2px 4px rgba(255,255,255,0.5) inset,
				-2px -2px 4px rgba(0,0,0,0.4) inset,
				2px 2px 2px rgba(0,0,0,0.4);
	text-shadow: 1px 1px 1px rgba(0,0,0,0.3),
				 -1px -1px 1px rgba(255,255,255,0.6);
	transition: .3s .5s ease-in-out;
	opacity: 0;
}

.wrap .base .restart:hover {
	background: linear-gradient(#44B58A, #44B58A);
}

.wrap .base .start-game {
	position: absolute;
	width: auto;
	height: auto;
	top:  50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: rgba(255,255,255,0.3);
	border-radius: 10px;
	padding: 0px;
	box-shadow: 2px 2px 5px 0px rgba(255,255,255,0.5) inset,
				-2px -2px 5px 0px rgba(0,0,0,0.6) inset,
				2px 2px 5px 0px rgba(0,0,0,0.5);
	transition: .3s linear forwards;
	z-index: -1;
}

.wrap .base .start-game::before {
	width: 150%;
	height: 150%;
	position: absolute;
}

.wrap .base .start-game button {
	padding: 10px 30px;
	border:  none;
	outline: none;
	background:  linear-gradient(to right, #11E881, #0B9A56, #11E881);
	-webkit-text-fill-color: transparent;
	font-weight: 600;
	font-size: 35px;
	-webkit-background-clip:  text;
	background-clip:  text;
	text-transform: uppercase;
	-webkit-filter:  drop-shadow(-1px -1px 0px rgba(255,255,255,0.3));
	filter:  drop-shadow(-1px -1px 0px rgba(255,255,255,0.3));
	cursor: pointer;
	animation: back 4s ease-in-out infinite;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
} 

.wrap .base .wrap-fixed {
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.6);
	top:  0;
	left:  0;
	perspective: 1000px;
	transition: .3s ease;
	display: none;
	opacity: 0;
	animation-delay: 1450ms;
}

.wrap .base .wrap-fixed .notification {
	position: absolute;
	width:  300px;
	height: 300px;
	border-radius: 10%;
	background-color: #d2d2d2;
	box-shadow: 3px 4px 3px 0 #eee inset,
				-3px -3px 3px 0 rgba(0,0,0,0.5) inset,
				4px 4px 5px rgba(0,0,0,0.3);
	top:  calc(50% - 150px); 
	left:  calc(50% - 150px);
	z-index: 20;
	transform-style: preserve-3d;
	opacity: 0;
	display: none;
}

.wrap .base .wrap-fixed .notification::before {
	position: absolute;
	content: '';
	width:  calc(100% - 40px);
	height: 50%;
	background-color: #d1d9d1;
	background-image: linear-gradient(var(--i));
	border-radius: 30px;
	top:  20px; left:  50%;
	transform:  translateX(-50%);
	box-shadow: 4px 5px 5px 0 rgba(0,0,0,0.5) inset,
				2px 2px 4px rgba(255,255,255,0.7),
				-2px -2px 4px rgba(0,0,0,0.4);
}

#message {
	font-size: 25px;
	font-weight: 600;
	line-height: 1.5;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.4),
				 -1px -1px 1px rgba(255,255,255,0.8);
	color:  var(--color);
}

.wrap .base .wrap-fixed .notification .message {
	position: absolute;
	width:  calc(100% - 60px);
	height: calc(50% - 20px);
	top:  30px; left:  50%;
	translate: -50% 0%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	font-size: 17px;
}

.wrap .base .wrap-fixed .notification .message p {
	font-weight: 500;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.3),
				 -1px -1px 1px rgba(255,255,255,0.7);
}

.wrap .base .wrap-fixed .notification :is(.play, .reset),
.wrap .base .wrap-fixed .notification .reset::before,
.wrap .base .wrap-fixed .notification .play::before {
	padding: 0;
	width: 80px;
	height: 80px;
	position:  absolute;
	bottom:  30px;
	border-radius: 50%;
	background-color: #555;
	box-shadow: -2px -2px 2px rgba(0,0,0,0.3),
				2px 2px 2px rgba(255,255,255,0.9)
}

.wrap .base .wrap-fixed .notification :is(.play, .reset):active:before {
	scale: .95;
}
 
.wrap .base .wrap-fixed .notification .reset::before,
.wrap .base .wrap-fixed .notification .play::before {
	--bg: tomato;
	content: 'Reset';
	width:  calc(100% - 8px);
	height: calc(100% - 8px);
	background-color: var(--bg);
	display: grid;
	place-content:  center;
	top:  4px;
	left:  4px;
	cursor: pointer;
	font-size: 18px;
	font-weight: 500;
	color: #db371a;
	color:  #333;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.4),
				 -1px -1px 1px rgba(255,255,255,0.6);	
					/*
				 .5px .5px 1px white inset,
				 .5px .5px 1px black inset;*/
	box-shadow: 4px 4px 5px rgba(255,255,255,0.6) inset,
				-2px -2px 5px rgba(0,0,0,0.4) inset;
	transition: 100ms ease-in-out;
}

.wrap .base .wrap-fixed .notification .play::before {
	content: 'Play';
	--bg: #11E881;
	background-color: var(--bg);
	color: #2fcc81;
	color:  #333;
}

.wrap .base .wrap-fixed .notification .play {
	right:  30px;
}

.wrap .base .wrap-fixed .notification .reset {
	left:  30px;
}

.start {
	transform: rotateY(0deg)!important;
	opacity: 1!important;
}

.score-start {
	transform:  translateY(-50%) translateX(0px)!important;
	opacity: 1!important;
}

.restart-start {
	transform:  translate(-50%, 0)!important;
	opacity: 1!important;
}

.disappear {
	animation: disappears .3s linear forwards;
}

.notification-disappear {
	opacity: 1!important;
	animation: play  500ms 250ms linear forwards,
			   trans 200ms 700ms linear forwards!important;
	display: unset!important;
}

.notification-appear {
	animation: result 300ms 200ms linear forwards!important;
	display: unset!important;
}

.notification-disappear-2 {
	opacity: 1!important;
	animation: duck 500ms 200ms linear forwards,
			   jump-up 500ms 450ms linear forwards!important;
	display: unset!important;
}

.fixed-opaque {
	animation:  opacity 500ms linear forwards!important;
	animation-delay: 0ms!important;
	display: unset!important;
}

.fixed-transparent {
	display: unset!important;
	animation:  opacity-reverse 500ms 950ms linear forwards!important;
}

@keyframes back {
	0% {
		background-position: 0% 0%;
	}
	25% {
		background-position: calc(100% * 1000) 100%;
	}
	50%{
		background-position: 0% 0%;
	}
	75% {
		background-position: calc(-100% * 1000)  100%;
	}
	100% {
		background-position: 0% 0%;
	}
}

@keyframes disappears {
	100% {
		transform: translate(-50%, -50%) rotateY(90deg);
		opacity: 0;
	}
}

@keyframes result {
	0% {
		opacity: 1;
		scale: 0; 
		translate: 0 0;
	}
	50% {
		opacity: 1;
		scale:  0.5;
		translate:  0 -400px;
	}
	100%{
		opacity: 1;
		scale:  1;
		translate: 0 0;
	}
}

@keyframes play {
	0% {
		transform-origin: top right;
		rotate: 0deg;
	}

	50% {
		transform-origin: top right;
		rotate: -45deg;
	}

	100% {
		transform-origin: top right;
		rotate: -35deg;
	}
}

@keyframes trans {
	100% {
		top: 100%;
	}
}

@keyframes duck {
	0% {
		transform-origin: bottom left;
		scale: 1 1;
	}
	50% {
		transform-origin: bottom left;
		scale: 1 0.5;
	}
	100% {
		transform-origin: bottom left;
		scale: 1 1;
	}
}

@keyframes jump-up {
	100% {
		top: -100%;
	}
}

@keyframes opacity-reverse {
	0% {
		opacity:  1;
	}

	100% {
		opacity:  0;
	}
}

@keyframes opacity {
    100% {
        opacity: 1;
    }
}