* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
	height: 100%;
	min-height: 100%;
}

body {
	font-family: sans-serif;
	font-size: 12px;
	background-color: #003d77;
	background-image: radial-gradient(50% 114%, rgba(0,81,158,0.3) 16%, rgba(0, 0, 0, 0.3) 100%);
}

.grid {
	width: 500px;
	margin: 0 auto;
	position: relative;
	height: 500px;
}

.grid-items {
	perspective: 1000px;
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	height: 100%;
	align-content: center;
}

.grid-item {
	transform-style: preserve-3d;
	width: 100px;
	height: 100px;
	opacity: 0;
	transform: translateX(-10px) translateY(-10px) translateZ(-100px);
	transition: all 0.15s ease-out;
	position: relative;
	display: block;
	cursor: pointer;
}

.grid-item.is-transitioning {
	transition: all 0.3s ease-out;
}

.grid-item.is-visible {
	opacity: 1;
}

.grid-item.is-in {
	transform: translateX(0px) translateY(0px) translateZ(0);
}

.grid-item.is-out {
	transform: translateX(10px) translateY(10px) translateZ(100px);
	opacity: 0;
}

.grid.is-active .grid-item.is-active,
.grid.is-active .grid-item:hover {
	z-index: 3;
	transform: translateX(0px) translateY(0px) translateZ(100px);
	opacity: 1 !important;
}

.grid.is-active .grid-item:hover .front {
	opacity: 1;
}

.grid-item .card {
	transform-style: preserve-3d;
	transition: all 0.3s ease-out;
	border: 2px transparent solid;
	width: 100%;
	height: 100%;
}

.grid-item.is-active .card {
	transform-origin: 50% 50%;
	transform: rotateY(180deg);
}

.grid-item .front,
.grid-item .back {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	backface-visibility: hidden;
}

.grid-item .back {
	background-color: white;
	transform: rotateY(180deg);
}

.grid-item .front {
	background-color: white;
}

.grid-item .back {
	background-color: white;
	display: flex;
	justify-content: center;
	align-items: center;	
}

.grid-item a {
	display: inline;
	color: #003d77;
	font-size: 14px;
	font-weight: bold;
	text-decoration: none;
}

.grid-item [data-svg] {
	opacity: 0.4;
}

.grid-item [data-svg].was-loaded {
	opacity: 1;
}

.grid-detail {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: none;
	justify-content: center;
	align-items: center;
	perspective: 1000px;
}

.grid-detail.is-visible {
	display: flex;
}

.grid-detail-content {
	width: 100%;
	height: 100%;
	transition: all 0.4s ease-in-out;
	transform: scale(0.95);
	opacity: 0;
	background: rgba(0, 39, 76, 0.9);
	background: #003d77;
	color: #fff;
	padding: 30px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	align-content: center;
}

.is-in .grid-detail-content {
	opacity: 1;
	transform: scale(1);
}

.is-out .grid-detail-content {
	opacity: 0;
}

.grid-detail-content h1 {
	margin-bottom: 20px;
}

.rating {
	color: #fff;
	max-width: 80%;
}

.rating + .rating {
	margin-top: 20px;
}


.rating h2 {
	margin-bottom: 10px;
	font-weight: normal;
	text-transform: uppercase;
	display: flex;
	justify-content: space-between;
}

	.rating-percent {
		display: inline-block;
		margin-left: 10px;
		font-weight: bold;
	}

.rating-stars {
	display: flex;
	justify-content: space-around;
}

.rating-star {
	width: 60px;
	height: 60px;
}

.star-svg {
	display: block;
	width: 100%;
	height: 100%;
}

.star-svg .star-parts path {
	transition: all 0.1s;
	transform: scale(0);
	transform-origin: 50% 50%;
	fill: rgba(255, 255, 255, 0.1);
}

.star-svg .star-parts path.is-visible {
	/* fill: rgba(236, 218, 25, 1); */
	fill: #fff;
	transform: scale(1);
}

.star-outline {
	fill: #fff;
	/* fill: rgba(236, 218, 25, 1); */
}

.wrapper {
	display: flex;
	position: relative;
	flex-direction: column;
	align-content: center;
	justify-content: center;
	height: 100%;
}

	.nav {
		display: flex;
		justify-content: center;
		margin-top: 30px;
	}

	.nav button {
		padding: 8px 16px;
		border: 2px rgba(255, 255, 255, 0.7) solid;
		transition: all 0.2s ease;
		color: #fff;
		background-color: transparent;
		font-family: inherit;
		font-size: inherit;
		font-weight: bold;
		border-radius: 3px;
		cursor: pointer;
	}

	.nav button:not([disabled]):hover,
	.nav button:not([disabled]):focus,
	.nav button:not([disabled]):active {
		border-color: #fff;
	}

	.nav button[disabled] {
		opacity: 0.3;
		cursor: default;
	}

	.nav button + button {
		margin-left: 10px;
	}

.close-btn {
	color: #fff;
	font-family: inherit;
	font-weight: 100;
	background-color: transparent;
	border: none;
	cursor: pointer;
	position: absolute;
	top: 10px;
	right: 20px;
	font-size: 30px;
	transition: all 0.3s ease;
	opacity: 0;
}

.is-active .close-btn {
	opacity: 1;
}