* Neocities Forest Theme — style.css
   Earthy, natural forest aesthetic with deep greens, wood tones, and organic textures
   Created: November 25, 2025
*/

:root {
  --forest-dark: #1a2f1a;
  --forest-green: #2d5016;
  --forest-moss: #4a7c2c;
  --forest-leaf: #6b9e3e;
  --forest-light: #a8d08d;
  --forest-bark: #3d2817;
  --forest-wood: #5c4033;
  --forest-tan: #c8b895;
  --forest-cream: #f4efe1;
  --forest-shadow: rgba(26, 47, 26, 0.85);
  --forest-overlay: rgba(45, 80, 22, 0.75);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest-green) 50%, #1f3d1f 100%);
  background-attachment: fixed;
  color: var(--forest-cream);
  line-height: 1.6;
  padding: 20px;
  min-height: 100vh;
}

/* Add a subtle texture overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}

/* Container */
#container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--forest-shadow);
  border: 3px solid var(--forest-moss);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 
              inset 0 1px 0 rgba(168, 208, 141, 0.2);
  padding: 0;
  overflow: hidden;
}

/* Header */
#header {
  background: linear-gradient(180deg, var(--forest-green), var(--forest-dark));
  padding: 30px 20px;
  text-align: center;
  border-bottom: 4px solid var(--forest-moss);
  position: relative;
}

#header::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--forest-leaf), transparent);
}

h1 {
  font-size: 2.5rem;
  color: var(--forest-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8),
               0 0 20px rgba(107, 158, 62, 0.4);
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

#header p {
  color: var(--forest-tan);
  font-style: italic;
  font-size: 1.1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Navigation */
nav {
  background: var(--forest-bark);
  padding: 15px 0;
  border-bottom: 2px solid var(--forest-wood);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px;
}

nav li {
  display: inline-block;
}

nav a {
  display: block;
  padding: 10px 20px;
  background: linear-gradient(180deg, var(--forest-wood), var(--forest-bark));
  color: var(--forest-tan);
  text-decoration: none;
  border: 2px solid var(--forest-moss);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(200, 184, 149, 0.15);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

nav a:hover {
  background: linear-gradient(180deg, var(--forest-moss), var(--forest-green));
  color: var(--forest-cream);
  border-color: var(--forest-leaf);
  box-shadow: 0 4px 12px rgba(107, 158, 62, 0.4),
              inset 0 1px 0 rgba(168, 208, 141, 0.25);
  transform: translateY(-2px);
}

nav a:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Main Content */
#content {
  padding: 30px;
  background: var(--forest-overlay);
}

h2 {
  color: var(--forest-light);
  font-size: 2rem;
  margin-top: 30px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--forest-moss);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--forest-leaf);
}

h3 {
  color: var(--forest-leaf);
  font-size: 1.5rem;
  margin-top: 20px;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

p {
  margin-bottom: 15px;
  color: var(--forest-cream);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* Links */
a {
  color: var(--forest-leaf);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

a:hover {
  color: var(--forest-light);
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(168, 208, 141, 0.5);
}

/* Lists */
ul, ol {
  margin-left: 30px;
  margin-bottom: 15px;
}

li {
  margin-bottom: 8px;
  color: var(--forest-cream);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border: 3px solid var(--forest-moss);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  margin: 15px 0;
}

/* Blockquotes */
blockquote {
  background: var(--forest-shadow);
  border-left: 5px solid var(--forest-moss);
  padding: 15px 20px;
  margin: 20px 0;
  font-style: italic;
  color: var(--forest-tan);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Code blocks */
code {
  background: var(--forest-bark);
  color: var(--forest-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  border: 1px solid var(--forest-wood);
}

pre {
  background: var(--forest-bark);
  border: 2px solid var(--forest-wood);
  border-radius: 8px;
  padding: 15px;
  overflow-x: auto;
  margin: 15px 0;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

pre code {
  background: none;
  border: none;
  padding: 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--forest-shadow);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

th {
  background: linear-gradient(180deg, var(--forest-moss), var(--forest-green));
  color: var(--forest-cream);
  padding: 12px;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--forest-leaf);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--forest-moss);
  color: var(--forest-cream);
}

tr:nth-child(even) {
  background: rgba(45, 80, 22, 0.3);
}

tr:hover {
  background: rgba(74, 124, 44, 0.2);
}

/* Forms */
input, textarea, select {
  background: var(--forest-shadow);
  color: var(--forest-cream);
  border: 2px solid var(--forest-moss);
  border-radius: 6px;
  padding: 10px;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 15px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--forest-leaf);
  box-shadow: 0 0 0 3px rgba(107, 158, 62, 0.2),
              inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

button, input[type="submit"] {
  background: linear-gradient(180deg, var(--forest-moss), var(--forest-green));
  color: var(--forest-cream);
  border: 2px solid var(--forest-leaf);
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  width: auto;
}

button:hover, input[type="submit"]:hover {
  background: linear-gradient(180deg, var(--forest-leaf), var(--forest-moss));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(107, 158, 62, 0.4);
}

button:active, input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Horizontal rule */
hr {
  border: none;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--forest-moss), transparent);
  margin: 30px 0;
}

/* Footer */
#footer {
  background: var(--forest-bark);
  padding: 20px;
  text-align: center;
  border-top: 3px solid var(--forest-moss);
  color: var(--forest-tan);
  font-size: 0.9rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

#footer a {
  color: var(--forest-leaf);
}

#footer a:hover {
  color: var(--forest-light);
}

/* Sidebar (if used) */
#sidebar {
  background: var(--forest-shadow);
  padding: 20px;
  border: 2px solid var(--forest-moss);
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

#sidebar h3 {
  margin-top: 0;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--forest-dark);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--forest-moss), var(--forest-green));
  border-radius: 6px;
  border: 2px solid var(--forest-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--forest-leaf), var(--forest-moss));
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  #content {
    padding: 20px;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav a {
    width: 200px;
    text-align: center;
  }
}

/* Selection styling */
::selection {
  background: var(--forest-moss);
  color: var(--forest-cream);
}

::-moz-selection {
  background: var(--forest-moss);
  color: var(--forest-cream);
}
