body {
  margin: 36px 36px 14px 14px;
  color: #2b2b3a;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.5;
  background-color: #fbf5e9;
  background-image: url("images/checkers.png");
}

h1,
h2,
h3 {
  font-family: "Pixelify Sans", monospace;
}

a {
  color: #0f7378;
}

a:hover,
a:focus {
  color: #c2377f;
}

.frame {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  background: #fff7eb;
  box-shadow:
  0 -4px 0 #2b2b3a,
  0 4px 0 #2b2b3a,
  -4px 0 0 #2b2b3a,
  4px 0 0 #2b2b3a,
  12px -12px 0 #3cc9c9,
  12px -16px 0 #2b2b3a,
  12px -8px 0 #2b2b3a,
  8px -12px 0 #2b2b3a,
  16px -12px 0 #2b2b3a,
  24px -24px 0 #ee6fa8,
  24px -28px 0 #2b2b3a,
  24px -20px 0 #2b2b3a,
  20px -24px 0 #2b2b3a,
  28px -24px 0 #2b2b3a;
}

.intro {
  transform-origin: top;
  animation: maximize 1.5s steps(4);
}

.cursor {
  position: absolute;
  top: 10px;
  left: calc(100% - 42px);
  z-index: 2;
  width: 54px;
  height: 90px;
  background: #2b2b3a;
  clip-path: polygon(0 0, 0 85%, 33% 65%, 58% 100%, 83% 95%, 58% 60%, 100% 60%);
  opacity: 0;
  pointer-events: none;
  animation: cursor 1.5s steps(6);
}

.titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  background: repeating-linear-gradient(#3cc9c9 0 2px, #5fd8d8 2px 4px);
  color: #2b2b3a;
  border-bottom: 4px solid #2b2b3a;
  font-family: "Pixelify Sans", monospace;
}

.winbuttons {
  display: flex;
  gap: 6px;
}

.winbuttons span {
  position: relative;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border: 2px solid #2b2b3a;
  background: #fff7eb;
  box-shadow: inset 2px 2px 0 white, inset -2px -2px 0 #9fb8c0;
  color: #2b2b3a;
  font-size: 12px;
  line-height: 12px;
  text-align: center;
}

.min::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 2px;
  background: #2b2b3a;
}

.max::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  bottom: 2px;
  left: 2px;
  border: 2px solid #2b2b3a;
}

.banner {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-bottom: 4px solid #2b2b3a;
}

.logo {
  position: absolute;
  top: 40px;
  left: 14px;
  height: 70px;
}

.banner-mascot {
  position: absolute;
  right: 14px;
  top: 75px;
  height: 70px;
}

.layout {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px;
  align-items: flex-start;
}

.layout main {
  flex: 1 1 400px;
}

.layout aside {
  flex: 0 0 220px;
}

.side {
  flex: 0 0 150px;
  background: #3cc9c9;
  border: 2px solid #0f7378;
  padding-bottom: 6px;
}

.side h3 {
  margin: 10px 0 0;
  padding: 2px 8px;
  background: #0f7378;
  color: white;
  font-size: 15px;
}

.side h3:first-child {
  margin-top: 0;
}

.side ul {
  list-style: none;
  margin: 0;
  padding: 0 6px;
}

.side li {
  border-bottom: 1px dashed white;
  padding: 2px;
}

.side a {
  display: block;
  color: #2b2b3a;
  text-decoration: none;
}

.side a:hover,
.side a:focus,
.side a.current {
  color: white;
  background: #c2377f;
}

.title {
  background-color: #c2377f;
  background-image: url("images/glitter.png");
  background-size: cover;
  background-position: center;
  color: white;
  text-shadow: 2px 2px 0 #2b2b3a;
  text-align: center;
  padding: 18px 14px 14px;
}

.title h1 {
  margin: 0;
  font-size: 44px;
  font-weight: 600;
}

.title small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}

.box {
  margin-top: 14px;
  padding: 10px 12px;
  background: #fff7eb;
  border: 2px dashed #3cc9c9;
}

.box h2 {
  margin: -10px -12px 8px;
  padding: 2px 10px;
  background: #c2377f;
  color: white;
  font-size: 16px;
}

.log {
  margin: 0;
  padding: 0;
  list-style: none;
}

.log li {
  margin-bottom: 6px;
}

.log b {
  color: #c2377f;
}

.quote {
  margin: 0 0 10px;
  padding: 2px 10px;
  background: #fde3ef;
  border-left: 4px solid #ee6fa8;
}

.card {
  margin-bottom: 14px;
  padding: 10px;
  background: #d9f6f6;
  border: 2px solid #3cc9c9;
}

.card.pink {
  background: #fde3ef;
  border-color: #ee6fa8;
}

.card h2 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #0f7378;
}

.card.pink h2 {
  color: #c2377f;
}

.icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 10px;
}

.icons img {
  height: 47px;
}

.sub {
  margin-top: 10px;
  font-weight: bold;
  color: #c2377f;
}

.small {
  height: 22px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 1px 8px;
  background: #fff7eb;
  border: 2px solid #3cc9c9;
}

.proj {
  display: block;
  margin-bottom: 10px;
  padding: 8px 10px;
  color: #2b2b3a;
  text-decoration: none;
  background: #d9f6f6;
  border: 2px solid #3cc9c9;
}

