/*
 * Wendell Free Library Circulation styles
 *
 * These style settings relate to the short codes used for the front end
 * pages for this plug in.
 *
 * See css/admin.css for back end (admin) styles.
 */

/* Non-specific classes and ids */

/* (lifted from WP's admin css) */

/* Hide visually but not from screen readers */
.screen-reader-text,
.screen-reader-text span {
        position: absolute;
        left: -1000em;
        height: 1px;
        width: 1px;
        overflow: hidden;
}

.hidden,
.js .closed .inside,
.js .hide-if-js,
.no-js .hide-if-no-js {
        display: none;
}


.weblib_tablenav {
}
/* Bulk Actions */
.weblib_tablenav-pages a,
.weblib_tablenav-pages-navspan {
	font-weight: 600;
	padding: 0 2px;
}

.weblib_tablenav-pages .current-page {
	margin: 0 2px 0 0;
	padding-bottom: 5px;
	font-size: 13px;
	text-align: center;
}

.weblib_tablenav .total-pages {
	margin-right: 2px;
}

.weblib_tablenav #table-paging {
	margin-left: 2px;
}

.weblib_tablenav a.button-secondary {
	display: block;
	margin: 3px 8px 0 0;
}

.weblib_tablenav {
	clear: both;
	height: 30px;
	margin: 6px 0 4px;
	vertical-align: middle;
}

.weblib_tablenav.themes {
	max-width: 98%;
}

.weblib_tablenav .weblib_tablenav-pages {
	float: right;
	height: 28px;
	margin-top: 3px;
	cursor: default;
	color:  #555;
}

.weblib_tablenav .no-pages,
.weblib_tablenav .one-page .pagination-links {
	display: none;
}

.weblib_tablenav .weblib_tablenav-pages a,
.weblib_tablenav-pages span.current  {
	text-decoration: none;
	padding: 3px 6px;
}

.weblib_tablenav .weblib_tablenav-pages a,
.weblib_tablenav-pages-navspan {
	display: inline-block;
	min-width: 17px;
	border: 1px solid #ccc; /* same color as buttons border */
	padding: 3px 5px 7px;
	background: #e5e5e5;
	font-size: 16px;
	line-height: 1;
	font-weight: normal;
	text-align: center;
}

.weblib_tablenav-pages-navspan {
	height: 16px;
	border-color: #ddd; /* same as disabled buttons */
	background: #f7f7f7; /* same as disabled buttons */
	color: #a0a5aa; /* same as disabled buttons */
}

.weblib_tablenav .weblib_tablenav-pages a:hover,
.weblib_tablenav .weblib_tablenav-pages a:focus {
	border-color: #5b9dd9;
	color: #fff;
	background: #00a0d2;
	-webkit-box-shadow: none;
	box-shadow: none;
	outline: none; /* IE8 */
}

.weblib_tablenav .displaying-num {
	margin-right: 7px;
}

.weblib_tablenav .one-page .displaying-num {
	display: inline-block;
	margin-top: 5px;
	margin-right: 0;
}

.weblib_tablenav .actions {
	overflow: hidden;
	padding: 2px 8px 0 0;
}

.weblib-list-table a {
	-webkit-transition: none;
	transition: none;
}

.weblib_tablenav .delete {
	margin-right: 20px;
}

/* @todo: unclear if the following weblib_tablenav rules are actually used.
classes exist in paginate_links() but not seen in list table output. */
.weblib_tablenav .dots {
	border-color: transparent;
}

.weblib_tablenav .next,
.weblib_tablenav .prev {
	border-color: transparent;
	color: #0073aa;
}

.weblib_tablenav .next:hover,
.weblib_tablenav .prev:hover {
	border-color: transparent;
	color: #00a0d2;
}

.weblib_tablenav .view-switch {
	float: right;
	margin: 0 5px;
	padding-top: 3px;
}


