html, body{
	margin: 0px;
    padding: 0px;
    background: #eee;
    color: #333;
    font-family: helvetica, arial, sans-serif;
    font-size: 14px;
    line-height: 1.4em;
}
#main, #header {
    width: 1200px;
    margin: 5px auto;
}
#main {
    box-sizing: border-box;
    padding: 10px;
    background: white;
    padding: 25px;
    padding-bottom:15px;
}

a{
	color:black;
	text-decoration:none;
}
a:hover{
	text-decoration:underline;
}
#header{
	display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
    /* align-items: stretch; */
    box-sizing: border-box;
    padding-right: 40px;
}
#header img{
	max-width:100%;
}
#map_container{
	text-align:center;
	position:relative;
	margin:0px auto;
	max-width:600px;
}
.marker{
	position:absolute;
	top:0px;
	left:0px;
	margin-top:-32px;
	margin-left:-32px;
	pointer-events: none;
}
#map_container img#map{
	width:100%;
}
.container{
	text-align:center;
	padding:10px;
}
.textfield{
	padding:10px;
	background:white;
	border: #333 1px solid;
	box-shadow:1px 1px 2px rgba(0,0,0,0.6);
	font-size:15px;
	width:80%;
    box-sizing: border-box;
}
label{
	display:block;
}

#image_container{
	text-align:center;
}

#image_container img{
	max-width:100%;
}

#galeria{
	display:flex;
	flex-direction:row;
	justify-content:space-around;
	align-items:stretch;
	flex-wrap:wrap;
}

.gal_img{
	box-sizing:border-box;
	width:33%;
	padding:5px;
}

.col4 .gal_img{
	width:25%;
}

.gal_img img{
	max-width:100%;
}

.gal_img:hover{
	opacity:0.8;
}

#main_img{
	display:flex;
	flex-direction:row;
}

#map_results_container{
	width:60%;
}

#image_container{
	width:40%;
}

.button_container{
	text-align:center;
}

button, .button{
	text-decoration:none;
	color:white;
	background:black;
	font-size:16px;
	padding:10px 20px;
	border-radius:2px;
	cursor:pointer;
	border:none;
	display:inline-block;
}

button:hover, .button:hover{
	background:#444;
}

.gallery_main_photo{
	display:block;
	height:0;
	padding-bottom:100%;
	background-size:cover;
	color:white;
	text-shadow:1px 1px 1px #000;
	text-align:center;
	position:relative;
	border:#fff 5px solid;
}

.gallery_main_photo span{
	position:absolute;
	bottom:0px;
	left:0px;
	right:0px;
}

.speech-bubble {
	position: relative;
	background: #00aabb;
	border-radius: .4em;
	margin-bottom:30px;
	padding:20px 30px;
	text-align:center;
	color:white;
	font-weight:bold;
	text-shadow:1px 1px 1px #000;
	font-size:20px;
	line-height:1.4em;
	
}

.speech-bubble:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 0;
	border: 29px solid transparent;
	border-top-color: #00aabb;
	border-bottom: 0;
	border-right: 0;
	margin-left: -14.5px;
	margin-bottom: -29px;
}

.speech-bubble.first_bubble:after {
	left:15%;
}

#wyniki{
	position: relative;
	background: #ddd;
	border-radius: .4em;
	margin-bottom:30px;
	padding:20px 30px;
	text-align:center;
	color:white;
	font-weight:bold;
	text-shadow:1px 1px 1px #000;
	font-size:20px;
	line-height:1.4em;
}

#wyniki .wynik{
	border-radius:.3em;
	background:rgba(0,0,0,0.4);
	padding:5px 10px;
	text-align:center;
	margin:5px 0px;
}

#wyniki .wynik.text_good{
	background:#31CD51;
}

#wyniki .wynik.text_almost_good{
	background:#8DC02C;
}

#wyniki .wynik.text_close{
	background:#B7C02C;
}

#wyniki .wynik.text_almost_close{
	background:#E2A211;
}

#wyniki .wynik.text_average{
	background:#EE5606;
}

#wyniki .wynik.text_bad{
	background:#C02C2D;
}

.gallery_main_photo.text_good{
	border-color:#31CD51;
}

.gallery_main_photo.text_almost_good{
	border-color:#8DC02C;
}

.gallery_main_photo.text_close{
	border-color:#B7C02C;
}

.gallery_main_photo.text_almost_close{
	border-color:#E2A211;
}

.gallery_main_photo.text_average{
	border-color:#EE5606;
}

.gallery_main_photo.text_bad{
	border-color:#C02C2D;
}
.foot {
	text-align:right;
	padding:10px;
}
.powrot{
	text-align:center;
	padding:10px;
	margin-bottom: 30px;
}

/*menu wysuwane*/
#overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    background: black;
    background: rgba(0,0,0,0.5);
}

#overlay_close {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 2001;
}

#overlay_inner {
    position: absolute;
    background: #ABD1CD;
    top: 0px;
    bottom: 0px;
    width: 250px;
    right: -250px;
    box-shadow: -1px 0px 4px rgba(0,0,0,0.8);
    overflow: auto;
    box-sizing: border-box;
    padding-top: 60px;
    z-index: 2002;
}

#menu_hide {
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 2003;
	background:#d62a22;
	border-radius:4px;
	padding:5px;
	margin:-5px;
	display:block;
	line-height:0;
}

#menu_left{
	background:#d62a22;
	border-radius:4px;
	padding:5px;
	margin:-5px;
	display:block;
	line-height:0;
}

#menu_hide img,
#menu_left img{
	transition: transform 0.25s ease-in-out;
    transform: rotate(0deg);
}

#menu_hide:hover img,
#menu_left:hover img{
    transform: rotate(90deg);
}

#menu_button{
	z-index:500;
	position:fixed;
	top:10px;
	right:20px;
}

#overlay_inner ul{
	margin:0px;
	padding:15px 0px;
	list-style:none;
}

#overlay_inner ul li{
	padding-right:10px;
	padding-top:5px;
	padding-bottom:5px;
	border-top:rgba(0,0,0,0.3) 1px solid;
}
#overlay_inner ul li.active{
	background:#96bdb9;
}

#overlay_inner ul li:first-child,
#overlay_inner ul li:first-child a{
	border:none;
}

#overlay_inner ul li a{
	display:block;
	transition: transform 0.25s ease-in-out;
	padding:10px 15px;
	font-size:18px;
	color:#333;
	text-decoration:none;
	text-transform:uppercase;
}

#overlay_inner ul li a:hover{
	 transform: translate(10px,0);
}

@media only screen and (max-width: 1210px) {
	#main, #header {
    	width: auto;
    	margin: 5px;
	}
}

@media only screen and (max-width: 1000px) {
	#main_img{
		flex-direction:column;
	}
	#map_results_container{
		width:auto;
	}

	#image_container{
		width:auto;
	}
	#wyniki, .speech-bubble{
		font-size:18px;
	}

}

@media only screen and (max-width: 700px) {
	.gal_img{
		width:50%;
	}
	#wyniki, .speech-bubble{
		font-size:16px;
	}
	
}