* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #000; /* Set background color to black */
  color: #fff;
}

header {
  position: relative;
  text-align: center;
}

.banner {
  width: 100%;
  height: auto; /* Adjust the height as needed */
}

.banner img {
  width: 100%;
  height: auto;
  object-fit: cover; /* Ensures the image covers the entire banner area */
}

/* Menu System (Exact copy from about.css) */
.menu {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #333;
  width: 100%;
  padding: 10px 0;
  flex-wrap: wrap; /* Allow wrapping of menu items */
}

.menu > ol {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: flex-start; /* Align items to the start */
}

.menu-item {
  position: relative;
  background-color: #000;
  padding: 10px 20px;
  text-align: center; /* Center text within each box */
  font-size: 14px;
  font-weight: bold;
  color: #FFD700; /* Yellow font color */
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex; /* Enable flexbox for content alignment */
  align-items: center; /* Vertically center content */
  justify-content: center; /* Horizontally center content */
  cursor: pointer;
  border-radius: 5px;
  margin: 5px;
  white-space: nowrap;
  border: 1px solid #FFD700; /* Gold border for each menu box */
  box-sizing: border-box; /* Ensure padding and border are included in the width */
}

.menu-item:hover {
  background-color: #555;
  transform: scale(1.05);
  opacity: 0.8; /* Added from about.css */
}

.menu-item a {
  color: #FFD700; /* Yellow font color for links */
  text-decoration: none;
  font-size: 14px;
}

/* Submenu (Updated to remove gap) */
.sub-menu {
  display: none;
  position: absolute;
  top: 100%; /* Position directly below the parent menu */
  left: 0;
  margin-top: -5px; /* Pull the submenu closer to the parent to remove the gap */
  background-color: #000;
  width: auto;
  min-width: 100%;
  padding: 10px 0;
  border-radius: 5px;
  text-align: center;
  border: 1px solid #FFD700;
  z-index: 9999;
}

.menu-item:hover .sub-menu {
  display: flex;
  flex-direction: column;
  opacity: 1; /* Added from about.css */
  z-index: 10000; /* Ensure submenu is always on top */
}

.sub-menu .menu-item {
  margin: 5px 0;
  font-size: 13px;
  padding: 8px 10px;
  width: auto;
}

.sub-menu .menu-item a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Alphabet navigation settings (Updated: no boldness, yellow border, black background) */
.abc-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0;
}

.abc-char {
  background-color: #000; /* Black background */
  color: #ffcc00;
  padding: 10px 15px;
  margin: 5px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
  border: 1px solid #ffcc00; /* Yellow border, no boldness */
}

.abc-char:hover {
  background-color: #555;
}

/* Container settings */
.container {
  width: 95%;
  margin: 10px auto;
  padding: 10px;
  background-color: #222;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #ffcc00;
}

/* Search bar settings */
.search-bar {
  display: flex;
  justify-content: center;
  margin: 20px auto; /* Center with auto margins */
  width: 50%; /* Reduce width to 50% of the parent container on desktop */
  max-width: 600px; /* Cap the maximum width for larger screens */
  min-width: 300px; /* Ensure it doesn't get too small */
  box-sizing: border-box; /* Ensure padding/margins are included in width */
}

.search-bar input[type="text"] {
  padding: 10px;
  border-radius: 5px 0 0 5px;
  border: none;
  outline: none;
  width: 70%; /* Take full width of the .search-bar container */
  flex-grow: 1; /* Ensure it takes available space */
  box-sizing: border-box; /* Include padding in width */
}

.search-bar button {
  padding: 10px;
  border-radius: 0 5px 5px 0;
  border: none;
  background-color: #ffcc00;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  flex-shrink: 0; /* Prevent button from shrinking */
  min-width: 70px; /* Ensure button has enough space */
  box-sizing:  border-box; /* Include padding in width */
}

.search-bar button:hover {
  background-color: #ffa500;
}

