/*** Research DB ***/

.ref_database form,
.ref_database input {
	display: inline;
	box-sizing: border-box;	
}

.research-db input[type="submit"], 
.ref_database input[type="submit"],
.research-db input::file-selector-button {
  background-color: lightgray;
  border: none;
  border-radius: 5px;
  color: black;
  padding: 8px 28px;
  text-decoration: none;
  margin: 0px 4px;
  cursor: pointer;
}

.research-db input[type="submit"]:hover, 
.ref_database input[type="submit"]:hover,
.research-db input::file-selector-button:hover {
  background-color: grey;
  color: white;
}

.research-db input[type="submit"]:focus, 
.ref_database input[type="submit"]:focus,
.research-db input::file-selector-button:focus {
  cursor:progress;
}

.ref-user {
	font-style:italic;
	margin-top: 20px;
	margin-bottom: 20px;
}

.research-db-form div.ref-textbox { 
	border: 1px solid rgba(0, 0, 0, 0.5); 
	max-width: 100%; 
	padding: 5px 3px ;
	margin-bottom: 20px;
	min-height: 150px;
}
.research-db-form label {
	font-weight: bold;
}

.research-db-form label.ref-normal {
	font-weight: normal;
}

.research-db-form input:focus::placeholder {
	color: transparent;
}

.ref-flow-block
{
	float: left;
	border: none;
	padding: 0px;
	position: relative;
	background-color: rgb(230, 230, 245);
}
.ref-block-col1 
{
	margin: 10px 10px;
	max-width: 100%;

}
.ref-block-col3 
{
	margin: 10px 1vw 10px 1vw;
	max-width: 100%;
	width: 330px;
	height: 330px;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}

.ref-block-image img {
	max-width: 100%;
} 

.ref-block-col3 .ref-block-image {
	display: flex;
	justify-content: center;
	align-items: center;
}

.ref-block-col3 .ref-block-image img {
	max-height: 220px; 
	padding-bottom: 20px;; 
} 

.ref-block-col1 .ref-child {
	display:flex;
}

.ref-block-col1 .ref-wrapper {
	display:inline-block;
}

.ref-pdf
{
	float: left;
	border: none;
	padding: 0px;
	position: relative;
	text-align: center;
	margin: 50px 1vw 10px 0;
}

.ref-flow-block .ref-block-url
{
	display: inline-block;
	padding: 10px;
}

.ref-block-text {
	background: rgba(0, 0, 0, 0.4); 
	border-radius: 5px;
	padding: 3px;
	text-align: center;
}

.ref-flow-block.ref-block-col1 .ref-block-text {
	flex-grow: 1;
	width:0;
} 

.ref-flow-block.ref-block-col3 .ref-block-text {

	position: absolute;
	bottom: 3%;
	left: 50%;
	transform: translate(-50%, 0%);
	width: 95%;

}

.ref-flow-block a,
.ref-pdf a,
.ref-flow-block:hover a .ref-block-link
{
	color: white;
}

.ref-flow-block a,
.ref-flow-block a:hover,
.ref-pdf a,
.ref-pdf a:hover
{
	text-decoration: none;
}

.ref-flow-block a:visited,
.ref-pdf a:visited  {
	color: white;
}

.ref-clear {
	clear : both;
}

div.research-db .research-db-files > li
{
	list-style: none;
	list-style-type: none;

	&[download*='.xls'],
	&[download*='.xlsx']{
        &::before {
            font-family: "Font Awesome 5 Free";
            content: "\f1c3";
            font-weight: 900;
            font-size: 2em;
			color: #209e63;
			color: #0f7840;
			margin-right: 20px;	
        }
	}
	&[download*='.doc'],
    &[download*='.docx']{
        &::before {
            font-family: "Font Awesome 5 Free";
            content: "\f1c2";
            font-weight: 900;
            font-size: 2em;
			color: #1A5CBD;
			color: #1857b8;
			margin-right: 20px;	
        }
    }
	&[download*='.ppt'],
	&[download*='.pptx']{
        &::before {
            font-family: "Font Awesome 5 Free";
            content: "\f1c4";
            font-weight: 900;
            font-size: 2em;
			color: #b83519;
			margin-right: 20px;	
        }
    }
    &[download*='.mp3']{
        &::before {
            font-family: "Font Awesome 5 Free";
            content: "\f1c7";
            font-weight: 900;
            font-size: 2em;
            color: #f4be2e;
			margin-right: 20px;	
        }
    }
    &[download*='.mp4']{
        &::before {
            font-family: "Font Awesome 5 Free";
            content: "\f1c8";
            font-weight: 900;
            font-size: 2em;
            color: #8e44ad;
			margin-right: 20px;	
        }
    }
}