.weblib-list-table .toggle-row {
	position: absolute;
	right: 8px;
	top: 10px;
	display: none;
	padding: 0;
	width: 40px;
	height: 40px;
	border: none;
	outline: none;
	background: transparent;
}

.weblib-list-table .toggle-row:hover {
	cursor: pointer;
}

.weblib-list-table .toggle-row:focus:before {
    -webkit-box-shadow:
    	0 0 0 1px #5b9dd9,
		0 0 2px 1px rgba(30, 140, 190, .8);
    box-shadow:
    	0 0 0 1px #5b9dd9,
		0 0 2px 1px rgba(30, 140, 190, .8);
}

.ie8 .weblib-list-table .toggle-row:focus:before {
	outline: #5b9dd9 solid 1px;
}

.weblib-list-table .toggle-row:active {
	-webkit-box-shadow: none;
	box-shadow: none;
}

.weblib-list-table .toggle-row:before {
	position: absolute;
	top: -5px;
	left: 10px;
	-webkit-border-radius: 50%;
	border-radius: 50%;
	display: block;
	padding: 1px 2px 1px 0;
	color: #444; /* same as table headers sort arrows */
	content: "\f140";
	font: normal 20px/1 dashicons;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	speak: none;
}

.weblib-list-table .is-expanded .toggle-row:before {
	content: "\f142";
}

.weblib-list-table.plugins tbody tr.plugin-update-tr td.plugin-update {
	overflow: hidden; /* clearfix */
	padding: 0;
	-webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
	box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
}
/* ms */
/* Background Color for Site Status */
.weblib-list-table .site-deleted,
.weblib-list-table tr.site-deleted {
	background: #ff8573;
}
.weblib-list-table .site-spammed,
.weblib-list-table tr.site-spammed {
	background: #faafaa;
}
.weblib-list-table .site-archived,
.weblib-list-table tr.site-archived {
	background: #ffebe8;
}
.weblib-list-table .site-mature,
.weblib-list-table tr.site-mature {
	background: #fecac2;
}
table.fixed {
	table-layout: fixed;
}

.fixed .column-rating,
.fixed .column-visible {
	width: 8%;
}

.fixed .column-posts,
.fixed .column-date,
.fixed .column-parent,
.fixed .column-links,
.fixed .column-author,
.fixed .column-format {
	width: 10%;
}

.fixed .column-posts {
	width: 74px;
}

.fixed .column-comment .comment-author {
	display: none;
}

.fixed .column-response,
.fixed .column-categories,
.fixed .column-tags,
.fixed .column-rel,
.fixed .column-role {
	width: 15%;
}

.fixed .column-slug {
	width: 25%;
}

.fixed .column-locations {
	width: 35%;
}

.fixed .column-comments {
	width: 5.5em;
	padding: 8px 0;
	text-align: left;
}

.fixed .column-comments .vers {
	padding-left: 3px;
}

td.column-title strong,
td.plugin-title strong {
	display: block;
	margin-bottom: .2em;
	font-size: 14px;
}

td.column-title p,
td.plugin-title p {
	margin: 6px 0;
}
#the-list tr:last-child td,
#the-list tr:last-child th {
	border-bottom: none !important;
	-webkit-box-shadow: none;
	box-shadow: none;
}

.sorting-indicator {
	display: block;
	visibility: hidden;
	width: 10px;
	height: 4px;
	margin-top: 8px;
	margin-left: 7px;
}

.sorting-indicator:before {
	content: "\f142";
	font: normal 20px/1 dashicons;
	speak: none;
	display: inline-block;
	padding: 0;
	top: -4px;
	left: -8px;
	color: #444;
	line-height: 10px;
	position: relative;
	vertical-align: top;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-decoration: none !important;
	color: #444;
}

.column-comments .sorting-indicator:before {
	top: 0;
	left: -10px;
}

