/* Download and store in zine folder */
@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Sawarabi+Mincho&display=swap");

:root {
  --sidebar-width: 290px;

  /* These are presets that may be overwritten in the entries themselves */
      --font-family: sans-serif;
      --sidebar-bg-color: #c0c0c0;
      --sidebar-links-color: #03327c;
      --sidebar-text-color: black;

      --footer-bg-color: #c0c0c0;
      --footer-text-color: black;
      --footer-links-color: #03327c;

      --body-background-color: lightblue;
      --body-background-image: url("https://sadhost.neocities.org/images/tiles/celesestrellas.gif");

      --page-background-color: #282828;
      --page-background-image: url("https://sadhost.neocities.org/images/tiles/bluedots.png");
      --page-text-color: white;
      --page-link-color: limegreen;
      --page-title-size: 2rem;
      --page-text-size: 1.25rem;
      --page-line-height: 1.5;
      --page-padding: 60px;

      --credit-border-color: white;
    }

/* Containers */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  box-sizing: inherit;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
}

body {
  background-color: var(--body-background-color);
  background-image: var(--body-background-image);
}

#container {
  max-width: 1024px;
  margin: 0 auto;
  border-inline-start: 2px solid #eee;
  border-block-start: 2px solid #eee;
  border-inline-end: 2px solid #444;
  border-block-end: 2px solid #444;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

/* Sidebar */
#zine-logo {
  width: 250px;
}

#sidebar {
  max-width: var(--sidebar-width);
  background-color: var(--sidebar-bg-color);
  padding: 20px;
  font-size: 1.3em;
  color: var(--sidebar-text-color);
  font-family: "Lato";
  border-top: 2px solid #eee;
  border-right: 2px solid #444;
  border-bottom: 2px solid #444;
}

#sidebar a {
  color: var(--sidebar-links-color);
  font-weight: bold;
  text-decoration: none;
}

.nav-directions {
  font-size: 20px;
  margin: 0 auto;
  font-weight: bold;
  text-align: center;
}

.arrow {
  font-size: 1.75em;
  text-decoration: none;
}

#home-link {
  margin: 20px auto 0 auto;
  font-size: 30px;
  font-weight: bold;
  text-align: center;
}

#toc-title {
  font-size: 18px;
  padding: 10px 0 20px 0;
  font-weight: bold;
}

#toc ol {
  font-size: 18px;
  margin-top: 15px;
}
#toc a {
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  display: block;
  margin-bottom: 25px;
}

/* Entry */
#page {
  padding: var(--page-padding);
  background-color: var(--page-background-color);
  background-image: var(--page-background-image);
  color: var(--page-text-color);
  font-size: var(--page-text-size);
  line-height: var(--page-line-height);
  flex: 1 1 0;
}

#page h1 {
  font-size: var(--page-title-size);
}

#page a {
  color: var(--page-link-color);
}

#page img {
  max-width: 100%;
}

.your-content {
  padding: var(--page-padding);
}

.credit {
  margin: 40px auto 50px auto;
  padding: 30px;
  width: 80%;
  border: 1px solid var(--credit-border-color);
  text-align: center;
  font-weight: bold;
  font-style: normal;
  font-size: 1rem;
}

#zine-footer .issue-title {
  margin: 1rem auto 0 auto;
}

/* Footer */
#zine-footer {
  padding: 20px 0;
  width: 100%;
  background-color: var(--footer-bg-color);
  color: var(--footer-text-color);
  border: 2px solid #444;
  border-block-start: 2px solid #eee;
  border-inline-start: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#zine-footer a {
  color: var(--footer-links-color);
}

/* === Mobile styles === */
@media only screen and (max-width: 1024px) {
  #container {
    flex-direction: column;
  }

  #sidebar {
    display: none;
  }
}
