/*!
Theme Name: Resource Library
*/
 
*, *:before, *:after {
	padding: 0;
	margin: 0;
	box-sizing: inherit;
}
ol, ul {
	list-style: none;
}
p, h1, h2, h3, h4, h5, h6 {
	font-weight: normal;	
	margin-bottom: 20px;
}
h1 {
	font-size: 32px;
	line-height: 1;
}
h2 {
	font-size: 24px;
}
a {
	color: inherit;
}
img {
	max-width: 100%;
	height: auto!important;
}
html {
	font-size: 15px;
	line-height: 1.5;
	font-family: 'Open Sans', sans-serif;
	color: #404040;
}
body {

}
html.noScroll, 
body.noScroll {
	overflow: hidden!important;
}
.page {
	min-height: calc(100vh + 1px);
	display: flex;
	flex-direction: column;
	height: 100%;
}
.container {
	max-width: 1200px;
	margin: auto;
}
.clear {
	display: block;
	clear: both;
}
.hpadding {
	padding-left: 20px;
   padding-right: 20px;
   box-sizing: border-box;
}
.vpadding {
   padding-top: 20px;
   padding-bottom: 20px;
   box-sizing: border-box;
}
.text-center {
	text-align: center;
}
#topbar {
	height: 50px;
	line-height: 50px;	
	background: #5b57a4;
	color: white;
	position: fixed;
	width: 100%;
	z-index: 100;
	overflow: hidden;
}
#topbar-spacer {
	height: 50px;
}
#main {
	flex-grow: 1;
}
.iframed {
	display: block!important;
	min-height: 0!important;
}
.iframed .container {
	max-width: 800px;
}
#package-header {
	padding-top: 15px;
	padding-bottom: 35px;
	border-bottom: 5px solid #ee769a;
	margin-bottom: 40px;
}
#package-header-logo {
	display: inline-block;	
}
#single-resource-cols {
	display: flex;
	flex-direction: row-reverse;
	padding-top: 20px;
	padding-bottom: 20px;
	justify-content: center;
}
.iframed #single-resource-cols {
	/*display: block;*/
	/*max-width: 600px;*/
}
#package-tabs {
	width: 300px;
	padding-right: 40px;
	box-sizing: border-box;
	flex-shrink: 0;
}
.package-tab {
	display: inline-block;
	border: 2px solid #eeeeee;
	background: #eeeeee;
	margin-bottom: 15px;
	color: #5b57a4;
	text-decoration: none;
	overflow: hidden;
	width: 250px;
	height: 60px;
	display: inline-table;
	vertical-align: top;
	position: relative;
	box-sizing: border-box;
	overflow: hidden;
	border-radius: 26px;
}
.package-tab:hover {
	opacity: 0.75;
}
.package-tab > img {
	position: absolute;
	height: 45px!important;;
	width: 45px!important;
	margin-left: 6px;
	margin-top: 5px;
	background: white;
	z-index: 0;
	border-radius: 26px;
	background: white;
	object-fit: contain;
}
.package-tab > span {
	display: table-cell;
	vertical-align: middle;
	padding: 0 10px;
	padding-left: 60px;
}
.package-tab > span > span { 
	display: block;
	max-height: 40px;
	overflow: hidden;
	display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   text-overflow: ellipsis;
   font-size: 0.9em;
   color: #404040;
}
.package-tab-active {
	border-color: #58595b;
	background: #58595b;
}
.package-tab-active > span > span {
	color: white;
}
#single-resource-content {
	flex-grow: 1;
}
.page-resource-factsheet-container {
	position: relative;
	max-width: 700px;
}
.standalone .page-resource-factsheet-container {
	max-width: 550px;
}
#page-resource-factsheet-cover {
	display: block;
	overflow: hidden;
	position: relative;
	padding-bottom: 70%;
	background: #f9f9f9; 
	margin-bottom: 30px;
}
#page-resource-factsheet-cover img {
	width: 100%!important;
	height: 100%!important;
	position: absolute;
}
#page-resource-pdf {
	position: relative;
	padding-left: 20px;
	margin-bottom: 20px;
}
#page-resource-pdf-embed {
	width: 100%;
	min-height: 450px;
	border: 1px solid rgba(0,0,0,0.1);
	/*display: none;*/
}
#page-resource-pdf:before {
	content: "";
	position: absolute;
	width: 9px;
	height: 9px;
	border: 2px solid #b4b5b4;
	border-left: 0;
	border-bottom: 0;
	transform: rotate(45deg);
	left: 0;
	top: 5px;
	text-decoration: none;
}
#page-resource-title {
	font-weight: bold;
	margin-bottom: 20px;
	line-height: 1;
	font-size: 28px;
}
#page-resource-tagline {
	margin-bottom: 30px;
}
#page-resource-provided-by {
	line-height: 1.25;
	margin-bottom: 40px;
	padding-left: 20px;
	position: relative;
}
#page-resource-provided-by:before {
	content: "";
	position: absolute;
	width: 9px;
	height: 9px;
	border: 2px solid #b4b5b4;
	border-left: 0;
	border-bottom: 0;
	transform: rotate(45deg);
	left: 0;
	top: 5px;
}
#page-resource-overview {
	font-weight: bold;
	margin-bottom: 20px;
}
#page-resource ul,
#page-links ul {
	list-style-type: disc;
	list-style-position: outside;
	margin-bottom: 20px;
	padding-left: 40px;
}
#page-resource-footer {
	background: #eae6e3;
	display: block;
}
#page-resource-footer-container {
	display: flex;
	justify-content: space-between;
	padding-top: 20px;
	padding-bottom: 20px;
}
#page-resource-footer-side {
	width: 250px;
	flex-shrink: 0;
	margin-right: 50px;
}
#page-resource-footer-image {
	background: #f9f9f9;
	width: 250px;
	height: 250px;
	display: block;
}
#page-resource-footer-image-mobile {
	display: none;
}
#page-resource-footer img {
	border: 1px solid #d2d3d5;
	display: block;
	object-fit: contain;
	height: 100%!important;
	background: white;
}
#page-resource-footer-content {
	flex-grow: 1;
}
#page-resource-footer-org-name {
	font-weight: bold;
	font-size: 20px;
}
#page-resource-footer-org-content {
	font-size: 0.9em;
}
.button {
	display: inline-block;
	margin: auto;
	text-decoration: none;
	background: #007f91;
	color: white!important;
	height: 45px;
	line-height: 45px;
	padding: 0 20px;
	border-radius: 5px;
	cursor: pointer;
	position: relative;
	font-weight: 400;
}
.button:hover {
	opacity: 0.75;
}
.button-small {
	height: 35px;
	line-height: 35px;
	padding: 0 15px;
}
.button-large {
	height: 60px;
	line-height: 60px;
	padding: 0 25px;
	font-size: 18px;
}
.packages-heading {
	margin-bottom: 20px;
	/*font-size: 50px;*/
	float: left;
	color: #5b57a4;
	font-weight: bold;
}
#packages-filter {
	float: right;
   padding-left: 10px;
   line-height: 28px;
   font-size: 14px;
}
#packages-filter strong {
	color: #5b57a4;
}
#home-create-button {
	float: right;
}
#home-packages {

}
.packages-table {
	width: 100%;
	word-break: break-word;
	overflow-wrap: break-word;
  	word-wrap: break-word;
  	border-collapse: collapse;
	font-size: 14px;
}
.packages-table {
	margin-bottom: 40px;
}
.packages-table a {
	color: #007f91;
	/*font-weight: bold;*/
}
.packages-table th {
	color: #5b57a4;
	padding: 5px 5px;
	font-weight: bold;
	border-bottom: 2px solid #eee;
	text-align: left;
}
.packages-table td {
	padding: 10px 5px;
	line-height: 1;
	border-bottom: 1px solid #eee;
	text-align: left;
	line-height: 1.5;
}
.packages-table td:first-child {
	
}
.packages-table th:last-child,
.packages-table td:last-child {
	text-align: right;
	width: 140px;
}
.row-selectable.row-selected {
	background: #f5f5f5;
}
.resource-selectable.resource-selected .resource-view {
	/*border-color: #bbb;
	background: #f0f0f0;
	*/
	opacity: 0.75;
}
.row-cell {
	display: block;
	/*width: 100px;*/
	white-space: nowrap;
	text-overflow: ellipsis;
  	overflow: hidden;
  	max-width: 250px;
}
.package-view {
	position: relative;
}
.template-name {
	/*font-weight: bold;*/
}
.home-package {
	padding: 10px;
	border: 1px solid rgba(0,0,0,0.1);
   background: #f9f9f9;
	margin-bottom: 10px;
	position: relative;
}
.package-title {
	font-weight: bold;
   margin-bottom: 5px;
   float: left;
   display: block;
   font-size: 24px;
   line-height: 1;
}
.package-date {
	color: #5b57a4;
	font-weight: bold;
	float: left;
	clear: left;
}
.package-email {
	float: left;
	clear: left;
}
#packages-table {
	margin-bottom: 15px;
}
#packages-table .row-selectable {
	opacity: 0;
	transition: opacity 0.5s;
}
#packages-table .row-selectable.row-showing {
	opacity: 1;
}
#load-more-container {
	text-align: right;
	height: 25px;
	margin-bottom: 40px;
}
#add-resource-button {
	float: right;
	background: #5b57a4;
}
#package-cart-popup {
	display: block;
	
}
#package-cart-popup.package-cart-popup-active {
	
}
#package-cart-overlay {
	background: rgba(0,0,0,0.5);
	position: fixed;
	z-index: 200;
	top: 0;
	left: 0;
	width: 100%;
	height: 0;
	opacity: 0;
	transition: opacity 0.333s, height 0.01s 0.333s;
}
.package-cart-popup-active #package-cart-overlay {
	opacity: 1;
	height: 100%;
	transition: opacity 0.333s;
}
#package-cart-wrapper {
	position: fixed;
	z-index: 200;
	top: calc(100% - 50px);
	bottom: 0;
	left: 20px;
	right: 20px;
	transition: top 0.333s;
	/*overflow: hidden;	*/

}
#package-cart-spacer {
	height: 50px;
}
#package-cart-popup.package-cart-popup-active #package-cart-wrapper {
	top: 80px;
}
#package-cart-container {
	background: #efefef;
	height: calc(100vh - 80px);
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
	box-shadow: 0 0 10px rgba(0,0,0,0.25);
	overflow: hidden;
}
#package-cart-header {
	height: 50px;
	line-height: 50px;
	background: #5b57a4;
	color: white;
	cursor: pointer;
	transition: background 0.333s;
	position: relative;
}
#package-cart-header.package-cart-header-flash {
	background: #ed779a;
	transition: none;
}
.package-cart-popup-active #package-cart-header:after {
	content: "+";
	display: block;
	position: absolute;
	right: 0;
	top: 0;
	width: 50px;
	height: 50px;
	font-size: 40px;
	font-weight: normal;
	transform: rotate(45deg);
}
.package-cart-section {
	position: relative;
}
.package-cart-label {
	text-align: left;
	display: block;
	font-weight: bold;
	color: #404040;
	margin-bottom: 3px;
}
.package-cart-notice {
	position: absolute;
	color: #404040;
	right: 0;
	text-align: center;
	top: 3px;
	font-size: 13px;
}
#package-cart-form {
	height: calc(100% - 50px);
	overflow: hidden;
	overflow-y: scroll;
}
#package-resources {
	border: 2px dashed rgba(0,0,0,0.25);
	/*padding: 10px;*/
	min-height: 100px;
	margin-bottom: 20px;
	position: relative;
}
#package-resources:before {
	content: "Package items";
	font-style: italic;
	line-height: 100px;
	font-size: 18px;
	opacity: 0.5;
	position: absolute;
	width: 100%;
	left: 0;
	top: 0;
}
.resource {
	border: 1px solid rgba(0,0,0,0.1);
	background: #f9f9f9;
	margin-bottom: 10px;
	height: 170px;
	overflow: hidden;
	text-align: left;
	position: relative;
	user-select: none;
	transition: opacity 0.333s;
}
#package-resources .resource {
	cursor: move;
	margin: 10px;
}
.resource-image {
	display: block;
	position: absolute;
	width: 150px;
	height: 150px;
	left: 10px;
	top: 10px;
	background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-color: white;
}
.resource-checkbox {
	display: none;
}
.resource-main {
	position: absolute;
	left: 175px;
	right: 10px;
	top: 10px;
	bottom: 50px;
	overflow: hidden;
}
.resource-title {
	font-weight: bold;
	margin-bottom: 5px;
	font-size: 16px;
}
.resource-regions-specific {
	font-weight: bold;
	font-style: italic;
	font-size: 0.85em;
	padding-top: 0.1em;
	padding-right: 0.25em;
	position: absolute;
	right: 0;
	top: 0;
}
.resource-tagline {
	color: #5b57a4;
	margin-bottom: 8px;
	font-weight: bold;
}
.resource-actions {
	position: absolute;
	right: 10px;
	bottom: 10px;
}
.resource-categories {
	display: none;
}
.resource-regions {
	display: none;
}
.resource-tags {
	display: none;
}
.resource-type {
	display: none;
}
.resource-remove {
	display: none;
	background: #ed779a;
	color: black!important;
}
.resource.added {
	background: #e0dffb;
	/*opacity: 0.5;*/
	border-color: #9692d2;
}
.resource.added .resource-remove{
	display: inline-block;
}
.resource.added .resource-add {
	display: none;
}
#package-resources .resource-add {
	display: none;
}
#topbar-title {
	font-size: 20px;
	float: left;
	position: absolute;

}
#topbar-packages {
	margin-right: 13px;
	float: right;
	color: inherit;
	text-decoration: none;
	padding-right: 15px;
	position: relative;
	font-size: 14px;
}
#topbar-packages:after {
	content: "";
	display: block;
	position: absolute;
	top: 30%;
	height: 40%;
	right: 0;
	border-right: 2px solid white;
	
}
#topbar-email {
	padding-left: 10px;
	margin-right: 13px;
	float: right;
	color: inherit;
	text-decoration: none;
	padding-right: 15px;
	position: relative;
	font-size: 14px;
	background: rgba(91, 87, 164, 0.9);
}
#topbar-email:after {
	content: "";
	display: block;
	position: absolute;
	top: 30%;
	height: 40%;
	right: 0;
	border-right: 2px solid white;

}
#topbar-logout {
	float: right;
	color: inherit;
	text-decoration: none;
	font-size: 14px;
	
}
#close-button, #send-button{
	min-width: 150px;
	margin-bottom: 10px;
}
#close-button {
	float: left;
	background: #ed779a!important;
	color: black!important;
}
#send-button {
	float: right;
}
.sep {
	height: 7px;
	background: #ed779a;
	margin: 40px 0;
}
#package-recipient-email, #package-recipient-name, #package-message {
	display: block;
	/*border: 2px dashed rgba(0,0,0,0.25);*/
	padding: 10px;
	margin-bottom: 15px;
	position: relative;
	width: 100%;
	box-sizing: border-box;
	font-size: 15px;
	font-family: inherit;
}

