/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #121212;
  color: #eee;
  line-height: 1.6;
}

a {
  color: #90caf9;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.layout {
  display: grid;
  grid-template-areas:
    "header header"
    "sidebar content"
    "footer footer";
  grid-template-columns: 250px 1fr;
  gap: 1rem;
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

header {
  grid-area: header;
  background-color: #1e1e1e;
  padding: 1rem;
  border-bottom: 1px solid #333;
}

.header-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.left-sidebar {
  grid-area: sidebar;
  background-color: #1a1a1a;
  padding: 1rem;
  border-right: 1px solid #333;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #ffcc00;
}

main {
  grid-area: content;
  padding: 1rem;
}

.full-width-image {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

footer {
  grid-area: footer;
  text-align: center;
  padding: 1rem;
  background-color: #1e1e1e;
  border-top: 1px solid #333;
  font-size: 0.9rem;
}

pre {
  background-color: #1c1c1c;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .layout {
    grid-template-areas:
      "header"
      "content"
      "sidebar"
      "footer";
    grid-template-columns: 1fr;
  }

  nav ul {
    flex-direction: column;
  }
}
