/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.scientific-database .modal-overlay
{
	display: none;
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%; 
	background-color: rgba(0,0,0,0.5);
	z-index: 100;
	cursor:pointer;
	
}

.scientific-database .modal-popup
{
	width:700px;
	margin:70px auto;
	background-color: #fff;
	z-index: 101;
	overflow-y: auto;
	cursor:default;
	max-height:75%;
}

.scientific-database .modal-popup .modal-inner
{
	margin: 20px;
}

.scientific-database .modal-popup h1
{
	float: left;
	width: 100%;
	color: #bc90c1;
    font-weight: 300;
	font-size: 32px;
	line-height:1.2;
	margin-bottom:15px;
}

.scientific-database .modal-popup .meta
{
	float:left;
	width:100%;
	margin-bottom:4px;
	font-size:16px;
	color: #333;
	font-weight:300;
}

.scientific-database .modal-popup .meta .label
{
	float:left;
	font-weight:400;
	margin-right:5px;
}

.scientific-database .modal-popup h3
{
	float: left;
	width: 100%;
	color: #333;
    font-weight: 300;
	font-size: 24px;
	margin:25px 0 5px 0;
}

.scientific-database .modal-popup p
{
	color:#333;
	line-height:1.6;
}

.scientific-database .modal-popup p.pubmed-link
{
	margin:30px 0 30px 0;
}

.scientific-database .modal-popup p.pubmed-link a
{
	font-size: 18px;
	font-weight:400;
	text-decoration: underline;
	cursor: pointer;
	margin-right: 30px;
	padding-left:25px;
	background-position:left center;
	background-size:22px;
	background-repeat:no-repeat;
}


.close-container
{
	position:relative;
	width:100%;
	height:1px;
}
.close-container .close
{
	position:absolute;
	width:20px;
	height:20px;
	margin-left:calc(100% - 10px);
	margin-top:-10px;
	background-image:url(/wp-content/plugins/scientific-database/public/images/close.png);
	background-size:contain;
	background-repeat:no-repeat;
	cursor:pointer;
}

.scientific-database .search-bar 
{
	float: left;
	width: 100%;
	background-color: #f3f3f3;
	margin-bottom: 45px;
	border-radius:5px;
	margin-top:-30px;
}
.scientific-database .search-bar .col
{
	margin: 20px 5px 20px 20px;
	float: left;
}

.scientific-database .search-bar .col.c1
{
	width:490px;
}
.scientific-database .search-bar .col.c1.long
{
	width:1010px;
}
.scientific-database .search-bar .col.c2
{
	width:200px;
}
.scientific-database .search-bar .col.c3, .scientific-database .search-bar .col.c4, .scientific-database .search-bar .col.c5
{
	width:120px;
}

.scientific-database .search-bar .col .title
{
	color: #812973;
	width: 100%;
	height: 25px;
	margin-bottom: 10px;
	font-size: 18px;
	font-weight: 400;
}
.scientific-database .search-bar .col .input
{
	color: #812973;
	width: 100%;
	margin-bottom: 10px;
}

.scientific-database .search-bar .col #search_var
{
	width:100%;
	border-radius:5px;
	border:2px solid #ccc;
	font-weight:300;
	font-size:20px;
}

.scientific-database .search-bar .col #search_var.active
{
	border-color:#bc90c1;
}

.scientific-database .search-bar .col input[type=text]::-webkit-input-placeholder {
  color: #ccc;
  font-weight:300;
}
.scientific-database .search-bar .col input[type=text]::-moz-placeholder {
  color: #ccc;
    font-weight:300;
}
.scientific-database .search-bar .col input[type=text]:-ms-input-placeholder {
  color: #ccc;
    font-weight:300;
}
.scientific-database .search-bar .col input[type=text]:-moz-placeholder {
  color: #ccc;
  font-weight:300;
}

.scientific-database .search-bar .col select
{
	border-radius:5px;
	border:2px solid #ccc;
	background-color:#fff;
	width:100%;
	font-weight:300;
	font-size:20px;
	color:#ccc;
	
	background-image:url(/wp-content/plugins/scientific-database/public/images/menu-arrow.png);
	background-size:18px;
	background-repeat:no-repeat;
	background-position:right 10px center;
}

