:root {
  --text-color: black;
}

html {
  scroll-behavior: smooth;
}

a button {
  position: relative;
  bottom: 3em;
  background-color: midnightblue;
  color: white;
  font-weight: bold;
  font-size: 0.6em;
  padding: 2;
  margin: 10px;
  border-radius: 0.5em;
  border: none;
  float: right;
}

body {
  background-color: white;
  color: var(--text-color);
  font-family: Times, serif;
  margin-inline: 5%;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 18px;
  min-height: 100dvh;
  width: auto;
}

nav, h1, h2, h3, h4, h5, .date {
  font-family: Arial, sans-serif;
}

header {
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
header img {
  max-height: 15em;
  max-width: 100%;
  width: auto;
  height: auto;
}
header nav {
  width: 100%;
}

main:has(article) {
  display: flex;
  flex-direction: column;
}

footer {
  text-align: center;
  margin-top: 1em;
  margin-bottom: 1em;
}

form {
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5 {
  text-align: center;
  word-break: break-all;
  margin-block: 0.5em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
  background-color: midnightblue;
  color: white;
  padding: 5px;
  font-weight: bold;
  font-size: 0.9em;
}
nav a {
  text-decoration: none;
  cursor: pointer;
  transition: transform 500ms;
}
nav a.disabled {
  pointer-events: none;
  opacity: 0.5;
}
nav a:visited {
  color: lightgray;
}
nav a:hover {
  transform: scale(1.2);
}
nav a:link {
  color: white;
}

@keyframes fade-in {
  from {
    color: transparent;
  }
  to {
    color: var(--text-color);
  }
}
@keyframes fade-iin {
  from {
    color: transparent;
  }
  to {
    color: var(--text-color);
  }
}
article {
  max-width: 50em;
  margin-inline: auto;
  height: auto;
  max-height: 25em;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}
article.red {
  background-color: red;
}
article:has(.long) {
  max-height: 1000px;
}
article img {
  max-height: 5em;
  width: auto;
  height: auto;
  float: left;
  border: solid 1px;
  border-radius: 5px;
  margin: 5px;
  display: block;
}
article .text {
  animation-name: fade-iin;
  animation-duration: 2s;
}
article .text.long {
  animation-name: fade-in;
  animation-duration: 2s;
}
@media only screen and (max-width: 500px) {
  article {
    max-height: 100em;
  }
  article img {
    max-width: 90%;
    height: auto;
    width: auto;
  }
}
article:has(.long), article:has(form) {
  max-height: 2000px;
}
article .date {
  font-size: 0.75em;
  font-weight: bold;
  font-style: italic;
  margin-bottom: 2em;
}
article .date p {
  margin-block: 0.25em;
}

div.tags {
  width: fit-content;
  color: white;
  font-size: 0.75em;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  align-items: center;
  gap: 0.25em;
  transform: skewX(-25deg);
  margin-left: 0.4em;
}
div.tags span {
  padding: 0.35em;
  background-color: blue;
}
div.tags span:nth-child(even) {
  background-color: green;
}

/*# sourceMappingURL=styles.css.map */