th.sorted.asc .sorting-indicator:before,
th.desc:hover span.sorting-indicator:before,
th.desc a:focus span.sorting-indicator:before {
	content: "\f142";
}

th.sorted.desc .sorting-indicator:before,
th.asc:hover span.sorting-indicator:before,
th.asc a:focus span.sorting-indicator:before {
	content: "\f140";
}
.fixed .column-comments .sorting-indicator {
	margin-top: 3px;
}

th.sorted .sorting-indicator,
th.desc:hover span.sorting-indicator,
th.desc a:focus span.sorting-indicator,
th.asc:hover span.sorting-indicator,
th.asc a:focus span.sorting-indicator {
	visibility: visible;
}
th.sortable a,
th.sorted a {
	display: block;
	overflow: hidden;
	padding: 8px;
}

.fixed .column-comments.sortable a,
.fixed .column-comments.sorted a {
	padding: 8px 0;
}

th.sortable a span,
th.sorted a span {
	float: left;
	cursor: pointer;
}




.keywordchecklist {
	margin-left: 14px;
	font-size: 12px;
	overflow: auto;
}

.keywordchecklist strong {
	margin-left: -8px;
	position: absolute;
}

.keywordchecklist span {
	margin-right: 25px;
	display: block;
	float: left;
	font-size: 11px;
	line-height: 1.8em;
	white-space: nowrap;
	cursor: default;
}

.keywordchecklist span a {
	margin: 3px 0pt 0pt -12px;
	cursor: pointer;
	width: 12px;
	height: 12px;
	display: block;
	float: left;
	/*text-indent: -9999px;*/
	overflow: hidden;
	position: absolute;
	color: blue;
}

.howto {
	font-style: italic;
	display: block;
	font-family: "Lucida Grande", Verdana, Arial, "Bitstream Vera Sans", sans-serif;
}

.keywordssdiv .the-keywordss {
        display: block;
        height: 60px;
        margin: 0 auto;
        overflow: auto;
        width: 260px;
}



/* Error messages are in <span id="error">...</span>.
   Initially bold and red. */

#error {
  color: red;
  font-weight: bold;
}


/* Overdue and expired dates are in <span class="overdue">...</span>.
   Initially italic and red. */

span.overdue {
  font-style: italic;
  color: red;
}

/* All <input type="submit" ...> and many <a href=""...> have 
   class="weblib-button" -- the links are meant to look like buttons.
   I coded the submit buttons to have this class as well as the <a href>'s, 
   so that they would all have the same styling. */


.weblib-nav-form {
	margin: 0 !important; 
	padding: 0 !important;
	border: 0 !important;
	vertical-align: top;
}

/* Common button styling */
.weblib-button {
  border: outset 2px #dcdad5;
  cursor: pointer;
  color: #000000;
  background-color: #dcdad5;

}

.weblib-button:hover {

  font-weight: normal;
  color: #000000;
  text-decoration: none;
}

/* Links-as-buttons styling */
.weblib-button-submit {
  height: 28px !important;
  white-space: nowrap;
  /*padding: 2px;*/
  padding: 0px;
/*  margin-top: 2px;
  margin-bottom: 2px;*/
  border: outset 2px #dcdad5;
  cursor: pointer;
  color: #000000;
  background-color: #dcdad5;  
}

/* Links-as-buttons styling */
a.weblib-button {
  height: 24px;
  white-space: nowrap;
  /*padding: 2px;*/
  padding: 0px;
/*  margin-top: 2px;
  margin-bottom: 2px;*/
}

a.weblib-button:link {
  font-weight: normal;
  color: #000000;
  text-decoration: none;
}

a.weblib-button:visited {
  color: #000000;
  font-weight: normal;
  text-decoration: none;
}

.weblib-item-pagination-table {
  display: table;
  width: 40%;
  margin: 2px 30%;
}

.weblib-item-pagination {
  display: table-row;
  width: 100%;
  padding: 8px 0px;
  font-size: 120%;
}

