html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

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

#legend, #toggle-legend-btn, #add-marker-form,  #edit-marker-form {
    position: fixed;
    z-index: 100;
    background-color: white;
    padding: 10px;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#legend {
    top: 40px;
    left: 40px;
    width: 230px;
}

.legend-item {
    margin-bottom: 10px;
        cursor: pointer;
}

.legend-color {
    display: inline-block;
    width: 25px;
    height: 25px;
    margin-right: 10px;
    background-size: contain;
    background-position: center; 
    background-repeat: no-repeat;
}

#toggle-legend-btn {
    top: 0px;
    left: 40px;
    width: 250px;
}

#add-marker-form,  #edit-marker-form{
    display: none;
    top: 40px;
    left: 40px;
    width: 230px;
}

.add-form, #coords, #type, #name, #description, #image {
    width: 100%;
    box-sizing: border-box;
}

.close-form {
    float: right;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}
