/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
/*img,*/
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

  
html {
	height : 100%;
}
body {
	display : flex;
	height : 100%;
}	
#menu {
	width : 250px;
	height : 100%;
	flex-grow: 0; /* for IE11*/
	flex-shrink: 0; /* for IE11*/
	flex-basis: auto; /* for IE11*/
	z-index : 999;
	box-shadow: 0 0 20px rgb(0 0 0 / 30%);
}
#title {
	width : 100%;
	height : 150px;
	cursor : pointer;
}
.title_tour {
	background-image : url("../img/LOGO_tour.png");
}
.title_giro {
	background-image : url("../img/LOGO_giro.png");
}
.title_vuelta {
	background-image : url("../img/LOGO_vuelta.png");
}
#stage-container {
	width : 100%;
	height : calc(100% - 150px);
}
.stageview {
	display : flex;
	background-color: #fbfbfb;
	border-bottom : 2px solid #8c8c8c;
	padding-right:8px;
}
.stage {
	width : 220px;
	height : 80px;
	display : flex;
	flex-direction : column;
	box-sizing : border-box;
	cursor: pointer;
}
.date {
	height: 20px;
	font-family: 'Roboto', sans-serif;
	font-size : 0.7em;
	display: flex;
	align-items: center;
}
.infos-container {
	display : flex;
	align-items: center;
	height : 40px;
}
.stage-number {
	font-family: 'Roboto', sans-serif;;
	font-size : 1.8em;
	text-align: center;
	min-width: 44px;	
}
.stage-cities {
	height : 100%;
	font-family: 'Roboto', sans-serif;
	font-weight : bold;
	font-size : 0.7em;
	display:flex;
	flex-direction: column;
}
.city {
	height : 50%;
	display: flex;
	align-items: center;
}
.viewbox {
	margin-top : 26px;
	height : 28px;
	width: 30px;
	cursor : pointer;
}
.meta {
	height : 20px;
	font-family: 'Roboto', sans-serif;
	font-size : 0.7em;
	display: flex;
	align-items: center;
	margin-left: 44px;
}
.meta_deniv{
	margin-left: 14px;
}
#maps {
	height : 100%;	
	width: 100%;
	overflow:hidden;
}
#map-container {
	height : 100%;	
	width: calc(100% - 250px);
	position: absolute;
	z-index: 1;
}
#gmap-container {
	height : 100%;	
	width: 100%;
	position: relative;
	left: 100%;
}
#switcher {
	width : 40px;
	height : 40px;
	z-index: 3;
	position: fixed;
	right : 10px;
	bottom : 200px;
	background-color: white;
	border-radius : 4px;
	border : 2px solid rgba(0,0,0,0.2);
	cursor : pointer;
	background-size : contain;
	background-repeat : no-repeat;
}
#map {
	position : fixed; 
	width: calc(100% - 250px); 
	height: 100%; 
}
#tool-button{
	z-index: 999;
	position: absolute;
	left: 10px;
	border-radius: 4px;
	width: 30px;
	height: 30px;
	bottom: 220px;
	border: 2px solid rgba(0,0,0,0.2);
	background-color: white;
	background-clip: padding-box;
	background-image: url(../img/tool.png);
	background-size: 16px;
	background-repeat: no-repeat;
	background-position: center;
	cursor: pointer;
}
#tool-container{
	z-index: 999;
	display: flex;
	flex-direction: column;
	justify-content:space-between;
	border-right: 1px solid lightgrey;
	border-bottom: 1px solid lightgrey;
	border-top: 1px solid lightgrey;
	padding: 1px 0px 1px 5px;
	position: absolute;
	left: 43px;
	width: 90px;
	height: 28px;
	bottom: 221px;
	background-color: white;
}
#tool-container > div{
	display: flex;
	font: normal 10px Arial;
	align-items: center;
	max-height: 13px;
	overflow: hidden;
	white-space: nowrap;
}
#tool-container label{
	margin-left: 5px;
	cursor: pointer;
}
.fa-map-marker, .fa-spinner, .fa-spin  {
	background-image: url(../img/locator.png);
	background-size: 28px;
	width: 28px;
	height: 28px;
	display: block;
}
.leaflet-control.active a{
	background-color: #ffc !important;
}
.leaflet-popup-content-wrapper {
	background: rgba(255,255,255,0.9) !important;
	box-shadow: none !important;
	border: 1px solid black;
	border-radius: 0 !important;
	padding: 0!important;
	text-align: center !important;
}
.leaflet-popup-content {
	margin: 5px !important;
}
.leaflet-popup-tip-container{
	border: none !important;
}
.leaflet-tooltip {
	background-color: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}
