/* Reset básico */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Eliminar bordes de imágenes */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Heredar fuentes */
body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Reset de listas */
ul,
ol {
  list-style: none;
}

/* Reset de enlaces */
a {
  text-decoration: none;
  color: inherit;
}

body {margin: 2em 1em; font-family: Helvetica, arial; serif; color: #111;}
main {padding: 0 1em;}
ul.topnav {
  list-style-type: none;
  margin: 0 0 1em 0;
  padding: 0;
  display: flex;
}

ul.topnav li  {
  display: block;
margin-right: 1em;
}
.autor {color: red;}
p {margin-bottom: 1em;}
a:link { color: #0000EE; }
a:hover {color: red; background-color: #ff0;}
a:visited { color: #551A8B; }
.titol {margin-bottom: 0px; padding-bottom: 0px; margin-top: 3em; margin-bottom:1em; font-size: 1.2em;}
.info {margin-top: 0px; padding-top: 0px; margin-bottom: 1.5em;}
pre {font-family: sans-serif;}
pre {margin-bottom: 1em;
 white-space: pre-wrap;       /* css-3 */
 white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
 white-space: -pre-wrap;      /* Opera 4-6 */
 white-space: -o-pre-wrap;    /* Opera 7 */
 word-wrap: break-word;       /* Internet Explorer 5.5+ */
}
hr {margin-bottom: 1em; margin-top: 1em;
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}
pre{background-color: #f9f9f9; padding: 0.5em;}
.justify {text-align: left;}
.columns {
  display: grid;
  grid-template-columns: 100%;
}
.button {
font-weight: bold;
  text-decoration: none;
  background-color: #ffff00;
  color: #333333;
  padding: 4px 6px 4px 6px;
  border-top: 1px solid #DDDDDD;
  border-right: 1px solid #AAAAAA;
  border-bottom: 1px solid #AAAAAA;
  border-left: 1px solid #DDDDDD;
}
h2:target {
    background-color: #ffa;
}
h2.llistes{font-size: 1em; text-align: center;}
html {
	scroll-behavior: smooth;
	container-type: scroll-state;
  container-name: scroller;
}

.to-top {background-color: yellow; padding: 0.3em;
	position: fixed;
	bottom: 20px;
	right: 20px;
	translate: 140px 0;
  transition: all 0.4s ease, border-color 0.4s ease;
}

@container scroller scroll-state(scrollable: top) {
  .to-top {
    translate: 0 0;
  }
}

@media screen and (min-width: 900px) {
body {
    margin: 1em 2em;
  }
  .columns {
  display: grid;
  grid-template-columns: 47% 47%;
  column-gap: 5em;
}
.justify {text-align: left;}
pre{background-color: #f9f9f9; padding: 1em;}
h2.llistes{font-size: 1em; text-align: left;}
}