body {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: 18px;
  padding: 0 20px 30px 0;
  line-height: 1.4;
  background: #1c1c1c;
  color: #ffffff;
}

h1 {
  font-weight: 700;
  color: #ffbf00;
  font-size: 48px;
  margin-bottom: 30px;
}

nav {
  background: #343a40;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.bar-label {
  display: flex;
  bottom: 5px;
  width: 100%;
  text-align: center;
  justify-content: center;
  font-weight: bold;
  color: black;
  font-size: 15px;
  z-index: 1;
}

.btn-custom {
  background-color: #ffbf00;
  border: none;
  color: #000;
  font-weight: 500;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.btn-custom:hover {
  background-color: #ffdd4d;
}

.custom-range {
  accent-color: #ffbf00;
}

.flex-container {
  margin-top: 35px;
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  height: 500px;
  justify-content: center;
}

.flex-item {
  background: #00d1b2;
  border: 2px solid #444;
  width: 60px !important;
  margin: 0 7px;
  transition: height 0.2s ease;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  margin-top: 5px;
}

#input {
  display: flex;
  justify-content: space-around;
}

footer {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  color: #ffbf00;
  text-align: center;
  margin-top: 30px;
}

.form-range {
  width: 100%;
  height: 1.5rem;
  padding: 7px;
}

a {
  color: #ffbf00;
  margin: 0 5px;
}

a:hover {
  color: #ffdd4d;
  text-decoration: none;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  h1 {
    font-size: 36px;
  }

  .row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .btn-custom {
    padding: 8px 16px;
    margin-bottom: 10px;
  }

  #input {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .flex-container {
    height: 300px; /* Reduce height for smaller screens */
  }

  .flex-item {
    margin: 0 4px; /* Reduce gap between bars for smaller screens */
    width: 15px;
  }

  footer {
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    color: #ffbf00;
    text-align: center;
    margin-top: 200px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 28px;
  }

  .btn-custom {
    font-size: 14px;
    padding: 6px 12px;
  }

  #input {
    gap: 10px;
  }

  .flex-container {
    height: 250px; /* Further reduce height for very small screens */
  }

  .flex-item {
    width: 10px;
    margin: 0 2px;
  }

  .bar-label {
    font-size: 12px; /* Adjust label font size for better fit */
  }

  footer {
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    color: #ffbf00;
    text-align: center;
    margin-top: 250px;
  }
}
