@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), local('Roboto-Regular'), url(fonts/Roboto-Regular.woff) format('woff');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: local('Roboto Bold'), local('Roboto-Bold'), url(fonts/Roboto-Bold.woff) format('woff');
}

@font-face {
  font-family: 'Open Sans Condensed';
  font-style: normal;
  font-weight: 700;
  src: local('Open Sans Condensed Bold'), local('OpenSansCondensed-Bold'), url(fonts/OpenSansCondensed-Bold.woff) format('woff');
}

* {
    box-sizing: border-box;
}

*:focus {
    outline: none;
}

::-moz-focus-inner {
    border: 0;
}


html, body {
    height: 100%;
}
    
body {
    margin: 0;
    color: #444;
    background-color: #e5f5fb;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
}

h1, h2, h3, h4 {
    margin-top: 0;
}

button {
    padding: 0;
    border: 0;
    border-radius: 3px;
    color: #444;
    background-color: #fff;
    font-size: 20px;
    line-height: 0;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

#map {
    display: block;
    width: 100%;
    height: 100%;/*calc(100% - 140px);*/
    visibility: hidden;
}
 
#marker {
    fill: #7A6A64;
    stroke: #fff;
    stroke-width: 0.5;
    stroke-opacity: 0.8;
    visibility: hidden;
}
    
.land,
.lake,
.temp-border {
    fill: #fff;
    fill-opacity: 1;
    stroke: #000;
    stroke-width: 0.5;
    stroke-opacity: 1;
}

.land {
    cursor: pointer;
}

.land.inactive {
    cursor: default;
}

.citymode .land {
    cursor: default;
}

.land:hover,
.land:hover .island {
    fill-opacity: 0.8;
}

.citymode .land:hover,
.citymode .land:hover .island {
    fill-opacity: 1;
}



.lake {
    fill: #6acee2;
}

.temp-border {
    stroke-dasharray: 2,2;
}

.city {
    fill: #c00;
    fill-opacity: 0.5;
    stroke: none;
    stroke-width: 0;
    cursor: pointer;
}

/** UI **/

.zoom {
    position: absolute;
    right: 25px;
    top: 15px;
    width: 20px;
}

.title {
    max-width: 300px;
    padding: 20px;
    padding-right: 0;
}

.title h1 {
    color: #fed330;
    margin-bottom: 20px;
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 32px;
    line-height: 0.9;
}

.title h1 span {
    color: #fff;
}

.sidebar {
    position: absolute;
    width: 100%;
    height: 100px;
    left: 0;
    bottom: 48px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    transition: height ease-in-out 500ms;
}

.sidebar.nomapkey {
    display: none;
}

.sidebar.open {
    height: calc(100% - 55px);
    height: 50%;
}

.sidebar.fullscreen {
    display: block;
    height: calc(100% - 48px);
}

.sidebar.notransition {
    transition: none;
}

.sidebar button.maximize {
    position: absolute;
    width: 30px;
    height: 30px;
    left: calc(50% - 15px);
    top: -15px;
    border-radius: 50%;
    color: #fff;
    background-color: #7a6a64;
    font-size: 16px;
    z-index: 1;
}

.sidebar.nomapkey button.maximize,
.sidebar.fullscreen button.maximize {
    display: none;
}

.sidebar.open button {
    transform: rotateZ(180deg);
}

.sidebar-content {
    height: 100%;
    overflow: hidden;
}

.accordion input {
    display: none;
    overflow: hidden; 
    clip: rect(0 0 0 0); 
    height: 0px; 
    width : 0px; 
    margin: -10px; 
    padding: 0;
    border:0;
    float: left;
}

.accordion label {
    display: block;
    position: relative;
    color: #01579B;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.accordion ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.accordion ul li {
    position: relative;
    padding: 10px 10px 10px 35px;
    border-bottom: 1px solid #7b6b66;
    font-size: 13px;
    cursor: pointer;
}

.accordion ul li:last-child {
    border-bottom: 1px solid #4c3d3d;
}

.accordion ul li.active {
    color: #fed330;
}

