/* Base styling (light mode by default) */
body {
  color: #212121;
  font-size: 16px;
  background: #f6f6f6;
  line-height: 1.4;
  font-family: monospace;
}

body {
  margin: auto;
  padding: 0 1em;
  max-width: 720px;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/*/
 *  depending on the project, add or remove:
/*/ 
nav,
main,
header,
section{
  margin: 1em 0;
}

/*/
 * -------------------------------------------------- *
/*/
dt,
pre,
form,
table,
fieldset,
blockquote {
  margin: 1em 0;
}

/*/
 * -------------------------------------------------- *
/*/

a {
  color: inherit;
}

pre {
  padding: 1em;
  border-radius: 3px;
}

img {
  width: 100%; /* Make the image responsive to its container */
  max-width: 720px; /* Ensure it doesn't exceed 720px */
  height: 335px; /* Fixed height for cropping */
  object-fit: cover; /* Crop the image to fit the dimensions */
}

input {
  vertical-align: middle;
}

blockquote {
  border-left: 4px solid #212121;
  padding-left: 1em;
}

article h1 { /*override :-webkit-any*/
  margin-bottom: 0;
  font-size: 2em;
}

article span {
  margin-bottom: 1em;
}

ul,
ol {
  padding: 0;
  list-style-position: inside;
}

li > ul,
li > ol {
  padding: 0 1em;
}

pre,
code {
  color: white;
  overflow: auto;
  background: #212121;
}

input:disabled,
button:disabled {
  opacity: 0.8;
}

td,
th,
table {
  border: 1px solid #212121;
  padding: 8px;
  border-collapse: collapse;
}

input,
button,
select,
legend,
fieldset,
textarea {
  border: 1px solid #212121;
  outline: none;
  padding: 3px 7px;
  background: none;
  border-radius: 3px;
}

button,
legend,
input[type="reset"],
input[type="button"],
input[type="submit"] {
  color: #f6f6f6;
  background: #212121;
}

/* Dark mode styles */
body.dark-mode {
  color: #f6f6f6;
  background: #212121;
}

body.dark-mode blockquote {
  border-left: 4px solid #f6f6f6;
}

body.dark-mode pre,
body.dark-mode code {
  color: #212121;
  background: #f6f6f6;
}

body.dark-mode td,
body.dark-mode th,
body.dark-mode table {
  border: 1px solid #f6f6f6;
}

body.dark-mode input,
body.dark-mode button,
body.dark-mode select,
body.dark-mode legend,
body.dark-mode fieldset,
body.dark-mode textarea {
  border: 1px solid #f6f6f6;
}

body.dark-mode button,
body.dark-mode legend,
body.dark-mode input[type="reset"],
body.dark-mode input[type="button"],
body.dark-mode input[type="submit"] {
  color: #212121;
  background: #f6f6f6;
}
