#coord-input-box {
    position: fixed; /* Use fixed positioning to position relative to the viewport */
    top: 150px; /* Position 50% from the top */
    left: 50%; /* Position 50% from the left */
    width: 250px;
    transform: translate(-50%, -50%); /* Adjust the position to be truly centered */
    border: 1px solid rgb(170, 170, 170);
    padding: 15px;
    background-color: white; /* Add background color to distinguish it from the rest of the page */
    z-index: 1000; /* Ensure it is above other elements */
    display: flex;
    flex-direction: column; /* Arrange children vertically */
    align-items: center; /* Center children horizontally */
    justify-content: center; /* Center children vertically */
    border-radius: 5px;
    position: relative; /* Needed for the absolute positioning of the help icon */
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

@media (max-width:991px) {
    #coord-input-box {
       position: absolute; /* Use fixed positioning to position relative to the viewport */
        top: 150px; /* Position 50% from the top */
        left: 50%; /* Position 50% from the left */
    }
}

#input-title {
    font-size: 14px;
    margin-top: -5px;   
    text-align: left; 
}

#input-label {
    margin-top: 10px;
    min-height: 20px; /* Ensure the label has a minimum height */
    display: flex;
    font-size: small;
    accent-color: gray;
    align-items: center; /* Center text vertically */
    justify-content: center; /* Center text horizontally */
}

.help-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: black;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
}

.help-message {
    display: none;
    position: absolute;
    font-size: 12px;
    top: 33px;
    left: -215px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
    max-width: 240px; /* Maximum width of the help message */
    width: 240px; /* Force width of the help message */
    word-wrap: break-word; /* Ensure text wraps */
}

@media (max-width:991px) {
    .help-message {
        font-size: 10px;
    }
}

.help-icon:hover .help-message {
    display: block;
}

#abort-button {
    position: absolute;
    top: 7px;
    right: 7px;
    background-color: transparent;
    color: gray;
    width: 20px;
    height: 20px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
}