body {
	font-family: Montserrat, sans-serif;
	font-weight: 400;
}
body > .container {
	margin-top: 50px;
}
body.loading > .container {
	filter: blur(3px);
}
#font-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}
.preview {
	width: 545px;
	min-height: 180px;
	border-radius: 8px;
	border: 1px solid #dadce0;
	overflow: hidden;
	transition: .18s ease all;
	padding: 16px 16px 24px;
	cursor: pointer;
	margin-bottom: 15px;
	max-width: 100%;
}
.preview:hover {
	box-shadow: 0px 1px 2px 0px rgba(60, 64, 67, 0.3),0px 2px 6px 2px rgba(60, 64, 67, 0.15);
	transform: translateY(-1px);
}
.preview h2 {
	margin: 0;
	font-size: 18px;
	line-height: 24px;
}
.preview p {
	margin: 0;
	margin-top: 10px;
	font-size: 40px;
	line-height: 1.10909;
}

.container h2 {
    margin-bottom: 10px;
	position: relative;
}
.font-style {
    width: 100%;
	display: block;
	text-decoration: none !important;
	color: #202124 !important;
	border-top: 1px solid #dadce0;
	padding: 15px;
	position: relative;
}
.font-style:last-child {
	border-bottom: 1px solid #dadce0;
}
.font-style p, .font-style h4 {
    margin: 0;
}
.font-style h4 {
    font-size: 13px;
}
pre {
	white-space: pre-wrap;
}
.font-style p {
    font-size: 30px;
	position: relative;
	padding-right: 155px;
	white-space: nowrap;
	overflow: hidden;
}
.font-style p:before {
    content: "";
	display: block;
	position: absolute;
	width: 112px;
	height: 100%;
	right: 155px;
	pointer-events: none;
	background: linear-gradient(271.24deg, #fff 0%, transparent 100%);
}
.font-style p:after {
    content: "";
	display: block;
	position: absolute;
	width: 155px;
	top: 0;
	height: 100%;
	right: 0;
	pointer-events: none;
	background: #ffffff;
}

#goback {
	text-decoration: none !important;
	color: #1a73e8;
	position: absolute;
	top: 50%;
	right: 0;
	font-size: 15px;
	transform: translateY(-50%);
}
#goback:hover {
	color: #174ea6;
}

.select-font {
    display: block;
    background: #fff;
    border: none;
    color: #1a73e8;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    cursor: pointer;
    font-weight: 500;
	padding: 8px 10px;
	border-radius: 4px;
	outline: none !important;
	font-size: 15px;
}
.select-font.selected {
    color: #5f6368;
}
.select-font.selected::before {
    content: '-';
	top: 2px;
}
.select-font::before {
    content: '+';
    font-weight: 700;
    font-size: 23px;
    line-height: 15px;
    position: relative;
    top: 3px;
    margin-right: 5px;
}
.select-font:hover {
	color: #174ea6;
	background: rgba(26, 115, 232, .04);
}


#loader {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	transition: 300ms;
}
.lds-ripple {
	display: inline-block;
	position: relative;
	width: 80px;
	height: 80px;
}
.lds-ripple div {
	position: absolute;
	border: 4px solid #000;
	opacity: 1;
	border-radius: 50%;
	animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.lds-ripple div:nth-child(2) {
	animation-delay: -0.5s;
}
@keyframes lds-ripple {
	0% {
		top: 36px;
		left: 36px;
		width: 0;
		height: 0;
		opacity: 1;
	}
	100% {
		top: 0px;
		left: 0px;
		width: 72px;
		height: 72px;
		opacity: 0;
	}
}


@media only screen and (max-width: 992px) {
	.preview {
		min-height: 0;
	}
}
@media only screen and (max-width: 470px) {
	pre {
		font-size: 11px;
	}
	.font-style p {
		font-size: 20px;
	}
	.select-font {
		transform: scale(0.8) translateY(-50%);
	}
	.select-font.selected::before,
	.select-font:before {
		top: 1px;
	}
	.preview p {
		font-size: 30px;
	}
	.preview h2 {
		font-size: 16px;
	}
}