/* ================== Global Styles ================== */
body {
  background-color: #1C1C1C;
  color: rgb(0, 0, 0);
  max-width: 900px;
  margin: 20px auto 0 auto;
  padding: 0 20px;
}

h1 {
  text-align: left;
  color: white;
  font-family: 'Courier New', Courier, monospace;
  margin: 0 auto;
  padding: 4px;
  width: 65%;
  box-sizing: border-box;
}

h2 {
  color: white;
  font-family: 'Courier New', Courier, monospace;
}

h3 {
  color: black;
  font-family: 'Courier New', Courier, monospace;
  margin: 0 auto;
  box-sizing: border-box;
}

h3 + p {
  margin-top: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: blue;
}

a:visited {
  color: inherit;
}

hr {
  border: none;
  height: 2px;
  background: linear-gradient(to left, transparent, #7A2F2F, transparent);
  width: 65%;
}

/* ================== Home Page ================== */
body.home {
  background-image: url("https://sadhost.neocities.org/images/tiles/backstar.gif");
}

/* ================== Archive Page ================== */
body.archive {
  background-image: url("https://sadhost.neocities.org/images/tiles/Background064.gif") ;
  /* background-color: #FAF3E3; */
}

ul.archive {
  padding: 0;
  margin: 0 auto;
}

h2.archive {
  color: #2E2E2E;
}

h1.archive {
  color: #2E2E2E;
}

.main.archive {
  color: #2E2E2E;
}

/* ================== Navbar ================== */
#navbar {
  justify-content: left;
  text-align: left;
  height: 40px;
}

#navbar ul {
  padding: 0;
  margin: 10;
  list-style-type: none;
  justify-content: space-evenly;
}

#navbar li {
  padding-top: 8px;
}

#navbar li a {
  color: #493628;
  font-weight: 800;
  text-decoration: none;
}

/* ================== Typography Blocks ================== */
#welcome-text {
  text-align: left;
  color: #493628;
}

#poetry-page {
  text-align: justify;
}

/* ================== Special IDs ================== */
#int1 {
  color: darkred;
  border-style: groove;
  border-color: brown;
  border-width: 6px;
  padding: 6px;
}

#int2 {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: darkred;
}

/* ================== Main Content ================== */
.main {
  flex: 2;
  color: white;
  padding: 4px;
  min-width: 0;
  box-sizing: border-box;
}

.main img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ================== Layout ================== */
.flex-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 65%;
  max-width: 1000px;
  min-width: 450px;
  margin: 0 auto;
  margin-top: 2px;
  gap: 20px;
}

.sidebar {
  color: #1C1C1C;
  overflow: hidden;
  flex-shrink: 0;
  flex: 1;
  background-color: #D6C7B0;
  padding: 4px;
  margin-top: 4px;
}

.sidebar img {
  max-width: 100%;   /* don’t overflow the sidebar horizontally */
  height: auto;      /* keep proportions */
  display: block;    /* removes extra spacing */
  object-fit: contain; /* ensures it fits nicely */
}

/* ================== Footer ================== */
.footer {
  position: relative;
  left: 0;
  bottom: 0;
  width: 100%;
  color: #7A2F2F;
  text-align: center;
  padding: 8px 0;
  font-size: 12px;
  z-index: 1000;
}

.footer p {
  font-family: 'Courier New', Courier, monospace;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

hr.footer-hr {
  position: relative;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  margin: 0;
  background: linear-gradient(to left, transparent, #7A2F2F, transparent);
  height: px;
}
