form.search{
	text-align:center;
	margin:0px;
}
input.query-input{
	padding:20px 25px;
	border:0px solid white;
	outline: 0;
	text-align:left;
	background-repeat:none;
	border-radius:10px;
	height:auto;
	font-size:30px;
	margin:0px auto;
	width:70%;
	min-width:auto;
	margin-top:10px;
}

.start-screen{
	color:#333;
	text-align:center;
	margin-top:10px;
	margin-bottom:10px;
	line-height:150%;
}
#title h2{
	font-size:50px;
	line-height:48px;
	letter-spacing:-0.02em;
	margin-top:40px;
	margin-bottom:30px;
	padding-top:60px;
	border:none;
}
.start-screen a:link,.start-screen a:visited{
	color:#333;
}
.start-screen a:hover{
	text-decoration:none;
}
.start-screen p b{
	padding:3px;
	font-weight:normal;
	color:white;
	text-shadow:none;
	background-color:red;
}
#start-red{
	/* background-color:#ccc; */
	background-size:cover;
	padding:20px;
	height:100%;
	/* text-shadow: 1px 1px 2px rgba(150, 150, 150, 1); */
	background-position:0% 50%;
}
@media (max-width: 48em){
	#start-red{
		height:auto;
		min-height:auto;
	}
}

form#search-advanced #outer-table{
	border-collapse:initial;
	border-radius:10px;
	margin:0px auto;
	border:10px solid white;
	background-color:white;
	text-shadow:none;
}
form#search-advanced #outer-table .search-leg-inner{
	border:0px solid white;
}

.submit{
	margin-left:0px;
	margin-top:10px;
}

#related-words{
	margin-top:10px;
	margin-bottom:20px;
}
#related-words h4{
	margin-bottom:0px;
}
#search-area{
	padding-top:50px;
}

#search-results{
	/*min-height:500px;*/
	padding:20px;
	display:none;
}
#search-results h2,#search-results h3,#search-results h4{
	border:none;
	margin:0px;
}

#search-results-simple h2,#search-results-simple h3,#search-results-simple h4{
	border:none;
	margin:0px;
}
#filters{
	padding:10px;
	border-radius: 3px;
	background-color: #F3F3F3;
	border: 1px solid #E1E3DF;
	border-bottom-color: #CBCCC9;
	margin: 0 0 12px;
}
#filters-list-country{
	margin-bottom:10px;
}
#filters-list-year img{
	position:relative;
	top:2px;
}
#results{
	margin-left:10px;
	word-break: break-all;
}
#search-results cite{
	float:right;
	clear:right;
	margin-left:5px;
}

#search-results-simple cite{
	float:right;
	clear:right;
	margin-left:5px;
}
a.pdf{
	float:right;
	margin-left:5px;
}
#pagination{
	padding-top:10px;
	padding-bottom:10px;
	text-align:center;
}

	#loading-overlay{
		background-color:#373737;
		opacity:0.7;
		position:absolute;
		width:100%;
		left:0px;
		color:white;
		text-align:center;
		font-size:4em;
		padding-top:50px;
		min-height:500px;
	}
#flags{
	text-align:center;
	max-width:50%;
	margin:0px auto;
}
@media (max-width: 48em){
	#flags{
		max-width:100%;
	}
}


/*
	Below lines are from search-advanced.css
*/
.search-leg{
	display:inline-block;
}
.search-leg{
	height:auto;
}
.search-leg-inner{
	vertical-align:middle;
	height:140px;
}
.search-leg,.search-leg-inner{
	padding:0px;
	border-spacing:0px;
}
.search-leg td,.search-leg-inner td{
	margin:0px;
	padding:0px;
}
.search-leg-inner{
	border:1px solid #e3e3e3;
	padding:5px;
}
.search-leg-connector{
	margin-right:5px;
}

.search-phrase{
	width:100%;
}

.submit{
	margin-left:5px;
}

.range{
	width:100%;
	height:30px;
	margin:0px;
}
.range-label{
	position:relative;
	top:-5px;
	font-size:small;
	text-align:center;
}

/* Links on far right */
#search-advanced-buttons{
	padding-left:10px;
}
	#search-advanced-buttons img{
		width:18px;
		height:18px;
		position:relative;
		top:3px;
	}
	#search-advanced-buttons #remove-leg-div{
		display:none;
	}
	#search-advanced-buttons div{
		padding-bottom:10px;
		font-size:small;
	}


