html, body {
  margin: 0;
  font-family: Arial, sans-serif;
}

body {
  padding: 10px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, serif;
}

article {
  max-width: 700px;
  display: block;
  margin: 0 auto;
}

/* Floats clearfix */
.clearfix {
  content: '';
  clear: both;
  display: table;
}

/**
 * HTMX Indicator show/hide on request
 **/
.htmx-indicator{
    display: none;
    transition: opacity 500ms ease-in;
}

.htmx-request .htmx-indicator{
    display: block;
}

.htmx-request.htmx-indicator{
    display: block;
}

/**
 * Home
 */
.home {
  margin-bottom: 60px;
}

.home h1 {
  margin-bottom: 50px;
}

.home h2 {
  margin-top: 60px;
}

.home .home__random,
.home .home__search,
.home .home__all {
  color: inherit;
  display: block;
  font-size: 16px;
  background: #EEE;
  font-weight: bold;
  text-align: center;
  margin-bottom: 5px;
  padding: 15px 10px;
  border-radius: 5px;
  border: 1px solid #CCC;
  text-decoration: none;
}

.home .home__tags {
  display: grid;
  grid-gap: 4%;
  grid-template-columns: 48% 48%;
  padding-left: 0;
  flex-basis: 100%;
  list-style: none;
  flex-direction: row;
}

.home .home__tags li {
  font-size: 16px;
  background: #EEE;
  font-weight: bold;
  text-align: center;
  margin-bottom: 5px;
  padding: 15px 10px;
  border-radius: 5px;
  border: 1px solid #CCC;
}

.home .home__tags a {
  color: inherit;
  text-decoration: none;
}

/**
 * Individual Date Pages
 */
.page .page__hero img,
.markdown img {
  max-width: 90%;
  max-height: 300px;
  display: block;
  margin: 0 auto;
  border-radius: 5px;
}

.markdown figure figcaption {
  text-align: center;
  font-style: italic;
  font-size: 80%;
}

.page .page__title {
  margin-bottom: 0;
}

.page .page__hero p {
  font-size: small;
  text-align: center;
}

.page .page__tags {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 20px;
}

.page .page__tags li {
  font-size: 10px;
  background: #EEE;
  padding: 5px 10px;
  font-style: italic;
  border-radius: 5px;
  display: inline-block;
  border: 1px solid #AAA;
}

.page .page__tags a {
  color: inherit;
  text-decoration: none;
}

/**
 * Search
 */
.search h1 {
  margin: 20px 0 0;
  text-align: center;
}

.search form label {
  display: block;
  font-weight: bold;
  padding-bottom: 10px;
}

.search form input {
  outline: none;
  padding: 5px 10px;
  border-radius: 2px;
  border: 1px solid #CCC;
  width: calc(100% - 25px);
  margin-bottom: 10px;
}

.search form button {
  cursor: pointer;
  background: #EEE;
  text-align: center;
  margin-bottom: 5px;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid #CCC;
}
