@font-face {
  font-family: "Handlee Regular";
  src: url("Handlee-Regular.ttf");
}

*:focus {
    outline: none !important;
}

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

.marker {
  background-image: url('cible_bouton.svg');
  background-size: cover;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
}

.mapboxgl-popup-tip {

    opacity: 0.8;
}

.mapboxgl-popup-content {

    padding: 5px 7px 2px;
    height: 20px;
    font-family: "Handlee Regular",sans-serif;
    font-size: 18px;
    border-radius: 20px;
    opacity: 0.8;
    display: flex;
}

.mapboxgl-popup-content > div {

    position: relative;
    top: -2px;
}

.mapboxgl-popup-anchor-bottom {

    padding-bottom: 10px;
}

.mapboxgl-popup-anchor-top {

    padding-top: 10px;
}

.mapboxgl-popup-anchor-left {

    padding-left: 10px;
}

.mapboxgl-popup-anchor-right {

    padding-right: 10px;
}

html, body {

	padding: 0;
	margin: 0;
    overflow: hidden;
}

#geolocCtrl {

    width: 29px;
    height: 29px;
    font-size: 18px;
    background-color: white;
    background-image: url(geolocate.svg);
    border-radius: 4px;
    box-shadow: 0 0 0 2px rgba(0,0,0,.1);
    -moz-box-shadow: 0 0 0 2px rgba(0,0,0,.1);
    -webkit-box-shadow: 0 0 0 2px rgba(0,0,0,.1);
    -o-box-shadow: 0 0 0 2px rgba(0,0,0,.1);
    text-align: center;
    display: flex;
}

#geolocCtrl:hover {

    cursor: pointer;
    background-color: #f0f0f0;
}

#svgGeoloc {

    width: 30px;
    height: 30px;
}

#svgGeolocWithHeading {

    width: 100px;
    height: 100px;
}

@keyframes pulseTransition {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

#pulse {
    transform-origin: center;
    transform: scale(1);
}

#pulse.animated {
    animation-duration: 2s;
    animation-iteration-count: 1;
    animation-name: pulseTransition;
}

#unzoomCtrl {

    width: 29px;
    height: 29px;
    font-size: 18px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 0 0 2px rgba(0,0,0,.1);
    -moz-box-shadow: 0 0 0 2px rgba(0,0,0,.1);
    -webkit-box-shadow: 0 0 0 2px rgba(0,0,0,.1);
    -o-box-shadow: 0 0 0 2px rgba(0,0,0,.1);
    text-align: center;
    display: flex;
}

#unzoomCtrl > span {

    margin: auto;
}

#unzoomCtrl:hover {

    cursor: pointer;
    background-color: #f0f0f0;
}

#reload {

    width: 29px;
    height: 29px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 0 0 2px rgba(0,0,0,.1);
    -moz-box-shadow: 0 0 0 2px rgba(0,0,0,.1);
    -webkit-box-shadow: 0 0 0 2px rgba(0,0,0,.1);
    -o-box-shadow: 0 0 0 2px rgba(0,0,0,.1);
    text-align: center;
}

#reload:hover {

    cursor: pointer;
    background-color: #f0f0f0;
}

#reload > img {

    width: 23px;
    height: 23px;
    padding: 3px;
}

@media (max-device-width: 480px) {
  
    #unzoom {

        display: none;
    }
}

@media (min-device-width: 480px) {
    
    #unzoom {

        position: absolute;
        top: 3px;
        right: 5px;
        width: 100px;
    }

    #unzoom:hover {

        cursor: 'pointer';
    }
}

@media (max-width: 480px) {
  
    #searchPanel {

        position: absolute;
        top: 10px;
        left: 10px;
        width: calc(100% - 20px);
        z-index: 5;
    }
}

@media (min-width: 480px) {
    
    #searchPanel {

        position: absolute;
        top: 10px;
        left: 10px;
        width: 405px;
        z-index: 5;
    }
}

.searchPanelVisible {

    opacity: 1;
}

.searchPanelHidden {

    opacity: 0;
    pointer-events: none;
}

.containerInputVisible {

    opacity: 1;
}

.containerInputHidden {

    opacity: 0;
    pointer-events: none;
}

#searchInput {

	font-family: Verdana,Arial,Helvetica,sans-serif;
	font-size: 14px;
	border-radius: 5px;
	border: none;
    box-shadow: 0px 0px 5px 0px #A0A0A0;
	-moz-box-shadow: 0px 0px 5px 0px #A0A0A0;
	-webkit-box-shadow: 0px 0px 5px 0px #A0A0A0;
	-o-box-shadow: 0px 0px 5px 0px #A0A0A0;
	width: 100%;
	padding: 10px;
    box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}

