body, html{
  font-family: verdana;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #333;
  color: #fff;
}

a, a:visited {
  color: #44a2be;
  text-decoration: none;
}

#login {
  margin: 30px;
}

#flexcontainer {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  gap: 40px;
  align-items: start;
  align-content: start
}

.flexitem {
  /* border: 1px solid #444; */
  box-shadow: 3px 3px 5px black;
  background-color: #222;
  border-radius: 10px;
  flex: 0 0 auto;
  width: 350px;
  height: 350px;
}

#infos {
  font-size: 120%;
  line-height: 160%;
  text-align: center;
}

h4.smallmargin {
  margin: 10px 0;
}

/* =========================================== */

#gateBtns {
  height: 80%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(5, 19%);
  gap: 2%;
}

#gatecam-container {
  position: relative;
  width: 100%;
  height: 100%;
}

img#gatecam {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

#btnResetFocus {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 8px 15px;
  font-size: 90%;
  background: linear-gradient(11deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%);
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.gateBtn {
  font-size: 200%;
  background: linear-gradient(11deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%);
  /* border: 2px solid #fff; */
  margin: 2px;
  cursor: pointer;
  border-radius: 10px;
  text-align: center;
}

#btnGate { grid-column: 1 / 3; grid-row: 1 / 3; line-height: 300%; }
#btnLup { grid-column: 1; grid-row: 3; }
#btnRup { grid-column: 2; grid-row: 3; }
#btnLstop { grid-column: 1; grid-row: 4; }
#btnRstop { grid-column: 2; grid-row: 4; }  
#btnLdown { grid-column: 1; grid-row: 5; }
#btnRdown { grid-column: 2; grid-row: 5; }

#btnLup, #btnRup {
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
}

#btnLdown, #btnRdown {
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
}

#btnLstop, #btnRstop {
  background: linear-gradient(11deg, rgba(36,0,2,1) 0%, rgba(121,9,9,1) 35%, rgba(255,212,0,1) 100%);
}

/* =========================================== */

#vacuumBtns {
  height: 80%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(4, 24%);
  gap: 2%;
}

.vacuumBtn {
  font-size: 130%;
  line-height: 300%;
  background: linear-gradient(11deg, rgba(36,0,2,1) 0%, rgba(121,9,9,1) 35%, rgba(255,212,0,1) 100%);
  /* border: 2px solid #fff; */
  margin: 2px;
  cursor: pointer;
  border-radius: 10px;
  text-align: center;
}

#btnVacVac {
  background: linear-gradient(11deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%);
  grid-column: 1 / 3; 
  grid-row: 1;
}
#btnVacPause { grid-column: 1; grid-row: 2; }
#btnVacStart { grid-column: 2; grid-row: 2; }
#btnVacStop { grid-column: 1; grid-row: 3; }
#btnVacDock { grid-column: 2; grid-row: 3; }
#btnVacEmpty { grid-column: 1; grid-row: 4; }
#btnVacStation { grid-column: 2; grid-row: 4; }

/* =========================================== */
/* Popup styles */

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background-color: #222;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
}

.popup-content h3 {
  margin-top: 0;
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
}

.popup-content h4 {
  margin: 20px 0 15px 0;
  text-align: center;
  color: #fff;
  font-size: 16px;
}

.cleaning-modes {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #444;
}

.cleaning-modes label {
  display: flex;
  align-items: center;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}

.cleaning-modes input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.room-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
}

.room-checkboxes label {
  display: flex;
  align-items: center;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

.room-checkboxes input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.popup-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.popup-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.validate-btn {
  background: linear-gradient(11deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%);
  color: white;
}

.validate-btn:hover {
  background: linear-gradient(11deg, rgba(2,0,36,0.8) 0%, rgba(9,9,121,0.8) 35%, rgba(0,212,255,0.8) 100%);
}

.cancel-btn {
  background: linear-gradient(11deg, rgba(36,0,2,1) 0%, rgba(121,9,9,1) 35%, rgba(255,212,0,1) 100%);
  color: white;
}

.cancel-btn:hover {
  background: linear-gradient(11deg, rgba(36,0,2,0.8) 0%, rgba(121,9,9,0.8) 35%, rgba(255,212,0,0.8) 100%);
}



