/* ./styles/index.css */
/* ==================== CSS Custom Properties (Variables) ==================== */

:root {
  /* Base color palette - whites */
  --color-alabaster: #f1e9e9;
  --color-wisteria: #c2addb;

  /* Base color palette - blacks */
  --color-licorice: #0e1116;
  --color-rich-black: #020402;
  --color-smoky-black: rgba(34, 9, 1, 1);

  /* Base color palette - purples */
  --color-lavender: #9c86b7;
  --color-taupe: #715b64;
  --color-wine: #6a3937;
  --color-black-bean: #380000;
  --color-gunmetal: #272838;
  --color-deep-purple: #1a1423;

  /* Base color palette - blues */
  --color-cerulean: #9ac2d8;
  --color-prussian: #0b3954;

  /* Base color palette - reds */
  --color-prune: #70231f;
  --color-sienna: #3b0d11;
  --color-puce: rgba(98, 23, 8, 1);
  --color-coral: rgba(206, 106, 70, 1);
  --color-tangerine: rgba(241, 135, 1, 1);

  /* Base color palette - red browns */
  --color-ruddy-brown: rgba(178, 94, 49, 1);
  --color-rufous: rgba(148, 27, 12, 1);
  --color-tenne: #c96b00;
  --color-rust: #b82e16;
  --color-carmine: #963030;
  --color-burnt-umber: #822d2a;
  --color-caput-mortuum: rgba(86, 35, 31, 1);
  --color-chestnut: rgba(140, 65, 44, 1);

  /* Theme palettes */
  --color-primary-0: #2E1A25;
  --color-primary-1: #DBDBDB;
  --color-primary-2: #BCB5B9;
  --color-primary-3: #280619;
  --color-primary-4: #000000;

  --color-secondary-1-0: #393620;
  --color-secondary-1-1: #FFFFFF;
  --color-secondary-1-2: #E8E7E0;
  --color-secondary-1-3: #322D08;
  --color-secondary-1-4: #000000;

  --color-secondary-2-0: #1D1727;
  --color-secondary-2-1: #C2C2C2;
  --color-secondary-2-2: #9B999E;
  --color-secondary-2-3: #120822;
  --color-secondary-2-4: #000000;

  --color-complement-0: #2D351E;
  --color-complement-1: #F2F2F2;
  --color-complement-2: #D5D8D0;
  --color-complement-3: #212E07;
  --color-complement-4: #000000;
}

/* ==================== Base Styles ==================== */

