/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

@font-face {
	font-family: "SourceSansPro";
	src: local("SourceSansPro-Regular"),
		 url("../fonts/SourceSansPro-Regular.ttf");
}

#logocartosport {
	position : absolute;
	bottom: 20px;
	right: 5px;
	z-index:999;
	background-image:url('../../includes/img/logocartosport.jpg');
	width: 200px;
	height: 34px;
	background-size: contain;
	background-repeat: no-repeat;
	cursor : pointer;
	opacity : 0.8;
	border-radius: 7px;
}
.leaflet-control-attribution{
	max-height: 16px;
}
header{
	background-color: #0f5376;
	width: 100%;
	color: white;
	font-family: "SourceSansPro";
	height: 95px;
	cursor: pointer;
	position: relative;
}
header div{
	display: flex;
	align-items: center;
}
header img{
	height: 38px;
	margin-left: 5px;
}
header h1{
	padding: 5px 15px 0 15px;
	font-size: 2.5em;
}
header h2{
	padding: 5px 0 10px 15px;
	font-size: 1em;
}
header h3{
	padding: 0 0 3px 15px;
	font-size: 0.7em;
}
#sharing{
	position: absolute;
	right: 0;
	top: 30px;
}
#header-contact{
	background-image: url(../../includes/img/contact.png);
	background-size: 40px;
	background-position:center;
	background-repeat: no-repeat;
	width: 40px;
	height: 40px;
	cursor: pointer;
	margin-right: 30px;
}
#header-twitter{
	background-image: url(../../includes/img/twitter.png);
	background-size: 40px;
	background-position:center;
	background-repeat: no-repeat;
	width: 40px;
	height: 40px;
	cursor: pointer;
	margin-right: 10px;
}
#header-twitter:hover{
	background-image: url(../../includes/img/twitter_hover.png);
}
#header-facebook{
	background-image: url(../../includes/img/facebook.png);
	background-size: 40px;
	background-position:center;
	background-repeat: no-repeat;
	width: 40px;
	height: 40px;
	cursor: pointer;
	margin-right: 10px;
}
#header-facebook:hover{
	background-image: url(../../includes/img/facebook_hover.png);
}
#header-contact:hover{
	background-image: url(../../includes/img/contact_hover.png);
}
@media screen and (max-width: 650px) {
	#sharing{
		position: fixed;
		bottom:55px;
		height: 135px;
		right: 0;
		top: unset;
		width: 50px;
		flex-direction: column;
		z-index: 999;
	}
	#header-contact{
		margin-right: 10px;
		margin-top: 5px;
	}
	#header-twitter{
		margin-top: 5px;
	}
}

@media screen and (max-width: 500px) {
	header h1{
		font-size: 2em;
	}
	header img{
		height: 33px;
	}
	header h2{
		font-size: 0.8em;
	}
	header h3{
		font-size: 0.6em;
	}
	header {
		height: 80px;
	}
}
@media screen and (max-width: 430px) {
	header h1{
		padding-left: 5px;
	}
	header h2{
		padding-left: 5px;
	}
	header h3{
		padding-left: 5px;
	}
	header img:nth-child(even){
		display: none;
	}
}

nav {
	background-color: #0e4461;
	height: 30px;
	width: 100%;
	color: white;
	font-family: "SourceSansPro";
    display: flex;
    align-items: center;
	box-shadow: 0px 3px 3px 1px rgba(0,0,0,0.2);
}
nav div{
	display: flex;
	align-items:center;
	cursor: pointer;
	margin-left: 15px;
}
nav img{
	height: 20px;
	margin-right: 5px;
}

#map {
	position: fixed;	
	width: 100%;
	height: calc(100% - 125px);
}
@media screen and (max-width: 580px) {
	nav {
		height: 25px;
	}
	nav div{
		margin-left: 10px;
	}
	nav img{
		height: 15px;
		margin-right: 3px;
	}
	#map{
		height: calc(100% - 120px);
	}
}
@media screen and (max-width: 500px) {
	nav div{
		margin-left: 7px;
		font-size: 0.7em;
	}
	nav img{
		height: 13px;
		margin-right: 2px;
	}
	#map{
		height: calc(100% - 105px);
	}
}






.leaflet-popup-content-wrapper {
    box-shadow : none;
    background : none;
}
.leaflet-popup-content {
    margin: 0px; 
    line-height : none;
}
.leaflet-container a.leaflet-popup-close-button {
    color: black;
    font-size : 22px;
}
.leaflet-container a.leaflet-popup-close-button:hover {
    color : #01524b;
}


/* MAP POPUPS */

@font-face {font-family: "Awesome"; src: url('../fonts/Mf Really Awesome.ttf');}
@font-face {font-family: "Roboto"; src: url('../fonts/Roboto.ttf');}