#searchInput:focus {

    outline: none;
}

#containerInput {
    height: 35px;
    display: flex;
    align-items: center;
    transition: opacity 0.5s ease;
    -webkit-transition: opacity 0.5ss ease;
}

@media (min-width: 480px) {
    
    #containerInput {

        padding-right: 5px;
    }
}

#searchIcon {
    position: absolute;
    color: grey;
    background-color: white;
    border-radius: 5px;
    font-size: 20px;
    padding: 7px;
    box-shadow: 2px 2px 2px rgba(0,0,0,0.3);
    -moz-box-shadow: 2px 2px 2px rgba(0,0,0,0.3);
    -webkit-box-shadow: 2px 2px 2px rgba(0,0,0,0.3);
    -o-box-shadow: 2px 2px 2px rgba(0,0,0,0.3);
}

.searchIconHidden {

    z-index: -1;
    pointer-events: none;
    visibility: hidden;
}

#clearInput {

    width: 30px;
    position: absolute;
    right: 0;
    color: lightgrey;
    font-size: 22px;
}

#clearInput:hover {

    cursor: 'pointer';
    color: black;
}

#searchResultsContainer {

    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: calc(100%);
    margin-top: 5px;
}

#searchResults {

    margin-right: 0px;
    margin-top: 0px;
    padding: 0px;
    list-style-type: none;
    background-color: white;
    font-family: Verdana,Arial,Helvetica,sans-serif;
    font-size: 14px;
    overflow: hidden;
    box-shadow: 0px 0px 5px 0px #A0A0A0;
    -moz-box-shadow: 0px 0px 5px 0px #A0A0A0;
    -webkit-box-shadow: 0px 0px 5px 0px #A0A0A0;
    -o-box-shadow: 0px 0px 5px 0px #A0A0A0;
    border-radius: 5px;
}

@media (min-width: 480px) {
    
    #searchResults {

        width: 400px;
        margin-right: 5px;
    }
}

#searchResults li {

    padding: 10px;
    border-bottom: 1px solid #F0F0F0;
}

#searchResults li:last {

    border-bottom: none;
}

#searchResults li:hover {

    background-color: #F0F0F0;
    cursor: default;
}

@media (max-width: 480px) {
  
    #poiContainer {

        width: 100%;
        position: absolute;
        left: 0px;
        border-radius: 0px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 5;
    }

    .poiContainerHalf {

        max-height: 60vh;
    }

    .poiContainerFull {

        height: 100vh;
    }

    #poiPanel {

        position: relative;
        transition: top 0.3s ease;
        -webkit-transition: top 0.3s ease;
        -o-transition: top 0.3s ease;
        -moz-transition: top 0.3s ease;
        border-radius: 5px;

        background-color: white;
        box-shadow: 5px 5px 5px rgba(0,0,0,0.3);
        -moz-box-shadow: 5px 5px 5px rgba(0,0,0,0.3);
        -webkit-box-shadow: 5px 5px 5px rgba(0,0,0,0.3);
        -o-box-shadow: 5px 5px 5px rgba(0,0,0,0.3);
        display: block;
    }

    .poiPanelVisible {

        top: 0px;
    }

    .poiPanelHidden {

        top: -1000px;
    }
}

@media (min-width: 480px) {
    
    #poiContainer {

        width: 405px;
        max-height: 80vh;
        position: absolute;
        top: 50px;
        border-radius: 5px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;

        padding-right: 5px;
    }

    #poiPanel {

        width: 400px;

        transition: left 0.3s ease;
        -webkit-transition: left 0.3s ease;
        -o-transition: left 0.3s ease;
        -moz-transition: left 0.3s ease;

        border-radius: 5px;

        background-color: white;
        box-shadow: 5px 5px 5px rgba(0,0,0,0.3);
        -moz-box-shadow: 5px 5px 5px rgba(0,0,0,0.3);
        -webkit-box-shadow: 5px 5px 5px rgba(0,0,0,0.3);
        -o-box-shadow: 5px 5px 5px rgba(0,0,0,0.3);
        display: block;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .poiPanelVisible {

        left: 10px;
    }

    .poiPanelHidden {

        left: -500px;
    }
}

.poiPhotoHidden {

	display: none;
}

#poiVideo {

    width: 100%;
    height: 200px;
    border: none;
}

.poiVideoHidden {

    display: none;
}

