/* General styles for the navbar */
#navbar {
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  background-color: #333;
  padding: 5px 10px; /* Reduced padding for a slimmer navbar */
  color: white;
  overflow-x: auto; /* Allows horizontal scrolling if elements overflow */
}

/* Styling for divs inside the navbar to ensure alignment and spacing */
#navbar > div {
  display: flex;
  align-items: center;
  flex-grow: 1; /* Allows divs to grow as needed */
}

/* Styling for main heading (logo or title) */
.headline {
  font-size: 1.5em; /* Adjust font size as needed */
  margin: 0;
  padding: 0;
}

/* General button styles */
.control-btn {
  border: none;
  padding: 8px 12px; /* Slightly smaller padding */
  margin: 0 5px; /* Add horizontal margin for spacing */
  font-size: 0.8em; /* Smaller text */
  color: white;
  background-color: #555;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* Styling for selected button state */
.control-btn.selected {
  background-color: purple;
}

/* Styling for borders between buttons */
.control-btn + .control-btn {
  border-left: 1px solid white;
}

/* Cursor styling for loading state */
body.wait,
body.wait button {
  cursor: wait;
}

/* Rounding corners for first and last button in a group */
#navbar > div > .control-btn:nth-of-type(1) {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.control-btn:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* Styling for search input */
#searchInput {
  padding: 8px;
  margin: 0 5px; /* Ensure consistent margin */
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #313131;
  color: white;
  font-size: 0.8em; /* Smaller text */
}

#searchInput::placeholder {
  color: #ddd;
}

/* Toggle button for control center */
#control-center-toggle {
  background: none;
  border: none;
  color: white;
  padding: 8px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em; /* Adjust the icon size */
}

/* Styling for the hamburger menu icon */
#hamburgerMenu div {
  height: 2px; /* Smaller bar height */
  background: white;
  margin: 3px 0; /* Adjusted margin for closer spacing */
  transition: background-color 0.3s;
}

/* Additional styling for control center and animation effects */
#control-center {
  display: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
  background-color: #414141;
  color: white;
  padding: 15px;
  box-sizing: border-box;
  position: fixed;
  top: 60px;
  right: 0;
  z-index: 49;
}

.control-section {
  flex: 0 0 100%;
  margin-right: 2%;
  padding: 10px;
}

.control-section:last-child {
  margin-right: 0;
}

.control-section h2 {
  margin-top: 0;
  margin-bottom: 0;
}

.control-section input,
.control-section button {
  width: calc(100% - 16px);
}

.control-section button:hover {
  background-color: #7d7d7d;
}

.disabled {
  text-decoration: line-through;
  color: #7d7d7d;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100%);
  }
}