.leaflet-label {
	text-shadow : 0 0 3px white;
	color: black;
	display: block;
	font-family: 'Roboto', sans-serif;
	font-size : 12px;
	font-weight: bold;
	padding: 1px 6px;
	position: absolute;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	white-space: nowrap;
	z-index: 666 !important;
}
.etapelabel {
	white-space : pre !important;
	padding : 3px !important;
	text-align :center;
	border-radius : 3px !important;
	opacity : 0.9 !important;
	background-color: white !important;
	z-index: 999;
}
.cols {
	color: rgb(255,0,0);
	text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff
}
.sprints {
	color: rgb(29,147,62);
	text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff
}
.bonus_tour {
	color: rgb(250,211,65);
	text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff
}
.bonus_giro {
	color: rgb(253,129,163);
	text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff
}
.startLabel {
	background: rgb(255,255,255) !important;
	border-radius: 3px !important;
	border: 2px solid rgb(0,107,166) !important;
	opacity: 0.9 !important;
	color: rgba(0,0,0,0.9) !important;
	padding: 0px 5px !important;
	font-weight: bold;
}
.endLabel {
	background: rgb(255,255,255) !important;
	border-radius: 3px !important;
	border: 2px solid black !important;
	opacity: 0.9 !important;
	color: rgba(0,0,0,0.9) !important;
	padding: 0px 5px !important;
	font-weight: bold;
	z-index: 1;
}
.leaflet-label.leaflet-clickable {
	cursor: pointer;
	pointer-events: auto;
}
.leaflet-label:before,
.leaflet-label:after {
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	content: none;
	position: absolute;
	top: 5px;
}
.leaflet-label:before {
	border-right: 6px solid black;
	border-right-color: inherit;
	left: -10px;
}
.leaflet-label:after {
	border-left: 6px solid black;
	border-left-color: inherit;
	right: -10px;
}
.leaflet-label-right:before,
.leaflet-label-left:after {
	content: "";
}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: 0;
	border-left-color: transparent;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: 0;
	border-right-color: transparent;
}
#gmapstr{
	background: url(../img/backg.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	display: flex;
	align-items: center;
}
.jscolor {
	border-radius: 5px;
	border: 1px solid #797979 !important;
	box-sizing: border-box;
}
.mCSB_outside+.mCSB_scrollTools{
	right: -5px !important;
}
.socialicons {width : 30px;	height : 30px;	cursor : pointer;	background-size: contain;}
#socialfb {	background-image : url(../img/share-facebook.png); position : fixed; left : 175px; top : 3px; z-index : 999;}
#socialtw {	background-image : url(../img/share-twitter.png); position : fixed; left : 215px; top : 3px; z-index : 999;}
#commentstreetview{
	color: white;
	text-align: center;
	padding: 20px;
	font: normal 25px Arial;
	text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black
}
#reduceprofilleft{
	background-image: url("../img/reduce_grey.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 8px;
    width: 15px;
	transform: rotate(0deg);
    position: absolute;
    left: 10px;
    top: 8px;
    transition-duration: .3s;
	cursor: pointer;
}
#reduceprofilright{
	background-image: url("../img/reduce_grey.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 8px;
    width: 15px;
	transform: rotate(0deg);
    position: absolute;
    right: 10px;
    top: 8px;
    transition-duration: .3s;
	cursor: pointer;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media screen and (max-width: 875px) {
	#menu, #socialfb, #socialtw {
		display : none;
	}
	#map-container, #map {
		width : 100%;
	}
}
@media screen and (max-width: 400px) {
	.leaflet-control-search {
		display : none;
	}
}
@media print {
	#map {
        width: 100%;
		height : 100%;
		margin : 0;
		padding :0 ;
	}
	#chartid span {
		color : white !important;
	}
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
    display: none !important;
    visibility: hidden;
}
.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}
.invisible {
    visibility: hidden;
}
.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}
.clearfix:after {
    clear: both;
}
.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    a,
    a:visited {
        text-decoration: underline;
    }
    a[href]:after {
        content: " (" attr(href) ")";
    }
    abbr[title]:after {
        content: " (" attr(title) ")";
    }
    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }
    thead {
        display: table-header-group;
    }
    tr,
    img {
        page-break-inside: avoid;
    }
    img {
        max-width: 100% !important;
    }
    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }
    h2,
    h3 {
        page-break-after: avoid;
    }
}