#poiTitle {
    font-size: 20px;
    color: #000000;
    font-weight: bold;
    background-color: #FFFFFF;
    line-height: 1.3;
    font-family: "Handlee Regular",sans-serif;
    margin-left: 10px;
    margin-top: 10px;
    margin-right: 10px;
}

#poiTitle > div {

    position: relative;
    top: 3px;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}

@media (max-device-width: 480px) {
  
    #pin {

        display: none;
    }
}

@media (min-device-width: 480px) {
    
    #pin {

        padding: 10px;
    }

    #pin:hover {

        color: red;
    }

    .pinHidden {

        display: none;
    }

    .pinActive {

        color: red;
    }
}

#poiDescription {
    color: black;
    font-size: 14px;
    line-height: 1.3;
    font-family: Verdana,Arial,Helvetica,sans-serif;
    margin-left: 10px;
    margin-right: 10px;
    padding-top: 10px;
}

#poiPhoto {

    width: 100%;
    position: relative;
    overflow: hidden;
}

@media (min-width: 480px) {
  
    #poiPhoto {

        border-radius: 5px;
    }
}

#poiPhoto > img {

    position: absolute;
    transition: opacity 2s 0.3s, width 1.5s, left 1.5s, top 1.5s;
    -webkit-transition: opacity 2s 0.3s, width 1.5s, left 1.5s, top 1.5s;
    -o-transition: opacity 2s 0.3s, width 1.5s, left 1.5s, top 1.5s;
    -moz-transition: opacity 2s 0.3s, width 1.5s, left 1.5s, top 1.5s;
}

.topImage {

    z-index: 2;
    opacity: 1;
    width: 100%;
    left: 0%;
}

.middleImage {

    z-index: 1;
    opacity: 0;
    width: 120%;
    left: -10%;
}

.bottomImage {

    z-index: 0;
    opacity: 0;
    width: 100%;
    left: 0%;
}

#link {

    z-index: 3;
}

#link > a {

    font-family: Verdana,Arial,Helvetica,sans-serif;
    text-decoration: none;
    color: black;
    border-radius: 5px;
    padding: 5px;
}

.linkHidden {

    display: none;
}

.linkNoPhoto {

    padding-top: 10px;
    text-align: right;
    padding-right: 5px;
}

.linkWithPhoto {

    position: absolute;
    right: 5px;
    top: 150px;
}

@media (max-width: 480px) {
  
    .linkWithPhoto {

        position: absolute;
        right: 5px;
        top: 150px;
    }
}

@media (min-width: 480px) {
  
    .linkWithPhoto {

        position: absolute;
        right: 15px;
        top: 150px;
    }
}

.linkWithPhoto > a {

    background-color: rgba(255,255,255,0.7);
}

.linkNoPhoto > a {

    background-color: rgba(200,200,200,0.7);
}

#album {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    transition: opacity 1s;
    -webkit-transition: opacity 1s;
    -o-transition: opacity 1s;
    -moz-transition: opacity 1s;
}

.albumVisible {

    opacity: 1;
}

.albumHidden {

    opacity: 0;
}

.albumPointerEventsNone {

    pointer-events: none;
}

.cardShadow {

    position: absolute;
    background-color: rgba(0,0,0,0.4);
    box-shadow: 0 0 10px 10px rgba(0,0,0,0.4);
    top: 0px;
    left: 0px;
    transform: translate(100px,500px) rotateZ(0deg) scale(1);
    -webkit-transform: translate(100px,500px) rotateZ(0deg) scale(1);
    -o-transform: translate(100px,500px) rotateZ(0deg) scale(1);
    -moz-transform: translate(100px,500px) rotateZ(0deg) scale(1);
}

.cardShadowFar {

    opacity: 0;
}

.cardShadowNear {

    opacity: 1;
}

.cardShadowHidden {

    visibility: hidden;
}

.card {

    position: absolute;
    top: 0px;
    left: 0px;
    transform: translate(0px,0px) rotateZ(0deg) scale(1);
    -webkit-transform: translate(0px,0px) rotateZ(0deg) scale(1);
    -o-transform: translate(0px,0px) rotateZ(0deg) scale(1);
    -moz-transform: translate(0px,0px) rotateZ(0deg) scale(1);
    opacity: 1;
    transition: opacity 2s;
    -webkit-transition: opacity 2s;
    -o-transition: opacity 2s;
    -moz-transition: opacity 2s;
}

.cardVisible {

    pointer-events:auto;
}

