body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #111;
  color: #fff;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 20px auto;
  padding: 10px;
  max-width: 800px;
  background: #222;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.controls label,
.controls select,
.controls input,
.controls button {
  font-size: 1rem;
  padding: 6px 8px;
  background: #333;
  border: 1px solid #555;
  color: #fff;
  border-radius: 4px;
}

#bars-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 90%;
  max-width: 1000px;
  height: 400px;
  margin: 20px auto;
  background-color: #222;
  border: 1px solid #333;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.bar {
  width: 5px;
  margin: 0 1px;
  background: linear-gradient(to top, #777, #ccc);
  transition: height 0.2s, background-color 0.2s;
}

#algorithm-info {
  max-width: 800px;
  margin: 20px auto;
  padding: 15px;
  background: #222;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

#info-title {
  margin-top: 0;
  margin-bottom: 10px;
}

footer {
  text-align: center;
  padding: 10px;
  margin: 20px auto;
  background: #222;
  border-top: 1px solid #333;
}

footer a {
  color: #fff;
  text-decoration: none;
  margin-right: 5px;
}
