/* Shared footer styles for Svelte pages and the static PHP fragment. */

/* ****** */
/* bottom */
/* ****** */
#about, #interesting, #social { margin: 2em 0; float: left; }
.bottom { margin-top: 5em; width: 100%; height: 100%; background: #000; color: var(--color-surface, #fff); position: relative; z-index: 99; }
.bottom h1 { font-size: 1.4em; margin-top: 0.8em; text-transform: uppercase; }
.bottom h1, .bottom h2, .bottom h3, .bottom p { color: var(--color-surface, #fff); }
.bottom a { color: var(--color-surface, #fff); }
.bottom a:hover { color: #d62923; text-decoration: none; }

/* about */
#about { width: 32%; padding: 0 2em 0 0; }
#about img { width: 90px; float: left; padding: 0 1em 0 0; }
#about img, #about img:hover {
  -webkit-transition: all .55s ease-in-out;
     -moz-transition: all .55s ease-in-out;
      -ms-transition: all .55s ease-in-out;
       -o-transition: all .55s ease-in-out;
          transition: all .55s ease-in-out;
}
#about img:hover {
  -webkit-transform: rotate(-5deg);
     -moz-transform: rotate(-5deg);
      -ms-transform: rotate(-5deg);
       -o-transform: rotate(-5deg);
          transform: rotate(-5deg);
}

/* interestings */
#interesting { width: 36%; padding: 0 2em; border-left: 1px solid #3e3e3e; border-right: 1px solid #3e3e3e; }

  /* recent & recommended */
  #recent img { border: 3px solid #000000; }
  #recent img:hover { border: 3px solid #e1e1e1;
    -webkit-transition: all .25s ease-in-out;
       -moz-transition: all .25s ease-in-out;
        -ms-transition: all .25s ease-in-out;
         -o-transition: all .25s ease-in-out;
            transition: all .25s ease-in-out;
  }

  /* recent */
  #recent { padding-bottom: 1.2em; border-bottom: 1px solid #3e3e3e; }
  #recent a { text-decoration: none; }
  #recent img { display: inline; width: 100px; }

/* social */
#social { width: 32%; padding: 0 0 0 2em; }
#social ul { padding-left: 0.2em; list-style: none; line-height: 180%; }
#social ul li a { text-decoration: none; }

/* footer */
#footer { display: block; width: 100%; margin-top: 1em; padding-bottom: 3em; clear: both; border-top: 1px solid #3e3e3e; }
#footer p { color: #e1e1e1; width: 100%; text-align: center; font-size: 0.9em; }
#footer p a { display: inline-block; white-space: nowrap; color: #e1e1e1; padding: 0 0.5em; }

#recommended .recommendation-heading { display: flex; align-items: center; gap: 8px; }
#recommended .recommendation-heading h1 { flex: initial; }
#recommended .recommendation-reload { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #999; cursor: pointer; }
#recommended .recommendation-reload:hover { background: #202020; color: #fff; }
#recommended .recommendation-reload:disabled { visibility: hidden; }
#recommended .recommendation-reload svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#recommended .recommendation-body { display: flow-root; }
#recommended .recommendation-cover { display: block; float: left; width: 100px; margin: 0 16px 8px 0; }
#recommended .recommendation-cover img { display: block; float: none; width: 100px; height: 150px; margin: 0; border: 0; object-fit: contain; object-position: top; }
#recommended .recommendation-title { display: block; margin: 0 0 9px; color: #fff; font: 19px/1.35 var(--font-body, 'Palatino Linotype', Palatino, Georgia, serif); text-transform: none; text-decoration: none; overflow-wrap: anywhere; }
#recommended .recommendation-title:hover { color: #fff; text-decoration: underline; }
#recommended .recommendation-author { display: block; font-size: 13px; line-height: 1.3; font-style: italic; color: #999; }
#recommended .recommendation-quote { margin: 12px 0 0; color: #ddd; font: 14px/1.5 var(--font-body, 'Palatino Linotype', Palatino, Georgia, serif); }
#recommended .recommendation-more { display: inline-block; margin-top: 12px; color: #fff; font-size: 12px; text-decoration: underline; }
#recommended .recommendation-more:hover { color: #fff; }
#recommended a:focus-visible, #recommended button:focus-visible { outline: 2px solid #aaa; outline-offset: 4px; }

@media screen and (max-device-width: 1024px) and (orientation: portrait),
     only screen and (max-device-width: 480px) and (orientation: landscape),
     screen and (max-width: 768px) {
  /* ****** */
  /* bottom */
  /* ****** */
  #about, #interesting, #recent, #recommended, #social {
    margin: 1em 0 0 0;
    padding: 0 0 1em 0;
    display: inline-block;
    width: 100%;
    min-height: 100%;
    height: 100%;
    float: none;
    border-bottom: 1px solid #3e3e3e;
  }
  #interesting { margin: 0; padding: 0; border: none; }
  #social { border-bottom: none; }
  #social ul {
    -webkit-column-count: 2;
       -moz-column-count: 2;
        -ms-column-count: 2;
         -o-column-count: 2;
            column-count: 2;

    -webkit-column-gap: 2em;
       -moz-column-gap: 2em;
        -ms-column-gap: 2em;
         -o-column-gap: 2em;
            column-gap: 2em;
  }
}

@media screen and (max-width: 480px) {
  #social ul {
    -webkit-column-count: auto;
       -moz-column-count: auto;
        -ms-column-count: auto;
         -o-column-count: auto;
            column-count: auto;
  }
}
