/* --- Base Page Setup --- */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
  margin: 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
}

h1 {
  text-align: center;
  margin-bottom: 1em;
}

h2 {
  margin-top: 1.5em;
  border-bottom: 2px solid #eee;
  padding-bottom: 4px;
}

.explain {
  font-style: italic;
  color: #555;
}

/* --- Images --- */
img {
  max-width: 100%;
  height: auto;
  border-radius: 4px; /* optional: softens corners */
}

.full-width {
  display: block;       /* removes inline gap */
  width: 100%;          /* stretches to container */
  height: auto;         /* keeps correct aspect ratio */
}

/* --- Text Styles --- */
strong { color: darkred; }
em { color: darkgreen; }
u { text-decoration: underline dotted; }
mark { background: yellow; padding: 2px 4px; }
.highlight { background: #ffeb3b; font-weight: bold; padding: 2px 4px; }

/* --- Lists --- */
ul { list-style-type: square; padding-left: 20px; }
ol { list-style-type: decimal-leading-zero; padding-left: 20px; }
dl { margin: 1em 0; }
dt { font-weight: bold; }
dd { margin-left: 20px; color: #555; }
li { margin-bottom: 5px; }

/* --- Quotes & Code --- */
blockquote {
  border-left: 4px solid #ccc;
  padding-left: 10px;
  margin: 1em 0;
  font-style: italic;
  color: #555;
}

code {
  background: #f4f4f4;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: monospace;
}

pre {
  background: #272822;
  color: #f8f8f2;
  padding: 10px;
  border-radius: 4px;
  overflow-x: auto;
}

/* --- Tables --- */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
}

th, td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

th {
  background: #f0f0f0;
}

/* --- Forms --- */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1em;
}

input[type="text"],
input[type="email"] {
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  background: darkblue;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: navy;
}

/* --- Divider --- */
hr {
  border: none;
  border-top: 2px dashed #bbb;
  margin: 30px 0;
}
