:root{
  --bg-gradient: linear-gradient(180deg, #e5f8e0, #c4edc2, #b8e0a5);
  --text-color: #1a3b1d;
  --accent: #4caf50;
  --muted: #557a4d;
  --link-color: #1b5e20;
  --header-bg: rgba(210,255,220,0.95);
}

* { box-sizing: border-box; }
html,body {
  height: 100%;
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: var(--bg-gradient);
  color: var(--text-color);
  transition: background 0.9s ease, color 0.6s ease;
}

.mode-input {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
}

header{
  background: var(--header-bg);
  padding: 18px 12px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1200;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

header h1{
  margin: 0;
  color: var(--accent);
  font-size: 1.9rem;
  font-weight: 700;
}

.nav-links{
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.nav-links a{
  color: var(--link-color);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: background .25s ease, color .25s ease, transform .18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.18);
  color: #fff;
  transform: translateY(-2px);
}

.mode-switch{
  position: fixed;
  top: 78px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 2100;
}

.mode-switch label{
  cursor: pointer;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  transition: transform .25s ease, text-shadow .25s ease, box-shadow .25s ease;
  background: rgba(255,255,255,0.02);
}

.mode-switch label:hover{
  transform: scale(1.08);
}

#day:checked ~ .mode-switch label[for="day"],
#day:checked ~ header .nav-links a.active {
  transform: scale(1.12);
  text-shadow: 0 0 8px gold;
}
#night:checked ~ .mode-switch label[for="night"]{
  transform: scale(1.12);
  text-shadow: 0 0 8px lightblue;
}

main,
footer {
  transition: background 0.9s ease, color 0.6s ease;
}

main {
  padding: 30px 18px 60px;
  text-align: center;
  background: var(--bg-gradient);
  color: var(--text-color);
}

h2 { color: var(--accent); margin-top: 6px; }
h3 { color: var(--accent); margin-top: 18px; }
p {
  max-width: 900px;
  margin: 10px auto;
  line-height: 1.65;
  font-size: 1rem;
  padding: 0 12px;
}

.flora-list {
  list-style: none;
  padding: 0;
  max-width: 760px;
  margin: 18px auto;
}
.flora-list li {
  background: rgba(255,255,255,0.06);
  margin: 8px 0;
  padding: 12px;
  border-radius: 8px;
  transition: transform .25s ease, background .25s ease;
}
.flora-list li:hover { transform: scale(1.02); background: rgba(255,255,255,0.1); }

blockquote {
  max-width: 720px;
  margin: 28px auto;
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-style: italic;
  border-radius: 6px;
}

footer {
  padding: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  background: rgba(255,255,255,0.02);
}

img.flora-img,
img[src*="flora"],
img[src*="Flora"],
img[src*="Img2"],
img[src*="img2"],
img[alt*="Flora"],
img[alt*="flora"] {
  width: 320px !important;
  max-width: 90% !important;
  height: auto !important;
  display: block !important;
  margin: 25px auto !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  object-fit: cover !important;
}

@media (max-width: 780px) {
  img.flora-img,
  img[src*="flora"],
  img[src*="Flora"],
  img[src*="Img2"],
  img[src*="img2"],
  img[alt*="Flora"],
  img[alt*="flora"] {
    width: 70% !important;
    max-width: 380px !important;
  }
}

img.flora-img:hover,
img[src*="flora"]:hover {
  transform: scale(1.04) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.38) !important;
}

img:not(.allow-large) {
  max-width: 92% !important;
  height: auto !important;
  display: block;
  margin: 14px auto;
  border-radius: 8px;
}

#night:checked ~ main,
#night:checked ~ footer {
  --bg-gradient: linear-gradient(180deg, #24391f, #2f4422, #1e2a18);
  --text-color: #fff5d7;
  --accent: #c6a75e;
  --muted: #a38f56;
  --link-color: #e4c37a;
  --header-bg: rgba(30,42,24,0.95);
  background: var(--bg-gradient);
  color: var(--text-color);
}

#night:checked ~ header {
  background: var(--header-bg);
}

#night:checked ~ header .nav-links a {
  color: var(--link-color);
}
#night:checked ~ header .nav-links a.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

@media (max-width: 700px) {
  .nav-links { flex-direction: column; gap: 8px; }
  .mode-switch { top: 66px; right: 12px; }
  h2 { font-size: 1.3rem; }
}
