/* Import Google font at the very top */
@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  background: #fdf6e3; /* soft cream paper color */
  font-family: 'Special Elite', 'Courier New', Courier, monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  color: #5b4636; /* warm brown text */
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      rgba(91, 70, 54, 0.1) 24px,
      transparent 25px
    ); /* subtle horizontal lines for ruled paper */
  padding: 1rem;
}

.container {
  background: #fff8e1;
  box-shadow: inset 0 0 8px #f0e6c8;
  border-radius: 6px;
  padding: 2rem 3rem;
  max-width: 90vw;
  user-select: none;
  cursor: default;
  text-align: center;
}

.typewriter {
  font-size: 2rem;
  width: 24ch;
  margin: 0 auto;
  border-right: 2px solid #5b4636;
  white-space: nowrap;
  overflow: hidden;
  animation: typing 5s steps(24), blink 0.75s step-end infinite;
  text-shadow:
    1px 1px 0 #f9f5e7,
    2px 2px 1px #c4b79c;
  padding-bottom: 1rem;
}

/* Typewriter keyframe */
@keyframes typing {
  from { width: 0; }
  to { width: 24ch; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

.note {
  font-size: 1.1rem;
  margin-top: 1rem;
  color: #7a604a;
  font-style: italic;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

/* Floating particles as ink blots or paper dust */
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(91, 70, 54, 0.15);
  animation: floatUp linear infinite;
  filter: blur(1px);
}

@keyframes floatUp {
  from {
    transform: translateY(100vh);
    opacity: 1;
  }
  to {
    transform: translateY(-10vh);
    opacity: 0;
  }
}