/* 1. DEFINE YOUR COLORS */
:root {
  /* Light Mode Colors (Default) */
  --bg-body: #f1fff2;
  --text-main: #255b33;
  --header-bg: #2d613a;
  --header-text: #ffffff;
  --button-bg: #0d421b;
  --button-text: #ffffff;
  --button-hover: #145a26;
  --link-color: #ffffff;
}

/* 2. DEFINE NIGHT MODE OVERRIDES */
body.night-mode {
  --bg-body: #255b33;       /* Dark forest green */
  --text-main: #f1fff2;     /* Soft light green text */
  --header-bg: #065318;     /* Deeper dark for header */
  --button-bg: #065318;     /* Neutral dark button */
  --button-text: #9eff9e;   /* Glowing green button text */
  --button-hover: #555555;
  --link-color: #9eff9e;    /* Easier to read on dark */
}

/* 3. APPLY STYLES TO ELEMENTS */
body {
  background-color: var(--bg-body);
  color: var(--text-main);
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
  line-height: 1.5;
  margin: 0;
  padding: 20px;
  font-size: 1rem;
  /* Adds the smooth fade effect */
  transition: background-color 0.4s ease, color 0.4s ease; 
}

header, footer {
  background-color: var(--header-bg);
  color: var(--header-text);
  text-align: center;
  padding: 20px;
  transition: background-color 0.4s ease;
}

header {
  position: sticky;
  top: 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  z-index: 1000;
}

/* Toggle Button Styling */
#toggle-mode {
  background-color: var(--button-bg);
  color: var(--button-text);
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-family: inherit;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s ease;
}

#toggle-mode:hover {
  background-color: var(--button-hover);
  transform: scale(1.05);
}

/* Navigation Links */
nav ul {
  list-style-type: none;
  padding: 0;
  margin: 10px 0;
}

nav li {
  display: inline;
  margin: 0 15px;
}

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

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  min-height: 200px;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(37, 97, 31, 0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: hsl(149, 100%, 95%);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.7s;
}

@keyframes fade {
  from {opacity: .6}
  to {opacity: 1}
}