html {
  box-sizing: border-box;
  overflow: -moz-scrollbars-vertical;
  overflow-y: scroll;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background: #fafafa;
  overflow-y: auto;
}

body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}

.navbar {
  background-color: #333;
  color: white;
  padding: 10px 20px;
  text-align: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar img {
  content: url("./jba_header.png");
  height: 50px;
}

.navbar a,
.footer a {
  color: #ff9800;
  text-decoration: none;
  transition: color 0.3s ease;
}
.content {
  margin-top: 60px; /* Adjusted for navbar */
  padding: 2% 1%;
  padding-bottom: 100px;
  min-height: calc(100vh - 60px + 1px);
  overflow-y: auto; /* Ensures scrolling within the content area if it exceeds the viewport height */
}
.padding-bottom-extra {
  padding-bottom: 1000px; /* Adjust this value as needed for sufficient scrolling space */
}
.dropdown button {
  background-color: #333;
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  left: 0;
  border-radius: 4px;
  padding: 5px 0;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.show {
  display: block;
}

.version-item {
  background-color: #333;
  color: white;
  padding: 10px;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  margin-top: 20px;

}

.version-item:hover {
  background-color: #555;
}

.version-item h3 {
  margin: 0;
  display: inline-block;
}

.changelog-toggle {
  float: right;

  color: #ff9800;
  cursor: pointer;
}

.changelog-toggle::after {
  content: "▼";
  /* Default indicator for collapsed content */
  display: inline-block;
  margin-left: 5px;
}

.changelog-toggle.expanded::after {
  content: "▲";
  /* Indicator for expanded content */
}

.changelog-content {
  display: none; /* Ensure changelogs are closed by default */
  background-color: #f9f9f9;
  color: black;
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
  left: 0;
  right: 0;
  z-index: 1;
}

.footer {
  background-color: #333;
  color: white;
  padding: 10px 20px;
  text-align: center;
  position: fixed;
  width: 100%;
  bottom: 0;
}

.version-item h3 a,
.changelog-toggle {
  background: linear-gradient(to right, #ffb400, #cc9300);
  /* Gradient from golden to darker shade */
  color: white;
  /* White text for contrast */
  padding: 10px 20px;
  /* Appropriate padding for button size */
  border-radius: 4px;
  /* Rounded corners for a button-like appearance */
  display: inline-block;
  /* Allows padding and margin to take effect */
  text-decoration: none;
  /* Removes underline from link */
  transition: background-color 0.3s, transform 0.3s;
  /* Smooth transition for interactive effects */
  border: none;
  /* Removes any default border */
  cursor: pointer;
  /* Cursor to pointer to indicate it's clickable */
}

.version-item h3 a:hover,
.version-item h3 a:focus,
.changelog-toggle:hover {
  background: linear-gradient(to right, #cc9300, #997300);
  /* Slightly darker gradient on hover/focus */
  color: white;
  /* Keep text color consistent */
  text-decoration: none;
  /* Keep text decoration consistent */
  transform: scale(1.05);
  /* Scale up for interactive feedback */
}

/* Specific styles for the changelog-toggle to override the version-item padding */
.changelog-toggle {
 order: 2; /* Ensures the release notes button is always to the right */
margin-left: auto; /
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .navbar,
  .footer {
    padding: 10px 15px;
    /* Adjust padding */
  }

  .content,
  .version-item {
    padding: 10px; /* Adjust padding for smaller screens */
    gap: 5px; /* Adjust gap for smaller screens */
  }

  .version-item h3,
  .footer p {
    font-size: 0.9rem;
    /* Adjust font size for readability */
  }
}

@media (max-width: 480px) {
  .navbar img {
    height: 40px;
    /* Adjust logo size */
  }

  .navbar,
  .footer {
    padding: 5px 10px;
    /* Reduce padding further */
  }

  .content,
  .version-item {
    padding: 5px;
    /* Reduce content padding */
  }

  .version-item h3,
  .footer p {
    font-size: 0.8rem;
    /* Further reduce font size for very small screens */
  }

  /* Adapt dropdown and changelog content for smaller screens */
  .dropdown button,
  .changelog-toggle {
    font-size: 0.8rem;
    /* Adjust button font size */
    padding: 10px;
    /* Adjust button padding */
  }

  .changelog-content,
  .dropdown-content {
    padding: 5px;
    /* Adjust content padding within dropdowns and changelog */
  }
}