#popup {
    width : 250px;
    background-color: white;
    box-sizing: border-box;
    border : 1px solid black;
}
#popup-header {
    padding : 5px 20px 5px 10px;
}
#popup-name {
    font: bold 1.4em Awesome;
	letter-spacing: 0.5px;
}
#popup-img {
    text-align : center;
    padding : 5px 10px 5px 10px;
}
#popup-img img{
    max-width : 230px;
	max-height : 230px;
    box-shadow : 0 0 6px 2px black;
}
#popup-comm{
    display : flex; 
    justify-content: space-between; 
    align-items: center;
    margin-top :5px;
    padding : 0 10px 0 10px;
}
#popup-comm-name{
    font: bold 1em Roboto;
    letter-spacing: 1.3px;
    color : #dac61a;
}
#popup-dpt {
    font: bold 1.2em Roboto;
    letter-spacing: 1.3px;
    color : #01524b;
}
#popup-notes{
    font: bold 1.1em Roboto;
    background-color : #e4e9eb;
    margin-top : 8px;
    padding : 5px 10px 5px 10px;
	user-select: none;
	cursor: pointer;
}
#popup-notes > p {
    margin : 0 0 3px 0;
}
#popup-notes > p > span{
    display : inline-block;
    width: 70px;
}
#popup-notes img{
    width: 15px;
    margin : 0 2px 0 2px;
}
#popup-footer {
    display : flex; 
    justify-content: space-between; 
    align-items: stretch;
    height: 40px;
    background-color : rgb(239 217 24);
}
#popup-footer img{
    width : 25px;
	margin-left: 3px;
}
#popup-footer div:first-child{
    align-self : center;
	padding-left: 10px;
}
#popup-footer div:first-child > span{
    font: bold 1em Roboto;
    letter-spacing: 0.2px;
}
#popup-view {
    cursor : pointer;
    padding-left : 10px;
    text-decoration : underline;
    font: bold 1em Roboto;
    letter-spacing: 1.3px;
    color : #01524b !important;
}
#popup-more{
    display : flex;
	align-items: center;
    background-color: #607d8b;
    color : white;
    padding: 0px 2px 0px 6px;
    font: normal 1em Roboto;
    letter-spacing: 1.1px;
    margin-top : 7px;
    margin-right : 7px;
    cursor : pointer;
}
#popup-more:hover{
    background-color: #f5784f;
}
#popup-more a{
    text-decoration:none;
    color: white;
}
.leaflet-popup-tip-container {
    overflow : visible;
}	
.leaflet-popup-tip {
    box-shadow : none;
    border-bottom : 1px solid black;
    border-right : 1px solid black;
    background-color : rgb(239 217 24);
	margin-top: -11px;
}	

.video-container {
    position: absolute;
	top: 0;
	left: 0;
	width: 100%;
    height: 100vh;
	display: flex;
	align-items : center;
	justify-content: center;
	background-color : rgb(0,0,0,0.85);
	z-index:1000;
}
.video-container iframe {
    max-width: 100%;
    max-height: 100%;
}
.close-video-container{
	position: absolute;
	top: 10px;
	right: calc(50% - 20px);
	font-size: 4em;
	line-height: 0.6em;
	color: white;
	font-weight: bold;
	cursor: pointer;
}
/* MAIL */
 
 #mail-container {
    position: fixed;
    z-index : 999;
    height: 100vh;
    width: 100%;
    top: 0; 
    background-color: rgba(0, 0, 0, 0.7); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}
#contact-title {
    margin : 3px 0;
    height :30px;
    color : #0f5376;
    font : bold 1.2em "SourceSansPro";
    padding : 5px; 
}
#requestForm {
    height : 500px;
    min-width: 360px;
    max-width: 500px;
    width: 500px;
    border-radius: 5px;
    background-color:white;
    position: relative;
}
#contact-container {
    height : 100%;
    width:100%;
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
#contact-mail, #contact-name, #contact-subject{
    margin : 3px 0;
    width : 90%;
    min-height : 30px;
    border :1px solid #0f5376;
    font : normal 1em "SourceSansPro";
    padding : 5px;
    border-radius : 2px;
    box-shadow : 0px 1px 2px rgba(0, 0, 0, 0.45);
}
#contact-name {
    margin-bottom : 20px;
}
#contact-content {
   margin : 3px 0;
   width : 90%;
   border :1px solid #0f5376;
   color :rgba(2, 119, 108, 1);
   font : normal 1em "SourceSansPro";
   padding : 5px;
   border-radius : 2px;
   min-height : 40px;
   box-shadow : 0px 1px 4px rgba(0, 0, 0, 0.45);
}
#submit-mail {
    margin : 3px 0;
    cursor : pointer;
    max-width:300px;
    width : 80%;
    min-height : 30px;
    border :1px solid #0f5376;
    color :#0f5376;
    font : bold 1em "SourceSansPro";
    background-color : #e8e8ff;
    padding : 5px; 
    border-radius : 2px;
    box-shadow : 0px 1px 4px rgba(0, 0, 0, 0.45);
}
#contact-response {
    margin : 3px 0;
    min-height :30px;
    color :rgba(2, 119, 108, 1);
    font : bold 1em "SourceSansPro";
    padding : 3px; 
}
#contact-close {
    color: #0f5376;
    height : 30px;
    line-height : 27px;
    font-size : 30px;
    width : 30px;
    text-align : center;
    font-family: "SourceSansPro";
    font-weight : 800;
    cursor : pointer;
    position : absolute;
    right: 5px;
    top : 5px;
}
#contact-close:hover {
    background-color : #0d47a1;
    color: white;
}
