@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
  transition: opacity .5s;
  touch-action: manipulation;
  /* border: 1px red solid; */
}
.topWrapper{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}

/* depricated? */
#connected-item {
  display: none;
  overflow: hidden;
  /* position: absolute; */
  /*make it float*/
  display:  inline-block;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: blue;
  text-align: end;
  float: right;
}

.not-up-to-date{
  color: gray !important;
}

.disconnected {
  color: red;
}


#connected {
  background-color: #45a049;
  width: 20px;
  height: 20px;
  padding: 0;
  transform: translate(-100%,-100%);
  border-radius: 50%;
  margin-top:0px;
  float: right;
  /* margin-left: calc(100% - 20px); */
  /* float: right; */
}

#connected-span{
}


.disconnected #connected {
  background-color: red;
}


body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f2f2f2;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0px 40px 40px 40px;
  transition: blur 0.3s ease, opacity 0.3s ease;
}

h1 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
}

.status {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.status-item {
  flex: 1;
  text-align: center;
  padding: 0 10px;
}

.label {
  margin: 20px 20px 20px 0px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.genlabel {
  margin: 20px 20px 20px 0px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 10px;
}


.value {
  font-size: 38px;
  font-weight: 700;
}

.excellent-co2 {
  color: #6ec36e;
}

.good-co2 {
  color: rgb(155, 199, 58);
}

.mediocre-co2 {
  color: rgb(248, 198, 15);
}

.bad-co2 {
  color: rgb(242, 154, 36);
}

.terrible-co2 {
  color: red
}

.control {
  display: flex;
  justify-content: space-around;
  /* margin-top: 0;
  padding-top: 0; */
  margin-bottom: 40px;
}

.switch, .fan{
  margin-top: 20px;
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700; 
  height: auto;
  color: #fff;
  background-color: #6ec36e;
  cursor: pointer;
  transition: background-color .5s;
}

#timer-button{
  background-color: #007bff;
}

.fan, #timer-button{
  padding: 2px 25px 0 25px; 
  margin-top: 5px;
  /* width: 30px; */
  /* height: 30px; */
  /* opacity: 0.9; */
}

#inRoomButton{
  background-color: #0069d9;
  padding: 12px;
  margin-bottom: 20px;
}

.switch-off{
  background-color: #818881 !important;
}

.fan{
  background-color: #818881;
}
.switch-unavailable{
  background-color: #000000;
}

#timerGraph{
  height: 0px;
  transition: height .5s;
}

.edit, #revealTimerGraph{
  margin-left: 10px; 
  padding: 2px 8px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  height: auto;
  color: #fff;
  float: left;
  cursor: pointer;
  background-color: #cccccc71;
}

#revealTimerGraph{
  float: none;
  background-color: #007bff;
}


#target-time{
  margin-top: 8px;
  text-align: center;
}



.status-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin: 10px auto;
}

.status-indicator.on {
  background-color: #6ec36e;
}

.status-indicator.off {
  background-color: #f44336;
}

.status-indicator.wanted {
  background-color: #f49e36;
}



.temperature {
  font-size: 14px;
  font-weight: 700;
  color: #333;
}


#target-altitude {
  pointer-events: all !important;
}

#target-time{
  pointer-events: all !important;
}

.target-altitude .label {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.target-altitude input {
  padding: 8px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f2f2f2;
  width: 100px;
  text-align: center;
}

.graph {
  width: 100%;
  height: 700px;
  margin-bottom: 40px;
  background-color: #fff;
  /* transform: scale(0.5); */
}

/* #altitudeGraph{
  width: 200%;
  height: 1400px;
  transform: scale(0.5) translate(-50%,-50%);
}
#altitudeGraphContainer{
  width: 100%;
  height: 700px;
  margin-bottom: 40px;
  overflow:  hidden !important;
  /* transform: scale(0.5); 
} */

.graph-button {
  display: block;
  margin: 0 auto;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background-color: #007bff;
  cursor: pointer;
}

.graph-button:hover {
  /* background-color: #0069d9; */
}


#altitude {
  font-size: 80px;
  font-weight: 700;
  color: #007bff;
}

.generator {
  text-align: left;
  width: max-content;
  /* min-height: 200px;  */
}




/* Add these styles for the toggle switch */
.toggle-switch {
  width: 60px;
  height: 30px;
  border-radius: 15px;
  background-color: #ccc;
  position: relative;
  cursor: pointer;
}


.toggle-switch .indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #fff;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.3s ease;
}

.toggle-switch.on {
  background-color: #6ec36e;
}

.toggle-switch.on .indicator {
  transform: translateX(30px);
}

.toggle-switch.off .indicator {
  transform: translateX(0);
}
.toggle-switch.wanted {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #f49e36, #ffbb55);
  border-radius: 20px;
  transition: background 0.3s ease;
}