#package-message {
	resize: vertical;
	min-height: 100px;
}
.fancybox-slide:before {

}
.fancybox-content {
    /*max-width  : 880px!important;*/
    /*height : 600px!important;
    max-width  : 90%!important;
    max-height : 90%!important;*/
    /*margin: 0;*/
}
.fancybox-iframe {
	max-width: 880px;
}
#library-header {
	position: fixed;
	left: 0;
	right: 0;
	height: 82px;
	top: 50px;
	background: #efefef;
	/*border-bottom: 2px solid #ed779a;*/
	z-index: 10;
	overflow: hidden;
	padding-top: 6px;
	box-sizing: border-box;
	box-shadow: 0 0 10px rgba(0,0,0,0.25);
	min-width: 900px;
}
#library-header-spacer {
	height: 82px;
}
.library-header-filter {
	display: inline-block;
	padding: 0 10px;
}
.library-header-filter:before {
	/*display: block;*/
	content: attr(data-label);
	font-weight: bold;

}
.library-header-filter input, 
.library-header-filter select {
	width: 200px;
	font-size: 15px;
	box-sizing: border-box;
	padding: 5px;
	margin: 5px;
}
.library-header-checkboxes {
	
}
.library-header-checkboxes label {
	display: inline-block;
	padding: 5px 10px;	
}
#library-results-count {
	font-style: italic;
	margin-bottom: 15px;
	font-size: 16px;
	color: #404040;
	/*padding-bottom: 10px;*/
	/*border-bottom: 2px dotted #007f91;*/
}
#library-list .resource {
	display: none;
	opacity: 0;
}
#library-list .resource.filter-show {
	display: block;
}
#library-list .resource.filter-visible {
	opacity: 1;
}
#invalid-email {
	display: none;
	color: #ed779a;
	margin-bottom: 15px;
	margin-top: -10px;
	font-weight: bold;
	text-align: left;
	font-size: 14px;
}
#page-loading {
	background: rgba(255,255,255,0.75);
	position: fixed;
	z-index: 9999;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	display: none;
}
.page-loader {
  border: 12px solid #5b57a4; 
  border-top: 12px solid #efefef;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 2s linear infinite;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -30px;
  margin-top: -30px;

}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#email-sent {
	font-size: 18px;
	padding: 10px;
	color: #ed779a;
	border: 2px solid #ed779a;
	margin-bottom: 20px;
	font-weight: bold;
	text-align: center;
	/*display: inline-block;*/
}