.proj:hover,
.proj:focus {
  background: #fde3ef;
  border-color: #ee6fa8;
}

.proj b {
  color: #0f7378;
}

.proj .tags {
  margin-top: 6px;
}

.chat {
  border: 2px solid #3cc9c9;
}

.chat-head {
  padding: 6px 10px;
  background: #0f7378;
  color: white;
  font-weight: bold;
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background: #d9f6f6;
}

.day {
  align-self: center;
  padding: 0 10px;
  background: #fff7eb;
  border: 1px solid #3cc9c9;
  font-size: 12px;
}

.msg {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.pfp {
  flex: none;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  background: #c2377f;
  color: white;
}

.bubble {
  position: relative;
  padding: 6px 10px;
  background: #fff7eb;
  border: 2px solid #3cc9c9;
}

.bubble::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -12px;
  width: 12px;
  height: 12px;
  background: #3cc9c9;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 100%, 50% 50%, 0 50%);
}

.bubble::after {
  content: "";
  position: absolute;
  top: 0;
  left: -10px;
  width: 10px;
  height: 8px;
  background: #fff7eb;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 60% 100%, 60% 50%, 0 50%);
}

.who {
  font-size: 12px;
  font-weight: bold;
  color: #c2377f;
}

.who time {
  margin-left: 6px;
  font-weight: normal;
  color: #5a5a6a;
}

.bubble h3 {
  margin: 2px 0;
  font-size: 16px;
  color: #0f7378;
}

.bubble p {
  margin: 2px 0 4px;
}

.bubble code {
  background: #fde3ef;
}

.react {
  display: inline-block;
  padding: 0 8px;
  background: #fde3ef;
  border: 1px solid #ee6fa8;
  font-size: 12px;
}

.shelf {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.toy {
  display: block;
  width: 84px;
  text-align: center;
  text-decoration: none;
  color: #2b2b3a;
  font-size: 12px;
  transition: transform 0.15s;
}

.toy .pic {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  overflow: hidden;
  background: #d9f6f6;
  border: 2px solid #0f7378;
  box-shadow: 3px 3px 0 #3cc9c9;
  color: #0f7378;
}

.toy .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toy span {
  display: block;
  margin-top: 6px;
}

.music .pic {
  background: #fde3ef;
  border-color: #ee6fa8;
  box-shadow: 3px 3px 0 #ee6fa8;
  color: #c2377f;
}

.toy:hover,
.toy:focus {
  transform: scale(1.14) rotate(-4deg);
}

.toy:active {
  transform: scale(0.92);
}

footer {
  padding: 10px;
  text-align: center;
  font-size: 12px;
  border-top: 4px solid #2b2b3a;
}

footer p {
  margin: 0;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.button {
  display: inline-block;
  box-sizing: border-box;
  min-width: 88px;
  height: 31px;
  padding: 0 8px;
  color: #2b2b3a;
  background: #d9f6f6;
  border: 2px solid #2b2b3a;
  box-shadow: 2px 2px 0 #3cc9c9;
  font-family: "Pixelify Sans", monospace;
  font-size: 13px;
  line-height: 27px;
  text-align: center;
  text-decoration: none;
}

a.button:hover,
a.button:focus {
  background: #c2377f;
  color: white;
}

@keyframes maximize {
  0%,
  60% {
    transform: scale(0.20);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes cursor {
  0% {
    opacity: 0;
    transform: translate(-900px, 720px);
  }

  10% {
    opacity: 1;
    transform: translate(-900px, 720px);
  }

  55% {
    opacity: 1;
    transform: translate(0, 0);
  }

  75%,
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro,
  .cursor {
    animation: none;
  }

  .toy,
  .toy:hover,
  .toy:focus,
  .toy:active {
    transition: none;
    transform: none;
  }
}

@media (max-width: 700px) {
  body {
    margin: 24px 24px 10px 10px;
  }

  .frame {
    box-shadow:
      0 -4px 0 #2b2b3a,
      0 4px 0 #2b2b3a,
      -4px 0 0 #2b2b3a,
      4px 0 0 #2b2b3a,
      8px -8px 0 #3cc9c9,
      8px -12px 0 #2b2b3a,
      8px -4px 0 #2b2b3a,
      4px -8px 0 #2b2b3a,
      12px -8px 0 #2b2b3a,
      16px -16px 0 #ee6fa8,
      16px -20px 0 #2b2b3a,
      16px -12px 0 #2b2b3a,
      12px -16px 0 #2b2b3a,
      20px -16px 0 #2b2b3a;
  }

  .banner {
    height: 80px;
  }

  .logo {
    height: 44px;
  }

  .banner-mascot {
    height: 50px;
    top: 67px;
  }

  .layout {
    gap: 10px;
    padding: 10px;
  }

  .layout main,
  .layout aside,
  .side {
    flex: 1 1 100%;
  }

  .side ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
  }

  .side li {
    border-bottom: none;
  }

  .side a {
    padding: 6px 8px;
  }

  .title {
    padding: 14px 10px 10px;
  }

  .title h1 {
    font-size: 30px;
  }

  .icons img {
    height: 38px;
  }
}