html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: auto;
  padding: 0;
  text-align: center;
  background-color: #BBFFCC;
  font-size: 16px;
}

h2, p {
  margin: 10px;
}

ul.navigation {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #33CC88;
}

ul.navigation li {
  float: left; /* Keep horizontal on desktop */
}

ul.navigation li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 1.1rem;
}

ul.navigation li a:hover {
  background-color: #11AA55;
}

p {
  font-size: 1.125rem;
  max-width: 90%;
  margin: 10px auto;
  text-align: center;
  line-height: 1.5;
}

/* Keep original button styles for desktop */
#RSSfeedID button {
  border-radius: 8px;
  background-color: rgb(32, 94, 170);
  color: white;
  border: none;
  /* Keep original padding/margin from your JS */
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  /* Stack navigation vertically on mobile */
  ul.navigation li {
    float: none;
    display: block;
    width: 100%;
  }
  
  ul.navigation li a {
    padding: 12px 10px;
    font-size: 1rem;
  }
  
  p {
    font-size: 1rem;
    max-width: 95%;
  }
  
  /* Mobile-optimized buttons */
  #RSSfeedID button {
    padding: 10px 16px; /* Larger touch targets */
    font-size: 1rem;
    min-height: 44px; /* Minimum touch target size */
    min-width: 60px;
    margin: 5px 0;
  }
  
  /* Adjust RSS feed layout for mobile */
  #RSSfeedID div {
    margin: 10px 0;
    padding: 12px;
  }
  
  #RSSfeedID h3 {
    font-size: 1.1rem;
    line-height: 1.4;
  }
}

/* Very small devices */
@media (max-width: 480px) {
  body {
    font-size: 13px;
  }
  
  ul.navigation li a {
    padding: 10px 8px;
  }
  
  #RSSfeedID button {
    padding: 12px 18px;
    font-size: 1.1rem;
  }
}

/* Ensure navigation links are touch-friendly on mobile */
@media (max-width: 768px) {
  .navigation li a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
