/* Reset styles for body */
body {
  margin: 0;
  padding: 0;
  font-family: Verdana, sans-serif;
  overflow: hidden;
}

/* Set height and width for html and body */
html,
body {
  height: 100%;
  width: 100%;
}

/* Styles for map container */
#map {
  height: 100%;
  width: 100vw;
  position: absolute;
  z-index: 0;
  right: 0;
  top: 0;
  bottom: 0;
  left: 0;
  display: block;
}

/* Styles for another map container */
#map_2 {
  height: 100%;
  width: 100vw;
  position: absolute;
  display: none;
  z-index: 9999;
  right: 0;
  top: 0;
  bottom: 0;
  left: 0;
}

/* Styles for main content */
#main {
  transition: .3s;
  padding: 16px;
}

#btn_location {
  padding: 0;
  position: absolute;
  bottom: 100px;
  right: 5px;
  margin-left: 0;
  z-index: 9999;
  display: block;
  visibility: visible;
}

#btn_close_nav {
  padding: 0;
  position: absolute;
  top: 5px;
  right: 10px;
}

.roundbutton {
  /* Round button styles */
  border: none;
  z-index: 10001;
  width: 45px;
  height: 45px;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #000;
  background-color: #fff;
  border-radius: 45px;
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease 0s;
  cursor: pointer;
  outline: none;
}

.squarebutton {
  /* Square button styles */
  border: none;
  z-index: 10001;
  width: 30px;
  height: 30px;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #000;
  background-color: #fff;
  transition: all 0.3s ease 0s;
  cursor: pointer;
  outline: none;
}

.roundbutton:hover,
.squarebutton:hover {
  /* Button hover styles */
  background-color: rgb(196, 194, 194);
}

.cell_button {
  /* Cell button styles */
  background-color: #ffffff;
  padding-top: 5px;
  padding-bottom: 5px;
  color: black;
  border: solid 1px;
  width: 100%;
}

.cell_button:hover {
  /* Cell button hover styles */
  background-color: rgb(196, 194, 194);
}

.upload_div {
  margin-right: 10px;
  margin-left: 10px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.upload_div button,
.upload_div input[type=submit] {
  /* Upload button styles */
  width: 100%;
  background-color: blue;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.upload_div button:hover,
input[type=submit]:hover {
  /* Upload button hover styles */
  background-color: darkblue;
}

.upload_div input[type=text],
.upload_div input[type=url],
.upload_div input[type=file],
.upload_div input[type=password] {
  /* Upload input styles */
  width: 100%;
  padding: 12px 10px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.upload_div input::file-selector-button {
  /* Upload file button styles */
  width: 35%;
  background-color: blue;
  color: white;
  padding: 10px 10px;
  margin: 0px 20px 0px 0px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#img1 {
  /* Image styles */
  height: 50px;
  width: 50px;
}

#trenches_div {
  height: 90%;
  font-family: Verdana, sans-serif;
  overflow-y: auto;
  margin-top: 5%;
}

/* Styling for the 'trenches_table' */
table#trenches_table {
  table-layout: fixed;
  width: 100%;
  background-color: rgb(240, 240, 240);
  font-size: 14px;
  background-color: #ffffff;
  border-collapse: collapse;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

table#trenches_table td {
  padding: 12px;
  overflow-wrap: break-word;
  border: 1px solid #e8e8e8;
}

table#trenches_table td img {
  width: 50px;
  height: 50px;
}

table#trenches_table td video {
  width: 50px;
  height: 50px;
  pointer-events: none;
}

table#trenches_table tr:first-child {
  background-color: #f5f5f5;
  font-weight: bold;
  text-transform: uppercase;
  color: #444444;
}

table#trenches_table tr:nth-child(even) {
  background-color: #f7f7f7;
}

table#trenches_table tr:hover {
  background-color: #e6e6e6;
  transition: background-color 0.2s ease-in-out;
  cursor: pointer;
}

/* Styling for the 'uploads_div' */
#uploads_div {
  height: 90%;
  font-family: Verdana, sans-serif;
  overflow-y: auto;
  margin-top: 5%;
}
table#uploads_table {
  table-layout: fixed;
  width: 100%;
  font-size: 13px;
  background-color: #ffffff;
  border-collapse: collapse;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
 
  overflow-y: scroll;
}

table#uploads_table td {
  padding: 12px;
  border: 1px solid #e8e8e8;
  overflow-wrap: break-word;
}

table#uploads_table td img {
  width: 50px;
  height: 50px;
}

table#uploads_table td video {
  width: 50px;
  height: 50px;
  pointer-events: none;
}

table#uploads_table tr:first-child {
  background-color: #f5f5f5;
  font-weight: bold;
  text-transform: uppercase;
  color: #444444;
}

table#uploads_table tr:nth-child(even) {
  background-color: #f7f7f7;
}

table#uploads_table tr:hover {
  background-color: #e6e6e6;
  transition: background-color 0.2s ease-in-out;
  cursor: pointer;
}

