:root {
  --background-gray: #111111;
  --background-accent-red: #be3535;
  --background-accent-purple: #6b368a;
  --background-accent-blue: #445aa3;

  --text-h1: 3rem;
  --text-h2: 2.3rem;
  --text-big: 1.2rem;

  --color-white: #f1f1f1;
}

* {
  box-sizing: border-box;
  z-index: 5;
  position: relative;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--background-gray);
  color: var(--color-white);
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
}

body, a {
  cursor: url('/img/cursor.svg') 2 6, default;
}

header#main {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--background-gray);
  padding: 1.5rem 3rem;

  display: flex;
  gap: 2rem;
  align-items: center;

  z-index: 10;
}

header#main h1 {
  --text-color: var(--background-accent-blue);
}

header#main img {
  max-width: 5rem;
  border-radius: 8px;
  box-shadow: 4px 4px var(--background-accent-blue);
  will-change: box-shadow;
  transition: all 100ms ease-in-out;
}

header#main img:hover {
  box-shadow: -4px -4px var(--background-accent-blue);
}

h1,
h2 {
  font-weight: 500;
  margin: 0;
  text-shadow: 4px 4px var(--text-color);
  will-change: text-shadow;
  transition: all 100ms ease-in-out;
}

h1:hover,
h2:hover {
  text-shadow: -4px -4px var(--text-color);
}

h1 {
  font-size: var(--text-h1);
  line-height: var(--text-h1);
}

h2 {
  font-size: var(--text-h2);
  line-height: var(--text-h2);
  display: inline;
}

header:not(#main) {
  display: flex;
  justify-content: center;
}

section h2 {
  text-align: center;
}

section h2::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  transform: translate3d(50%, 0, 0);

  width: 0;
  height: 0;
}

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

ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 4rem 0;
  padding: 0;
}

li {
  list-style: none;
  margin: 0;
}

li a {
  background: var(--background-gray);
  padding: 1rem 2rem;
  border: 2px solid var(--background-accent-red);
  font-weight: 600;
  transition: all ease-in-out 200ms;
  border-radius: 1rem;
  box-shadow: 4px 4px var(--background-accent-red);
  will-change: box-shadow;
  transition: all 100ms ease-in-out;
}

li a:hover {
  color: var(--color-white);
  box-shadow: -4px -4px var(--background-accent-red);
}

dl {
  margin: 2rem;
  padding: 0;
}

dt {
  font-weight: 600;
  font-size: var(--text-big);
  line-height: var(--text-big);
  border-bottom: 4px solid var(--background-accent-purple);
  display: table;

  transition: all 100ms ease-in-out;
  will-change: margin, padding;
  margin: 0 0;
  padding: 0 0;
}

dt:hover {
  margin: 0 -1rem;
  padding: 0 1rem;
}


dd {
  margin: 0.5rem 1rem;
  display: table;
}

#calculated-fact {
  /* cursor: pointer; */
  user-select: none;
}

.red {
  --text-color: var(--background-accent-red)
}

.purple {
  --text-color: var(--background-accent-purple)
}

#canvas-container {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
}