.weblib-item-pagination .pagelabel {
  vertical-align: top;
  display: table-caption;
  padding: 2px;
  font-weight: bold;  
}

.weblib-item-pagination .pagelink {
  vertical-align: top;
  display: table-cell;
  margin: 0px;
}

.weblib-item-pagination .pagenumform {
  white-space: nowrap;
  width: 25%;
}

.weblib-total-results {
  white-space: nowrap;
  font-weight: bold;
  font-size: 150%;
  float: left;
}

.weblib-item-long {
  display: table;
}

.weblib-item-row {
  display: table-row;
  padding: 8px 0px;
  width: 100%;
}

.weblib-item-left {
  width: 90%;
}

.weblib-item-right {
}

.weblib-item-center-head {
  font-weight: bold;
  text-align: center;
  display: table-cell;
  padding: 2px;
}

.weblib-item-keyword-list {
  text-align: center;
  display: table-cell;
  padding: 2px;
}

.weblib-item-left-head {
  font-weight: bold;
  text-align: right;
  display: table-cell;
  padding: 2px;
}

.weblib-item-left-content {
  text-align: left;
  display: table-cell;
  padding: 2px;
}

.weblib-item-author {
  text-decoration: underline;
}

.weblib-item-title {
  font-weight: bold;
}

.weblib-item-content-block, .weblib-item-table {
  display: table;
}

.weblib-item-content-element {
  display: table-row;
}





.weblib-item-element {
  display: table-cell;
  vertical-align: top;
  padding: 2px;
}

.weblib-item-info {
  width: 85%;
}

.weblib-item-index {
  font-size: 150%;
  padding: 0px 4px;
  text-align: left;
  width: 5%;
}

.weblib-item-brief {
}

.weblib-item-holdbutton {
}

.weblib-item-thumb {
  padding: 0px 4px;
}

.weblib-item-thumb img {
	min-width: 48px;
	min-height: 72px;
	max-width: 80px;
	max-height: 120px;	  
}
/* New specs for Hope Africa*/
.afrilib-search-form-section{
	display: flex;
	flex-flow: column;
	margin-top: 0px !important;
}
.afrilib-search-form{
	display: flex;
	flex-flow: column;
	background-color: #f9f1e7;	
	font-family: 'Brandon-Grotesque', sans-serif;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 1px;display: inline-block;
	text-decoration: none;
	padding: 8px 20px 8px;
	font-weight: bold;
}
.afrilib-form-element{
	display: flex;
	flex-flow: row;
}
.afrilib-search-form-input{
	border: 1px solid transparent;
	width: 100%;
	height: 40px;
	padding-left: 20px;
	font-size: 14px;
	font-family: inherit;
	align-items: baseline;
}

.afrilib-pagination-container {
    text-align: right;
	margin-top: 0px !important;
}

.afrilib-page-numbers {
	
    font-family: 'Brandon-Grotesque', sans-serif;
    font-size: 18px;
    width: 40px;
    height: 40px;
    display: inline-block;
    border-radius: 30px;
    background: transparent;
    line-height: 44px;
    margin: 5px;
    border: 1px solid #b20838;
	color:black;
	display:inline!important;
	padding: 5px;
}

.afrilib-page-numbers-current {
    background-color:white;
    color: black;
}

.afrilib-pagination-pagelink a {
    color: black !important;
    text-decoration:none;
	margin: 0 2.5px;
}

.afrilib-pagination-pagelink a:hover {
    background-color: white;
    color:#b20838 !important;
	margin: 0 2.5px;
}

.afrilib-nav-form {
	margin: 0 !important; 
	padding: 0 !important;
	border: 0 !important;
	vertical-align: top;
	display:inline!important;
}

/* Common button styling */
.afrilib-nav-input {
	color: black;
	background-color: white;
	font-family: 'Brandon-Grotesque', sans-serif;
	font-size: 18px;
	border: 1px dotted #b20838 !important;
	border-radius: 8px;
	box-sizing: border-box;
	width:46px;
	padding: 0px 5px 0px 5px;
  
}

