/* 
 * BASIC RESETS AND TYPOGRAPHY 
 */
body, h1, h2, h3, p, ul {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f5f5f5;
  color: #333;
}

/* 
 * LAYOUT AND CONTAINERS 
 */
.container {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

/* 
 * HEADER STYLES 
 */
header {
  background-color: #2e7d32; /* Main green colour */
  background: linear-gradient(45deg, #2e7d32, #66bb6a);
  color: #fff;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  font-size: 2em;
}

/* 
 * TYPOGRAPHY STYLES 
 */
h2 {
  color: #2e7d32;
  margin: 20px 0 10px;
}

h3 {
  color: #2e7d32;
  margin: 15px 0 10px;
}

p {
  margin-bottom: 15px;
}

ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

li {
  margin-bottom: 10px;
}

a {
  color: #2e7d32;
}

.section {
  margin-bottom: 10px;
}

.highlight-green {
  background-color: #ccffcc;
  font-weight: bold;
}

.section-divider {
  height: 3px;
  background: linear-gradient(to right, transparent, #2e7d32, transparent);
  margin: 20px 0;
  width: 100%;
}

/* 
 * FFS SECTION STYLES 
 */
#ffs-section {
  background-color: #f0f8f0;
  padding: 30px;
  border-radius: 10px;
  position: relative;
}

#ffs-section h2 {
  text-align: center;
  margin-bottom: 15px;
}

#ffs-section > p {
  text-align: center;
  margin-bottom: 25px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* FFS container layout */
.ffs-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
}

.ffs-intro-text {
  flex: 1;
  background-color: #2e7d32; /* Match header's base color */
  background: linear-gradient(45deg, #2e7d32, #66bb6a); /* Match header's gradient */
  color: white; /* White text */
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ffs-intro-text p {
  font-weight: bold; /* Bold text */
  margin-bottom: 1rem;
}

.ffs-intro-text a {
  color: white;
  text-decoration: underline;
}

.ffs-intro-text a:hover {
  color: #e0e0e0;
}

/* 
 * MYTH CARD STYLES 
 */
.myth-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: none;
  opacity: 0;
  transform: translateY(20px);
}

.myth-card.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.myth-title {
  color: #d32f2f;
  font-size: 1.3em;
  margin-bottom: 15px;
  border-bottom: 2px solid #f5f5f5;
  padding-bottom: 10px;
  font-weight: bold;
}

.myth-answer {
  color: #333;
}

.myth-answer p:first-child {
  font-weight: 500;
}

/* 
 * SNAPSHOTS GRID 
 */
.snapshots-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.snapshot {
  text-align: center;
  background-color: #fff;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.snapshot:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.snapshot img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

/* 
 * FOOTER STYLES 
 */
footer {
  padding: 20px;
  background-color: #eee;
  color: #555;
  margin-top: 40px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.footer-left, .footer-center, .footer-right {
  flex: 1;
}

.footer-left {
  text-align: left;
}

.footer-center {
  text-align: center;
}

.footer-right {
  text-align: right;
}

footer a {
  color: #2e7d32;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* 
 * RESPONSIVE STYLES 
 */
@media (max-width: 768px) {
  /* Header */
  header h1 {
    font-size: 1.5em;
  }
  
  /* FFS Section */
  #ffs-section {
    padding: 30px 0; /* Remove horizontal padding */
    width: 100%; /* Ensure full width */
    box-sizing: border-box;
    border-radius: 0; /* Remove border radius on mobile */
  }
  
  #ffs-section > .container {
    padding: 0 1rem; /* Add horizontal padding to the container */
  }
  
  /* FFS Container */
  .ffs-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%; /* Ensure full width */
  }
  
  .ffs-intro-text {
    order: 1;
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px; /* Keep rounded corners on mobile */
    padding: 1.5rem; /* Consistent padding */
    margin: 0 auto; /* Center the box */
    max-width: calc(100% - 2rem); /* Add some margin on the sides */
  }
  
  .ffs-intro-text p {
    text-align: left; /* Left-align text on mobile */
    padding: 0 0.5rem; /* Add consistent horizontal padding */
  }
  
  /* Snapshots */
  .snapshots-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Myth card */
  .myth-card {
    padding: 15px;
  }
  
  /* Footer */
  .footer-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-left, .footer-center, .footer-right {
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Snapshots */
  .snapshots-container {
    grid-template-columns: 1fr;
  }
  
  #design-options {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
  
  #design-options h2 {
    font-size: 1.4em;
  }
  
  #design-options h3 {
    font-size: 1.2em;
  }
  
  .ffs-intro-text {
    padding: 1.25rem; /* Slightly reduced padding for very small screens */
    border-radius: 10px; /* Slightly smaller radius but still rounded */
    max-width: calc(100% - 1.5rem); /* Slightly smaller margin */
  }
  
  .ffs-intro-text p {
    padding: 0; /* Remove additional padding on very small screens */
  }
}

/* Alternative Design Options */
#design-options {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px dashed #ccc;
}

#design-options h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

#design-options h3 {
  margin: 2rem 0 1rem;
  color: #2e7d32; /* Match header's base color */
}

/* Option 1: Gradient Green Box with Italic Accents */
.ffs-intro-text-alt1 {
  background: linear-gradient(135deg, #2e7d32, #66bb6a); /* Match header's gradient */
  color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.ffs-intro-text-alt1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,.05)' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.1;
  z-index: 0;
}

.ffs-intro-text-alt1 p {
  font-weight: bold;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}

.ffs-intro-text-alt1 p:first-child,
.ffs-intro-text-alt1 p:nth-child(2),
.ffs-intro-text-alt1 p:last-child {
  font-style: italic;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.ffs-intro-text-alt1 a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: bold;
  transition: all 0.3s ease;
}

.ffs-intro-text-alt1 a:hover {
  color: #e0e0e0;
  text-decoration: none;
}

/* Option 2: Dark Green with Light Border and Highlighted Text */
.ffs-intro-text-alt2 {
  background-color: #2e7d32; /* Match header's base color */
  color: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.ffs-intro-text-alt2 p {
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.ffs-intro-text-alt2 p:first-child {
  font-size: 1.3em;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.ffs-intro-text-alt2 p:last-child {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 8px;
  text-align: right;
  margin-top: 2rem;
}

.ffs-intro-text-alt2 a {
  color: #66bb6a; /* Match header's lighter green */
  text-decoration: none;
  font-weight: bold;
  border-bottom: 1px dotted #66bb6a; /* Match header's lighter green */
  transition: all 0.3s ease;
}

.ffs-intro-text-alt2 a:hover {
  color: #76cb7a; /* Slightly lighter than header's lighter green */
  border-bottom: 1px solid #76cb7a; /* Slightly lighter than header's lighter green */
}

/* Responsive styles for alternative designs */
@media (max-width: 768px) {
  .ffs-intro-text-alt1,
  .ffs-intro-text-alt2 {
    padding: 1.5rem;
    border-radius: 12px; /* Keep rounded corners on mobile */
    margin: 0 auto;
    max-width: calc(100% - 2rem);
  }
  
  .ffs-intro-text-alt2 p:first-child {
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .ffs-intro-text-alt1,
  .ffs-intro-text-alt2 {
    padding: 1rem;
    border-radius: 10px; /* Slightly smaller radius but still rounded */
    max-width: calc(100% - 1.5rem);
  }
  
  .ffs-intro-text-alt2 p:last-child {
    padding: 0.75rem;
  }
} 