/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px;
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    text-align: center;
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

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

.modal-content p {
    font-size: 1.5em;
    margin: 20px 0;
}

.modal-content a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #31a9e1;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.modal-content a:hover {
    background-color: #1e7cb8;
}

.sensor-serial-container {
    display: flex;
    align-items: center;
}

.sensor-serial-container button {
    background: none;
    border: none;
    cursor: pointer;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.checkbox-container input {
    margin-right: 10px;
}

/* Other styles for responsiveness and layout */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow: hidden;
}

#map {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

#logo-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

#logo {
    height: 50px;
    opacity: 0.8;
}

#small-logo-container {
    position: absolute;
 
    bottom: 4px;
    left: 5px;
    z-index: 2;
}

#small-logo {
    height: 64px;
    opacity: 0.8; 

    border-radius: 2%;
}

#search-button {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    background: none;
    border: none;
    cursor: pointer;
}

#search-icon {
    height: 30px;
}

#pac-input {
    margin: 10px;
    padding: 10px;
    width: calc(100% - 40px);
    z-index: 1;
    position: absolute;
    top: 20px;
    right: 20px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    display: none;
    transition: all 0.5s ease-in-out;
}

#pac-input.show {
    display: block;
    width: 80%;
    top: 70px !important;
    left:  190px !important;
    transform: translate(-50%, -50%);
}

.form-container {
    position: absolute;
    top: 100px;
    left: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    z-index: 1;
    display: none;
    max-width: 400px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    max-height: 59%;
    overflow-y: auto;
}

.form-container h2 {
    margin-top: 0;
    color: #333;
    font-size: 1.5em;
}

.form-container label {
    display: block;
    margin-top: 10px;
    color: #555;
    font-size: 1em;
}

.form-container input {
    width: calc(100% - 16px);
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.form-container button[type="submit"] {
    margin-top: 20px;
    padding: 10px;
    width: 100%;
    background-color: #31a9e1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2em;
}

.form-container button[type="submit"]:hover {
    background-color: #0056b3;
}

#qr-reader {
    display: none;
    margin-top: 10px;
}

.gm-style .gm-style-iw-d {
    top: 10px !important;
    right: 10px !important;
}

@media (min-width: 768px) {
    .form-container {
        left: 20px;
        top: 120px;
        max-width: 300px;
    }

    #pac-input {
        width: 300px;
    }
}
