html {
	height: 100%;
	text-align: center;
	background: #282828;
	font-size: 16px;
}

body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: #EEE;
	margin: 0;
	font-size: 2rem;
	flex: 1;
	min-height: 100vh;
}

.flip-clock {
	text-align: center;
	perspective: 400px;
	margin: 20px auto;
}

.flip-clock *,
.flip-clock *:before,
.flip-clock *:after {
	box-sizing: border-box;
}

.flip-clock__piece {
	display: inline-block;
	margin: 0 5px;
}

.card {
	display: block;
	position: relative;
	padding-bottom: 0.72em;
	font-size: 9vw;
	line-height: 0.95;
}

.card__top,
.card__bottom,
.card__back::before,
.card__back::after {
	display: block;
	height: 0.72em;
	color: #ccc;
	background: #222;
	padding: 0.25em 0.25em;
	border-radius: 0.15em 0.15em 0 0;
	transform-style: preserve-3d;
	width: 1.8em;
	transform: translateZ(0);
}

.card__bottom {
	color: #FFF;
	position: absolute;
	top: 50%;
	left: 0;
	border-top: solid 1px #000;
	background: #393939;
	border-radius: 0 0 0.15em 0.15em;
	pointer-events: none;
	overflow: hidden;
}

.card__bottom::after {
	display: block;
	margin-top: -0.72em;
}

.card__back::before,
.card__bottom::after {
	content: attr(data-value);
}

.card__back {
	position: absolute;
	top: 0;
	height: 100%;
	left: 0%;
	pointer-events: none;
}

.card__back::before {
	position: relative;
	z-index: -1;
	overflow: hidden;
}

.flip .card__back::before {
	-webkit-animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
	animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
	-webkit-animation-fill-mode: both;
	animation-fill-mode: both;
	transform-origin: center bottom;
}

.flip .card__back .card__bottom {
	transform-origin: center top;
	-webkit-animation-fill-mode: both;
	animation-fill-mode: both;
	-webkit-animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
	animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
}

@-webkit-keyframes flipTop {
	0% {
		transform: rotateX(0deg);
		z-index: 2;
	}
	0%,
	99% {
		opacity: 0.99;
	}
	100% {
		transform: rotateX(-90deg);
		opacity: 0;
	}
}

@keyframes flipTop {
	0% {
		transform: rotateX(0deg);
		z-index: 2;
	}
	0%,
	99% {
		opacity: 0.99;
	}
	100% {
		transform: rotateX(-90deg);
		opacity: 0;
	}
}

@-webkit-keyframes flipBottom {
	0%,
	50% {
		z-index: -1;
		transform: rotateX(90deg);
		opacity: 0;
	}
	51% {
		opacity: 0.99;
	}
	100% {
		opacity: 0.99;
		transform: rotateX(0deg);
		z-index: 5;
	}
}

@keyframes flipBottom {
	0%,
	50% {
		z-index: -1;
		transform: rotateX(90deg);
		opacity: 0;
	}
	51% {
		opacity: 0.99;
	}
	100% {
		opacity: 0.99;
		transform: rotateX(0deg);
		z-index: 5;
	}
}


.clock {
	width: 30rem;
	height: 30rem;
	border: 7px solid #282828;
	box-shadow: -4px -4px 10px rgba(67, 67, 67, 0.5),
	inset 4px 4px 10px rgba(0, 0, 0, 0.5),
	inset -4px -4px 10px rgba(67, 67, 67, 0.5),
	4px 4px 10px rgba(0, 0, 0, 0.3);
	border-radius: 50%;
	margin: 50px auto;
	position: relative;
	padding: 2rem;

}

.outer-clock-face {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 100%;
	background: #282828;


	overflow: hidden;
}

.outer-clock-face::after {
	-webkit-transform: rotate(90deg);
	-moz-transform: rotate(90deg);
	transform: rotate(90deg)
}

.outer-clock-face::before,
.outer-clock-face::after,
.outer-clock-face .marking {
	content: '';
	position: absolute;
	width: 5px;
	height: 100%;
	background: #1df52f;
	z-index: 0;
	left: 49%;
}

.outer-clock-face .marking {
	background: #bdbdcb;
	width: 3px;
}

.outer-clock-face .marking.marking-one {
	-webkit-transform: rotate(30deg);
	-moz-transform: rotate(30deg);
	transform: rotate(30deg)
}

.outer-clock-face .marking.marking-two {
	-webkit-transform: rotate(60deg);
	-moz-transform: rotate(60deg);
	transform: rotate(60deg)
}

.outer-clock-face .marking.marking-three {
	-webkit-transform: rotate(120deg);
	-moz-transform: rotate(120deg);
	transform: rotate(120deg)
}

.outer-clock-face .marking.marking-four {
	-webkit-transform: rotate(150deg);
	-moz-transform: rotate(150deg);
	transform: rotate(150deg)
}

.inner-clock-face {
	position: absolute;
	top: 10%;
	left: 10%;
	width: 80%;
	height: 80%;
	/*background: #282828;*/
	background-image: url("../img/nora.jpg");
	background-position: -17.4rem -5rem;
	background-repeat: no-repeat;
	-webkit-border-radius: 100%;
	-moz-border-radius: 100%;
	border-radius: 100%;
	z-index: 1;
}

.inner-clock-face::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	border-radius: 18px;
	margin-left: -9px;
	margin-top: -6px;
	background: #4d4b63;
	z-index: 11;
}

.hand {
	width: 50%;
	right: 50%;
	height: 6px;
	background: #61afff;
	position: absolute;
	top: 50%;
	border-radius: 6px;
	transform-origin: 100%;
	transform: rotate(90deg);
	transition-timing-function: cubic-bezier(0.1, 2.7, 0.58, 1);
}

.hand.hour-hand {
	width: 30%;
	z-index: 3;
}

.hand.min-hand {
	height: 3px;
	z-index: 10;
	width: 40%;
}

.hand.second-hand {
	background: #ee791a;
	width: 45%;
	height: 2px;
}


.hide {
	display: none;
}
