/* General settings */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #fff;
}

/* Header settings */
header {
  position: relative;
  text-align: center;
}

.banner {
  width: 100%;
  height: auto;
}

.banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Search bar settings */
.search-bar {
  display: flex;
  justify-content: center;
  margin: 20px auto; /* Center with auto margins */
  width: 70%; /* 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: 75px; /* Ensure button has enough space */
  box-sizing: border-box; /* Include padding in width */
}

.search-bar button:hover {
  background-color: #ffa500;
}

/* Menu system (Updated to match the previous 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 match the previous CSS) */
.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 */
.abc-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0;
}

.abc-char {
  background-color: #000; /* Black background */
  color: #ffcc00; /* Yellow font color */
  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; /* Dark grey on hover */
}

/* Container settings */
.container {
  width: 90%;
  margin: 20px auto;
  padding: 20px;
  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;
}

/* Album list settings */
.album-list {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.album-item {
  display: flex;
  background-color: #333;
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  width: 90%;
}

.album-item img {
  width: auto;
  height: 200px;
  margin-right: 20px;
  border-radius: 8px;
}

.album-info {
  color: #ffcc00;
  flex-grow: 1;
}

.album-info h2 {
  margin: 0;
}

.album-info p {
  margin: 5px 0;
}

/* Track list settings */
.album-info ol {
  list-style-type: decimal;
  padding-left: 20px; /* Add space between numbers and text */
  margin: 5px 0;
  display: block; /* Ensure the list is displayed as a block element */
}

.album-info ol li {
  display: list-item; /* Ensure each item is rendered properly */
  margin: 5px 0;
  white-space: normal; /* Prevent text from squeezing into a single line */
  color: #ffcc00;
}

/* 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) {
  .container {
    width: 90%;
  }

  .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;
  }

  .album-item {
    flex-direction: column;
    align-items: center;
  }

  .album-item img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  .album-info {
    text-align: center;
  }

  /* Menu adjustments for tablets (Copied from previous CSS) */
  .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%;
  }
}

@media (max-width: 480px) {
  nav ul {
    flex-direction: column;
    padding: 10px 0;
  }

  nav ul li {
    margin: 10px 0;
  }

  .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;
  }

  .album-item {
    flex-direction: column;
    align-items: center;
  }

  .album-item img {
    width: 100%;
    max-width: 200px;
    height: auto;
  }

  .album-info {
    padding: 0;
    text-align: center;
  }

  /* Menu adjustments for phones (Copied from previous CSS) */
  .menu {
    font-size: 12px; /* Match about.css behavior */
  }
}