.cardShadowPath {

    width: 103%;
    height: 103%;
    background-color: rgba(30, 30, 30, 0.7);
    clip-path: polygon(2% 80%, 3% 98%, 50% 89%, 100% 100%, 95% 2%);
    -webkit-clip-path: polygon(2% 80%, 3% 98%, 50% 89%, 100% 100%, 95% 2%);
}

.cardShadows {

    filter: drop-shadow(10px 15px 7px rgba(0, 0, 0,0.8)) blur(7px);
}

.cardShadowsFar {

    opacity: 0;
}

.cardShadowsNear {

    opacity: 1;
}

.cardShadowsFarNear {

    transition: opacity 0.4s 0.6s;
    -webkit-transition: opacity 0.4s 0.6s;
    -o-transition: opacity 0.4s 0.6s;
    -moz-transition: opacity 0.4s 0.6s;
}

.cardShadowsNearFar {

    transition: opacity 0.2s;
    -webkit-transition: opacity 0.2s;
    -o-transition: opacity 0.2s;
    -moz-transition: opacity 0.2s;
}

.cardAnimated {

    transition: transform 1s;
    -webkit-transition: -webkit-transform 1s;
    -o-transition: -o-transform 1s;
    -moz-transition: -moz-transform 1s;
}

.cardShadowAnimated {

    transition: transform 1s, opacity 1s;
    -webkit-transition: -webkit-transform 1s, opacity 1s;
    -o-transition: -o-transform 1s, opacity 1s;
    -moz-transition: -moz-transform 1s, opacity 1s;
}

.cardBackground {

    background-color: white;
    position: absolute;
    left: 0px;
    top: 0px;
}

.cardBackground > img {

    margin: 10px;
}

.cardTitle {

    font-family: "Handlee Regular",sans-serif;
    font-size: 20px;
    margin-left: 10px;
    height: 30px;
    overflow: hidden;
}

.cardPin {

    position: absolute;
    left: 45%;
    top: -37px;
    width: 50px;
    height: 50px;
}

@keyframes imagePlaneIn {

    0% {
        opacity: 1;
        width: 400px;
        height: 200px;
        top: 50px;
        left: 10px;
    }

    100% {
        opacity: 1;
        width: 100%;
        height: 100%;
        top: 0px;
        left: 0px;
    }
}

@keyframes imagePlaneOut {

    0% {
        opacity: 1;
        width: 100%;
        height: 100%;
        top: 0px;
        left: 0px;
    }

    100% {
        opacity: 0;
        width: 400px;
        height: 200px;
        top: 50px;
        left: 10px;
    }
}

#imagePlane {

    position: absolute;
    z-index: 10;
    background-color: black;
}

#imageContent {

    position: relative;
    width: 100%;
    height: 100%;
}

#imageContent > img {

    position: absolute;
    transition: opacity 2s 0.3s, width 1.5s, height 1.5s, left 1.5s, top 1.5s;
    -webkit-transition: opacity 2s 0.3s, width 1.5s, height 1.5s, left 1.5s, top 1.5s;
    -o-transition: opacity 2s 0.3s, width 1.5s, height 1.5s, left 1.5s, top 1.5s;
    -moz-transition: opacity 2s 0.3s, width 1.5s, height 1.5s, left 1.5s, top 1.5s;
}

.imagePlaneHidden {

    display: none;
}

.imagePlaneVisible {

    opacity: 1;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    animation: imagePlaneIn 0.5s;
}

.imagePlaneInvisible {

    opacity: 0;
    width: 400px;
    height: 200px;
    top: 50px;
    left: 10px;
    animation: imagePlaneOut 0.5s;
    pointer-events: none;
}

.bigTopImage {

    z-index: 3;
    opacity: 1;
}

.bigMiddleImage {

    z-index: 2;
    opacity: 0;
}

.bigBottomImage {

    z-index: 1;
    opacity: 0;
}

#backToPanel {

    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    z-index: 5;
}

.imagePlaneInvisible > #backToPanel {

    display: none;
}

#messagePlane {

    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none;
}

.messagePlaneHidden {

    display: none;
}

.messagePlaneVisible {

    display: flex;
}

#messagePlane > div {

    margin: auto;
    margin-top: 0;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 5px 0px #A0A0A0;
    -moz-box-shadow: 0px 0px 5px 0px #A0A0A0;
    -webkit-box-shadow: 0px 0px 5px 0px #A0A0A0;
    -o-box-shadow: 0px 0px 5px 0px #A0A0A0;
    font-family: Verdana,Arial,Helvetica,sans-serif;
    font-size: 14px;
}
