html, body {
  padding: 0;
  margin: 0;
  background: #222;
  color: #eee;
  font-family: Arial, Helvetica, sans-serif;
}


a {
  color: #84e844;
  text-decoration: none;
}

.testbox {
  margin: 1rem;
  background: black;
  width: 4rem;
  height: 4rem;
}

nav {
  position: sticky;
  z-index: 2;
  top: 0;
  bottom: auto;
  left: 0;
  right: 0;
  height: 3rem;
  background: #444;
  color: #fff;
}

nav ul {
  display: flex;
  height: 3rem;
  justify-content: space-between;
  margin: 0;
  margin-block-start: 0;
  margin-block-end: 0;
  padding-block-start: 0;
  padding-block-end: 0;
  margin-inline-start: 0;
  padding-inline-start: 0;
  margin-inline-end: 0;
  padding-inline-end: 0;
  list-style-type: none;
  padding: 0 1rem;
  justify-items: center;
}

nav ul li {
  display: inline-block;
  display: flex;
  align-items: center;
  height: 3rem;
  margin: 0;
  cursor: pointer;
  min-width: 3rem;
  border-radius: 3rem;
}

nav ul li svg {
  border-radius: 3rem;

}

nav ul li svg:hover {
  box-shadow: 0 0 1rem -0.25rem #666;
}

nav ul li svg:active {
  background: #777;
}

nav ul li .icon-container {
  padding: 0.25rem;
}

main {
  display: block;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  transition: 0.5s opacity ease;
  position: absolute;
  top: 3rem;
  bottom: 0;
  left: 0;
  right: 0;
  overflow-y: scroll;
  scrollbar-color: #666 #222;
}

main.loading {
  opacity: 0.8;
  transition: 0.5s opacity ease;
}

main article {
  flex-shrink: 0;
  opacity: 1;
  margin: 0;
  border-radius: 0.5rem;
  background: #333;
  overflow: hidden;
  transition: 0.5s opacity ease 0.1s;
}

main article.loading {
  opacity: 0;
  transition: 0.5s opacity ease 0.1s;
}

main article .content {
  overflow: hidden;
  max-height: 30rem;
  mask-image: linear-gradient(to top, rgba(0,0,0,0) 0rem, rgba(0,0,0,1) 5rem, rgba(0,0,0,1));
}

.home article .content {
  padding-bottom: 2rem;
}

article h1, article h2, article h3, article h4, article h5, article h6, article p, article figure, article figcaption {
  margin: 1rem 1rem;
}

figcaption {
  font-style: italic;
}

article img {
  max-width: 100%;
  border-radius: 0.25rem;
}

article footer {
  display: flex;
  display: none;
  padding: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

article footer svg {
  vertical-align: top;
  border-radius: 3rem;
  background: transparent;
}

article .read-more {
  text-align: center;
}

.read-more .button {
  cursor: pointer;
}

article .button {
  padding: 0.5rem 1rem;
  background: #555;
  display: inline-block;
  margin: 0.5rem;
  border-radius: 0.25rem;
}

article footer .button {
  border-radius: 3rem;
  background: transparent;
  padding: 0.25rem 0.5rem;
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: #ddd;
}
article footer .action {
  cursor: pointer;
  border-radius: 0.25rem;
}

article footer .action:hover {
  cursor: pointer;
  background: #555
}

.button svg .icon {
  fill: #ddd;
}

.button span {
  padding: 0 0.25rem;
  padding-right: 0.5rem;
  cursor: pointer;
}

dialog {
  position: fixed;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 3rem rgba(0,0,0,0.6);
  background: #333;
  color: #fff;
  border: 0 none;
  margin: auto;
  padding: 1rem;
}

dialog p {
  margin: 0;
}

dialog::backdrop {
  background: rgba(0,0,0,0.4);
}
.dialog-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

button {
  min-height: 2rem;
  line-height: 2rem;
  border-radius: 0.5rem;
  background: #111;
  border: 0 none;
  color: #fff;
  padding: 0.25rem 1rem;
  font-weight: 600;
}