/**
 *
 * Copyright (c) 2013-2016 Simon Fraser University Library
 * Copyright (c) 2003-2016 John Willinsky
 * Copyright (c) 2017-???? Vladimir Sereda
 * Distributed under the GNU GPL v2.
 *
 * Much-better-than-redbar theme.
 *
 */

body {
	background-color: white;
	color: black;
	font-family: Helvetica, Arial, Verdana, sans-serif;
	font-size: 10px;
	background-color: #F5F5F5;
}

a:link {
	color: black;
}

a:active {
	color: black;
}

a:visited {
	color: #808080;
}

a:hover {
	color: darkgreen;/* #009946 */
	text-decoration: none;
	/*background-color: #cdc;*/
	background-color: rgba(50, 200, 50, 0.15);
	/*background-color: transparent;*/
	transition: .3s;
}

#pageFooter a:hover, .tocCoverImage a:hover, #customblock-PlumX a:hover, #customblock-Dimensions a:hover, #crossmarkContainer a:hover {
	background: none;
}

.footerPic {
	padding-bottom: 10px;
}

.tocTitle a, #issues h4 a {
	text-decoration: none;
	font-weight: bold;
	border-bottom: 1px solid black;
	padding-bottom: 1px;
}

.tocTitle a:hover, #issues h4 a:hover {
	border-bottom: none;
	transition: .3s;
}

.tocGalleys a.file, #articleFullText a.file {
    background-image: url(/public/journals/6/miscpics/Adobe_PDF_file_icon_32x32.png);
    background-repeat: no-repeat;
    background-position: center left;
    background-size: contain;
    padding-left: 1.5em;
    font-size: 1.2em;
}

#header {
	margin: 0 auto;
	padding: 0 10px;
	max-width: 1000px;
	min-width: 800px;
	overflow: auto;
	background-color: #F5F5F5;
}

#body {
    margin: 0 auto;
    padding: 0 10px;
	max-width: 1000px;
	min-width: 800px;
	overflow: visible;
}

#headerTitle {
	color: black;
	max-width: 77%;
	background-color: white;
	float: left;
	border-left: 1px solid #cccccc;
	border-right: 1px solid #cccccc;
}

#headerTitle img {
  float: right;
}

#header h1 {
	padding: 0.5em 0 0.25em 0;
	margin: 0 10px;
	font-family: Georgia, serif;
}

#main {
	margin: 0 auto;
	padding: 10px 0em 2em 0em;
	width: 77%;
	background-color: white;
	font-size: 1.4em;
	border-left: 1px solid #cccccc;
	border-right: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
	float: left;
	overflow: scroll auto;
}

#main>h2, #main>h3 {
	padding-left: 15px;
	font-size: 1.7em;
}

#main h2, h3, h4 {
	font-family: Georgia, serif;
}

#navbar {
	/*background: linear-gradient(to top, darkgreen, limegreen);*/
	background-color: darkgrey;
	padding: 0 0 0.3em 0;
	margin: 0;
	border: 0;
	font-size: 1.3em;
	text-align: center;
}

#navbar ul.menu li {
	padding: 0 7px 0.3em 7px;
	display: inline;
}

#navbar ul.menu li#announcements {
	display: none;
}

#navbar ul.menu li:hover {
	/*background: linear-gradient(to bottom, darkgreen, limegreen);*/
	background-color: #009946;
	transition: background-color .4s;
}

#navbar a {
	background-color: rgba(0,0,0,0);
	color: white;
	font-weight: bold;
	font-size: 0.7em;
	letter-spacing: 0;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}

#breadcrumb {
	padding: 1em 0 1em 15px;
	border-bottom: 1px dotted black;/* #009946 */
	font-size: 0.8em;
}

#content {
	border-top: 0px dotted #000;
	font-size: 1em;
	line-height: 1.48;
	padding: 0 15px;
}

#content h3 {
	font-size: 1.5em;
}

#content h4 {
	font-size: 1.3em;
}

#rightSidebar {
	width: 20%;
	margin: 0;
	padding: 10px;
	overflow: visible;
	font-size: 1.2em;
}

#leftSidebar {
	display: none;
}

#articleCoverImage img {
	margin-left: auto;
	margin-right: auto;
	width: auto;
	max-width: 70%;
	height: auto;
	max-height: 600px;
}

.tocCoverImage img {
	max-height: 120px;
	width: auto;
	max-width: 100%;
}

#content > div#homepageImage {
	float: right;
	margin-left: 2em;
	border: 1px solid #cccccc;
}

#content > div#homepageImage > img {
	height: 360px;
	width: auto;
}

div#articleCitations {
	counter-reset: refnum;
	padding-top: 1.48em;
}

div#articleCitations p::before {
    counter-increment: refnum;
    content: counter(refnum) ". ";
}

/*Table of contents better display with journal covers*/
#issues div div {
	display: table;
}

#issues div div div.issueCoverImage, #issues .issueCoverImage + h4 {
	display: table-cell;
	vertical-align: middle;
}

#issues div div div.issueCoverDescription {
    display: table-cell;
    vertical-align: middle;
    padding-left: 1em;
}

#issues div div h4 {
    margin: 0.25em 0;
}

/*Text inputs*/
input.textField, select.selectMenu, textarea.textArea, input.uploadField {
	background: white;
	border: 2px solid lightgray;
	border-radius: 6px;
	padding-left: 0.4em;
	padding-right: 0.4em;
	margin: 1px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}

input.uploadField {
    padding-top: 0.1em;
    padding-bottom: 0.1em;
}

input.textField:hover, select.selectMenu:hover, textarea.textArea:hover, input.uploadField:hover {
    border-color: darkgrey;
	transition: border .2s;
}

input.textField:focus, select.selectMenu:focus, textarea.textArea:focus, input.uploadField:focus {
    border-color: #009946;
	outline: none;
}

select {
	border-radius: 6px 0 0 6px !important;
	padding: 0 !important;
}

.ui-autocomplete .ui-menu-item a {
    font-size: 1.4em;
}

/*Buttons*/
input.button {
    background-color: #555555;
    color: white;
    border: 1px solid #555555;
	border-radius: 5px;
    padding: 0.1em 0.7em;
    margin: 2px;
    text-align: center;
    text-decoration: none;
    font-size: 1.2em;
    cursor: pointer;
    transition: 0.3s;
    outline: none;
}

input.button:hover {
    background-color: #4CAF50;
}

input.button:active {
    background-color: #555555;
}

input.defaultButton {
	background-color: black;
	color: white;
}

/*Hide unnecessary line breaks and empty divs*/
#journalDescription + br, 
#homepageImage + br, 
#articleAbstract h4 + br, 
#articleSubject h4 + br, 
#articleCitations h4 + br,
#articleCitations + br,
#content table.tocArticle + br,
#content > #topBar {
    display: none;
}

#pdfCanvasContainer {
  height: 90vh;
}