/* ============================= */
/* GLOBAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: linear-gradient(180deg, #ffd6eb, #f7b6d9);
  font-family: "Lucida Calligraphy", cursive;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ============================= */
/* SCREEN WRAPPER */
.screen {
  display: none;
  width: 100%;
  max-width: 480px;
  text-align: center;
}
.screen.active {
  display: block;
}

/* ============================= */
/* LANDING PAGE */
.valentine-card {
  background: #3a000f;
  color: #ffb6d9;
  padding: 40px 25px;
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
}
.valentine-card h1 {
  font-size: 28px;
  margin-bottom: 25px;
}
.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
}

/* BUTTONS */
button {
  background: #ff4d94;
  color: white;
  border: none;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  transition: 0.25s;
}
button:hover {
  transform: scale(1.08);
}

/* ============================= */
/* CENTERED BOXES (RECONSIDER + PASSWORD) */
.center {
  background: #f5ecd9;
  padding: 35px 25px;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
}

/* ============================= */
/* SCRAPBOOK STYLES */
.scrapbook {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  perspective: 1500px;
  text-align: center;
}
.book {
  position: relative;
  width: 100%;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.page {
  width: 210px;
  height: 297px;
  background: repeating-linear-gradient(
    to bottom,
    #f5ecd9 0px,
    #f5ecd9 24px,
    #e0d6b9 25px
  );
  border-radius: 6px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.25);
  padding: 20px;
  position: absolute;
  transform-origin: left;
  backface-visibility: hidden;
  font-family: "Lucida Calligraphy", cursive;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}
.page.flip {
  transition: transform 1s ease-in-out;
  transform: rotateY(-180deg);
  z-index: 0;
}
.next-btn {
  margin-top: 18px;
  background: #ff4d94;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  font-size: 14px;
  transition: 0.25s;
}
.next-btn:hover {
  transform: scale(1.05);
}

/* MOBILE OPTIMIZATION */
@media (max-width: 420px) {
  .book {
    height: 220px;
  }
  .page {
    width: 150px;
    height: 200px;
    font-size: 13px;
  }
}
