:root {
  --width: 36rem;
  --font-main: Verdana, sans-serif;
  --font-secondary: Verdana, sans-serif;
  --font-scale: 1em;
  --background-color: #fff;
  --heading-color: #222;
  --text-color: #444;
  --link-color: #3273dc;
  --visited-color: #8b6fcb;
  --code-background-color: #f2f2f2;
  --code-color: #222;
  --blockquote-color: #222;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #01242e;
    --heading-color: #eee;
    --text-color: #ddd;
    --link-color: #8cc2dd;
    --visited-color: #8b6fcb;
    --code-background-color: #000;
    --code-color: #ddd;
    --blockquote-color: #ccc;
  }
}

body {
  font-family: var(--font-secondary);
  font-size: var(--font-scale);
  margin: auto;
  padding: 1em;
  max-width: var(--width);
  text-align: left;
  background-color: var(--background-color);
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.5;
  color: var(--text-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-main);
  color: var(--heading-color);
}

a {
  color: var(--link-color);
  cursor: pointer;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

nav a {
  margin: 0 0.2em;
}

nav span.active {
  font-weight: bold;
  margin-right: 0.5rem;
}

strong,
b {
  color: var(--heading-color);
}

button {
  margin: 0;
  cursor: pointer;
}

main {
  line-height: 1.6;
  text-align: justify;
}

table {
  width: 100%;
}

hr {
  border: 0;
  border-top: 0.1rem dashed;
}

img {
  max-width: 100%;
}

pre code {
  background-color: var(--code-background-color);
  color: var(--code-color);
  display: block;
  padding: 1rem;
  white-space: pre-wrap;
  font-size: 0.875rem;
  overflow-x: auto;
}

code {
  font-family: monospace;
  padding: 0.1rem;
  background-color: var(--code-background-color);
  color: var(--code-color);
  border-radius: 0.2rem;
}

blockquote {
  border-left: 0.1rem solid #999;
  color: var(--code-color);
  padding-left: 1rem;
  font-style: italic;
}

footer {
  padding: 1em 0;
  text-align: center;
}

/* title */
.title:hover {
  text-decoration: none;
}

.title h1 {
  font-size: 1.5em;
}

.title h1 {
  margin: 0;
}

.hero {
  padding: 1em 0;
}

.bio {
  font-style: italic;
}

.inline {
  width: auto !important;
}

.highlight,
.code {
  padding: 0.1rem 1rem;
  background-color: var(--code-background-color);
  color: var(--code-color);
  border-radius: 0.2rem;
  margin-block-start: 1rem;
  margin-block-end: 1rem;
  overflow-x: auto;
}

/* blog post list */
ul.blog-posts {
  list-style-type: none;
  padding: unset;
}

ul.blog-posts li {
  display: flex;
}

ul.blog-posts li span {
  flex: 0 0 8rem;
}

ul.blog-posts li a:visited {
  color: var(--visited-color);
}

.tags {
  font-size: smaller;
}

/* contact form */

.contactForm { max-width: 26rem; margin: 0.5rem 0; }

.feedback-input {
  color:white;
  font-family: Helvetica, Arial, sans-serif;
  font-weight:500;
  font-size: 1.2rem;
  border-radius: 0.2rem;
  line-height: 1.2rem;
  background-color: transparent;
  border:0.1rem solid #8cc2dd;
  transition: all 0.2s;
  padding: 0.9rem;
  margin-bottom: 1rem;
  width:100%;
  box-sizing: border-box;
  outline:0;
}

.feedback-input:focus { border:0.1rem solid #49cc84; }

textarea {
  height: 9rem;
  line-height: 150%;
  resize:vertical;
}

[type="submit"] {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  width: 100%;
  background:#8cc2dd;
  border-radius:0.2rem;
  border:0;
  cursor:pointer;
  color:white;
  font-size: 1.2rem;
  padding-top:0.5rem;
  padding-bottom:0.5rem;
  transition: all 0.3s;
  margin-top:-0.3rem;
  font-weight:700;
}
[type="submit"]:hover { background:#49cc84; }

.importante{
  display: none;
}

/* 
Verified badge 
*/
.verified-badge {
  vertical-align: text-top;
  animation: mybadgemoves 1s;
}
@keyframes mybadgemoves {
  from {transform: rotate3d(0, 1, 0, 0deg);;}
  to {transform: rotate3d(0, 1, 0, 360deg);;}
}

/* 
language switcher 
*/
.lang {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.lang a {
  text-decoration: none;
}

/* footnotes for definitions */
.footnote-definition {
  display: flex;

}
.footnote-definition-label {
  font-weight: bold;
  margin-right: 0.5rem;
}

.footnote-definition p {
  margin: 0;
}

