/* Stylesheet for The Green Patch website */
:root {
  --emerald-green: #50C878;
  --white: #ffffff;
  --gold: #FFD700;
  --aquamarine-blue: #7FFFD4;
  --text-dark: #222222;
  --text-light: #555555;
  --font-primary: 'Times New Roman', Times, serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-primary);
}

body {
  color: var(--text-dark);
  background-color: var(--white); /* fallback */
  background-image: url('../Background.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: var(--emerald-green);
  color: var(--white);
}

.top-bar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.top-bar img {
  height: 60px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--gold);
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 2rem 1rem;
  margin: 2rem auto;
}

.content-bubble {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  max-width: 800px;
  width: auto;
  display: inline-block;
  margin: 0 auto;
  text-align: center;
}

/* For pages with sections (like about, blog) */
main section {
  background: white;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* For blog posts */
.blog-post {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  line-height: 1.7;
}

.blog-post h2 {
  color: var(--emerald-green);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.blog-post h3 {
  color: var(--emerald-green);
  margin: 2rem 0 1rem;
  font-size: 1.4rem;
  border-bottom: 2px solid var(--aquamarine-blue);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.blog-post ul {
  padding-left: 2rem;
  margin: 1.5rem 0;
}

.blog-post li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.blog-post p {
  margin-bottom: 1.2rem;
}

.blog-post em {
  color: #666;
  display: block;
  margin-bottom: 1.5rem;
  font-style: italic;
}

footer {
  background-color: var(--aquamarine-blue);
  color: var(--text-dark);
  text-align: center;
  padding: 1rem 0;
  flex-shrink: 0;
}

.btn {
  display: inline-block;
  background-color: var(--emerald-green);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: var(--gold);
  color: var(--text-dark);
}

.blog-post {
  border-bottom: 1px solid var(--aquamarine-blue);
  padding: 1rem 0;
}

.blog-post h3 {
  margin-bottom: 0.5rem;
}

.pamphlet {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
  }
}
