body {
  font-family: 'Poppins', sans-serif;
}

.fs-7 {
  font-size: 0.85rem;
}

.row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4%;
}

.tab {
  border: 1px solid #ccc;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  border-radius: 10px;
}

/* Style the buttons inside the tab */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  border-radius: 10px;
  transition: 0.3s;
  font-size: 17px;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: white;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  display: none;

}


.sectionn {
  display: flex;
  gap: 2%;
  justify-content: center;
  align-items: start;

}

.child-section {
  width: 20%;
}

/* 
  .child-section:not(:last-child) {
    border-right: 1px solid #000; 
  } */


/* Custom media query for responsive container */
@media (max-width: 768px) {
  .responsive-container {
    width: 96%;
    margin: 3%;
  }

  .sectionn {
    display: flex;
    gap: 2%;
    justify-content: center;
    align-items: start;
    flex-direction: column;
  }

  .child-section {
    width: 100%;
    display: flex;

  }

  .traceback-btn {
    width: 97%;
    margin-left: 1.5%;
    margin-right: 1.5%;
  }
}

@media (min-width: 769px) {
  .responsive-container {
    width: 60%;
  }

  .traceback-btn {
    width: 60%;
    margin-left: 20%;
    margin-right: 20%;
  }

}

.traceback-btn {
  background-color: #0073e6;
  color: white;
  border: none;
  padding: 12px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px;
  position: fixed;
  bottom: 0px;
  left: 0;
  z-index: 1000;
  /* Ensures the button stays on top of the content */

}





.tab-btn {
  background-color: #f1f1f1;
  color: #333;
  border: 1px solid #ccc;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.tab-btn.active {
  background-color: #007bff;
  color: black;

}

.buttons {
  display: flex;
}

.buttons button {
  flex: 1;
  padding: 12px;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.buttons button:last-child {
  border-right: 1px solid #e0e0e0;
}

.buttons button:hover {
  background-color: #e0e0e0;
}

.buttons button.active {
  background-color: #d9d9d9;
}

.metrics {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.metric {
  text-align: center;
  width: 45%;
}

.progress-circle {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.progress-circle svg {
  transform: rotate(-90deg);
}

.progress-circle .bg {
  fill: none;
  stroke: #e6e6e6;
  stroke-width: 10;
}

.progress-circle .progress {
  fill: none;
  stroke-width: 10;
  stroke-dasharray: 282.74;
  stroke-dashoffset: 282.74;
  transition: stroke-dashoffset 1s ease-out;
}

.progress-circle .water {
  stroke: #0073e6;
}

.progress-circle .co2 {
  stroke: #666;
}

.icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.icon img {
  width: 20px;
  height: 20px;
}

.percentage {
  font-size: 14px;
  font-weight: bold;
  margin-top: 10px;
}

.equivalent {
  font-size: 12px;
  color: #777;
}


.custom-line {
  border: 0;
  border-top: 3px solid #C1E6F6;
  margin: 10px 0;
}

#noData {
  display: none;
  height: 100%;
  width: 100%;
}

#haveData {
  display: none;
}



.error-container {
  background-color: #2F3242;
}

.my-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -250px;
  margin-left: -400px;
}

.message-box {
  height: 200px;
  width: 380px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -100px;
  margin-left: 50px;
  color: #FFF;
  font-family: Roboto;
  font-weight: 300;
}

#Polygon-1,
#Polygon-2,
#Polygon-3,
#Polygon-4,
#Polygon-4,
#Polygon-5 {
  animation: float 1s infinite ease-in-out alternate;
}

#Polygon-2 {
  animation-delay: .2s;
}

#Polygon-3 {
  animation-delay: .4s;
}

#Polygon-4 {
  animation-delay: .6s;
}

#Polygon-5 {
  animation-delay: .8s;
}

@keyframes float {
  100% {
    transform: translateY(20px);
  }
}

.img1 {
  width: 50%;
  height: 50%
}

.img2 {

  width: 50%;
  height: 30%
}

.img3 {
  width: 30%;
  height: 30%
}

.img4 {
  width: 60%;
  height: 60%;
}

.error {
  text-decoration: underline;
  color: black;
  font-size: 100px;
}

.des {
  margin-top: -5%;
  color: gray;
  font-size: 50px;
}

@media (max-width: 450px) {
  .my-svg {
    position: absolute;
    top: 26%;
    left: 50%;
    margin-top: -250px;
    margin-left: -190px;
  }

  .message-box {
    margin-top: -10%;
    margin-left: -190px;
    text-align: center;
  }

  .error {
    color: black;
    font-size: 40px;
  }

  .des {
    margin-top: -1%;
    color: black;
    font-size: 20px;

  }

  .img1 {
    width: 25%;
    height: 25%;
  }

  .img2 {
    width: 25%;
    height: 15%;
  }

  .img3 {
    width: 15%;
    height: 15%;
  }

  .img4 {
    width: 30%;
    height: 30%;
  }
}