.accordion ul li:hover:before,
.accordion ul li:hover:after,
.accordion ul li.active:before,
.accordion ul li.active:after {
    content: '';
    display: block;
    position: absolute;
    width: 0px;
    height: 0px;
    left: 22px;
    top: 13px;
    border-left: 5px solid currentColor;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.accordion ul li:hover:after,
.accordion ul li.active:after {
    left: 20px;
    border-left: 5px solid #8a7770;
}

.accordion:first-child label {
    border-top: 1px solid #4c3d3d;
}

.accordion label {
    padding: 15px;
    border-bottom: 1px solid #4c3d3d;
    color: #fff;
    cursor: pointer;
}

.accordion label:before,
.accordion label:after {
    content: '';
    display: block;
    position: absolute;
    width: 0px;
    height: 0px;
    right: 15px;
    top: 22px;
    border-top: 5px solid currentColor;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    transform: rotateZ(0);
    transition: transform 700ms ease-in-out;
}

.accordion label:after {
    top: 20px;
    border-top: 5px solid #7a6a64;
}


.accordion label .icon {
    display: none;
}

.accordion .content {
    max-height: 0;
    background-color: #8a7770;
    color: #fff;
    opacity: 0;
    overflow: hidden;
    transition: max-height 400ms ease-in-out, opacity 500ms ease;
}

.accordion input:checked + label {
    background-color: #8a7770;
}

.accordion input:checked + label:before,
.accordion input:checked + label:after {
    /*transform: rotateZ(180deg);*/
    display: none;
}

.accordion input:checked + label + .content {
    max-height: 500px;
    opacity: 1;
}

.tabs {
    display: table;
    position: absolute;
    width: 100%;
    height: 48px;
    left: 0;
    bottom: 0;
    z-index: 10;
    background-color: #7a6a64;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

.tab {
    display: table-cell;
    width: 33.33%;
    height: 100%;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
}

.tab.active {
    color: #fed330;
}

.tab span {
    display: block;
    margin: 1px 0;
    font-size: 12px;
}

.tab-content.maps {
    height: 100%;
    padding: 0;
    background-color: #7a6a64;
    overflow: auto;
}

.tab-content.countries {
    height: 100%;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.7);
}


.tab-content.info {
    position: relative;
    height: 100%;
    padding: 20px;
    background-color: #fff;
    overflow: auto;
}

.tab-content.info h4 {
    margin-bottom: 10px;
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 18px;
    line-height: 1;
}

.sidebar.nomapkey .tab-content.info {
    display: none;
}


.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke-width: 0;
    stroke: currentColor;
    fill: currentColor;
    vertical-align: middle;
}

.icon.large {
    width: 1em;
    height: 1em;
    margin-right: 5px;
}

.mapkey {
    margin-bottom: 5px;
}

.keycolor {
    display: inline-block; 
    width: 20px; 
    height: 20px;
    border: 1px solid #777;
    vertical-align: top;
}

.keycaption {
    display: inline-block;
    width: calc(100% - 35px);
    margin-left: 10px;
    font-size: 13px;
    vertical-align: middle;
}

.caption {
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
}

.sources {
    width: 30px;
    margin-top: 20px;
    padding-top: 2px;
    border-top: 3px solid #7a6a64;
}

.sources a {
    color: #7a6a64;
    font-size: 12px;
}

.overflow {
    display: none;
    position: fixed;
    width: 100%;
    height: 40px;
    left: 0;
    bottom: 48px;
    color: #7a6a64;
    background: linear-gradient(to top, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%); 
    text-align: center;
    pointer-events: none;

}

.scroll .overflow {
    display: block;
}

.overflow .icon {
    width: 24px;
    height: 24px;
    animation-duration: 1s; 
    animation-fill-mode: both; 
    animation-iteration-count:infinite; 
    animation-name: pulse; 
} 

@keyframes pulse { 
    0% { transform: translateY(0); } 
    50% { transform: translateY(10px); } 
    100% { transform: translateY(0); } 
}

.search-box {
    position: relative;
    padding: 10px;
    background-color: rgba(240, 240, 240, 0.6);;
}

.search-box input {
    width: 100%;
    height: 37px;
    padding: 10px 30px 10px 10px;
    border: 0;
    border-radius: 5px;
    color: #7F7F7F;
    background-color: #E9E6E3;
    font-size: 14px;
}

.search-box .icon {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #A9A9A9;
}

.search-box button {
    display: none;
}

.countrylist {
    height: calc(100% - 58px);
    overflow: auto;
}

.countrylist:hover {
    overflow: auto;
}

.country {
    margin: 0 5px;
    padding: 10px;
    border-bottom: 1px solid #E7E8E8;
    color: #7a6a64;
    font-size: 14px;
    cursor: pointer;
}

.country:first-child {
    border-top: 1px solid #E7E8E8;
}

.country:hover,
.country.active {
    font-weight: bold;
}

.country.hidden {
    display: none;
}

.countrybtn {
    display: none;
}

.select-box select {
    width: 120%;
    height: 22px;
    padding: 0 7px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    -webkit-appearance: none;
}


.select-box {
    position: relative;
    display: inline-block;
    width: 120px;
    vertical-align: middle;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    outline: medium none;
    background-color: #fff;
}

.select-box:after {
    content: "";
    position: absolute;
    top: 9px;
    right: 6px;
    border-top: 6px solid black;
    border-top-color: #666;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    pointer-events: none;
}

.button {
    width: 32px;
    height: 32px;
    color: #7A6A64;
}

.button:hover {
    background-color: #ddd;
}

.button.disabled {
    background-color: #eee;
}

.button.reset {
    position: relative;
    margin-top: 5px;
}

.button.reset:after {
    content: '';
    display: block;
    position: absolute;
    width: 10px;
    height: 10px;
    left: 9px;
    top: 9px;
    border: 2px solid currentColor;
}