div.research-db h1
{
	font-size: 200%;
	margin-bottom: .5em;
}

#ref-file-list
{
	margin-bottom: 12px;
}

.ref-tooltip {
	position: relative;
	display: inline-block;
	/* border-bottom: 1px dotted rgba(0, 0, 0, 0.4); ; */
}
.ref-tooltip .ref-tooltiptext {
	visibility: hidden;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.6); ;
	color: #fff;
	text-align: center;
	border-radius: 6px;
	padding: 5px 0;
	position: absolute;
	/* bottom: 100%; */
	left: 50%;
	margin-left: -50%;
	margin-top: 2px;
	
	/* Fade in tooltip - takes 1 second to go from 0% to 100% opac: */
	opacity: 0;
	transition: opacity 1s;
}
.ref-tooltip:hover .ref-tooltiptext {
	visibility: visible;
	opacity: 1;
}

/*** Data Tables ***/

div.dtsp-title {
	display: none;
}
div.dtsp-panesContainer {
	margin-bottom: 0;
}
div.dt-container div.dt-layout-row {
	align-items: start;
}
div.dt-container div.dt-layout-row div.dt-layout-cell.dt-layout-end {
	margin-left: 30px;
}
div.dt-search label {
	font-size: 77%;
}
div.dtsp-panesContainer div.dtsp-searchPanes div.dtsp-searchPane {
	margin-top: 0 !important;
}


/*** PHOTO ARCHIVE ****/

table.photo-db-table a {
	text-decoration: none;
	cursor: pointer;
	color: inherit;
}

.ewph-photo-archive form,
.ewph-photo-archive input {
	display: inline;
	box-sizing: border-box;	
}
body .site-container form.ewph-photo-archive h2.ewph-photo-heading {
	margin-top: 1em;
}

.ewph-photo-db form {
	margin-top: 0.5em;
}

.ewph-photo-db-form {
	margin-block-end: 0;
}

.ewph-photo-db input[type="submit"], 
.ewph-photo-archive input[type="submit"],
.ewph-photo-db input::file-selector-button,
.ewph-photo-db-form label.ewph-photo-input  {
  background-color: lightgray;
  border: none;
  border-radius: 5px;
  color: black;
  padding: 8px 28px;
  text-decoration: none;
  margin: 0px 4px;
  cursor: pointer;
  font-weight: normal;
  font-size: 105%;
}

.ewph-photo-db input[type="submit"]:hover, 
.ewph-photo-archive input[type="submit"]:hover,
.ewph-photo-db input::file-selector-button:hover,
.ewph-photo-db-form label.ewph-photo-input:hover {
  background-color: grey;
  color: rgb(237, 234, 234);
}

.ewph-photo-db input[type="submit"]:focus, 
.ewph-photo-archive input[type="submit"]:focus,
.ewph-photo-db input::file-selector-button:focus {
  cursor:progress;
}

#ewphFileChosen{
	position: absolute;
	top: 10px;
	left: 12rem;
	width: 50rem;
}

.ewph-upload-buttons {
	position: relative;
}

#ewphPhotoButton {
	opacity: 0;
	margin-bottom: 40px;
}

.ewph-photo-db-form label.ewph-photo-input {
	position: absolute;
	top: 0;
	left: 0;
}

.ewph-photo-user {
	font-style:italic;
	margin-top: 20px;
	margin-bottom: 20px;
}

.ewph-photo-db-form div.ewph-photo-textbox { 
	max-width: 100%; 
	padding: 5px 3px ;
	margin-bottom: 20px;
}
.ewph-photo-db-form label {
	margin-top: 20px;
	font-weight: bold;
}

