@font-face {
    font-family: 'abc_marfa_light';
    src: url('fonts/ABCMarfa-Light-Trial.woff2') format('woff2'),
         url('fonts/ABCMarfa-Light-Trial.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'abc_marfa_medium';
    src: url('fonts/ABCMarfa-Medium-Trial.woff2') format('woff2'),
         url('fonts/ABCMarfa-Medium-Trial.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    font-family: 'abc_marfa_light', sans-serif;
    font-size: 16px;
    line-height: 22px;
    font-weight: 300;
    position: relative;
}

strong {
    font-family: 'abc_marfa_medium', sans-serif;
    font-weight: normal;
}

a {
    color: inherit;
}

.mapboxgl-popup-content {
    background: transparent;
    padding: 0;
}

.mapboxgl-popup-content input{
    font-family: 'abc_marfa_light', sans-serif;
    /* font-size: 18px; */
    border: 2px solid #000000;
    line-height: 1.5;
    padding: 5px;
    max-width: 162px;
}

.mapboxgl-popup-content input[type=submit] {
    background-color: #000000;
    color: #FFFFFF;
}

.mapboxgl-popup-tip {
    /* border-color: #000000; */
}

#map { 
    position: absolute; 
    top: 0; 
    bottom: 0; 
    right: 0;
    width: 75%; 
}

.sidebar {
    width: 25%;
    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: 3;
    background: #FFFFFF;
    /* border-radius: 0 0 0 0; */
    /* box-shadow: 4px 0 8px 0 rgba(0, 0, 0, 0.1); */
    border-right: 2px black solid;
    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: rgb(101, 104, 121);
    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-day.svg);
    background-position: center center;
    background-repeat: no-repeat;
    height: 90px;
    justify-content: center;
}

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

.title {
    color: #1D1D1B;
    line-height: 1.4;
    /* font-weight:; */
    font-family: 'abc_marfa_medium', sans-serif;
    font-weight: normal;
    max-width: 140px;
}

.subTitle {
    position: relative;

}
.subTitle p {
    font-size: 14px;
    font-weight: normal;
    padding-left: 30px;
}
.subTitle p::before {
    color: #1150a1;
    content: "•";
    font-size: 80px;
    position: absolute;
    left: 0;
    font-size: 50px;
}

.legend {
    color: #1D1D1B;
    margin: 0;
    padding: 0;
    margin-bottom: 22px;
    position: relative;
}

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

.legend li p {
    font-size: 14px;
    font-weight: 300;
    color: #1D1D1B;
    margin: 0;
    position: relative;
}

.legend p::before {
    content: "•";
    font-size: 30px;
    position: absolute;
    left: -25px;
    top: -1px;
}


.legend .item1 p::before {
    color: #e6d12d;
}

.legend .item2 p::before {
    color: #1150a1;
}

.legend .item3 p::before {
    
    color: #ff70d7;
    content: "▪";
}

.about-short {
    font-size: 14px;
    font-weight: 300;
    color: #1D1D1B;
    margin-bottom: 88px;
}

#toggleTime {
    opacity: 0;
}

.creditsleft {
    float: left;
}

.creditsright {
    float: right;
    margin-top: -4px;
    background-image: url(assets/toggle-day.svg);
    background-position: center center;
    background-repeat: no-repeat;
    height: 24px;
    width: 48px;
    justify-content: center;
}

.creditsleft, .creditsleft a {
    font-size: 14px;
    line-height: 16px;
    text-transform: none;
    color: #1D1D1B;
    margin-bottom: -16px;
    transition: all 0.3s ease-in-out;
}

.credits a:hover {
    color: #ec4667;
}

#description {
    padding: 0 40px;
    /* background-color: rgba(0, 0, 0, 0.45); */
    color: #000000;
    /* position: absolute; */
    /* bottom: 0; */
    font-size: 14px;
}

#featurePhoto {
    max-width: 100%;
    margin-top: 30px;
}

#url {
    padding: 20px 40px;
    color:#000000;
    text-align: right;
    display: block;
    float: right;
}

.popup {
    background-color: #FFFFFF;
    position: absolute;
    opacity: 1;
    /* pointer-events: none; */
    border: 2px #000000 solid;
    z-index: 5;
    line-height: 1.4;
    transition: all 0.3s;
}

#info {
    top: 20px;
    right: 20px;
    width: 40vw;
}

.about-full {
    top: 0;
    right: 0;
    /* width: 100%; */
    margin: 66px;
    padding: 32px 44px;
    z-index: 100;
    max-width: 1024px;
}

.hidden {
    opacity: 0;
    /* transition: all 0.3s; */
    pointer-events: none;
}

.close {
    position: absolute;
    top: 12px;
    right: 12px;
    text-decoration: none;
}

#label {
    color: #000000;
    margin: 0;
    padding: 12px 16px 24px;
    font-weight: 400;
}

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

.leaflet-top {
    right: 0;
}

#addMarker {
    width: 64px;
    height: 64px;
    text-align: center;
    background-color:#1150a1;
    color: white;
    text-decoration: none;
    border-radius: 100%;
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 6;
    line-height: 66px;
    font-size: 40px;
    /* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); */
    transition: all 0.3s ease-in-out;
    opacity: 0.9;
}

#addMarker:hover {
    opacity: 1;
    /* background-color: #e6d12d; */
    /* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4); */
}

/* @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 2px 2px; */
        /* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); */
        border-right: 0;
        border-bottom: 2px #000000 solid;
        /* animation-name: sidebarMove;
        animation-duration: 1s; */
    }

    #map {
        width: 100%;
    }

    .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;
    }

    #info {
        top: auto;
        right: auto;
        bottom: 0;
        left: 0;
        /* height: 240px; */
        width: 100%;
        /* border-radius: 8px 8px 0 0; */
    }
}