@font-face {
  font-family: "fxemoji-symbols";
  src: url('./assets/fxemoji-symbols/symbols.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--color-rich-black);
  color: #eeeeee;
  font: 14px sans-serif;
  text-align: inherit;
  overflow-x: hidden;
  max-width: 100%;
}

h2 {
  text-align: center;
}

a {
  color: #fff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ==================== Layout - Cards Container ==================== */

.cards {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  overflow-x: hidden;
}

/* ==================== Card Base Styles ==================== */

.card {
  position: relative;
  flex: 1 100%;
  height: 400px;
  border-radius: 0.25em;
  box-sizing: border-box;
  margin: .25em;
  background: #222;
  color: #eee;
  line-height: 1.5em;
}

.card img {
  max-width: 100%;
}

.card > h3 {
  position: absolute;
  top: 0;
  width: 100%;
  font-size: 1.25em;
  font-family: monospace;
  text-align: center;
  border-radius: 0.25em 0.25em 0 0;
  background-color: #333;
  padding: 0.5em 0;
  margin: 0;
  opacity: 0.8;
}

.card > h4 {
  font-size: 1.125em;
  font-family: monospace;
  position: absolute;
  padding: 0.25em 0;
  margin: 0;
  width: 100%;
  text-align: center;
  bottom: 0;
  background: #333;
  opacity: 0.8;
}

.card > section {
  overflow-x: hidden;
  overflow-y: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.card > section > p {
  margin: 1em 2em;
}

.card.has-h3 > section {
  height: calc(100% - 3em);
  margin-top: 3em;
}

.card.has-h4 > section {
  height: calc(100% - 2.5em);
  margin-bottom: 2.5em;
}

.card.with-h3.with-h4 > section {
  height: calc(100% - 5.5em);
}

.card button {
  cursor: pointer;
  margin: 0 0.5em;
  padding: 0.25em 0.75em;
  border: 1px solid;
  border-radius: 0.5em;
  opacity: 0.9;
  box-shadow: 0px 0px 8px #111;
}

.card button:active {
  box-shadow: 0px 0px 2px #111;
}

.card button:hover {
  opacity: 1.0;
}

/* ==================== Card Themes ==================== */

/* Primary theme */
.card.theme-primary {
  background: var(--color-primary-0);
  color: var(--color-primary-2);
}

.card.theme-primary h3,
.card.theme-primary h4 {
  background-color: var(--color-primary-3);
}

.card.theme-primary a {
  color: var(--color-primary-1);
  text-decoration: none;
}

.card.theme-primary a:hover {
  text-decoration: underline;
}

.card.theme-primary button {
  border-color: var(--color-primary-3);
  color: var(--color-primary-4);
  background-color: var(--color-primary-2);
  box-shadow: 0px 0px 8px var(--color-primary-4);
}

.card.theme-primary button:active {
  box-shadow: 0px 0px 2px var(--color-primary-4);
}

/* Secondary-1 theme */
.card.theme-secondary-1 {
  background: var(--color-secondary-1-0);
  color: var(--color-secondary-1-2);
}

.card.theme-secondary-1 h3,
.card.theme-secondary-1 h4 {
  background-color: var(--color-secondary-1-3);
}

.card.theme-secondary-1 a {
  color: var(--color-secondary-1-1);
  text-decoration: none;
}

.card.theme-secondary-1 a:hover {
  text-decoration: underline;
}

.card.theme-secondary-1 button {
  border-color: var(--color-secondary-1-3);
  color: var(--color-secondary-1-4);
  background-color: var(--color-secondary-1-2);
  box-shadow: 0px 0px 8px var(--color-secondary-1-4);
}

.card.theme-secondary-1 button:active {
  box-shadow: 0px 0px 2px var(--color-secondary-1-4);
}

/* Secondary-2 theme */
.card.theme-secondary-2 {
  background: var(--color-secondary-2-0);
  color: var(--color-secondary-2-2);
}

.card.theme-secondary-2 h3,
.card.theme-secondary-2 h4 {
  background-color: var(--color-secondary-2-3);
}

.card.theme-secondary-2 a {
  color: var(--color-secondary-2-1);
  text-decoration: none;
}

.card.theme-secondary-2 a:hover {
  text-decoration: underline;
}

.card.theme-secondary-2 button {
  border-color: var(--color-secondary-2-3);
  color: var(--color-secondary-2-4);
  background-color: var(--color-secondary-2-2);
  box-shadow: 0px 0px 8px var(--color-secondary-2-4);
}

.card.theme-secondary-2 button:active {
  box-shadow: 0px 0px 2px var(--color-secondary-2-4);
}

/* Complement theme */
.card.theme-complement {
  background: var(--color-complement-0);
  color: var(--color-complement-2);
}

.card.theme-complement h3,
.card.theme-complement h4 {
  background-color: var(--color-complement-3);
}

.card.theme-complement a {
  color: var(--color-complement-1);
  text-decoration: none;
}

.card.theme-complement a:hover {
  text-decoration: underline;
}

.card.theme-complement button {
  border-color: var(--color-complement-3);
  color: var(--color-complement-4);
  background-color: var(--color-complement-2);
  box-shadow: 0px 0px 8px var(--color-complement-4);
}

.card.theme-complement button:active {
  box-shadow: 0px 0px 2px var(--color-complement-4);
}

/* ==================== Responsive Design ==================== */

@media screen and (max-width: 50em) {
  .card.has-h3,
  .card.has-h4,
  .card.has-h3 section {
    height: unset;
    min-height: 400px;
  }
}

@media screen and (min-width: 50em) {
  .cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
  }

  .card {
    flex: 0 1 calc(50% - 0.5em);
  }

  .card.span-wide,
  .card.span-full {
    flex: 0 3 100%;
  }
}

@media screen and (min-width: 70em) {
  .card {
    flex: 0 1 calc(33% - 0.3em);
  }

  .card.span-wide {
    flex: 0 2 66%;
  }

  .card.span-full {
    flex: 0 3 100%;
  }
}

@media screen and (min-width: 110em) {
  .card {
    flex: 0 1 calc(25% - 0.5em);
  }

  .card.span-wide {
    flex: 0 2 66%;
  }

  .card.span-full {
    flex: 0 3 100%;
  }
}


/* ./templates/Header/index.css */
header {
  border-radius: 0.25em;
  box-sizing: border-box;
  margin: .25em;
  background: #222;
  color: #eee;
}

header h1 {
  font-family: monospace;
  text-align: center;
  margin: 0;
  padding: 0.5em;
}


/* ./cards/ActivityPub/index.css */
.card.activitypub ul {
  list-style: none;
  margin: 0.5em 1em;
  padding: 0;
}

.card.activitypub ul li {
  clear: both;
  margin-bottom: 1.5em;
  padding-left: 1.75em;
}

.card.activitypub ul li::before {
  float: left;
  width: 1.75em;
  margin-left: -1.75em;
  font-style: normal;
  font-weight: normal;
  font-family: "fxemoji-symbols";
  content: "\1F5E3";
}

.card.activitypub ul li a {
  font-weight: bold;
}

.card.activitypub ul li .retooted {
  display: block;
  font-style: italic;
  font-size: 0.85em;
  margin-bottom: -0.75em;
  text-decoration: underline dotted;
}

.card.activitypub ul li .createdAt {
  float: right;
  font-weight: normal;
  white-space: nowrap;
  padding: 0 0 1em 1em;
  font-size: 0.75em;
  text-decoration: underline dotted;
}

.card.activitypub ul li .invisible {
  display: none;
}

.card.activitypub ul li .ellipsis:after {
  content: "...";
}

.card.activitypub ul li.Announce::before {
  content: '\1F501';
}


/* ./cards/Avatar/index.css */
.card.avatar section {
  padding: 0;
  margin: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card.avatar img.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}


/* ./cards/Bio/index.css */
.card.bio section {
  margin-left: 1em;
  margin-right: 1em;
}

.card.bio section p {
  margin: 1em;
}

.card.bio section a {
  font-weight: bold;
}


/* ./cards/Blog/index.css */
.card.blog ul {
  list-style: none;
  margin: 0.5em 1em;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
}

.card.blog ul li {
  text-align: center;
  margin-bottom: 1em;
  display: flex;
  flex-direction: column;
}

.card.blog ul li a {
  position: relative;
  width: 128px;
  height: 128px;
  overflow: hidden;
  background-color: rgba(11, 11, 11, 0.7);
}

.card.blog ul li a img {
  width: 128px;
  opacity: 0.7;
}

.card.blog ul li a:hover img {
  opacity: 1;
}

.card.blog ul li a .title {
  font-size: 0.85em;
  line-height: 1.25em;
  display: block;
  position: absolute;
  width: calc(100% - 1em);
  bottom: 0;
  padding: 0.5em;
  background-color: rgba(11, 11, 11, 0.8);
}


/* ./cards/Colophon/index.css */
.card.colophon section {
  margin-left: 1em;
  margin-right: 1em;
}

.card.colophon section dl {
  margin: 1em;
}

.card.colophon section dd {
  margin-left: 1em;
  margin-bottom: 0.75em;
}

.card.colophon section p {
  margin: 1em;
}

.card.colophon section a {
  font-weight: bold;
}


/* ./cards/Feed/index.css */
.card.feed h3 .feedIcon {
  width: 0.75em;
  height: 0.75em;
  margin: 0 0.5em 0 0;
}

.card.feed ul {
  list-style: none;
  margin: 0.5em 1em;
  padding: 0;
}

.card.feed ul li {
  clear: both;
  margin-bottom: 1.5em;
  padding-left: 1.75em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.card.feed ul li::before {
  float: left;
  width: 1.75em;
  margin-left: -1.75em;
  font-style: normal;
  font-weight: normal;
  font-family: "fxemoji-symbols";
  content: "\1F517";
}

.card.feed ul li a {
  font-weight: bold;
  word-break: break-word;
}

.card.feed ul li .createdAt {
  float: right;
  font-weight: normal;
  white-space: nowrap;
  padding: 0 0 1em 1em;
  font-size: 0.75em;
  text-decoration: underline dotted;
}


/* ./cards/Github/index.css */
.card.github ul {
  list-style: none;
  margin: 0.5em 1em;
  padding: 0;
}

.card.github ul li {
  clear: both;
  margin-bottom: 1em;
  padding-left: 1.75em;
  text-indent: -1.75em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.card.github ul li::before {
  float: left;
  width: 1.75em;
  font-style: normal;
  font-weight: normal;
  font-family: "fxemoji-symbols";
}

.card.github ul li.WatchEvent::before {
  content: "\1F49F";
}

.card.github ul li.PushEvent::before {
  content: "\27A1";
}

.card.github ul li.PullRequestEvent::before {
  content: "\1F5E4";
}

.card.github ul li.IssueCommentEvent::before {
  content: "\1F5E3";
}

.card.github ul li.IssuesEvent::before {
  content: "\203C";
}

.card.github ul li.CreateEvent::before {
  content: "\2795";
}

.card.github ul li .actor,
.card.github ul li .repo,
.card.github ul li .issue,
.card.github ul li .pullRequest,
.card.github ul li .commitHash,
.card.github ul li .commitBranch {
  font-weight: bold;
}

.card.github ul li .commitMessage,
.card.github ul li .issueTitle,
.card.github ul li .pullRequestTitle {
  font-style: italic;
}

.card.github ul li .createdAt {
  float: right;
  white-space: nowrap;
  padding: 0 0 1em 1em;
  text-indent: 0;
  font-size: 0.75em;
  text-decoration: underline dotted;
}


/* ./cards/Glitch/index.css */
.card.glitch ul {
  list-style: none;
  margin: 0.5em 1em;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
}

.card.glitch ul li {
  text-align: center;
  margin-bottom: 1em;
  display: flex;
  flex-direction: column;
}

.card.glitch ul li a {
  position: relative;
  width: 128px;
  height: 128px;
  overflow: hidden;
  background-color: rgba(11, 11, 11, 0.7);
}

.card.glitch ul li a img {
  width: 128px;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.card.glitch ul li a p {
  position: absolute;
  top: 0;
  margin: 0;
  width: 100%;
  font-size: 0.85em;
  z-index: 9999;
  background-color: rgba(11, 11, 11, 0.7);
  transition: opacity 0.5s ease;
  opacity: 0;
}

.card.glitch ul li a p span {
  display: block;
  padding: 0.25em;
}

.card.glitch ul li a:hover p {
  opacity: 1;
}

.card.glitch ul li a:hover img {
  opacity: 0.5;
}

.card.glitch ul li a .title {
  font-size: 0.85em;
  line-height: 1.25em;
  display: block;
  position: absolute;
  width: calc(100% - 1em);
  bottom: 0;
  padding: 0.5em;
  background-color: rgba(11, 11, 11, 0.8);
}


/* ./cards/Goodreads/index.css */
.card.goodreads ul {
  list-style: none;
  margin: 0.5em 1em;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
}

.card.goodreads ul li {
  text-align: center;
  margin-bottom: 1em;
  display: flex;
  flex-direction: column;
}

.card.goodreads ul li img {
  width: 98px;
}


/* ./cards/Note/index.css */
.card.note section {
  margin-left: 1em;
  margin-right: 1em;
}

.card.note section p {
  margin: 1em;
}

.card.note ul {
  margin-top: 0.75em;
  padding-left: 2em;
  padding-right: 1em;
}

.card.note ul li {
  margin-bottom: 0.75em;
}

.card.note ul a {
  font-weight: bold;
}


/* ./cards/PocketCasts/index.css */
.card.pocketcasts ul {
  list-style: none;
  margin: 0.5em 1em;
  padding: 0;
}

.card.pocketcasts ul li {
  margin-bottom: 1em;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  align-content: flex-start;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.card.pocketcasts ul li .cover {
  margin-top: 0.25em;
  margin-right: 0.25em;
  flex-grow: 0;
  flex-shrink: 0;
}

.card.pocketcasts ul li .cover img {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
}

.card.pocketcasts ul li .episode-info {
  flex-grow: 3;
  margin-left: 1.75em;
  text-indent: -1em;
}

.card.pocketcasts ul li .preview {
  margin-left: 0.25em;
}

.card.pocketcasts ul li audio {
  width: 64px;
}

.card.pocketcasts ul li .episode-title,
.card.pocketcasts ul li .podcast-title {
  font-weight: bold;
}

.card.pocketcasts ul li .playedAt {
  white-space: nowrap;
  padding-left: 0.5em;
  font-size: 0.75em;
  text-decoration: underline dotted;
}


/* ./cards/Project/index.css */
.card.project section {
  margin-left: 1em;
  margin-right: 1em;
  text-align: center;
}

.card.project section .thumbnail img,
.card.project section .video video {
  margin: 0.25em;
  max-width: 60%;
  max-height: 60%;
}

.card.project section .iframe iframe {
  margin: 0.125em;
  width: 80%;
  height: 60%;
}

.card.project section a {
  font-weight: bold;
}

.card.project section p {
  text-align: left;
  margin: 1em;
}


/* ./cards/Spotify/index.css */
.card.spotify ul {
  list-style: none;
  margin: 0.5em 1em;
  padding: 0;
}

.card.spotify ul li {
  margin-bottom: 1em;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  align-content: flex-start;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.card.spotify ul li .cover {
  margin-top: 0.25em;
  margin-right: 0.25em;
  flex-grow: 0;
}

.card.spotify ul li .cover img {
  width: 48px;
  height: 48px;
}

.card.spotify ul li .track {
  flex-grow: 3;
  margin-left: 1.75em;
  text-indent: -1em;
}

.card.spotify ul li .preview {
  margin-left: 0.25em;
}

.card.spotify ul li audio {
  width: 64px;
}

.card.spotify ul li .name,
.card.spotify ul li .album,
.card.spotify ul li .artist {
  font-weight: bold;
}

.card.spotify ul li .playedAt {
  white-space: nowrap;
  padding-left: 0.5em;
  font-size: 0.75em;
  text-decoration: underline dotted;
}


/* ./cards/Twitch/index.css */
.card.twitch ul {
  list-style: none;
  margin: 0.5em 1em;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
}

.card.twitch ul li {
  text-align: center;
  margin-bottom: 1em;
  display: flex;
  flex-direction: column;
}

.card.twitch ul li a {
  position: relative;
  width: 128px;
  height: 128px;
  overflow: hidden;
  background-color: rgba(11, 11, 11, 0.7);
}

.card.twitch ul li a img {
  width: 128px;
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

.card.twitch ul li a p {
  position: absolute;
  top: 0;
  margin: 0;
  width: 100%;
  font-size: 0.85em;
  z-index: 9999;
  background-color: rgba(11, 11, 11, 0.7);
  transition: opacity 0.5s ease;
  opacity: 0;
}

.card.twitch ul li a p span {
  display: block;
  padding: 0.25em;
}

.card.twitch ul li a:hover p {
  opacity: 1;
}

.card.twitch ul li a:hover img {
  opacity: 1.0;
}

.card.twitch ul li a .title {
  font-size: 0.85em;
  line-height: 1.25em;
  display: block;
  position: absolute;
  width: calc(100% - 1em);
  bottom: 0;
  padding: 0.5em;
  background-color: rgba(11, 11, 11, 0.8);
}


/* ./cards/YouTube/index.css */
.card.youtube ul {
  list-style: none;
  margin: 0.5em 1em;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
}

.card.youtube ul li {
  text-align: center;
  margin-bottom: 1em;
  display: flex;
  flex-direction: column;
}

.card.youtube ul li a {
  position: relative;
  width: 128px;
  height: 128px;
  overflow: hidden;
  background-color: rgba(11, 11, 11, 0.7);
}

.card.youtube ul li a img {
  width: 128px;
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

.card.youtube ul li a p {
  position: absolute;
  top: 0;
  margin: 0;
  width: 100%;
  font-size: 0.85em;
  z-index: 9999;
  background-color: rgba(11, 11, 11, 0.7);
  transition: opacity 0.5s ease;
  opacity: 0;
}

.card.youtube ul li a p span {
  display: block;
  padding: 0.25em;
}

.card.youtube ul li a:hover p {
  opacity: 1;
}

.card.youtube ul li a:hover img {
  opacity: 1.0;
}

.card.youtube ul li a .title {
  font-size: 0.85em;
  line-height: 1.25em;
  display: block;
  position: absolute;
  width: calc(100% - 1em);
  bottom: 0;
  padding: 0.5em;
  background-color: rgba(11, 11, 11, 0.8);
}


