
:root {
  --primary: #8B4513;
  --secondary: #00008B;
  --accent: #FFA500;
  --light: #F5DEB3;
  --dark: #2E2E2E;
  --text: #333333;
}

body {
  font-family: 'Georgia', serif;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(135deg, #F5DEB3, #8B4513);
  margin: 0;
  padding: 0;
  min-height: 100%;
}

header {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  position: relative;
  z-index: 100;
}

header h1 {
  font-size: 2.5rem;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  letter-spacing: 1px;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 800px;
  margin: 1rem auto;
}

.notice {
  background: rgba(255,255,255,0.9);
  color: var(--primary);
  padding: 1rem;
  text-align: center;
  font-weight: bold;
  border-bottom: 2px solid var(--accent);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
}

nav {
  background: rgba(255,248,220,0.9);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  height: fit-content;
  position: sticky;
  top: 2rem;
}

nav h3 {
  color: var(--secondary);
  margin-top: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  margin-bottom: 0.8rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  padding: 0.5rem;
  border-radius: 4px;
}

nav a:hover {
  background: var(--primary);
  color: white;
  transform: translateX(5px);
}

main {
  background: rgba(255,255,255,0.9);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

article h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-top: 0;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
}

article h3 {
  color: var(--secondary);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

article p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

pre {
  background: #f8f8f8;
  padding: 1.5rem;
  border-radius: 6px;
  overflow-x: auto;
  border-left: 4px solid var(--accent);
  margin: 1.5rem 0;
}

code {
  font-family: 'Courier New', monospace;
  color: #333;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: var(--primary);
  color: white;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

tr:hover {
  background-color: #e6e6e6;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

.button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  margin: 1rem 0;
}

.button:hover {
  background-color: #FF8C00;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.fade-in {
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }
  
  nav {
    position: static;
  }
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }
  
  article h2 {
    font-size: 1.8rem;
  }
  
  article h3 {
    font-size: 1.3rem;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
}