/* Styling for uploadLocation on hover */
#uploadLocation:hover {
  background-color: darkblue;
}

/* Styling for mapDropdown-wrapper */
#mapDropdown-wrapper {
  display: flex;
  align-items: center;
  font-family: Arial, sans-serif;
  font-size: 18px;
  color: #333;
  margin: 20px 0;
}

#mapDropdown-wrapper span {
  margin-right: 10px;
}

/* Styling for mapDropdown */
#mapDropdown {
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  background-color: #f5f5f5;
  color: #333;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: all 0.2s ease-in-out;
}

#mapDropdown:hover,
#mapDropdown:focus {
  background-color: #e0e0e0;
}

#mapDropdown option {
  background-color: #fff;
  color: #333;
}

#mapDropdown option:hover {
  background-color: #e0e0e0;
  color: #666;
  font-weight: bold;
}

/* Hide the default checkbox */
.switch input[type=checkbox] {
  display: none;
}

/* Style the switch */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Style the switch track */
.switch .track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 17px;
  background-color: grey;
  transition: all 0.3s;
}

/* Style the switch thumb */
.switch .thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

/* Move the switch thumb when the checkbox is checked */
.switch input[type=checkbox]:checked+.track .thumb {
  transform: translateX(26px);
}

.switch input[type=checkbox]:checked+.track {
  background-color: blue;
}

/* Add some extra styles to make it look like a real switch */
.switch .label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 10px;
  font-size: 12px;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
}

.switch input[type=checkbox]:checked+.track .label {
  left: calc(100% - 45px);
}

.my-tooltip {
  background: none;
  opacity: 0;
  box-shadow: none;
  border: none;
}

.dataStoredContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Styling for countContainer */
#countContainer {
  margin-right: 10px;
  font-family: Arial, sans-serif;
  margin-bottom: 5px;
  ;
  font-size: 18px;
  color: #333;
}

/* Styling for the button */
#uploadStoredData,
#clearStoredData {
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  background-color: blue;
  color: white;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: all 0.2s ease-in-out;
  margin-bottom: 5px;
}

#uploadStoredData:hover,
#uploadStoredData:focus,
#clearStoredData:hover,
#clearStoredData:focus {
  background-color: darkblue;
}

.image-container {
  position: relative;
  display: inline-block;
  width: 230px;
  height: 102px;
  border: solid 1px grey;
  margin: 5px;
  text-align: left;
  overflow: hidden;
}

.image-container img,
.image-container video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  height: auto;
}

.image-container button {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #f44336;
  color: white;
  border: none;
  font-size: 20px;
  padding: 10px;
  cursor: pointer;
  width: 55px;
  height: 100%;
  line-height: 20px;
}

@media (min-width : 769px) {
  .confirm-button {
    position: absolute;
    bottom: 5px;
    left: 45%;
    z-index: 1000000000;
    width: 140px;
    height: 45px;
    background-color: blue;
    color: white;
    margin: 8px 0;
    border: none;
    border-radius: 45px;
    text-transform: uppercase;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease 0s;
    cursor: pointer;
    outline: none;
    visibility: hidden;
  }

  .cancel-button {
    position: absolute;
    bottom: 5px;
    left: 55%;
    z-index: 1000000000;
    width: 45px;
    height: 45px;
    background-color: blue;
    color: white;
    margin: 8px 0;
    border: none;
    border-radius: 45px;
    text-transform: uppercase;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease 0s;
    cursor: pointer;
    outline: none;
    visibility: hidden;
  }
}

@media (max-width : 769px) {
  .confirm-button {
    position: absolute;
    bottom: 5px;
    left: 30%;
    z-index: 1000000000;
    width: 140px;
    height: 45px;
    background-color: blue;
    color: white;
    margin: 8px 0;
    border: none;
    border-radius: 45px;
    text-transform: uppercase;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease 0s;
    cursor: pointer;
    outline: none;
    visibility: hidden;
  }

  .cancel-button {
    position: absolute;
    bottom: 5px;
    left: 70%;
    z-index: 1000000000;
    width: 45px;
    height: 45px;
    background-color: blue;
    color: white;
    margin: 8px 0;
    border: none;
    border-radius: 45px;
    text-transform: uppercase;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease 0s;
    cursor: pointer;
    outline: none;
    visibility: hidden;
  }
}

.pagination-uploads,
.pagination-useruploads {
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
}

.pagination-uploads button,
.pagination-useruploads button {
  background-color: #f2f2f2;
  border: none;
  color: #555;
  padding: 8px 16px;
  margin: 0 2px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.pagination-uploads button:hover,
.pagination-useruploads button:hover {
  background-color: #ddd;
}

.pagination-uploads button.active,
.pagination-useruploads button.active {
  background-color: blue;
  color: white;
}

.fa-edit {
  color: blue;
  /* Change the color of the edit icon to blue */
  cursor: pointer;
  /* Change the cursor to a pointer when hovering over the edit icon */
  /* Add any additional styling you want for the edit icon */
}