<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {font-family: Arial, Helvetica, sans-serif;}
* {box-sizing: border-box;}

/* Button used to open the contact form - fixed at the bottom of the page */
.open-button {
  background-color: #55555557;
  color: white;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  position: fixed;
  bottom: 23px;
  right: 28px;
  width: 74px;
  height: 42px;
}


/* The popup form - hidden by default */
.form-popup {
  display: none;
  position: fixed;
  bottom: 0;
  right: 15px;
  border: 3px solid #f1f1f1;
  z-index: 9;
}

/* Add styles to the form container */
.form-container {
  max-width: 300px;
  padding: 10px;
  background-color: white;
}

/* Full-width input fields */
.form-container input[type=text], .form-container input[type=password] {
  width: 100%;
  padding: 15px;
  margin: 5px 0 22px 0;
  border: none;
  background: #f1f1f1;
}

/* When the inputs get focus, do something */
.form-container input[type=text]:focus, .form-container input[type=password]:focus {
  background-color: #ddd;
  outline: none;
}

/* Set a style for the submit/login button */
.form-container .btn {
  background-color: #04AA6D;
  color: white;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-bottom:10px;
  opacity: 0.8;
}

/* Add a red background color to the cancel button */
.form-container .cancel {
  background-color: red;
}

/* Add some hover effects to buttons */
.form-container .btn:hover, .open-button:hover {
  opacity: 1;
}
</style>
</head>
<body>



<!--<button class="open-button" onclick="openForm()">Add</button>-->

<!--<div class="form-popup" id="myForm">-->
  <form action="location_add.php" method="POST" enctype="multipart/form-data" class="form-container">
    <h1>Add Location</h1>
    <label for="email"><b>Location Name</b></label>
    <input type="text" placeholder="Enter place" name="name" required>
    <label for="email"><b>latitude</b></label>
    <input type="text" placeholder="Enter latitude" name="lat" required>
     <label for="email"><b>longtitude</b></label>
    <input type="text" placeholder="Enter longtitude" name="long" required>
    <label for="11"><b>Temperature</b></label>
    <input type="text" placeholder="Enter Temperature" name="temperature">
    <label for="11"><b>Precipitation</b></label>
    <input type="text" placeholder="Enter Precipitation" name="preciption">
    <label for="11"><b>Wind</b></label>
    <input type="text" placeholder="Enter Wind" name="wind">
    <label for="11"><b>Humidity</b></label>
    <input type="text" placeholder="Enter Humidity" name="humidity">
 <label for="11"><b>Cloud Status</b></label>
    <input type="text" placeholder="Enter Cloud Status" name="cloud">
    <input type="submit" name="submit" value="REGISTER" class="btn">
    <button type="button" class="btn cancel" onclick="closeForm()">Close</button>
  </form>
<!--</div>-->

<script>
function openForm() {
  document.getElementById("myForm").style.display = "block";
}

function closeForm() {
  document.getElementById("myForm").style.display = "none";
}
</script>

</body>
</html>