/* css/styles.css */

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

#map-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#map {
    width: 100%;
    height: 100%;
    cursor: default;
    /* Default cursor */
}

/* Generic Map Buttons */
.map-button {
    position: absolute;
    top: 10px;
    right: 10px;
    margin-left: 5px;
    padding: 10px 15px;
    z-index: 1000;
    /* Ensure buttons are above the map */
    background-color: #007aff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.map-button:hover {
    background-color: #005bb5;
}

/* Styles for Buttons */
#start-drawing {
    right: auto;
    left: 10px;
}

#clear-all {
    top: 50px;
    left: 10px;
    right: auto;
}

#export-geojson {
    top: 10px;
}

#export-kml {
    top: 50px;
}

#import-button {
    top: 90px;
}


/* Cursor style for drawing mode */
.drawing #map {
    cursor: crosshair;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    /* Above buttons and map */
}

.modal-overlay.hidden {
    display: none;
}

.modal {
    background-color: #fefefe;
    border: 1px solid #888;
    border-radius: 5px;
    width: 300px;
    max-width: 90%;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
}

.modal-close {
    color: #aaa;
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#modal-body {
    margin-top: 20px;
}

#modal-body p {
    margin-bottom: 20px;
    text-align: center;
}

/* Modal Button Styles */
.modal-button-group {
    display: justify-content;
    gap: 20px;
    margin-top: 20px;
}

.modal-button {
    /* reset (just in case) */
    position: static;
    margin: 0;
    padding: 10px 20px;
    z-index: auto;

    background-color: #007aff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.modal-button:hover {
    background-color: #005bb5;
}

#modal-input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    margin-bottom: 20px;
}