
html {
  font-family: Arial;
  display: inline-block;
  margin: 0px auto;
  text-align: center;
}

h1 {
  color: #0F3376;
  padding: 2vh;
}
p {
  font-size: 1rem;
}
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #333333;
}

li {
  float: left;
}

li a {
  display: block;
  color: white;
  text-align: center;
  padding-left: 8px;
  padding-right: 8px;
  padding-bottom: 5px;
  padding-top: 5px;
  text-decoration: none;
}

li a:hover {
  background-color: #111111;
}

td {
  text-align:left;
}

.tablecenter {
  margin-left: auto;
  margin-right: auto;
}

.hidden {
  display: none;
}


.topnav { 
	overflow: hidden; 
	background-color: #333333; 
	color: white; 
	font-size: 1rem;  
  padding: 17px;
}

.topnav a { 
	background-color: #333333; 
	color: white; 
  font-size: 20px;
}

 /* Modal container */
 .modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(48, 5, 5, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;       /* important: allows absolute positioning inside */
  background: #fff;
  margin: 10% auto;
  padding: 24px;
  width: 60%;
  max-width: 900px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
}

/* Make the modal box a sensible, responsive width */
content.modal- {
  position: relative;
  width: min(90vw, 640px);   /* shrink on small screens, cap at 640px */
  max-width: 640px;          /* extra safety */
  margin: 8vh auto;          /* centered with some top/bottom space */
  padding: 24px;
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;     /* padding included in width */
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
}

/* Keep the close button pinned to the top-right of the modal */
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 4px;
  border-radius: 6px;
  z-index: 2;
  max-width: 40px; 
}

/* If your content can get tall, allow internal scrolling without stretching the box */
.modal-content {
  max-height: 84vh;          /* stay within viewport */
  overflow: auto;            /* scroll inside if needed */
}

/* Optional: tighter on very small screens */
@media (max-width: 420px) {
  .modal-content {
    width: 92vw;
    margin: 6vh auto;
    padding: 16px;
  }
}


.modal-close:hover,
.modal-close:focus {
  color: #000;
  background: rgba(0,0,0,0.06);
  outline: none;
}

/* .button {
  display: inline-block;
  background-color: #008CBA;
  border: none;
  border-radius: 4px;
  color: white;
  padding: 5px 10px;
  text-decoration: none;
  font-size: 20px;
  margin: 2px;
  cursor: pointer;
} */
.button2 {
  background-color: #f44336;
}
.units {
  display: inline-block;
  font-size: 1.2rem;
 }
.sensor-labels {
  display: inline-block;
  font-size: 1.5rem;
}
.button-set {
	display: inline-block;
	font-size: 20px;
	background-color: #f44336;
	padding: 5px 5px;
	width: 80px;
}
.button-check {
	display: inline-block;
	font-size: 20px;
	background-color: #4CAF50;
	padding: 5px 5px;
	width: 80px;
}

/* Bordered form */
form {
  border: 3px solid #f1f1f1;
  width: 300px;
  margin: 16px auto;
  
}

/* Full-width inputs */
input[type=text], input[type=password] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* Set a style for all buttons */
button {
  background-color: #04AA6D;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 100%;
}

/* Add a hover effect for buttons */
button:hover {
  opacity: 0.8;
}


/* Add padding to containers */
.container {
  padding-top: 16px;
  padding: 16px;
}

 body {
  font-family: Arial, sans-serif;
  margin: 40px;
  background-color: #f9f9f9;
  color: #333;
}

.image-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 30px;
}

.image-row img {
  width: 22%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.image-row img:hover {
  transform: scale(1.05);
}

h2 {
  text-align: center;
  margin-bottom: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

th, td {
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

th {
  background-color: #f2f2f2;
}

tr:hover {
  background-color: #f9f9f9;
}

tr:nth-child(even) {
  background-color: #dddddd;
}

.action {
  text-align: center;
}
.action:hover {
  font-weight: bold;
  color: red;
  cursor: pointer;
}

/* Change styles for span and cancel button on extra small screens */
@media screen and (max-width: 300px) {
  span.psw {
    display: block;
    float: none;
  }
  .cancelbtn {
    width: 100%;
  }
}
.slidecontainer {
  width: 100%;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 15px;
  border-radius: 5px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.slider:hover {
  opacity: 1;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #04AA6D;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #04AA6D;
  cursor: pointer;
}

    body { font-family: Arial, sans-serif; margin: 2em; }
    /* Branding block pinned top-left */
    .brand {
      position: absolute;
      top: 10px;
      left: 10px;
      text-align: center;
    }
    .brand img {
      width: 24px;   /* smaller size */
      height: 24px;
      display: block;
      margin: 0 auto;
      cursor: pointer;
    }
    .brand a {
      text-decoration: none;
      color: #007acc;
      font-weight: bold;
      font-size: 14px;
      display: block;
      margin-top: 4px;
    }
    .upload-box { border: 1px solid #ccc; padding: 1em; width: 300px; margin-top: 60px; }
    input[type="file"] { margin-bottom: 1em; }
    #status { margin-top: 1em; color: green; }
    #error { margin-top: 1em; color: red; }

