@import url('https://fonts.googleapis.com/css2?family=Mozilla+Headline:wght@200..700&family=Potta+One&display=swap'); /* Fonts used in example #3 */

/* Variable stuff here */
body * {
  font-family: inherit;
}
body {
  font-family: "Nunito", sans-serif;
}
#example_1 {
  height: 40px;
  width: 40px;
  background-image: var(--custom-image);
  background-size: 100%;
  image-rendering: pixelated;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
}
#example_1::before {
  content: var(--custom-text);
  min-width: 140px;
  position: absolute;
  left: 150%;
  display: block;
  font-size: .9rem;
 }
 
:root[data-theme="light"] {
  --custom-image: url("https://graphic.neocities.org/emlan_dessert_22.png");
  --custom-text: "I show up in light mode!";
}

:root[data-theme="dark"] {
  --custom-image: url("https://graphic.neocities.org/emlan_dessert_26.png");
  --custom-text: "I show up in dark mode!";
}








/* end examples */

code, pre {
  font-family: monospace;
  background: var(--background-color); 
  padding: 3px var(--border-radius) !important;
  border-radius: 8px;
	white-space: preserve;
}
.inline {
  display: inline-block;
}

h2, h1 {
  margin: 1rem 0 1rem !important;
}

html[data-theme="dark"] {
}
#edit-preview {
  white-space: unset;
}

p:not(:last-child) {
  margin-bottom: 1rem;
}
.container-base hr {
  border-color: var(--background-color);
  margin: .5rem 0!important
}
strong {
  text-shadow: 1px 0 var(--background-color), -1px 0 var(--background-color), 0 1px var(--background-color), 0 -1px var(--background-color);
}

summary, label {
  cursor: pointer;
}
::selection {
  background: var(--text-color);
  color: var(--background-color);
}
:root[data-theme="light"]:has(#custom_theme:checked) {
  --background-color: #eef5db;
  --text-color: #000;
  --accent-text-color: #455949;
  --link-color: #2949b2;
  --container-background-color: #fefefe;
  --accent-background-color: #fee4df;
}

:root[data-theme="dark"]:has(#custom_theme:checked) {
  --background-color: #0d0e11;
  --text-color: #ebebd3;
  --accent-text-color: #565960;
  --link-color: #ffb985;
  --container-background-color: #333745;
  --accent-background-color: #0d0e11;
}

:root[data-theme="light"]  .font_change {
  font-family: "Potta One", system-ui;
 & #word_theme ::before {
  content: "dark";
}
}
:root[data-theme="dark"] .font_change {
  font-family: "Mozilla Headline", sans-serif;
  & #word_theme::before {
  content: "light";
}
}