/* Guestbook CSS styled to match the Popup page theme */

html {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  background-color: #292a2b;
  color: #ddd;
}

:root {
  --width: 920px;
  --font-main: Verdana, Geneva, Tahoma, sans-serif;
  --font-secondary: Verdana, Geneva, Tahoma, sans-serif;
  --font-scale: 1rem;

  --background-color: #292a2b;
  --heading-color: #f4f4f4;
  --text-color: #ddd;
  --link-color: #f4b690;
  --visited-color: #c1a6ff;
  --code-background-color: #1f2021;
  --code-color: #ddd;
  --blockquote-color: #ccc;
  --em-color: #fbfafac7;
  --border-color: #444;
  --hr-color: #555;
}

body {
  font-family: var(--font-secondary);
  font-size: var(--font-scale);
  margin: auto;
  padding: 20px;
  max-width: var(--width);
  text-align: left;
  background-color: var(--background-color);
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.6;
  color: var(--text-color);
  user-select: text;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-main);
  color: var(--heading-color);
  margin-bottom: 0.5em;
  font-weight: 600;
}

h1#title {
  line-height: 1.6;
  border-bottom: 1px dotted var(--border-color);
  padding-bottom: 0.4em;
}

a {
  color: var(--link-color);
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: wavy underline;
  color: var(--visited-color);
}

strong,
b {
  color: var(--heading-color);
}

main {
  line-height: 1.6;
  border-bottom: 1px dotted var(--border-color);
  padding-bottom: 1.2em;
}

em,
i {
  color: var(--em-color);
  font-style: italic;
}

hr {
  border: 0;
  border-top: 1px dashed var(--hr-color);
  margin: 1.5em 0;
}

code {
  font-family: monospace;
  padding: 2px 4px;
  background-color: var(--code-background-color);
  color: var(--code-color);
  border-radius: 3px;
}

blockquote {
  border-left: 3px solid var(--blockquote-color);
  color: var(--blockquote-color);
  padding-left: 20px;
  font-style: italic;
  margin: 1em 0;
}

footer {
  padding: 25px 0;
  text-align: center;
  color: var(--heading-color);
  font-weight: 600;
}

.inline {
  width: auto !important;
}

.highlight,
.code {
  padding: 8px 12px;
  background-color: var(--code-background-color);
  color: var(--code-color);
  border-radius: 4px;
  margin-block-start: 1em;
  margin-block-end: 1em;
  overflow-x: auto;
  font-family: monospace;
}

.sr-only {
  display: none;
}

.button-link {
  background: none;
  border: none;
  color: var(--link-color);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  transition: color 0.2s ease;
}

.button-link:hover {
  text-decoration: wavy underline;
  color: var(--visited-color);
}