.ewph-photo-db-form label.ewph-photo-normal {
	margin-top: 20px;
	font-weight: normal;
}

.ewph-photo-db-form input:focus::placeholder {
	color: transparent;
}

.ewph-photo-flow-block
{
	float: left;
	border: none;
	padding: 0px;
	position: relative;
	background-color: rgb(230, 230, 245);
}
.ewph-photo-block-col1 
{
	margin: 10px 10px;
	max-width: 100%;

}

.ewph-photo-block-col3 
{
	margin: 10px 1vw 10px 1vw;
	max-width: 100%;
	width: 330px;
	height: 330px;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}

.ewph-photo-block-col3.gallery 
{
	margin: 5px;
	padding: 10px 0;
	width: 220px;
	height: 220px;
}

.ewph-photo-block-image img {
	max-width: 100%;
} 

.ewph-photo-block-col3 .ewph-photo-block-image {
	display: flex;
	justify-content: center;
	align-items: center;
}

.ewph-photo-block-col3 .ewph-photo-block-image img {
	max-height: 220px; 
	padding-bottom: 20px;; 
} 

.ewph-photo-block-col3 .ewph-photo-block-image.gallery img {
	max-height: 200px; 
	max-width: 200px;
	padding-bottom: 30px; 
} 

.ewph-photo-block-col1 .ewph-photo-child {
	display:flex;
}

.ewph-photo-block-col1 .ewph-photo-wrapper {
	display:inline-block;
}

.ewph-photo-flow-block .ewph-photo-block-url
{
	display: inline-block;
	padding: 10px;
}

.ewph-photo-block-text {
	background: rgba(0, 0, 0, 0.4); 
	border-radius: 5px;
	padding: 3px;
	text-align: center;
}

.ewph-photo-flow-block.ewph-photo-block-col1 .ewph-photo-block-text {
	flex-grow: 1;
	width:0;
} 

.ewph-photo-flow-block.ewph-photo-block-col3 .ewph-photo-block-text {

	position: absolute;
	bottom: 3%;
	left: 50%;
	transform: translate(-50%, 0%);
	width: 95%;

}

.ewph-photo-flow-block a,
.ewph-photo-pdf a,
.ewph-photo-flow-block:hover a .ewph-photo-block-link
{
	color: white;
}

.ewph-photo-flow-block a,
.ewph-photo-flow-block a:hover,
.ewph-photo-pdf a,
.ewph-photo-pdf a:hover
{
	text-decoration: none;
}

.ewph-photo-flow-block a:visited,
.ewph-photo-pdf a:visited  {
	color: white;
}

.ewph-photo-clear {
	clear : both;
}

div.ewph-photo-db h1
{
	font-size: 200%;
	margin-bottom: .5em;
}

.ewph-photo-tooltip {
	position: relative;
	display: inline-block;
	/* border-bottom: 1px dotted rgba(0, 0, 0, 0.4); ; */
}
.ewph-photo-tooltip .ewph-photo-tooltiptext {
	visibility: hidden;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.6); ;
	color: #fff;
	text-align: center;
	border-radius: 6px;
	padding: 5px 0;
	position: absolute;
	/* bottom: 100%; */
	left: 50%;
	margin-left: -50%;
	margin-top: 2px;
	
	/* Fade in tooltip - takes 1 second to go from 0% to 100% opac: */
	opacity: 0;
	transition: opacity 1s;
}
.ewph-photo-tooltip:hover .ewph-photo-tooltiptext {
	visibility: visible;
	opacity: 1;
}

table.ewph-photo {
	max-width: 90vw;
	margin-bottom: 0;
}

table.ewph-photo th {
	width: 20%;
}
table.ewph-photo h2 {
	margin: 0;
}

.ewph-photos-checkbox-container {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	row-gap: 1ch;
	column-gap: 1ch;
    place-items: center;
    text-align: center;			
}

.ewph-photo-gallery-label .checkbox-hidden {
	/* opacity: 100; */
    display: none;
}

.ewph-photos-checkbox-container label.ewph-photo-gallery-label {
    background-color: rgb(230, 230, 245);
}

.ewph-photo-gallery-label:has(input:checked) {
  background-color: rgb(139, 139, 249);
}