.toggle-switch.wanted.unavailable{
  position: relative;
  overflow: hidden;
  background:black;
  border-radius: 20px;
  transition: background 0.3s ease;
}

.toggle-switch.wanted.on::before, .toggle-switch.wanted::before{
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  height: 100%;
  width: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
  animation: shimmer 3s ease-in-out infinite;
  filter: blur(4px);
}
.toggle-switch.wanted::before {
  animation: shimmer 3s reverse ease-in-out infinite;
}

.unavailable {
  background-color: black !important;
}


/* .toggle-switch.wanted:hover {
  background: linear-gradient(90deg, #ffbb55, #f49e36);
}

.toggle-switch.wanted.unavailable:hover {
  background: linear-gradient(90deg, #2b2a28, #000000);
} */

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}



/* Remove default styles for number input */
input[type="number"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}

/* Styling for the increment and decrement buttons */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Custom container for the number input and buttons */
.control {
  .disable-dbl-tap-zoom {
    touch-action: manipulation;
  }
}

/* Custom styling for the number input */
#targetAltitudeInput[type="number"] {
  /* font-family: Arial, sans-serif; */
  font-weight: 600;
  font-size: 25px;
  padding: 0;
  border: none;
  background-color: #f2f2f2;
  border-radius: 8px;
  outline: none;
  text-align: center;
  flex: 1;
  width: min-content;
}

/* Styling for the up and down buttons */
.number-input-container button {
  background-color: #6ec36e;
  /* Green color for the buttons */
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  text-align: center;
  margin: 0 2px;
  /* Adjust the margin to control the distance between buttons and input */
}

.number-input-container button.up-button:hover {
  background-color: #45a049;
}

.number-input-container button.up-button:active {
  background-color: #39843d;
}

.number-input-container button.down-button {
  background-color: #f44336;
  /* Red color for the buttons */
}

.number-input-container button.down-button:hover {
  background-color: #d32f2f;
}

.number-input-container button.down-button:active {
  background-color: #b71c1c;
}

/* Styling for the unit */
.unit {
  /* font-weight: ; */
  font-size: 22px;
  padding: 0px;
}


.gray-out {
  opacity: 0.45;
  pointer-events: none;
}






        /* Common styling for the number inputs */
        .fancy-number-input {
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: textfield;
            width: 60px;
            padding: 10px;
            font-size: 16px;
            border: 2px solid #3498db;
            border-radius: 5px;
            outline: none;
        }

        /* Styling for the number inputs when focused */
        .fancy-number-input:focus {
            border-color: #e74c3c;
        }

        /* Custom styling for the "Hours" input */
        .hours-input {
            border-color: #27ae60;
        }

        /* Custom styling for the "Minutes" input */
        .minutes-input {
            border-color: #f39c12;
        }

        /* Custom styling for the "Other 1" input */
        .other-input-1 {
            border-color: #9b59b6;
        }

        /* Custom styling for the "Other 2" input */
        .other-input-2 {
            border-color: #e67e22;
        }

        .fancy-span{
          /* padding: 5px; */
          margin-right: 20px;
        }

        .chartInputs{
          display: inline;
        }


@media (max-width: 600px) {

  #targetAltitudeInput[type="number"] {
    font-size: 20px;
  }
  #target-time{
    text-align: left;
  }

  .chartInputs{
    display: block;
    margin: 5px;
  }

.container {
  padding: 0px 10px 10px 10px;
}

.control{
  flex-wrap: wrap;
}

#controlWrapper{
  min-width: 113.5px;
}

.status{
  flex-wrap: wrap;
}

.controlItem {
  /* text-align: center; */
    flex: 0 0 30%;
  width: 30%;
  box-sizing: border-box;
  /* justify-items: center; */
  display: flex;
  justify-content: center; /* Center horizontally */
}

.evenControlItem{
  /* text-align: center; */
    flex: 0 0 50%;
  width: 50%;
  box-sizing: border-box;
  /* justify-items: center; */
  display: flex;
  justify-content: center; /* Center horizontally */
} 

.mainControlItem{
  flex: 0 0 50% !important;
  width: 50% !important;
}
.fancy-span{
  margin-right: 10px;
}
}


/* Style for the legend container */
#legend {
  list-style: none;
  padding: 0;
}

/* Style for each legend item */
#legend li {
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Style for the colored bowl */
.legend-bowl {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 10px;
}

/* Style for hidden legend items */
.hidden {
  text-decoration: line-through;
  opacity: 0.5;
}


body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

 
.inRoomGraph-graph-id0-guide-label::before {
 opacity: 0.0;
 /* transition: opacity 1s; */
}
.inRoomGraph-graph-id0-guide-label::after {
  opacity: 1;
  content:"hi";
  /* transition: opacity 1s; */
 }

 .inRoomGraph-graph-id0-guide-label[dx=0]{
  display: none;
 }

/* 
.free tspan {
  opacity: 1 !important;
  transition: opacity 0s !important;
} */ 
