#map-div {
    z-index: 1;
}

#controls {
    top: 80px;
    left: auto;
    right: 20px;
    bottom: auto;
    width: 295px;
    position: fixed;
    z-index: 2;
    /* cursor: move; */
    /* Appearance */
    background-color: white;
    padding: 0 20px 20px 20px;
    /* Fade out while not hovering */
    opacity: 0.95;
    zoom: 0.9;
    transition: opacity 0ms 250ms;
}
#controls:hover {
    /* Fade in while hovering */
    opacity: 1;
    transition-delay: 0ms;
}

#info {
    top: auto;
    left: 20px;
    right: auto;
    bottom: 0px;
    width: 200px;
    position: fixed;
    z-index: 2;
    /* cursor: move; */
    /* Appearance */
    background-color: white;
    padding: 20px 20px 20px 20px;
    /* Fade out while not hovering */
    opacity: 0.95;
    zoom: 0.9;
    transition: opacity 0ms 250ms;
}
#info:hover {
    /* Fade in while hovering */
    opacity: 1;
    transition-delay: 0ms;
}

h2 > img {
    margin-top: -6px;
    margin-right: 6px;
}

div#spinner {
    position: relative;
    left: 240px;
    top: 33px;
}

.leaflet-control-zoom {
    margin-top: 22px !important;
    margin-left: 22px !important;
}

div#parcels-table {
    width: 100%;
    height: auto;
}

table.legend {
    margin: 14px 0 14px 0;
}

table.legend td {
    padding: 0 15px 0 0;
    font-size: 18px;
}

div.legend-color {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-top: 6px;
    border-style: solid;
}

div.legend-color#silvopastoral {
    border-color: hsla(215, 100%, 60%, 1);
    background-color: hsla(215, 100%, 60%, 0.2);
}

div.legend-color#plantation {
    border-color: hsla(178, 100%, 45%, 1);
    background-color: hsla(178, 100%, 45%, 0.2);
}

div.legend-color#boundary {
    border-color: hsla(329, 80%, 53%, 1);
    background-color: hsla(329, 80%, 53%, 0.2);
}

div.legend-color#coffee {
    border-color: hsla(60, 100%, 60%, 1);
    background-color: hsla(60, 100%, 60%, 0.2);
}

div.legend-color#points {
    border-color: hsla(0, 0%, 70%, 1);
    background-color: hsla(0, 0%, 70%, 0);
    width: 22px;
    height: 22px;
    border-radius: 11px;
    margin: 6px 0 1px 3px;
}

div.legend-color#trees {
    border-color: hsla(129, 85%, 31%, 1);
    background-color: hsla(129, 86%, 41%, 0.9);
    width: 16px;
    height: 16px;
    border-radius: 8px;
    margin: 6px 0 1px 6px;
}

div.form-group#year-slider {
    margin-top: 14px;
}

/* Slider toggles --------------------------------------------------------------- */

/* The switch - the box around the slider */
.switch {
    position: relative;
    margin-top: 12px;
    width: 36px;
    height: 23px;
}

/* Hide default HTML checkbox */
.switch input {display:none;}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .1s;
    transition: .1s;
}

input:disabled + .slider {
    cursor: default;
}

input:disabled + .slider:before {
    background-color: #dddddd;
}

input:checked + .slider {
    background-color: #428bca;
}

input:focus + .slider {
    box-shadow: 0 0 1px #428bca;
}

input:checked + .slider:before {
    -webkit-transform: translateX(13px);
    -ms-transform: translateX(13px);
    transform: translateX(13px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 20px;
}

.slider.round:before {
    border-radius: 50%;
}


/* Copied from the Shiny version ------------------------------------------------ */

input[type="number"] {
    max-width: 80%;
}

div.outer {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    padding: 0;
}

/* Customize fonts */
body, label, input, button, select {
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    font-weight: 200;
}
h1, h2, h3, h4 { font-weight: 400; }


/* Position and style citation */
#cite {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 12px;
}

/* If not using map tiles, show a white background */
.leaflet-container {
    background-color: white !important;
}

/* Customize the pop-ups */

.leaflet-popup-content {
    line-height: 1.5;
}

table.parcel-table img {
    max-width: 100px;
    max-height: 85px;
    margin-right: 10px;
}

div.tree-wrapper {
    width: 270px;
}

table.tree-table img {
    height: 120px;
}

.table > tbody > tr:first-child > td {
    border: none;
}
