/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f2f2f2;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Content Container */
.content {
  max-width: 600px;
  width: 100%;
  padding: 2rem;
  background-color: #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  text-align: center;
}

/* Headings */
h1, h2, h3, h4 {
  text-align: center;
  color: #333;
}

h2 {
  font-size: 35px;
  padding: 1.5rem 0;
}

h3 {
  font-size: 20px;
  margin-bottom: 1.5rem;
}

h4 {
  font-size: 18px;
  margin-bottom: 1.5rem;
}

/* Lists */
ul {
  list-style-type: none;
  padding-left: 0;
}

/* Form Styling */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-weight: bold;
  color: #555;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #bbb;
  border-radius: 4px;
  background-color: #f8f8f8;
  transition: border-color 0.3s;
}

input:focus {
  border-color: #888;
  outline: none;
}

/* Submit Button */
input[type="submit"] {
  padding: 10px;
  background-color: #666;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s;
}

input[type="submit"]:hover {
  background-color: #555;
}

/* Links */
a {
  display: inline-block;
  margin-top: 1rem;
  color: #666;
  text-decoration: none;
}

a:hover {
  color: #444;
  text-decoration: underline;
}

/* Error & Success Messages */
p {
  font-size: 14px;
  margin-top: 0.5rem;
}

p.error {
  color: #a94442;
}

p.success {
  color: green;
}

/* Data Display */
.container {
  max-width: 600px;
  width: 90%;
  background-color: #e0e0e0;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
  text-align: left;
}

/* Label & Value Display */
.label-value {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background-color: #f8f8f8;
  border-radius: 5px;
}

.label {
  font-weight: bold;
  color: #555;
  display: flex;
  align-items: center;
}

.value {
  color: #333;
  font-size: 16px;
}





.value_center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  color: #333;
  font-size: 16px;
}







.value .value1,
.value .value2 {
  width: 150px;
  text-align: center;
}

.value .value1 {
  margin-right: auto;
}

.value .value2 {
  margin-left: auto;
}

/* No Data Message */
.no-data {
  color: #888;
  text-align: center;
  font-size: 16px;
  padding: 1rem;
  background-color: #fafafa;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Hamburger Menu */
.hamburger-menu {
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
}

.hamburger-menu .bar {
  width: 30px;
  height: 4px;
  background-color: #666;
  margin: 5px 0;
  transition: 0.4s;
}

/* Side Menu */
.side-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 200px;
  background-color: #444;
  color: white;
  padding-top: 60px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.15);
  z-index: 1000; /* Menü soll über allem liegen */
}




.side-menu a {
  color: white;
  display: block;
  padding: 15px;
  text-decoration: none;
  font-size: 18px;
  border-bottom: 1px solid #555;
}

.side-menu a:hover {
  background-color: #555;
}

/* Menu Toggle */
.side-menu.open {
  display: block;
}

/* Responsive Adjustments */
@media (max-width: 500px) {
  .content {
    padding: 1.5rem;
    width: 90%;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 15px;
  }

  input[type="submit"] {
    font-size: 16px;
  }
}

/* Image Container */
.image-container {
  height: 25%;
  width: 100%;
  background-color: #ddd;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slider Styles */
.slider-container {
  text-align: center;
  margin-top: 20px;
}

#temperature-slider {
  width: 100%;
  height: 20px;
  appearance: none;
  background: #ddd;
  border-radius: 5px;
}

#temperature-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: #007bff;
  border-radius: 50%;
  cursor: pointer;
}

/* Sensor & Relay Data */
#selected-temperature,
#ds18d20-value,
#ds18d20-reading-time,
#relaystate-value {
  font-size: 18px;
  text-align: center;
  margin-top: 20px;
  color: #333;
}

/* Timestamp Highlight */
.red {
  color: red;
}




/* Welcome.php*/

.device-group {
  margin-bottom: 20px;
  padding: 15px;
  background: #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.device-group h4 {
  margin-bottom: 10px;
  color: #333;
}

ul {
  list-style: none;
  padding: 0;
}

.device-link {
  display: block;
  padding: 10px 15px;
  background-color: #444;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
  transition: background-color 0.3s;
}

.device-link:hover {
  background-color: #555;
}

.map-group {
  margin-bottom: 20px;
  padding: 15px;
  background: #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.map-group h4 {
  margin-bottom: 10px;
  color: #333;
}

#map-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

#map {
    width: 90vw;
    height: 80vh;
    max-width: 1200px;
}


video {
  position: relative;
  z-index: 1; /* Stellt sicher, dass das Video unter anderen Elementen liegt */
}

.features {
  text-align: center;
}

/* Stellt sicher, dass die Liste untereinander steht */
.index {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: block; /* Stellt sicher, dass die Elemente nicht nebeneinander sind */
}

/* Jedes Listenelement untereinander */
.index li {
  display: block;
  margin-bottom: 10px;
}

/* Links werden als Blockelemente dargestellt */
.index-link {
  text-decoration: none;
  color: #007bff;
  font-size: 16px;
  display: block; /* Verhindert, dass sie nebeneinander stehen */
}

/* Hover-Effekt für die Links */
.index-link:hover {
  text-decoration: underline;
}

