/* 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 settings */
.banner {
  width: 100%;
  max-height: 360px;
  overflow: hidden;
}

.banner img {
  width: 100%;
  max-height: 390px;
  object-fit: contain;
}

/* Search bar settings */
.search-bar {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.search-bar input[type="text"] {
  padding: 10px;
  border-radius: 5px 0 0 5px;
  border: none;
  outline: none;
  width: 300px;
}

.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;
}

.search-bar button:hover {
  background-color: #ffa500;
}

/* Menu system */
.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);
}

.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;
}

.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;
}

/* When hovering on submenu, make the rest of the menu transparent on mobile */
.menu-item:hover {
  opacity: 0.8;
}

.menu-item:hover .sub-menu {
  opacity: 1;
  z-index: 10000; /* Ensure submenu is always on top */
}

/* Alphabet navigation settings */
.abc-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0;
}

.abc-char {
  background-color: #444;
  color: #ffcc00;
  padding: 10px 15px;
  margin: 5px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.abc-char:hover {
  background-color: #555;
}

/* Container settings */
.container {
  width: 80%;
  margin: 20px auto;
  padding: 20px;
  background-color: #222;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  text-align: center; /* Center all text in the container */
}

/* Headers (Increased specificity for h1) */
.container h1 {
  color: #ffcc00 !important; /* Yellow color */
  text-align: center !important; /* Center the header */
  margin-bottom: 20px;
}

/* Ensure other headers are also yellow and centered */
h2, h3, h4, h5, h6 {
  color: #ffcc00 !important; /* Yellow color */
  text-align: center !important; /* Center the headers */
  margin-bottom: 20px;
}

/* "Questions" (Target <p><b> elements in .container to be yellow and centered) */
.container p b {
  color: #ffcc00 !important; /* Yellow color */
  display: block; /* Make <b> a block element to allow centering */
  text-align: center !important; /* Center the text */
  margin-bottom: 5px; /* Add some spacing below the bold text */
}

/* Ensure regular <p> text remains white but is centered */
.container p {
  color: #fff; /* Keep regular paragraph text white */
  text-align: center; /* Center the paragraph text */
}

/* 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 input[type="text"] {
    width: 100%;
  }

  .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 mobile */
  .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 input[type="text"] {
    width: 100%;
  }

  .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;
  }
}