@import url("https://fonts.googleapis.com/css2?family=VT323&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #fff;
  color: #000;
  font-family: "VT323", "Courier New", Courier, monospace;
  text-align: center;
}

main {
  width: 100%;
  max-width: 560px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(3rem, 12vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
}

p {
  margin: 0 0 32px;
  font-size: 1.4rem;
  color: #000;
}

.key {
  position: relative;
  margin: 0 0 24px;
}

.key::before {
  content: "";
  position: absolute;
  left: 24px;
  bottom: calc(100% - 5px);
  width: 88px;
  height: 88px;
  background: url("./among-us-sitting-red-doodle.gif") no-repeat center bottom / contain;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

pre {
  display: block;
  width: 100%;
  height: 220px;
  margin: 0;
  padding: 14px;
  border: 3px solid #000;
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: 1.15rem;
  line-height: 1.2;
  text-align: left;
  white-space: pre;
  overflow: auto;
  -webkit-user-select: all;
  user-select: all;
  cursor: copy;
}

pre:focus,
a:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

.links {
  display: flex;
  gap: 12px;
}

.links a {
  flex: 1;
  padding: 10px 8px;
  border: 3px solid #000;
  background: #000;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.links a:hover {
  background: #fff;
  color: #000;
}

@media (max-width: 640px) {
  p {
    margin-bottom: 92px;
  }
}

@media (max-width: 420px) {
  .links {
    flex-direction: column;
  }
}