html {
  min-height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100%;
  background: linear-gradient(135deg, #f8fafc 0%, #fa88ae 100%);
  font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
  color: #333;
}

.intro {
  display: flex;
}

.intro h1 {
  justify-self: center;
}

.intro .grow {
  flex-grow: 1;
}

.pgp-text {
  position: relative;
  background: #fff;
  border: 2px dashed #d36da2;
  padding: 1rem;
  width: auto;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-family: monospace;
  font-size: 0.85rem;
  color: #555;
  transition: max-height 0.3s ease;

  display: flex;
  flex-direction: column;
}

/* pgp text style for when most of it is hidden, like in the key */
.pgp-text.overflow-hidden {
  overflow: hidden;
}

.pgp-text.overflow-hidden::after {
  content: "";
  /* color: #d36da2;
  text-shadow: 1px 1px 3px white;
  font-size: 0.9rem; */
  text-decoration: underline;
  cursor: pointer;

  align-content: end;
  padding: 10px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff0f5);
  pointer-events: none;

  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  mask-image: linear-gradient(to bottom, transparent, #fff);
}

.pgp-text .top-header-hidden,
.pgp-text .bottom-footer-hidden {
  opacity: 0;
  height: 0;
  /* we still want it to be selectable, for the copy/paste */
}

.pgp-text .top-header span,
.pgp-text .bottom-footer span {
  min-width: fit-content;
  user-select: none;
  -webkit-user-select: none;
}

.pgp-text .top-header,
.pgp-text .bottom-footer,
.pgp-text .key-content {
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 0.5rem;
}

.pgp-text .key-content {
  text-align: left;
  align-self: center;
}

.pgp-text .top-header,
.pgp-text .bottom-footer {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  color: #d36da2;
}

@media (max-width: 700px) {
  .pgp-text .key-content {
    font-size: 1.8vw;
  }
}

@media (max-width: 470px) {
  .pgp-text .key-content {
    font-size: 1.7vw;
  }

  .pgp-text .top-header,
  .pgp-text .bottom-footer {
    justify-content: center;
  }
}

@media (max-width: 340px) {
  .pgp-text .key-content {
    font-size: 1.6vw;
  }
}

@media (max-width: 270px) {
  .pgp-text .key-content {
    font-size: 1.5vw;
  }
}

h1,
h2 {
  width: max-content;
  align-self: center;
  text-align: center;
  color: #d36da2;
  margin: 0.5rem;
  text-shadow: 1px 1px 0px #fff;
}

h1 {
  font-size: 2.6em;
}

h2 {
  font-size: 2.2em;
}

.me {
  background: radial-gradient(circle at center, transparent, #ffe6f4 150%), url('me.jpeg');
  background-size: cover;
  background-position: center;
  border-radius: 30%;
  align-self: center;
  min-width: 120px;
  width: 120px;
  height: 120px;
}

@media (min-width: 800px) {
  h1 {
    font-size: 2em;
  }

  .container {
    width: 60%;
  }
}

@media (max-width: 800px) {
  h1 {
    font-size: 2em;
  }

  .me {
    min-width: 70px;
    width: 70px;
    height: 70px;
  }

  .cat-face {
    top: 60px;
    left: -50px;
  }
}


.meow {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 1.5rem;
  text-align: center;
}

.smaller-meow {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 0.5rem;
  text-align: center;
}

@media (max-width: 720px) {
  pre {
    width: fit-content;
  }
}

#pgp-key {
  max-height: 100px;
}

#pgp-key.expanded {
  max-height: none;
  overflow: hidden;
}

/* remove the after if expanded */
#pgp-key.expanded::after {
  display: none;
}

.toggle-key {
  cursor: pointer;
  color: #d36da2;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-decoration: underline;
}

textarea {
  /* width: fit-content; */
  /* max-width: 600px; */
  height: 150px;
  padding: 1rem;
  border-radius: 8px;
  border: 2px solid #d36da2;
  resize: vertical;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 1rem;
}

button {
  background: linear-gradient(90deg, #d36da2 0%, #f69de5 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 1.1em;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(120, 80, 180, 0.10);
  transition: background 0.2s;
  margin-bottom: 16px;
}

button:hover {
  background: linear-gradient(270deg, #b9548c 0%, #f69de5 100%);
}

.output {
  margin-top: 1rem;
  background: #fff;
  border: 2px dotted #d36da2;
  padding: 1rem;
  border-radius: 8px;
  max-width: 600px;
  font-family: monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  display: none;
}

.copy {
  margin-top: 0.5rem;
  height: fit-content;
}

.grow {
  flex-grow: 1;
}

#splow {
  position: fixed;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5) rotate(-15deg);
  background: radial-gradient(circle at center, #fff 30%, #f69de5 90%);
  border: 8px solid #d36da2;
  border-radius: 50%;
  padding: 5rem 7rem;
  font-size: 5rem;
  color: #b3006b;
  font-weight: 900;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 0 100px rgba(255, 0, 130, 0.5);
  text-shadow: 2px 2px 0 #fff;
  font-family: 'Luckiest Guy', cursive;
}

#splow.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.2) rotate(0deg);
}

#output {
  display: none;
}

.comic-bubble {
  position: absolute;
  right: 80px;
  bottom: -35px;

  width: 0px;
  height: 0px;

  border: 10px solid transparent;
  border-top: 45px solid white;
  border-bottom: 0;
  z-index: 2;

  transform: rotate(-35deg);
}

.comic-bubble-face {
  display: flex;
}

.output-text {
  display: none;
}

hr {
  border: none;
  border-top: 2px dashed #d36da2;
  margin-bottom: 2rem;
  width: 100%;
}

.email-meow {
  display: none;
}

.marquee {
  display: inline-block;
  text-align: right;
  /* padding-left: 100%; */
  /* animation: marquee-scroll 5s linear infinite; */
  overflow: hidden;
  width: 100%;
}

.marquee span {
  display: block;
  /* transform: translateX(-100px); */
  animation: marquee-scroll 10s linear infinite;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(50%);
  }

  100% {
    transform: translateX(-100%);
  }
}