html {
  cursor: url("/mouse/cursor.svg"), auto;
}

::-moz-selection {
  /* Code for Firefox */
  background: #b8b8b8;
}

::selection {
  background: #b8b8b8;
}

body {
  font-family: "DINish", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  color: #000;
  line-height: 1.2;
  letter-spacing: -1px;
  display: flex;
  justify-content: center;
  margin: 10px;
  background-color: #e6e6e6;
  margin-top: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
.content {
  cursor: url("/mouse/text.webp") 0 18, text;
  display: block;
}

.subcontainer p {
  letter-spacing: 0.5%;
}

p.micro-credits {
  font-size: 14px !important;
  font-style: italic;
  font-weight: 200;
  letter-spacing: 1%;
}

a {
  cursor: url("mouse/pointer.svg") 0 5, pointer;
}

img {
  /* IE, only works on <img> tags */
  -ms-interpolation-mode: nearest-neighbor;
  /* Firefox */
  image-rendering: crisp-edges;
  /* Chromium + Safari */
  image-rendering: pixelated;
}

a {
  position: relative;
  color: #000;
  text-decoration: none;
}

a:hover {
  color: #000;
  text-decoration: none;
}

a:hover::before {
  transform: scaleX(1);
}

hr {
  height: 5px;
  border: none;
  background-color: black;
}

/* Animate the line from the left */
a::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #000;
  transform: scaleX(0);
  transform-origin: top left;
  transition: transform 0.3s ease;
}

.menu {
  display: flex;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
}

.menu a {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 36px;
  font: "DINish Condensed";
}

.menu a::before {
  display: none;
}

.menu .link {
  margin: 0 10px;
}

.menu img {
  height: 36px;
}

.container {
  width: min(800px, 100%);
  padding: 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.subcontainer {
  width: min(600px, 100%);
}

.text-balloon.top {
  position: sticky;
  top: 0;
}

.text-balloon.bottom {
  position: sticky;
  bottom: 0;
}

.text-balloon {
  width: 100%;
  width: 100%;
  z-index: 10;
  padding: 20px 0;
}

.text-balloon img {
  user-select: none;
}

.text-balloon {
  display: flex;
}

.text-balloon .side-bar {
  width: 20px;
  box-sizing: border-box;
  border: #000 8px solid;
  background-color: white;
}

.text-balloon.left-align .left::after {
  display: none;
}

.text-balloon.left-align .right::after {
  width: 24px;
  height: 8px;
  background-color: black;
  position: absolute;
  content: "";
  bottom: 30px;
  right: -30px;
}

.text-balloon .left {
  border-right: 0px;
  position: relative;
}

.text-balloon .left::after {
  width: 24px;
  height: 8px;
  background-color: black;
  position: absolute;
  content: "";
  bottom: 30px;
  left: -30px;
}

.text-balloon .right {
  border-left: 0px;
  position: relative;
}

.text-balloon .text {
  font-size: min(24px, 4vw);
  width: 100%;
  padding: 20px 10px;
  background-color: white;
  margin: 0;
}

.text-balloon .face {
  height: 100%;
  margin-right: 20px;
}

.text-balloon.text-balloon.left-align .face {
  margin-right: 0px;
  margin-left: 20px;
}

.interactive-gif {
  display: flex;
  justify-content: center;
  align-items: center;
}

.easter-egg {
  cursor: url(/mouse/inspect.svg) 2 64, help;
}

.interactive-gif:hover .idle {
  display: none;
}

.interactive-gif:hover .hover {
  display: block;
}

.interactive-gif .hover {
  display: none;
}

a.link {
  color: #000;
  text-decoration: none;
}

.header-link {
  font-weight: 700;
  font-size: 1.75em;
  text-align: center;
  display: block;
  margin: 20px auto;
  display: inline-block;
}

.flex {
  display: flex;
}

.spacer {
  padding-top: 50px;
}

.project-list ul {
  max-width: 500px;
}

.project-list li {
  font-size: 18px;
  margin: 20px;
  text-align: left;
}

.project-list li {
  font-weight: 200;
}

.project-list li a {
  font-weight: 500;
  text-decoration: none;
  color: black;
  font-size: 24px;
}

.project-list ul.project-description {
  padding: 0;
}

.project-list ul.project-description li {
  margin: 0;
  list-style-type: none;
  font-style: italic;
}

.link:hover span {
  animation-name: wobb;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  animation-duration: 400ms;
  display: inline-block;
  transform: translateY(0px);
}

@keyframes wobb {
  0%,
  100% {
    transform: translateY(0px);
  }
  25% {
    transform: translateY(-2px);
  }
  75% {
    transform: translateY(2px);
  }
}

.credits ul {
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.credits .name {
  display: flex;
  align-items: center;
  font-weight: 500;
}

.credits .name::before {
  content: "";
  display: inline-block;
  height: 24px;
  width: 24px;
  background-image: url(/iconos/person.gif);
  background-size: contain;
  margin-right: 5px;
  cursor: url("/mouse/cursor.svg"), auto;
}

.credits ul.role-list {
  padding-left: 32px;
}

.credits .role-list li {
  font-weight: 200;
}

.credits .credit-item {
  margin-bottom: 16px;
}

.space-between {
  display: flex;
  justify-content: space-between;
}

.project h1,
.project .year {
  margin: 0;
}

img.hero {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 20px;
}

.project .subtitle {
  font-size: 1.5em;
  margin: 0;
  font-style: italic;
}

.project h2 {
  margin-top: 20px;
  margin-bottom: 10px;
}

.project p {
  margin: 10px 0;
  line-height: 1.3;
  font-size: 18px;
}