.scientific-database .search-bar .col select.active
{
	border-color:#bc90c1;
	color:#333;
	background-image:url(/wp-content/plugins/scientific-database/public/images/menu-arrow-active.png);
}

.scientific-database .search-bar .col input[type=submit]
{
	font-weight:300;
	font-size:20px;
	background-color:#832a74;
	border:1 px solid #832a74;
	border-radius:5px;
	width:100%;
}

.scientific-database .search-bar .topic-menu
{
	float:left;
	border-radius:5px;
	border:2px solid #ccc;
	width:calc(100% - 4px);
	padding:1.4rem;
	font-weight:300;
	font-size:20px;
	color:#ccc;
	background-color:#fff;
	cursor:pointer;
	overflow:hidden;
	white-space:nowrap;
	text-overflow:ellipsis;
	
	background-image:url(/wp-content/plugins/scientific-database/public/images/menu-arrow.png);
	background-size:18px;
	background-repeat:no-repeat;
	background-position:right 10px center;
}

.scientific-database .search-bar .topic-menu.active
{
	border-color:#bc90c1;
	color:#333;
	background-image:url(/wp-content/plugins/scientific-database/public/images/menu-arrow-active.png);
}



.scientific-database .search-bar .topic-items
{
	position:absolute;
	border-radius:5px;
	border:2px solid #bc90c1;
	width:450px;
	padding:1.4rem;
	font-weight:300;
	font-size:20px;
	color:#ccc;
	background-color:#fff;
	display:none;
}

.scientific-database .search-bar .topic-items .head
{
	float:left;
	width:100%;
	height:40px;
	color:#333;
	border-bottom:1px solid #ddd;
	cursor:pointer;
}

.scientific-database .search-bar .topic-items .submit
{
	float:left;
	width:100%;
	height:30px;
	margin-top:10px;
	background-color:#bc90c1;
	border-radius:3px;
	color:#fff;
	font-weight:300;
	font-size:16px;
	line-height:30px;
	text-align:center;
	cursor:pointer;
}

.scientific-database .search-bar .topic-items .select-topic
{
	float:left;
	width:100%;
	cursor: pointer;
	font-size:14px;
	padding:8px 0 8px 0;
	color:#333;
	font-weight:300;
	border-bottom:1px solid #ddd;
	overflow:hidden;
	white-space:nowrap;
	text-overflow:ellipsis;
}
.scientific-database .search-bar .topic-items .select-topic .radio
{
	float:left;
	width:14px;
	height:14px;
	border:1px solid #999;
	border-radius:7px;
	margin:2px 10px 0 3px;
	
}
.scientific-database .search-bar .topic-items .select-topic.selected
{
	background-color: #f8f8f8;
	font-weight:400;
}
.scientific-database .search-bar .topic-items .select-topic.selected .radio
{
	background-color:#bc90c1;
	
}

.scientific-database .list
{
	float: left;
	width: 100%;
}

.scientific-database .list .no-results
{
	float: left;
	width: 100%;
	color: #bc90c1;
	font-size: 30px;
	text-align:center;
	font-weight:300;
	height:250px;
	padding-top:70px;
}


.scientific-database .list .year
{
	float: left;
	width: 100%;
	color: #bc90c1;
	font-size: 40px;
	border-bottom: 1px solid #d6d6d6;
	padding-bottom:10px;
	margin-top:60px;
}

.scientific-database .list .year.first
{
	margin-top:0;
}

.scientific-database .list .item
{
	float: left;
	width: 100%;
	border-bottom: 1px solid #d6d6d6;
	padding: 30px 0px 30px 0px;
}
.scientific-database .list .item .date
{
	font-size: 18px;
	line-height:20px;
	color: #828282;
	margin-bottom: 2px;
	font-weight:300;
}
.scientific-database .list .item h3
{
	font-size: 24px;
	line-height:1.3;
	color: #000;
	font-weight:300;
	margin-bottom: 6px;
}
.scientific-database .list .item .text
{
	font-size: 18px;
	line-height:1.5;
	color: #777;
	margin-bottom: 10px;
	font-weight:300;
}

