@font-face {font-family: IBM Plex Sans; src: url('assets/fonts/IBMPlexSans-Text.woff2'); font-weight: normal;} 
@font-face {font-family: Playfair Display; src: url('assets/fonts/PlayfairDisplay-Bold.woff2'); font-weight: bold; }
@font-face {font-family: Playfair Display; src: url('assets/fonts/PlayfairDisplay-Regular.woff2'); font-weight: normal; }
a {
    text-decoration: none;
    color:#004643;
}

a:hover {
    color: #0F1618;
}
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    position: relative;
}

.sidebar {
    width: 300px;
    height: 100%;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    background: #FFFFFF;
    border-radius: 0 10px 10px 0;
    box-shadow: 4px 0 8px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    /* animation-name: sidebarMove;
    animation-duration: 1s; */
}

.top {
    justify-content: flex-start;
}

.center {
    justify-content: center;
}

.bottom {
    justify-content: flex-end;
}

.more {
    height: 64px;
    width: 40px;
    color: #214543;
    border-radius: 100%;
    line-height: 36px;
    font-size: 40px;
    justify-content: flex-end;
    box-sizing: border-box;
    display: none;
    transition: all 0.3s ease-in-out;
}

.more::before {
    border-style: solid;
    border-width: 4px 4px 0 0;
    content: '';
    display: inline-block;
    transform: rotate(-45deg);
    height: 12px;
    left: 30%;
    position: relative;
    top: 28px;
    vertical-align: top;
    width: 12px;
}

.more:hover, .add:hover{
    cursor: pointer;
}

.logo {
    background: url(assets/logo.svg);
    background-position: center center;
    background-repeat: no-repeat;
    height: 100px;
    justify-content: center;
}

.howto {
    margin: 0 0 40px 0;
    color: #214543;
}

.legend {
    margin: 0;
    padding: 0;
    margin-bottom: 88px;
}

.legend li {
    list-style: none;
    color: #004643;
    padding-left: 24px;
}

.legend li a{
    text-decoration: none;
    color: inherit;
    transition: all 0.1s ease-in-out;
}

.legend li h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: bold;
    color: #004643;
    margin: 20px 0 0 0;
    /* text-transform: uppercase;
    letter-spacing: 2px; */
    position: relative;
}

.legend li h3:hover {
    color: #0F1618;
}

.legend h3::before {
    content: "•";
    font-size: 80px;
    position: absolute;
    left: -58px;
    top: -1px;
  }

/* .legend .item1 h3::before {
    color: #214543;
} */

.legend .item2 h3::before {
    color: #004643;
}

.legend .item3 h3::before {
    color: #777736;
}
.legend .item4 h3::before {
    color: #CBAD39;
}
.legend .item5 h3::before {
    color: #CBAD39;
}
.legend .item6 h3::before {
    color: #ffffff;
}

.legend li p {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
}

.creditsleft {
    float: left;
}

.creditsleft a {
    font-size: 14px;
    line-height: 20px;
    text-transform: none;
    color: #004643;
    margin-bottom: -16px;
    text-decoration: none;
    transition: all 0.1s ease-in-out;
}

.credits a:hover {
    color: #0F1618;
}

#photo{
    background-color: #ffffff;
    position: absolute;
    z-index: 4;
    top: 20px;
    right: 20px;
    height: auto;
    width: 30%;
    border-radius: 10px;
    opacity: 1;
    z-index: 5;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: contain;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.45);
}

#img {
    width: 100%;
    height: auto;
}

#photo.hidden {
    opacity: 0;
    transition: all 0.1s;
}

#label {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-size: 22px;
    color: #214543;
    margin: 24px 0px 0px 32px;
}

#time {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #214543;
    margin: 0px 0px 0px 32px;
}

#description {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    margin: 16px 64px 24px 32px;
    color: #214543;
    
}

#author {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    margin: 16px 64px 64px 32px;
    color: #214543;
    text-decoration: none;
}

#mapid {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.leaflet-top {
    right: 0;
}

/* @keyframes sidebarMove {
    0%   {left:-280px;}
    100% {left:0px;}
  } */

@media only screen and (max-width: 600px) {
    .sidebar {
        width: 100%;
        height: 416px;
        /* 416 */
        padding: 20px;
        /* flex-direction: row; */
        border-radius: 0 0 10px 10px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
        /* animation-name: sidebarMove;
        animation-duration: 1s; */
    }

    .top {
        position: relative;
    }

    .logo {
        height: 64px;
        width: 120px;
        background-position: left center;
        float: left;
    }

    .more {
        display: block;
        float: right;
    }

    .howto{
        margin: 24px 0;
        max-width: 430px;
    }

    .legend {
        margin-bottom: 32px;
    }

    .credits {
        margin: 0;
    }

    .center, .bottom {
        /* display: none; */
        /* visibility: hidden; */
        opacity: 1;
        transition: all 0.3s ease-in-out;
    }
    
}