@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.min.css");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 100%;
  font-weight: normal;
}

html {
  font-size: clamp(16px, 1.5vw, 20px);
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 1.5rem;
  font-family: Pretendard, sans-serif;
  line-height: 1.5;
  word-break: keep-all;
  color: white;
  background: black;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.secrets {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.secrets::-webkit-scrollbar {
  display: none;
}

.secret {
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100svh;
  padding: 1em;
  font-size: clamp(2rem, 5vw, 6rem);
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  filter: blur(.5rem);
  opacity: .5;
  transition: filter .25s, opacity .25s;
}

.form {
  gap: 1rem;
  position: sticky;
  bottom: 1rem;
  max-width: 40rem;
  width: 100%;
  margin: auto auto 0;
  background-color: rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(1rem);
  backdrop-filter: blur(.25rem);
  border: 1px solid rgba(255, 255, 255, .125);
  border-radius: .5rem;
  transition: border-color .25s;
}

.form:has(.textarea:focus) {
  border-color: rgba(255, 255, 255, .25);
}

.textarea {
  appearance: none;
  display: block;
  width: 100%;
  min-height: 5rem;
  padding: .75rem 1rem;
  font: inherit;
  line-height: 1.625;
  color: white;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: 0;
  resize: none;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: .75rem 1rem;
  font: inherit;
  font-size: .875rem;
  color: white;
  background-color: transparent;
  border: 0;
  border-radius: .25rem;
  outline: 0;
  cursor: pointer;
  opacity: .25;
  transition: opacity .25s;
}

.button:hover {
  opacity: 1;
}