@import url("reset.css");
@import url("utility.css");

/* https://whitep4nth3r.com/blog/quick-light-dark-mode-css/ */
:root {
  --bg-color: hsl(0, 0%, 99%);
  --fg-color: hsl(0, 0%, 12%);
  --link-color: hsl(211, 100%, 50%);

  --navigation-bar-bg-color: linear-gradient(hsl(0, 0%, 98%), hsl(0, 0%, 91%));
  /* --navigation-bar-bg-color: linear-gradient(rgba(239,239,239,1.0),rgba(204,204,204,1.0)); */
  --navigation-bar-border-top-color: hsl(0, 0%, 50%);
  --navigation-bar-border-bottom-color: hsl(0, 0%, 50%);
  --navigation-bar-path-separator-color: hsl(0, 0%, 60%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: hsl(0,0%,15%);
    --fg-color: hsl(0, 0%, 95%);
    --link-color: hsl(211, 100%, 60%);

    --navigation-bar-bg-color: linear-gradient(hsl(0, 0%, 20%), hsl(0, 0%, 12.5%));
    --navigation-bar-border-top-color: hsl(0, 0%, 0%);
    --navigation-bar-border-bottom-color: hsl(0, 0%, 0%);
    --navigation-bar-path-separator-color: hsl(0, 0%, 40%);
  }
}

body {
  background: var(--bg-color);
  color: var(--fg-color);
}

#navigation-bar-placeholder {
  height: 1.5rem; /* same height as the navigation bar */
}

#navigation-bar {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: left;
  align-items: center; /* center content vertically */
  padding-inline: 1rem; /* horizontal padding */
  height: 1.5rem;
  background: var(--navigation-bar-bg-color);
  /* border-top: 0.5px solid rgb(255, 255, 255); */
  border-top: 0.5px solid var(--navigation-bar-border-top-color);
  border-bottom: 0.5px solid var(--navigation-bar-border-bottom-color);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  font-size: 0.75rem;
  white-space: nowrap; /* one line text */
}

#navigation-bar a {
  text-decoration: none;
  color: inherit;
}

#navigation-bar a:hover {
  text-decoration: underline;
}

#navigation-bar > .current {
  font-weight: bold;
  text-decoration: none;
}

#navigation-bar > .current:hover {
  text-decoration: none;
}

#navigation-bar > .path-separator-arrow {
  margin-left: 0.25rem;
    margin-right: 0.25rem;
    margin-top: -0.2rem; /* make the separator vertically centered */
    font-size: 1rem;
    color: var(--navigation-bar-path-separator-color);
}

main {
  background-color: var(--bg-color);
  padding: 0.5rem;
}

main img {
  display: inline;
}

.app-icon {
  width: 4rem;
  aspect-ratio: 1;
}

.app-title {
  font-size: 1.25rem;
  font-weight: bold;
}

.app-icon-small {
  margin-left: 0.25rem;
  width: 2rem;
  aspect-ratio: 1;
}

.app-title-small {
  font-size: 1rem;
  font-weight: bold;
}

#content {
  margin-left: 0.5rem;
}

.version-title {
  font-size: 1rem;
  font-weight: bold;
}

/* Header */
h3 {
  padding-top: 1rem;
  font-size: 1rem;
}

/* Paragraph */
p {
  padding-top: 0.5rem;
  font-size: 0.8125rem;
}

/* List */
ol, ul {
  padding-left: 1rem;
  padding-top: 0.25rem;
  font-size: 0.8125rem;
}

ol li,
ul li {
  padding-top: 0.25rem;
}

ol p,
ul p {
  padding-top: 0.25rem;
}

/* Link */
a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Footer */

footer {
  padding: 0.5rem;
  text-align: center;
}