.links-section {
	margin-bottom: 20px;
	padding: 20px;
	border: 1px solid rgba(0,0,0,0.1);
   background: #f9f9f9;
   color: #404040;
}
.links-section-heading {  
	color: #5b57a4;
	font-weight: bold;
}
.links-section-link {
	display: block;
	margin-bottom: 10px;
	position: relative;
}
.links-section-link:before {
	

}

@media screen and (max-width: 879px) {
	html {
		font-size: 14px;
	}
	h1 {
		font-size: 24px;
	}
	h2 {
		font-size: 20px;
	}
	h3 {
		font-size: 18px;
	}
	#package-header {
		padding-top: 5px;
		padding-bottom: 25px;
		margin-bottom: 20px;
	}
	#single-resource-cols {
		display: block;
		padding: 0;
	}
	#page-resource-tagline {
		margin-bottom: 20px;
	}
	#page-resource-provided-by {
		margin-bottom: 20px;
	}
	#package-tabs {
		width: auto;
		/*text-align: center;*/
		border-top: 5px solid #eae6e3;
		padding-top: 20px;
		margin-top: 20px;
	} 
	.package-tab {
		margin-right: 10px;
		margin-bottom: 10px;
	}
	.package-tab:last-child {
		margin-bottom: 0;
	}
	#page-resource-footer-side {
		display: none;
	}
	#page-resource-footer-image-mobile {
		display: block;
		margin-bottom: 20px;
		background: #f9f9f9;
		width: 150px;
		height: 150px;
	}
	#page-resource-footer-image-mobile img {
		width: 150px;
		height: 150px;
	}
	#page-resource-footer-container {
		padding: 0;
	}
	#topbar-title {
		display: none;
	}
}

