html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Georgia', serif;
  font-size: 18px;
  background-image: url('../img/hico-baptist-church-graham-north-carolina.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #ffffff; /* fallback color, plain white */
  margin: 0;
  padding: 0;
}

/* Menu styles */
ul.menu {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: rgba(34, 49, 63, 0.8); /* Semi-transparent dark blue */
}

ul.menu li {
  float: left;
  position: relative;
}

ul.menu li a, .dropbtn {
  display: inline-block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent; /* Ensure no highlight on tap */
}

ul.menu li a:hover, .dropdown:hover .dropbtn {
  background-color: #2ecc71; /* Emerald green for hover effect */
}

ul.menu li.dropdown {
  display: inline-block;
}

ul.menu .dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(34, 49, 63, 0.8); /* Semi-transparent dark blue */
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  flex-direction: column; /* Ensure items stack vertically */
}

ul.menu .dropdown-content a {
  color: white; /* Ensure the text is white */
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

ul.menu .dropdown-content a:hover {
  background-color: #2ecc71; /* Light green hover effect */
}

ul.menu .dropdown:hover .dropdown-content {
  display: block; /* Show dropdown on hover */
}

/* General container styling */
.content {
  max-width: 80%;
  margin: auto;
  background: rgba(255, 255, 255, 0.9); /* Semi-transparent white for readability */
  padding: 20px;
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

#logo {
  display: block;
  margin: 0 auto 20px auto; /* Center the logo and add bottom margin */
  width: auto;
  height: 100px; /* Set a fixed height for the logo */
}

#logo, #logo * {
  text-align: left;
  color: #2c3e50; /* Dark blue-gray for the title */
}

html body #logo > a {
  display: inline-block;
  vertical-align: top;
  margin-left: 0px;
  margin-top: 0px;
}

p {
  color: #2c3e50; /* Dark blue-gray text for better readability */
  font-family: Arial, sans-serif;
  line-height: 1.6; /* Improved line spacing */
}

.carousel-container {
  position: relative;
  width: 80%; /* Set the width to be no more than 80% of the body */
  max-width: 100%; /* Ensure it does not exceed body width */
  overflow: hidden;
  text-align: center;
  margin: 0 auto 20px auto; /* Center the carousel and add bottom margin */
}

.carousel-image {
  display: none;
  width: 100%; /* Set the width to be within the content block */
  height: auto;
  max-height: 200px; /* Control the height of the images */
  margin: 0 auto;
  border-radius: 8px; /* Rounded corners */
}

.carousel-image.active {
  display: block;
}

/* General container styling */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white for readability */
  border-radius: 15px; /* Rounded edges */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for a 3D effect */
}

.footer-wrapper {
  width: 100%;
  padding: 20px 0;
}

.footer-container {
  max-width: 80%;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff; /* Same background color as the body content */
  border-radius: 15px; /* Rounded edges */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for a 3D effect */
}

/* Footer Styles */
.footer-page .entry {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-column {
  flex: 1;
  padding: 10px;
  min-width: 300px;
  box-sizing: border-box; /* Ensures padding is included in the element's width */
}

.footer-heading {
  text-align: center;
  font-size: 18pt;
  line-height: 28px;
  margin-bottom: 10px;
}

.footer-social-icons {
  text-align: center;
}

.footer-social-icons a {
  display: inline-block;
  margin: 0 15px;
}

.footer-social-icons a img {
  width: 32px;
  height: 32px;
}

.footer-service-times,
.footer-contact {
  text-align: center;
}

#footer_nav {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

#footer_nav .menu-item {
  margin: 0 15px;
}

#footer_nav .menu-item a {
  text-decoration: none;
  color: #007BFF;
}

#footer_nav .menu-item a:hover {
  text-decoration: underline;
}

.mobile_toggle {
  text-align: center;
  margin-top: 10px;
}

.footer-credit {
  text-align: center;
  margin-top: 10px;
}

.footer-credit a {
  text-decoration: none;
  color: #333;
}

.footer-credit a:hover {
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
  .footer-page .entry {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    width: 100%;
    max-width: none;
  }

  ul.menu {
    flex-direction: column;
    align-items: flex-start;
    background-color: rgba(34, 49, 63, 0.8); /* Semi-transparent dark blue */
    display: none;
  }

  ul.menu li {
    float: none;
    width: 100%;
  }

  ul.menu li a {
    padding: 14px 16px;
    width: 100%;
  }

  ul.menu .dropdown-content {
    position: static;
    min-width: 100%;
  }

  ul.menu .dropdown:hover .dropdown-content {
    display: none;
  }

  .menu-toggle {
    display: block;
    background-color: rgba(34, 49, 63, 0.8); /* Semi-transparent dark blue */
    color: white;
    text-align: center;
    padding: 14px 16px;
    cursor: pointer;
  }

  .menu-toggle:hover {
    background-color: #2ecc71; /* Emerald green for hover effect */
  }
}

a {
  color: #007BFF; /* Blue color for the links */
  text-decoration: underline; /* Underline the links */
}

a:hover {
  color: #0056b3; /* Darker blue on hover */
  text-decoration: none; /* Remove underline on hover */
}

/* Additional Footer Tagline Styling */
.footer-tagline {
  flex-basis: 100%;
  text-align: center;
  margin: 20px 0;
  font-weight: normal;
  font-size: 14px;
}

/* Table styles */
#missions-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

#missions-table th, #missions-table td {
  border: none; /* Remove borders */
  padding: 8px;
  text-align: left;
}

#missions-table th {
  background-color: rgba(34, 49, 63, 0.8); /* Semi-transparent dark blue */
  color: white;
}

#missions-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
}

#missions-table tr:hover {
  background-color: #ddd;
}

#missions-table td:first-child {
  font-weight: bold;
}