/*
	New radio buttons
*/
.search-leg-connector input{
	height:auto;
	padding:auto;
}
.search-leg-connector label{
	border: 2px solid #1D9134;
    border-radius: 20px;
    display: block;
    cursor:pointer;
	padding: 0px 10px;
    margin-bottom:5px;
    font-weight:500px;
    background-color: #EEEEEE;
    color: #999999;
    height:auto;
}
.search-leg-connector label:hover,.search-leg-connector label.selected{
	color: white;
    background-color: #3EC725;
}



#fullimgbg{
	background-color:white;
	background-size:cover;
	padding:20px;
	height:90%;
	background-position:0% 50%;
}
	#fullimgbg .query-search-button{
		display: inline-block;
		padding: 20px 25px;
		border: 0px solid white;
		background-color:#e3e3e3;
		outline: 0;
		text-align: left;
		border-radius: 10px;
		height: auto;
		width: auto;
		cursor: pointer;
		font-size: 30px;
		margin: 0px auto;
		border:1px solid #333;
	}
	#fullimgbg .query-search-button:hover{
		background-color:#333;
		color:white;
	}

.highlight{
	background-color: #FFFF88;
}

.badge{
	display: inline;
	padding: .3em .6em;
	top: -2px;
	position: relative;
	background-color: none;
	border:1px solid black;
	color: black;
	text-align: center;
	white-space: nowrap;
	vertical-align: baseline;
	border-radius: .25em;
	font-style:normal;
	font-weight:normal;
	line-height:100%;
}

.badge-cat{
	display: inline;
	padding: .3em .6em;
	top: 2px;
	position: relative;
	background-color: #0078e7;
	color: #ffffff;
	text-align: center;
	white-space: nowrap;
	vertical-align: baseline;
	border-radius: .25em;
	font-style:normal;
	font-weight:normal;
	line-height:100%;
}

	.badge-idea{
		background-color:yellow;
		text-shadow:none;
		margin-bottom:3px;
		font-size:small;
		color:black;
		margin-right:3px;
		float:left;
		border-right:2px solid black;
		border-bottom:2px solid black;
	}
	.badge-idea a:link,.badge-idea a:visited{
		color:black;
		text-decoration:none;
	}

#flags{
	text-align:center;
}

#search-controller{
	float:left;
	width:220px;
}
#search-display{
	margin-left:230px;
}
#toggle-link-advanced a.pure-button{
	display:block;
	width:100%;
}
/* #results{
} */
	#controls{
		border-right:1px solid #e3e3e3;
		padding-right:3px;
		margin-right:3px;
	}
		#controls h4{
			border-bottom:1px solid #e3e3e3;
			margin-bottom:5px;
		}
		.control{
			line-height:20px;
		}
			.control img.flag{
				position:relative;
				top:5px;
			}
		#controls .selected{
			font-weight:bold;
		}
	.result{
		padding-bottom:3px;
		padding-top:3px;
		margin-bottom:3px;
		border-bottom:1px solid #e3e3e3;
		min-height:46px;
		width:100%;
		line-height:120%;
	}
	.result img{
		border:0px;
	}
	.result img.flag{
		float:left;
		padding-right:10px;
		position:relative;
		top:-3px;
		width:50px;
	}
	.result a:link,.result a:visited{
		font-weight:bold;
	}
	.result .preview{
		font-size:90%;
		color:#333;
		padding:3px;
		font-family:'Lyon Text', Georgia, Times, serif;
		line-height:1.3em;
	}
	.preview .h,.preview em{
		background-color:yellow;
		padding:1px;
	}
	.casestudy,#search-tip{
		background-color:#FFFFCC;
		border:1px solid yellow;
		margin-bottom:5px;
		padding:5px;
	}
	#cs-results-prepend-message{
		float:left;
		padding-bottom:5px;
		font-weight:bold;
	}
	.result .more-info-dropdown{
		position: relative;
		top: -1px;
		font-size:70%;
	}
		.result a.more-info-dropdown:link,.result a.more-info-dropdown:visited{
			font-weight:normal;
		}
	
	.result .more-info{
		padding: 10px;
		border-radius: 3px;
		border: 1px solid #E1E3DF;
		border-bottom-color: #CBCCC9;
		margin:10px 60px;
	}
		.result .more-info .pure-button{
			margin-top:5px;
		}

	#search-results .civil-penalties h3{
		margin-top:17px;
	}
	.result .civil-penalties{
		margin-top:5px;
	}
	#search-results .civil-penalties h2{
		padding-right:10px;
		padding-left:42px;
	}
	#search-results-simple .civil-penalties h3{
		margin-top:17px;
	}	
	#search-results-simple .civil-penalties h2{
		padding-right:10px;
		padding-left:42px;
	}
	.result table.stacked{
		color:white;
		font-size:90%;
		text-align:center;
		-ms-word-break: break-all;
		word-break: break-all;
		word-break: break-word;
		border-collapse:initial;
		border:1px solid black;
	}
		/*
		td.stacked-td0{
			background-color:rgb(28, 184, 65);
		}
		td.stacked-td1{
			background-color:#EE82EE;
		}
		td.stacked-td2{
			background-color:orange;
		}
		td.stacked-td3{
			background-color:#0078e7;
		}
		td.stacked-td4{
			background-color:rgb(202, 60, 60);
		}
		*/
		table.stacked td{
			min-width:5%;
		}
		td.stacked-td0{
			background-color:#27AE60;
		}
		td.stacked-td1{
			background-color:#BA4A00;
		}
		td.stacked-td2{
			background-color:#FF5733;
		}
		td.stacked-td3{
			background-color:#C70039;
		}
		td.stacked-td4{
			background-color:#900C3F;
		}
	#search-display #download-xml{
		padding-top:50px;
		padding-bottom:50px;
		text-align:center;
	}