.afrilib-nav-button {
  cursor: pointer;
  color: black;
  background-color: white;
  font-family: 'Brandon-Grotesque', sans-serif;
  font-size: 18px;
  border:none;
  padding: 0px 10px 0px 10px;
  width:fit-content

}

.afrilib-nav-button:hover {
  font-weight: normal;
  color: #b20838;
  background-color: white;
  text-decoration: none;
}

.afrilib-action-button {
	margin-top: 2px;
	margin-bottom: 2px;
	border-radius: 30px;
	font-family: 'Brandon-Grotesque', sans-serif;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 1px;
	display: inline-block;
	text-decoration: none;
	padding: 2px 6px 2px;
	font-weight: bold;
	text-align: center;
	min-width: 100px;
	max-width:140px;
	background: transparent;
	color: #b20838;
	border: 1px solid #b20838;
}
  
.afrilib-action-button:hover {
	font-weight: normal;
	color: white;
	background-color: #b20838;
	text-decoration: none;
}
.afrilib-action-button:disabled,
.afrilib-action-button[disabled]{
  border: 1px solid #999999;
  background-color: #cccccc;
  color: #666666;
}

.afrilib-search-button {
	margin-top: 2px;
	margin-bottom: 2px;
	font-size: 24px!important;
	padding: 6px 6px 6px 6px;
	font-weight: bold;
	text-align: center;
	background: transparent;
	color: black;
	border: none;
}
  
.afrilib-error {
	color: #b20838;

}.afrilib-search-button:hover {
	color: #b20838;
}

.afrilib-results-section{
	display: flex;
	flex-flow: column;
	justify-content: space-between;
	margin-top: 0px !important;
}
.afrilib-total-results{
	white-space: nowrap;
	font-weight: bold;
	font-size: 100%;
	float: right;	
}
.afrilib-card-list{
	display: flex;
	flex-flow: column;
	margin-top: 0px !important;
}
.afrilib-card {
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
	transition: 0.3s;
	width: 100%;
	border: 1px solid #fbad26;
	border-radius: 10px;
	margin: 5px;
	overflow: hidden;
	background-color: #f9f1e7;
  }

.afrilib-card-simple{
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
	transition: 0.3s;
	width: 100%;
	border: 1px solid #fbad26;
	border-radius: 20px;
	margin: 5px;
	overflow: hidden;
	background-color: #f9f1e7;
	padding: 10px;	
}
  
.afrilib-card:hover {
	box-shadow: 0 8px 16px 0 rgba(237, 187, 5, 0.461);
  }
  
  .afrilib-card-container {
	display: flex;
	flex-flow: column;
  }  
  .afrilib-card-container-row{
	display: flex;
	flex-flow: row;
  }
  .afrilib-card-header {
	display: flex;
	flex-flow: row;
	justify-content: space-between;
  }
  .afrilib-card-header-detail{
	display: flex;
	flex-flow: row;
  }
  .afrilib-card-body {
	display: flex;
	flex-flow: column;
	padding: 0px 15px 10px 15px;
  }
/*  .afrilib-card-image {
	overflow: hidden;
  }
  */
  .afrilib-card-index {
	display: flex;
	flex-flow: column;
	padding: 0px 10px 0px 0px;
	color: #b20838;
  }
  
  .afrilib-person-card {
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
	transition: 0.3s;
	width: 100%;
	border: 1px solid #fbad26;
	border-radius: 20px;
	margin: 5px;
	overflow: hidden;
	color: white;
	background-color: #383a3a;
  }
  
.afrilib-person-card:hover {
	box-shadow: 0 8px 16px 0 rgba(237, 187, 5, 0.461);
  }
