* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button {
  all: unset;
}

:root {
  --theme-hue: 281;
  --theme-sat: 100%;
  --theme-primary-lightness: 25%;
  --theme-secondary-lightness: 60%;
  --theme-tertiary-lightness: 80%;
  --theme-primary-color: hsl(
    var(--theme-hue) var(--theme-sat) var(--theme-primary-lightness)
  );
  --theme-secondary-color: hsl(
    var(--theme-hue) 50% var(--theme-secondary-lightness)
  );
  --theme-tertiary-color: hsl(
    var(--theme-hue) 50% var(--theme-tertiary-lightness)
  );

  --disabled-color: hsl(var(--theme-hue) 0% var(--theme-secondary-lightness));
  --invalid-color: hsl(0, 100%, 35%);
  --invalid-highlight: hsl(0, 100%, 95%);

  --light-text: white;
  --dark-text: black;

  --header-font-family: "Roboto Slab", Roboto, serif;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-family: var(--font-family);
}

.dark-mode #app-main,
.dark-mode .main-bubble,
.dark-mode .modal {
  --theme-primary-lightness: 80%;
  --theme-tertiary-lightness: 35%;

  --theme-primary-color: hsl(
    var(--theme-hue) var(--theme-sat) var(--theme-primary-lightness)
  );
  --theme-tertiary-color: hsl(
    var(--theme-hue) 50% var(--theme-tertiary-lightness)
  );

  --light-text: black;
  --dark-text: white;
}

.dark-mode .app-footer .footer-link.fab {
  background-color: var(--theme-secondary-color);
  color: var(--theme-tertiary-color);
}

.dark-mode .app-footer .footer-link.fab.active {
  color: var(--light-text);
}

.material-symbols-sharp {
  font-family: "Material Symbols Sharp" !important;
  font-size: inherit;
  font-weight: inherit;
}

@font-face {
  font-family: "Noto Emoji";
  src: url(./NotoEmoji-VariableFont_wght.ttf);
}

dialog::backdrop {
  background-color: hsla(281 50% 80% / 0.5);
  animation: fade-in 0.25s ease-out forwards;
}

dialog.closing::backdrop {
  animation: fade-out 0.25s ease-out forwards;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

aside {
  /* display */
  /* positioning */
  /* box-model */
  /* typography */
  font-size: 0.75em;
  color: var(--theme-secondary-color);

  /* manipulation */
  /* misc */
}

.user-list {
  /* display */
  /* positioning */
  /* box-model */
  border: 1px solid var(--theme-secondary-color);

  /* typography */
  /* manipulation */
  /* misc */
  list-style: none;
}

.user-list li {
  padding: 0.5rem;
}

.user-list li + li {
  padding: 0.5rem;
  border-top: 1px solid var(--theme-secondary-color);
}

.noto {
  font-family: "Noto Emoji", Roboto, sans-serif;
}

.pfp {
  /* display */
  display: grid;
  place-items: center;

  /* positioning */
  position: relative;

  /* box-model */
  background-color: var(--theme-tertiary-color);
  border-radius: 50%;
  border: 1px solid var(--theme-secondary-color);
  width: 7em;
  max-height: min(7em, 100%);
  aspect-ratio: 1/1;

  /* typography */
  /* manipulation */
  object-fit: cover;
  overflow: hidden;

  /* misc */
}

.pfp:fullscreen {
  border-radius: 0;
}

.pfp-icon {
  font-size: 1rem;
  position: absolute;
  inset: auto 0 0 0;
  background: var(--theme-primary-color);
  padding: 0.25em;
  text-align: center;
  color: var(--light-text);
}

.hidden {
  display: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--header-font-family);
  font-weight: 300;
}

h1 {
  font-weight: 200;
}