.translated{
	background-color: darkred;;
    color: white;
    font-family: 'Lyon Text', Georgia, Times, serif;
    padding: 2px 4px;
    font-size: 90%;
    -webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}

#search-box{
	padding:10px;
	border:1px solid #e3e3e3;
	background:url('../img/FFFFFF-0.95.png');
	text-align:center;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}
	form input{
		font-size:20px;
		height:50px;
		padding:5px;
	}
	form input.btn{
		padding-left:15px;
		padding-right:15px;
	}

/*
	Responsive layout to make the control full screen at the top instead of to the side
*/
@media (max-width: 48em){
	#start-red{
		padding:10px;
	}
	#search-area{
		padding-top:0px;
	}
		input.query-input{
			font-size:1em;
			padding:5px;
			border-radius:inherit;
			border:inherit;
			min-width:100px;
			width:95%;
			max-width:100%;
		}

	#search-controller{
		float:inherit;
		width:100%;
	}
		/* Turn off the filter headings and state/province filter to save space */
		#filters h4{
			display:none;
		}
		#filters-list-province{
			display:none;
		}
		/*
			Make the years into a scrollable box because there's too many
			Do the same for countries but larger
		*/
		#filters-list-year{
			max-height:50px;
			overflow-y:scroll;
		}
		#filters-list-country{
			max-height:100px;
			overflow-y:scroll;
		}
	.control{
		display:line-block;
		padding-right:5px;
	}
	#search-display{
		margin-left:0px;
	}
	
	/*
		Hide the advanced links and related words boxes if the screen size is too small
	*/
	#search-extras{
		display:none;
	}
	#toggle-link-advanced{
		display:none;
	}
		
	#related-words{
		display:none;
	}
	
	#search-display #download-xml{
		padding-top:10px;
		padding-bottom:10px;
		text-align:center;
	}
	
}

/*
	Translated Laws
*/
#translated-search-box{
	background-color:#e3e3e3;
}
#translated-search-box h3{
	border:none;
	color:black;
	margin:0px;
	font-size:2em;
	padding-left:3px;
}

#q{
	height: auto;
	width: 30%;
	min-width: 250px;
	color: black;
	font-size: 20px;
	border-radius: 24px;
	border-color: rgb(223, 225, 229);
	border-width: 1px;
	border-style: solid;
	padding: 12px 20px;
}

#q2{
	height: auto;
	width: 30%;
	min-width: 250px;
	color: black;
	font-size: 20px;
	border-radius: 24px;
	border-color: rgb(223, 225, 229);
	border-width: 1px;
	border-style: solid;
	padding: 12px 20px;
}