/* Album list settings */
.album-list {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.album-item {
  width: 90%;
  margin: 10px 0;
}

.album-content {
  display: flex;
  align-items: center;
  background-color: #333; /* Dark grey background */
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  color: #fff;
}

.r-cover img {
  width: 100px;
  height: auto;
  margin-right: 20px;
  border-radius: 8px;
}

.r-details {
  display: flex;
  flex-direction: column;
}

.r-title a, .r-band a, .r-album-count a, .r-live-count a, .r-albums-best-of-count a, .r-best-of-count a, .r-live-best-of-count a {
  font-weight: bold;
  color: #ffcc00;
  text-decoration: none;
}

.r-title a {
  display: block;
  margin-bottom: 5px;
}

.r-band a, .r-album-count a, .r-live-count a, .r-albums-best-of-count a, .r-best-of-count a, .r-live-best-of-count a {
  display: block;
  margin-bottom: 5px;
}

.r-year a {
  color: #ffcc00;
  text-decoration: none;
  display: block;
}

/* Add the following CSS to set album category color to white */
.r-category a {
  font-weight: bold;
  color: #fff; /* Change this color to white */
  text-decoration: none;
  display: block;
  margin-bottom: 5px;
}

.clearer {
  clear: both;
}

/* Footer settings */
footer {
  background-color: #111;
  padding: 20px;
  text-align: center;
  margin-top: 20px;
  color: #fff;
}

footer p {
  margin: 0;
}

footer .social-media {
  margin-top: 10px;
}

footer .social-media a {
  margin: 0 10px;
  display: inline-block;
}

footer .social-media img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .menu > ol {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between; /* Distribute items evenly across the row */
    width: 100%; /* Ensure the container takes up the full width */
  }

  .menu-item {
    margin: 5px;
    font-size: 14px;
    width: calc(33.33% - 10px); /* Keep consistent 3 columns */
    text-align: center; /* Center text within each box */
    order: 0; /* Reset order for initial flow */
    box-sizing: border-box; /* Ensure padding and border are included in the width */
    display: flex; /* Enable flexbox for content alignment */
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
  }

  /* Place "Video" at the very end */
  .menu-item:nth-child(5) { /* Assuming "Video" is the 5th item in HTML */
    order: 8; /* Set a high order to push it to the end */
    width: calc(33.33% - 10px); /* Ensure consistent width */
  }

  /* Adjust "Contact" to be in the visual position of the original "Video" */
  .menu-item:nth-child(7) { /* Assuming "Contact" is the 7th item in HTML */
    order: 5;
    width: calc(33.33% - 10px); /* Ensure consistent width */
  }

  .sub-menu {
    min-width: 100%;
  }

  /* Adjust search bar for tablets */
  .search-bar {
    width: 80%; /* Slightly wider for tablets */
    max-width: 500px; /* Cap the width */
    min-width: 300px; /* Ensure it doesn't get too small */
    margin: 20px auto; /* Center with auto margins */
    display: flex;
    flex-wrap: nowrap; /* Keep input and button on same line */
    box-sizing: border-box;
  }

  .search-bar input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    border-radius: 5px 0 0 5px;
    box-sizing: border-box;
  }

  .search-bar button {
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    min-width: 60px;
    flex-shrink: 0;
    box-sizing: border-box;
  }

  /* Arrange letter boxes in rows of 6 */
  .abc-char {
    width: calc(16.66% - 10px); /* 100% / 6 = 16.66%, subtract 10px for margins (5px on each side) */
    margin: 5px; /* Keep consistent margins */
    padding: 8px; /* Slightly reduce padding to fit better */
    box-sizing: border-box; /* Ensure padding and border are included in width */
    text-align: center; /* Center the letter inside the box */
  }
}

@media (max-width: 480px) {
  .menu {
    font-size: 12px; /* Match about.css behavior */
  }

  /* Further refine search bar for smaller screens */
  .search-bar {
    width: 90%; /* Maximize usable space on phones */
    max-width: 100%; /* Prevent exceeding viewport */
    min-width: 0; /* Allow it to shrink if needed */
    margin: 15px auto; /* Center with auto margins */
    display: flex;
    flex-direction: column; /* Stack vertically on very small screens */
    align-items: stretch; /* Stretch children to full width */
    box-sizing: border-box;
  }

  .search-bar input[type="text"] {
    width: 100%; /* Full width of container */
    padding: 8px;
    border-radius: 5px 5px 0 0; /* Adjust border-radius for top corners */
    box-sizing: border-box;
    margin-bottom: 5px; /* Add space between input and button */
  }

  .search-bar button {
    padding: 8px 12px;
    border-radius: 0 0 5px 5px; /* Adjust border-radius for bottom corners */
    width: 100%; /* Full width of container */
    min-width: 0; /* Allow button to fit content */
    box-sizing: border-box;
  }

  /* Arrange letter boxes in rows of 6 for smaller screens */
  .abc-char {
    width: calc(16.66% - 10px); /* 100% / 6 = 16.66%, subtract 10px for margins */
    margin: 5px;
    padding: 6px; /* Further reduce padding for smaller screens */
    box-sizing: border-box;
    text-align: center;
    font-size: 12px; /* Slightly reduce font size for better fit */
  }
}