body {
  background: #152f56;
  color: white;
  margin: 0 0.5rem;
}

a, a:active, a:visited {
  color: #ffee95;
  text-decoration: none;
}

a:hover {
  color: #f68b00;
}

.content {
  display: flex;
  flex-flow: column;
  max-width: 500px;
  margin: 0 auto;
  font-family: monospace;
  height: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

.name {
  font-family: "Permanent Marker", cursive;
  font-size: 6rem;
  text-align: center;
}

.avatar {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

#avatar-image {
  width: 300px;
  height: 300px;
  overflow: hidden;
  border-radius: 150px;
  box-shadow: inset 0 0 10px 0px black;
  background-color: #fcbf31;
  background-image: url("/assets/avatar_sheet.png");
}
#avatar-image[state=yell] {
  background-position: 0 0;
}
#avatar-image[state=calm] {
  background-position: -300 0;
}
#avatar-image[state=luv1] {
  background-position: -600 0;
}
#avatar-image[state=luv2] {
  background-position: -900 0;
}
#avatar-image[state=luv3] {
  background-position: 0 300;
}
#avatar-image[state=luv4] {
  background-position: -300 300;
}
#avatar-image[state=luv5] {
  background-position: -600 300;
}
#avatar-image[state=luv6] {
  background-position: -900 300;
}

#speech {
  display: flex;
  flex-flow: column;
  position: relative;
  background: rgba(255, 255, 255, 0.1254901961);
  font-family: "IBM Plex Sans", sans-serif;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 2rem;
}
#speech[state="0"] {
  display: none;
}
#speech::before {
  content: "";
  position: absolute;
  top: -2rem;
  left: 75%;
  border: 1rem solid transparent;
  border-color: transparent transparent rgba(255, 255, 255, 0.1254901961) rgba(255, 255, 255, 0.1254901961);
}
#speech > * {
  display: block;
  width: 100%;
  text-align: center;
}
#speech small {
  font-size: 1rem;
}
#speech span {
  font-size: 2rem;
}

div.links {
  display: flex;
  width: 100%;
  justify-content: space-around;
  margin-top: auto;
  padding-bottom: 1rem;
}

@media (max-width: 500px) {
  div.links {
    flex-flow: column;
    align-items: center;
    font-size: 200%;
    row-gap: 1rem;
    padding-bottom: 1rem;
  }
}