.btngroup .button {
    border-radius: 0;
}

.btngroup .button:first-child {
    border-radius: 3px 3px 0 0;
}

.btngroup .button:last-child {
    border-radius: 0 0 3px 3px;
}

.tooltip {
    display: none;
    position: absolute; 
    padding: 10px; 
    background-color: #fff; 
    border: 1px solid #ddd; 
    border-radius: 3px;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.3);
    z-index: 10; 
    visibility: hidden;
    pointer-events: none;
}

.dialog {
    display: none;
    position: absolute;
    width: 360px;
    height: 230px;
    max-width: 100%;
    top: calc(50% - 115px);
    left: calc(50% - 180px);
    z-index : 10;
    opacity: 1;
    transition: opacity .3s ease-in-out;
}

.overlay {
    display: none;
    background-color: rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

.dialog.preparing {
    opacity: 0;
}

.dialog.open,
.dialog.open .overlay {
    display: block;
}

.dialog-body {
    background-color: rgba(218, 210, 206, 0.7);
    border: #7B7B7A solid 1px;
    position: absolute;
    z-index : 10;
    top: 0;
    left: 0;
    width: 100%;
    height:  100%;
    padding: 20px;
    color: #4B3D3D;
}

.dialog > button {
    border: 0;
    font-size: 20px;
    position: absolute;
    right: 5px;
    top: 5px;
    padding: 0;
    cursor: pointer;
    z-index : 20;
    width: 30px;
    height: 30px;
    color: #4B3D3D;
    background-color: transparent;
    box-shadow: none;
}

.dialog > button span {
    padding: 0 5px;
}

.dialog h3 {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #7B7B7A;
}


@media only screen and (min-width: 768px) and (min-height: 500px) {

    #map {
        width: 100%;/*calc(100% - 280px);*/
        height: 100%;
        -margin-left: 280px;
    }
    
    .countrybtn {
        display: block;
        position: absolute;
        width: 100px;
        height: 24px;
        left: 275px;
        top: 15px;
        padding: 4px 10px;
        font-size: 13px;
        text-align: left;
    }

    .countrybtn:after {
        content: '';
        position: absolute;
        top: 10px;
        right: 8px;
        border-top: 6px solid black;
        border-top-color: #666;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        pointer-events: none;
    }

    .title {
        max-width: 260px;
    }


    .title h1 {
        font-size: 28px;
        line-height: 0.9;
    }

    .overflow {
        width: 260px;
        bottom: 0;
    }

    .sidebar,
    .sidebar.open {
        display: block;
        position: absolute;
        width: 260px;
        height: 100% !important;
        left: 0;
        top: 0;
        bottom: none;
        padding: 0;
        border-radius: 0;
        background-color: #fff;
        box-shadow: none;
        transition: none;
        pointer-events: none;
    }

    .sidebar.nomapkey {
        display: block;
        background-color: transparent;
    }
    
    .sidebar button.maximize {
        display: none;
        position: absolute;
        width: 30px;
        height: 30px;
        left: calc(50% - 15px);
        top: -15px;
        border-radius: 50%;
    }

    .tab-content.maps,
    .tab-content.countries,
    .tab-content.info {
        min-height: auto;
        pointer-events: auto;
    }

    .tab-content.maps,
    .tab-content.info {
        position: relative;
        z-index: 1;
    }

    .accordion ul li {
        padding: 8px 10px 8px 35px;
    }

    .accordion label {
        padding: 10px 15px;
    }

    .accordion ul li:hover:before,
    .accordion ul li:hover:after,
    .accordion ul li.active:before,
    .accordion ul li.active:after {
        top: 10px;
    }

    .accordion label:before {
        top: 18px;
    }

    .accordion label:after {
        top: 16px;
    }
    
    .maps {
        display: block;
    }
    
    .tab-content.info {
        display: block;
        position: absolute;
        width: 100%;
        max-height: 40%;
        height: auto;
        bottom: 0;
        padding: 20px;
        background-color: #fff;
        z-index: 1;
    }

    .tab-content.info:hover {
        overflow: auto;
    }

    .tab-content.maps {
        height: auto;
        max-height: 100%;
        background-color: transparent;
    }

    .tab-content.maps > div {
        background-color: #7a6a64;
    }

    .search-box input {
        width: calc(100% - 34px);
    }

    .search-box button {
        display: block;
        position: absolute;
        width: 24px;
        height: 24px;
        right: 10px;
        top: 16px;
        border: 0;
        color: #4B3D3D;
        background-color: transparent;
        font-size: 20px;
        box-shadow: none;
    }

    .search-box .icon {
        right: 54px;
    }

    
    .countries {
        display: none;
        position: absolute;
        width: 300px;
        height: 100%;
        left: 260px;
        top: 0;
    }

    .countries.open {
        display: block;
    }

    .countrylist {
        overflow: hidden;
    }
    
    .tabs {
        display: none;
    }

    .sources {
        top: 15px;
    }

    .tooltip {
        visibility: visible;
    }
}
