body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  padding-bottom: 60px;
  /* Ensure content isn’t hidden behind the fixed footer */
}

/* Toolbar */
.toolbar {
  background-color: #f8f8f8;
  padding: 10px 20px;
  border-bottom: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.toolbar h1 {
  margin: 0;
  font-size: 1.5em;
  text-align: center;
  flex: 1;
}

/* Toolbar Left (Search Bar) */
.toolbar-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

/* Toolbar Right (Tools Dropdown) */
.toolbar-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

/* Toolbar Menu */
.toolbar-menu {
  position: relative;
  display: inline-block;
}

/* Dropdown Button */
.dropbtn {
  background-color: #d3d3d3;
  /* Light gray */
  color: #333;
  padding: 8px 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

/* Dropdown Content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 5px;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #f1f1f1;
  border-radius: 5px;
}

/* Show the dropdown menu on hover (desktop) or click (mobile) */
.toolbar-menu:hover .dropdown-content {
  display: block;
}

/* Change the background color of the dropdown button on hover */
.toolbar-menu:hover .dropbtn {
  background-color: #c0c0c0;
  /* Slightly darker gray on hover */
}

/* Search Bar */
#search-bar {
  display: flex;
  gap: 10px;
  align-items: center;
}

#search-input {
  padding: 8px;
  font-size: 16px;
  width: 200px;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  outline: none;
}

#search-button {
  padding: 8px 16px;
  font-size: 16px;
  background-color: #d3d3d3;
  /* Light gray */
  color: #333;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

#search-button:hover {
  background-color: #c0c0c0;
  /* Slightly darker gray on hover */
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  .toolbar {
    padding: 10px;
  }

  .toolbar h1 {
    font-size: 1.2em;
    flex: 1;
  }

  #search-input {
    width: 150px;
  }

  .dropbtn {
    padding: 6px 12px;
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  .toolbar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .toolbar-left,
  .toolbar-right {
    width: 100%;
    justify-content: center;
  }

  #search-bar {
    width: 100%;
    justify-content: center;
  }

  #search-input {
    width: 100%;
    max-width: 200px;
  }

  .toolbar h1 {
    font-size: 1em;
  }
}

#overview {
  margin: 20px;
}

#gene-details {
  margin: 20px;
}

.subsection {
  margin-left: 20px;
}

#search-results {
  margin: 20px;
}

.result-item {
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}

.result-item:hover {
  background-color: #f0f0f0;
}

#sequence-retrieval {
  margin: 20px;
  padding: 20px;
  border-top: 1px solid #ccc;
}

#sequence-retrieval h2 {
  margin-top: 0;
}

#sequence-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

#sequence-input {
  padding: 8px;
  width: 400px;
}

#sequence-button {
  padding: 8px 16px;
}

#sequence-results {
  margin-top: 20px;
}

.sequence-result {
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 10px;
}

.sequence-text {
  font-family: monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Bottom toolbar (footer) styles */
footer {
  background-color: #f8f8f8;
  padding: 10px 20px;
  border-top: 1px solid #ccc;
  text-align: center;
  position: fixed;
  bottom: 0;
  width: 100%;
  font-size: 0.9em;
  color: #333;
}

footer a {
  color: #007bff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}