.afrilib-person-element{
	display: flex;
	flex-flow: row;	
}

  .afrilib-item-element-brief{
	display: flex;
	flex-flow: column;	
  }
  .afrilib-item-element {
	display: flex;
	flex-flow: column;
  }
  .afrilib-item-element-label {
	font-family: 'Merriweather',sans-serif;
	font-weight: bold;
	line-height: 1.1;
  }
  .afrilib-item-element-content {
	font-family: 'Merriweather',sans-serif;
	font-weight: 300;
	line-height: 1.2;
  }
  .afrilib-item-element-image {
	overflow: hidden;
	min-height: 50px;
	max-height: 100px;	  
}
.afrilib-item-element-buttons{
	display: flex;
	flex-flow:column;
	justify-content: space-between;
	margin-left: auto;
}


.afrilib-scroll-list {
	height: 150px;
	width: 800px;
	overflow: scroll; /* This is the key!! */
	border: 1px #aabbcc solid;
	padding: 10px;
}

.afrilib_menu_item {
	font-weight: bold;
}
.afrilib_active_menu_item{
	color: #b20838;
	background-color: white;
}
.afrilib_menu_item:hover{
	color: #b20838;
	background-color:white ;
	text-decoration-line: underline;
	text-decoration-color: #b20838;
}
.afrilib_hide_menu_item a{
	display: none!important;
}
/* start Search button */
.fg--search {
	/*background: white;*/
	position: relative;
	width: 300px;
  }
  
  .fg--search input {
	width: 100%;
	padding: 20px 60px 20px 20px;
	display: block;
  }
  
  .fg--search button {
	background: transparent;
	border: none;
	cursor: pointer;
	display: inline-block;
	font-size: 20px;
	position:absolute;
	top: 0;
	right: 0;
	padding: 18px 20px;
	z-index: 2;
	color:#b20838;
  }
  
  .fg--search input:focus + button .fa-search {
	color: #b20838;
  }
  /* end Search button */

  /* Scan form */
.afrilib-form-column{
	display: flex;
	flex-flow: column;
	padding: 4px;
}
  .afrilib-form-row{
	display: flex;
	flex-flow: row;
	padding: 4px;
}

/* Style the form */
#regForm {
	background-color: #ffffff;
	margin: 100px auto;
	padding: 40px;
	width: 70%;
	min-width: 300px;
  }
  
  /* Style the input fields */
  input {
	padding: 10px;
	width: 100%;
	font-size: 17px;
	font-family: Raleway;
	border: 1px solid #aaaaaa;
  }
  
  /* Mark input boxes that gets an error on validation: */
  input.invalid {
	background-color: #ffdddd;
  }
  
  /* Hide all steps by default: */
  .tab {
	display: none;
  }
  
  /* Make circles that indicate the steps of the form: */
  .step {
	height: 15px;
	width: 15px;
	margin: 0 2px;
	background-color: #bbbbbb;
	border: none; 
	border-radius: 50%;
	display: inline-block;
	opacity: 0.5;
  }
  
  /* Mark the active step: */
  .step.active {
	opacity: 1;
  }
  
  /* Mark the steps that are finished and valid: */
  .step.finish {
	background-color: #04AA6D;
  }

  .WEBLIB_box {
    max-width: 100%;
    height: 20em;
    padding: 1em;
    margin: auto;
    border: 0.062em solid #999;
    background-color: #fff;
    overflow: auto;
    direction: ltr;
    text-align: left;
}
input.WEBLIB_largerCheckbox {
	width: 40px;
	height: 40px;
}

.v_required {
	border: 2px solid #b20838;
}

/* add a tick or cross only on input values that are required class marked*/
input:required + span {
	padding-right: 30px;
}
  
input:invalid:required + span::after {
	position: absolute;
	content: "✖";
	padding-left: 5px;
	color: #8b0000;
}
  
input:valid:required + span::after {
	position: absolute;
	content: "✓";
	padding-left: 5px;
	color: #009000;
}