:root {
  --color-primary: #38024d;
  --color-text: #f6d7ff;
  --color-accent: #e0a6f9;
  --color-light: #fae6ff;
  --color-background: #0c000f;
  --color-muted: #b39bb8;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: medium;
  background-color: var(--color-background);
  color: var(--color-text);
  /* background-image: url("/assets/imgs/background.png"); */
  background-size: auto;
  background-attachment: scroll;
  /* background-repeat: repeat; */
  image-rendering: pixelated;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.card {
  padding: 1rem;
  background-color: var(--color-primary);
  border-radius: 0.5rem;
  border: 1px solid var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
}

.card > :first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

#page-root {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 2rem;
  gap: 2rem;
}

#sidebar {
  font-size: 0.9rem;
  width: 250px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#navigation > nav {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
}

.page-list > ul {
  list-style: circle;
  padding-left: 1rem;
}

.page-list > ul > li {
  margin-bottom: 0.5rem;
}

#page-root > .latest-posts:last-child {
  display: none;
}

#page-root > .about-me,
#page-root > .changelog {
  display: none;
}

.about-me,
.changelog {
  font-size: 0.9rem;
}

#main {
  width: 50rem;
  max-width: 100%;
  overflow: scroll;
}

.text-light {
  color: var(--color-light);
}

.small-text {
  font-size: smaller;
  color: var(--color-muted);
}

hr {
  border: none;
  border-top: 1px solid var(--color-accent);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 5px var(--color-accent);
}

#blog-post > h1:first-of-type {
  margin-top: 0.5rem;
}

#blog-post > :last-child {
  margin-bottom: 0;
}

.blog-image {
  width: 100%;
  max-width: 35rem;
  min-width: 10rem;
  height: auto;
}

.button-wall {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 1rem;
  align-items: flex-start;
}

.button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 800px) {
  #page-root {
    padding: 0;
    gap: 1rem;
    flex-direction: column;
  }

  #navigation {
    display: flex;
    flex-direction: row;
  }

  #navigation > h3:first-child {
    display: none;
  }

  #navigation > nav {
    flex-direction: row;
    gap: 1rem;
    align-items: center;
  }

  #sidebar {
    width: 100%;
  }

  #main {
    margin: 1rem 0;
    box-shadow: 0 0 15px var(--color-accent);
  }

  #sidebar > .about-me,
  #sidebar > .changelog {
    display: none;
  }

  /* #page-root > .about-me,
  #page-root > .changelog {
    display: block;
  } */

  #page-root > .card:first-child {
    border-top: none;
  }

  .card {
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: 0 0 5px var(--color-accent);
    width: 100%;
  }
}

@media (max-width: 515px) {
  body {
    font-size: small;
  }

  .about-me,
  .latest-posts,
  .changelog {
    font-size: 0.8rem;
  }
}
