/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

body {
  background-color: #04214F;
  color: #fff;
  font-family: "Montserrat", "Arial", sans-serif;
  padding: 0;
  margin: 0;
}

.builder-link {
  font-size: 1.1em;
}

.builder-link a {
  color: #00ddff;
}

.device-demo {
  max-width: 800px;
  margin: auto;
}

.device-demo .device-header {
  background-color: #031839;
  padding: 1rem;
  margin-bottom: 1rem;
}

.device-demo .device-name {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.device-demo .device-location {
  height: 200px;
  width: 100%;
  border-radius: 1rem;
}

.device-demo .camera {
  background-color: #031839;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.device-demo .camera video {
  border-radius: 1rem;
}

.device-demo .camera .camera-note {
  font-size: 0.8rem;
  color: #6982AA;
  margin: 0;
}

.device-demo .sensor {
  background-color: #031839;
  padding: 1rem;
  margin-bottom: 1rem;
}

.device-demo .sensor-name {
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
}

.image-gallery, .video-gallery {
  background-color: #031839;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  overflow-y: auto;
}

.image-gallery img, .video-gallery .video {
  cursor: pointer;
  border: 0.2em #031839 solid;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  height: auto;
}

.image-gallery img:hover, .video-gallery .video:hover {
  border-color: #6982AA; /* blue highlight */
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.video-gallery .video {
  position: relative;
}

.video-gallery .video img {
  width: 100%;
  height: 100%;
}

.video-gallery .video span {
  width: 100%;
  height: 100%;
  position: absolute;
  background: url("/play.png") no-repeat;
  background-position: 50% 50%;
  background-size: 20%;
}

/* Fullscreen overlay */
#lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px #000;
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  user-select: none;
}

