/* Always set the map height explicitly to define the size of the div
 * element that contains the map. */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Optional: Makes the sample page fill the window. */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-size: 1em;
}

body {
	background-color: #d71920; 
	color: #444;
}

#map {
  	height: 100%;
  	float: left;
  	width: 100%;
}

#map-canvas {
	height: 100%;
	width: 100%;
}

#side {
	background-color: white;
	float: left;
	padding: 10px 30px 30px;
	position: relative;
	max-width: 414px;
	width: 100%;
}

div {  }

fieldset {
	border: 0;
	padding: 0;
}

a:link, a:visited {
	color: #d71920;
}

a:hover, a:focus {
	color: #444444;
}

h1 {	
	display: block;
	height: 94px;
	margin: 0 auto 10px;
	text-indent: -9999px;
	max-width: 100%;
	width: 260px;
}

h1 a {
	background: url('images/semichem-logo.png') no-repeat center center;
	background-size: 260px 94px;
	display: block;
	height: 94px;
	line-height: 1px;
	text-indent: -9999px;
	max-width: 100%;
	width: 260px;
}

h2 {
	color: #d71920;
	font-size: 1.625em;
	margin-bottom: 1em;
	text-align: center;
	text-transform: uppercase;
}

label {
	display: block;
	font-size: 1em;
	line-height: 1.5em;
	margin-bottom: 1.5em;
	text-align: center;
	width: 100%;
}


li {
	list-style: none;
	padding: 15px 0;
	border-bottom: 1px solid #c7c7c7;
}

li p {
	font-size: 1em;
	line-height: 1.625em;
}

li p strong {
	font-size: 1.125em;
	color: #d71920;
}

li p.phone-line {
	font-size: 1.125em;
	line-height: 2em;
}

li p.phone-line strong {
	font-size: 1em;
}

.text{
	border: 1px solid #c7c7c7;
	padding: 10px;
	margin-bottom: 20px;
	display: block;
	width: 100%;
}

.text:focus {
	border-color: #d71920;
	outline: none;
}

.centered {
	text-align: center;
}

.view-on-map {
	font-weight: 700;
	display: inline-block;
	margin: 10px 0;
	background-color: #d71920;
	text-decoration: none;
	padding: 10px;
	text-transform: uppercase;
}

.view-on-map:link,
.view-on-map:visited {
	color: white;

}

#search-results {
	height: 280px;
	overflow-y: scroll;
	width: 280px;
}

.opening-hours {
	display: none;
	padding: 10px 0;
}
.opening-hours.open {
	display: block;
}

.opening-hours span {
	display: inline-block;
	font-weight: 700;
	width: 50px;
}

.return-to-main:link, .return-to-main:visited {
	background-color: #d71920;
	color: #fff;
	display: block;
	padding: 10px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

.stores-located {
	margin-bottom: 10px;
	text-align: center;
}

.window-logo {
	margin: 0 auto;
}

@media only screen and (min-width: 460px){
	#side {
		height: 100%;
		overflow-y: scroll;
		width: 50%;
	}
	h2 {
		display: none;
	}
	#map {
		width: 50%;
	}
	.view-on-map {
		display: none;
	}
	.return-to-main {
		position: absolute;
		right: 10px;
		top: 10px;
		z-index: 1000;
	}
}

@media only screen and (min-width: 768px){
	#side {
		height: 50%;
		max-width: 100%;
		width: 100%;
	}
	#map {
		height: 50%;
		width: 100%;
	}
	#search-results {
		width: 100%;
	}
	.text {
		max-width: 320px;
		margin: 0 auto 34px;
	}
	h1 {
		margin: 0 auto 10px;
	}
	ul {
		display:flex;
		flex-wrap: wrap;
	}
	li {
		flex-grow: 1;
		margin: 0 2%;
		width: 46%;
	}
}

@media only screen and (min-width: 1024px){
	#side {
		height: 100%;
		width: 414px;
		overflow: hidden;
	}
	#map {
		height: 100%;
		width: calc(100% - 414px);
	}
	/*.top {
		height: calc(25vh - 30px);
	}
	#search-results {
		height: calc(75vh - 30px);
	}*/
	label {
		padding: 0 30px;
	}
	ul {
		display: block;
	}
	li {
		width: 300px;
	}
}

@media only screen and (min-width: 768px) and (min-height: 1024px){
	#search-results {
		height: 240px;
	}
}

@media only screen and (min-width: 1024px) and (min-height: 600px){
	#search-results {
		height: 350px;
	}
}

@media only screen and (min-width: 1024px) and (min-height: 768px){
	#search-results {
		height: 520px;
	}
}

@media only screen and (min-width: 1024px) and (min-height: 900px){
	#search-results {
		height: 650px;
	}
}