#comic-reader {
	position: relative;
}

#comic-reader img {
	display: block;
	width: 100%;
}

#loading {
	animation: animatedBackground 1s linear infinite;
	background: url('../img/loader.svg') center center no-repeat;
	display: none;
	height: 45px;
	position: absolute;
		top: calc(50% - 20px);
		right: calc(50% - 20px);
	width: 45px;
}

@keyframes animatedBackground {
  100% {
    transform: rotate(360deg);
  }
}

#comic-nav {
	display: flex;
	flex-wrap: wrap;
	background: #fff;
	box-shadow: 0 4px 15px rgba(20,20,20,.15);
	justify-content: center;
	margin: 0 0 50px;
	padding: 38px 15px;
	text-align: center;
}

#comic-nav li {
	display: block;
	margin: 0 15px;
}

#comic-nav a {
	color: #1e1e1e;
	display: block;
	float: left;
	font: 25px / 52px  'Baloo Paaji', cursive;
	height: 52px;
	text-decoration: none;
}

#comic-nav li:not(#archive-link) a {
	opacity: 0.6;
}

#comic-nav li:not(#archive-link):hover a {
	opacity: 1;
}

#comic-nav li:not(#archive-link).disabled a {
	cursor: default;
	opacity: 0.2;
}

#first:before,
#prev:before,
#next:after,
#last:after {
	content: '';
	display: block;
	float: left;
	height: 52px;
	opacity: 0.6;
	width: 12px;
}


#first:before,
#prev:before {
	background: url('../img/arrow-left.svg') center center no-repeat;
	float: left;
	margin-right: 8px;
}

#next:after,
#last:after {
	background: url('../img/arrow-right.svg') center center no-repeat;
	float: right;
	margin-left: 8px;
}

#first:hover:before,
#prev:hover:before,
#next:hover:after,
#last:hover:after {
	opacity: 1;
}

#comic-nav .disabled:before,
#comic-nav .disabled:after {
	opacity: 0.2;
}

#comic-nav li#archive-link {
	margin: 0 39px;
}

#archive-link a {
	background: #eea644 url('../img/icon-archive.svg') center center no-repeat;
	background-size: 50%;
	border-radius: 50%;
	display: block;
	height: 52px;
	width: 52px;
}

#archive-link a:hover,
#archive-link.archive-active a {
	background-color: #1e1e1e;
}

#list-comics {
	background: #fff;
	border-top: 2px solid #efa842;
    box-shadow: 0 4px 15px rgba(20, 20, 20, 0.15);
    display: none; 
	 margin: 0;
    padding: 50px;
}

#list-comics li {
    border: 2px solid #efa842;
    border-radius: 4px;
    color: #efa842;
	 cursor: pointer;
    display: inline-block;
    font: 700 15px / 40px 'Open Sans', Arial, sans-serif;
	 min-width: 95px;
    text-align: center;
}

#list-comics li.active,
#list-comics li:hover {
   background-color: #efa842;
   color: #fff;
}

#category-links {
	display: flex; 
	flex-wrap: wrap;
}

.space-between {
	justify-content: space-between; 
}

.align-right {
	justify-content: flex-end; 
}

#prev-issue {
	float: left;
}

#next-issue {
	float: right;
}

#category-links a {
	align-items: center ;
	background-color: #000;
	color: #fff;
	display: flex;
	font: 20px / 25px  'Baloo Paaji', cursive;
	justify-content: space-between;
	text-align: right;
	text-decoration: none;
	width: calc( 50% - 12px );
}

#category-links a > span:before {
	content: '';
	display: block;
	height: 14px;
	position: absolute;
		top: calc(50% - 7px);
	width: 9px;
}

#category-links a#prev-issue > span:before {
	background: url('../img/arrow-left-white.svg') center center no-repeat;
	left: 24px;
}

#category-links a#next-issue > span:before {
	background: url('../img/arrow-right-white.svg') center center no-repeat;
	right: 24px;
}

#category-links a#next-issue {
	text-align: left;
}

#category-links a:hover { 
	background-color: #efa842;
}



#category-links  span {
	display: block;
}

#category-links a > span {
	position: relative;
	padding: 20px 0 20px 34px;
	width: calc( 100% / 3 * 2  - 12px );
}

#category-links span span:first-of-type {
	color: #eea644;
	font-size: 12px;
}

#category-links a:hover span span:first-of-type {
	color: #1e1e1e;
}

#category-links img {
	float: right;
	height: auto;
	padding: 20px 24px 20px 0;
	width: calc( 100% / 3 - 12px );
}

#category-links a#next-issue img {
	padding: 20px 0 20px 24px;
}

#category-links a:last-of-type > span {
	padding: 20px 50px 20px 0;
}