.scientific-database .list .item .text b
{
	font-weight:400;	
}
.scientific-database .list .item a
{
	font-size: 18px;
	text-decoration: underline;
	cursor: pointer;
	margin-right: 30px;
	padding-left:25px;
	background-position:left center;
	background-size:22px;
	background-repeat:no-repeat;
}


.scientific-database .page-nav
{
	width: 100%;
	float: left;
	margin-top:20px;
	margin-bottom:20px;
	text-align: right;
}
.scientific-database .page-nav .page-numbers
{
	display: inline;
	color: #812973;
	font-size: 20px;
	font-weight:300;
	padding: 3px 10px 3px 10px;
	margin-left: 2px;
}
.scientific-database .page-nav .page-numbers a
{
	text-decoration: none;
	color: #812973;
}
.scientific-database .page-nav .page-numbers.current
{
	background-color:#bc90c1;
	color:#fff;
}

.scientific-database .page-nav .page-numbers.current a
{
	color:#fff;
}

@media only screen and (max-width: 1200px), only screen and (max-device-width: 1200px) {

	.scientific-database .search-bar .col
	{
		margin: 20px 0 20px 3%;
	}
	
	.scientific-database .search-bar .col.c1
	{
		width:30%;
	}
	.scientific-database .search-bar .col.c1.long
	{
		width:80%;
	}
	.scientific-database .search-bar .col.c2
	{
		width:15%;
	}
	.scientific-database .search-bar .col.c3, .scientific-database .search-bar .col.c4, .scientific-database .search-bar .col.c5
	{
		width:12%;
	}

}

@media only screen and (max-width: 760px), only screen and (max-device-width: 760px) {
	
	.scientific-database .search-bar .col
	{
		margin: 15px 5% 10px 5%;
	}
	
	.scientific-database .search-bar .col.c1, .scientific-database .search-bar .col.c2, .scientific-database .search-bar .col.c5, .scientific-database .search-bar .col.c1.long
	{
		width:90%;
	}
	
	.scientific-database .search-bar .col.c1
	{
		margin-bottom:0px;
	}
	.scientific-database .search-bar .col.c3
	{
		width:40%;
	}
	
	.scientific-database .search-bar .col.c4
	{
		width:40%;
	}
	
	.scientific-database .search-bar .col.c5 .title
	{
		display:none;	
	}
	
	.scientific-database .search-bar .col .title
	{
		height: auto;
		line-height:1.3;
	}
		
	.scientific-database .modal-popup
	{
		
		width:90%;
		margin:5% auto;
		max-height:90%;
	
	}
	
	.scientific-database .modal-popup::-webkit-scrollbar {
		-webkit-appearance: none;
	}
	
	.scientific-database .modal-popup::-webkit-scrollbar:vertical {
		width: 11px;
	}
	
	.scientific-database .modal-popup::-webkit-scrollbar:horizontal {
		height: 11px;
	}
	
	.scientific-database .modal-popup::-webkit-scrollbar-thumb {
		border-radius: 8px;
		border: 2px solid white; /* should match background, can't be transparent */
		background-color: rgba(0, 0, 0, .3);
	}
	
	.scientific-database .modal-popup::-webkit-scrollbar-track { 
		background-color: #fff; 
		border-radius: 8px; 
	} 
	
	.scientific-database .modal-popup h1
	{
		font-size: 26px;
		line-height:1.15;
	}
	
	.scientific-database .list .item
	{
		padding: 20px 0px 20px 0px;
	}
	
	.scientific-database .list .item h3
	{
		font-size: 20px;
		line-height:1.2;
	}
	
	.scientific-database .list .item .text
	{
		font-size: 16px;
	}
	
	.scientific-database .list .item a
	{
		font-size: 16px;
		margin-right: 20px;
		
	}
	
	.scientific-database .search-bar .topic-items
	{
		width:100%;
	}
		
}