/* General Styles for Teach Yourself Bagpipes */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

/* Header Styles */
.page-header {
  background-color: rgb(0, 102, 0); /* Dark green background */
  color: white; /* White text */
  text-align: center; /* Center align the text */
  padding: 20px 10px; /* Add some padding top/bottom and left/right */
  font-family: Helvetica, Arial, sans-serif;
}

.page-header h1 {
  margin: 0; /* Remove default margin from h1 */
  font-size: 2.5em; /* Adjust size as needed */
}

.page-header .tagline {
  margin: 5px 0 0 0; /* Add a small top margin, remove others */
  font-style: italic;
  font-size: 1em; /* Adjust size as needed */
}

/* Top Menu Styles */
.top-menu {
  background-color: rgb(0, 102, 0); /* Dark green background */
  padding: 5px 0; /* Add some vertical padding */
}

.top-menu ul {
  list-style: none; /* Remove default bullet points */
  padding: 0;
  margin: 0;
  text-align: center; /* Center menu items */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.top-menu ul li {
  display: inline-block; /* Display items horizontally */
  position: relative; /* Needed for dropdown positioning */
}

.top-menu ul li a {
  text-decoration: none; /* Remove underlines from links */
  display: block; /* Make the whole area clickable */
  padding: 15px 20px; /* Add some space around menu items */
  color: white; /* White text */
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.1em;
}

.top-menu ul li a:hover {
  background-color: rgb(0, 80, 0); /* Slightly darker green on hover */
}

/* Dropdown Menu Styles - Enhanced to ensure they work */
.top-menu .dropdown {
  position: relative;
  display: inline-block;
}

.top-menu .dropdown-content {
  display: none; /* Hide dropdowns by default */
  position: absolute;
  left: 0;
  top: 100%; /* Position directly below parent */
  background-color: rgb(0, 102, 0); /* Match top menu background */
  min-width: 250px; /* Set a minimum width */
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); /* Add a subtle shadow */
  z-index: 1000; /* Ensure dropdown appears above other content */
  text-align: left; /* Align dropdown items to the left */
}

.top-menu .dropdown-content li {
  display: block; /* Display dropdown items vertically */
  width: 100%;
}

.top-menu .dropdown-content li a {
  color: white; /* White text for dropdown items */
  padding: 15px 16px;
  display: block;
  width: 100%;
  text-align: left;
  font-size: 1em;
}

.top-menu .dropdown-content li a:hover {
  background-color: rgb(0, 80, 0); /* Darker green on hover */
}

/* Show dropdown on hover - Enhanced to ensure they work */
.top-menu .dropdown:hover .dropdown-content {
  display: block !important;
}

/* Bottom Menu Styles */
.bottom-menu {
  background-color: white; /* White background */
  padding: 10px 0; /* Add some padding */
  border-top: 1px solid #eee; /* Optional: add a top border */
}

.bottom-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.bottom-menu ul li {
  display: inline-block;
}

.bottom-menu ul li a {
  color: #0000EE; /* Standard link blue */
  font-family: Helvetica, Arial, sans-serif;
  padding: 5px 10px;
  text-decoration: none;
}

.bottom-menu ul li a:hover {
  text-decoration: underline; /* Underline on hover */
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .top-menu ul {
    flex-direction: column;
  }
  
  .top-menu ul li {
    width: 100%;
    text-align: left;
  }
  
  .top-menu .dropdown-content {
    position: relative;
    width: 100%;
    box-shadow: none;
  }
  
  .top-menu .dropdown-content li a {
    padding-left: 30px; /* Indent dropdown items on mobile */
  }
}

