/* =====================================================
   RESET
===================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: #b95763;

  color: #351d21;

  font-family: Georgia, "Times New Roman", serif;
}


/* =====================================================
   FIXED ROYAL-STYLE BORDER
===================================================== */

.royal-border {
  position: fixed;

  top: 18px;
  left: 18px;
  right: 18px;
  bottom: 18px;

  border: 2px solid rgba(255, 235, 235, 0.72);

  pointer-events: none;

  z-index: 999;
}

.royal-border::after {
  content: "";

  position: absolute;

  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;

  border: 1px solid rgba(255, 235, 235, 0.4);
}


/* =====================================================
   PAGE SYSTEM
===================================================== */

.page {
  min-height: 100vh;

  width: 100%;

  padding: 100px 90px 120px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  position: relative;

  animation: pageFade 0.55s ease;
}

.page.hidden {
  display: none;
}

.page.active {
  display: flex;
}

@keyframes pageFade {

  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}


/* =====================================================
   GENERAL TEXT
===================================================== */

.small {
  margin: 0 0 22px;

  font-family: Arial, sans-serif;

  font-size: 13px;

  letter-spacing: 2px;

  opacity: 0.7;

  text-align: center;
}

.intro {
  width: 100%;

  max-width: 650px;

  margin: 0 0 15px;

  font-size: 20px;

  line-height: 1.8;

  text-align: center;
}

button {
  padding: 13px 23px;

  margin: 8px;

  border: 1px solid #54262d;

  border-radius: 30px;

  background: #fff8f7;

  color: #54262d;

  font-family: Georgia, serif;

  font-size: 15px;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

button:hover {
  background: #54262d;

  color: white;

  transform: translateY(-2px);
}

.button-group {
  display: flex;

  justify-content: center;

  align-items: center;

  flex-wrap: wrap;

  margin-top: 20px;
}


/* =====================================================
   AYOKO PAGE
===================================================== */

.warning {
  font-size: 30px;

  font-weight: bold;

  margin-bottom: 25px;

  animation: warningPop 0.4s ease;
}

@keyframes warningPop {

  0% {
    transform: scale(0.7);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }

}


/* =====================================================
   TEXT PAGES
===================================================== */

.text-page {
  justify-content: flex-start;

  padding-top: 100px;
}

.letter-content {
  width: 100%;

  max-width: 720px;

  padding: 45px 48px;

  background: rgba(255, 249, 247, 0.94);

  border: 1px solid rgba(91, 39, 47, 0.25);

  box-shadow:
    0 12px 35px rgba(60, 20, 25, 0.12),
    inset 0 0 25px rgba(255, 255, 255, 0.4);

  border-radius: 5px;

  position: relative;

  z-index: 2;
}

.letter-content p {
  margin: 0 0 25px;

  font-size: 17px;

  line-height: 1.9;

  text-align: left;

  text-indent: 35px;
}

.letter-content p:first-child {
  margin-top: 0;
}


/* =====================================================
   NEXT BUTTON
===================================================== */

.next-button {
  margin-top: 35px;

  position: relative;

  z-index: 3;
}


/* =====================================================
   THINGS PAGE
===================================================== */

.long-page {
  justify-content: flex-start;

  padding-top: 100px;
}

.long-page h1 {
  max-width: 800px;

  margin: 0 0 35px;

  color: #fff8f7;

  font-size: 42px;

  font-weight: normal;

  line-height: 1.3;

  text-align: center;
}

.opening {
  width: 100%;

  max-width: 720px;

  margin-bottom: 25px;

  position: relative;

  z-index: 2;
}

.opening p {
  margin: 0 0 18px;

  color: #fff8f7;

  font-size: 17px;

  line-height: 1.9;

  text-align: center;
}


/* =====================================================
   MEMORY BOXES
===================================================== */

.memory-box {
  width: 100%;

  max-width: 720px;

  margin: 25px 0;

  padding: 35px 40px;

  background: rgba(255, 250, 248, 0.95);

  border: 1px solid rgba(91, 39, 47, 0.3);

  border-radius: 6px;

  box-shadow:
    0 9px 25px rgba(60, 20, 25, 0.12),
    inset 0 0 25px rgba(255, 255, 255, 0.5);

  position: relative;

  z-index: 2;
}


/* little decorative line */

.memory-box::before {
  content: "";

  position: absolute;

  top: 14px;

  left: 50%;

  width: 45px;

  height: 1px;

  background: rgba(91, 39, 47, 0.35);

  transform: translateX(-50%);
}


/* title */

.memory-box h2 {
  margin: 5px 0 25px;

  color: #54262d;

  font-size: 21px;

  font-weight: bold;

  line-height: 1.4;
}


/* paragraphs */

.memory-box p {
  margin: 0 0 23px;

  font-size: 16px;

  line-height: 1.9;

  text-align: left;
}


/* first sentence */

.memory-box .first-line {
  margin-bottom: 25px;

  font-weight: bold;

  color: #452228;

  text-indent: 0;
}


/* other paragraphs */

.memory-box p:not(.first-line) {
  text-indent: 30px;
}


/* =====================================================
   ENDING OF 11 THINGS
===================================================== */

.ending {
  width: 100%;

  max-width: 720px;

  margin-top: 35px;

  padding: 35px 20px 20px;

  position: relative;

  z-index: 2;
}

.ending p {
  margin: 0 0 25px;

  color: #fff8f7;

  font-size: 17px;

  line-height: 1.9;

  text-indent: 35px;

  text-align: left;
}


/* =====================================================
   TWITTER ACCOUNT PAGE
===================================================== */

#twitterPage {
  justify-content: center;
}

.account-card {
  width: 100%;

  max-width: 570px;

  padding: 40px;

  background: rgba(255, 249, 247, 0.95);

  border: 1px solid rgba(91, 39, 47, 0.3);

  border-radius: 7px;

  box-shadow:
    0 12px 35px rgba(60, 20, 25, 0.15);
}

.account-message {
  margin: 0 0 35px;

  font-size: 18px;

  line-height: 1.8;

  text-align: center;
}

.account-field {
  margin-bottom: 25px;
}

.field-label {
  display: block;

  margin-bottom: 8px;

  font-family: Arial, sans-serif;

  font-size: 12px;

  letter-spacing: 1.5px;

  text-transform: uppercase;

  opacity: 0.6;
}

.field-value {
  padding: 14px 16px;

  background: #f3dddd;

  border: 1px solid rgba(91, 39, 47, 0.2);

  border-radius: 4px;

  font-size: 16px;
}


/* password */

.password-wrapper {
  display: flex;

  align-items: stretch;
}

.password-wrapper input {
  width: 100%;

  min-width: 0;

  padding: 14px 16px;

  background: #f3dddd;

  border: 1px solid rgba(91, 39, 47, 0.2);

  border-right: none;

  border-radius: 4px 0 0 4px;

  color: #452228;

  font-family: Georgia, serif;

  font-size: 15px;

  outline: none;
}

.eye-button {
  width: 55px;

  margin: 0;

  padding: 0;

  border-radius: 0 4px 4px 0;

  background: #54262d;

  color: white;

  border: 1px solid #54262d;

  transform: none;
}

.eye-button:hover {
  background: #3d1b20;

  transform: none;
}


/* =====================================================
   MISS MO BA AKO
===================================================== */

.miss-question {
  margin-top: 45px;

  text-align: center;

  position: relative;

  width: 100%;

  max-width: 600px;
}

.miss-question > p {
  margin: 0 0 20px;

  color: #fff8f7;

  font-size: 25px;

  font-weight: bold;
}

.miss-buttons {
  position: relative;

  min-height: 65px;

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 15px;
}

#missNo {
  position: relative;
}


/* =====================================================
   FINAL PAGE
===================================================== */

#finalPage {
  text-align: center;
}

.final-message {
  width: 100%;

  max-width: 600px;

  padding: 45px;

  background: rgba(255, 249, 247, 0.95);

  border: 1px solid rgba(91, 39, 47, 0.3);

  border-radius: 6px;

  box-shadow:
    0 12px 35px rgba(60, 20, 25, 0.12);
}

.final-message p {
  margin: 0 0 22px;

  font-size: 18px;

  line-height: 1.8;
}

.final-heart {
  margin-top: 30px !important;

  font-size: 35px !important;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

  .page {
    padding: 80px 35px 100px;
  }

  .royal-border {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;

    border-width: 1.5px;
  }

  .royal-border::after {
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
  }

  .intro {
    font-size: 17px;
  }

  .text-page {
    padding-top: 80px;
  }

  .letter-content {
    padding: 32px 25px;
  }

  .letter-content p {
    font-size: 15.5px;

    line-height: 1.8;

    text-indent: 25px;
  }

  .long-page {
    padding-top: 80px;
  }

  .long-page h1 {
    font-size: 31px;
  }

  .opening p {
    font-size: 15.5px;
  }

  .memory-box {
    padding: 30px 23px;

    margin: 20px 0;
  }

  .memory-box h2 {
    font-size: 19px;
  }

  .memory-box p {
    font-size: 15.5px;

    line-height: 1.8;
  }

  .memory-box p:not(.first-line) {
    text-indent: 20px;
  }

  .ending {
    padding: 30px 5px 20px;
  }

  .ending p {
    font-size: 15.5px;

    line-height: 1.8;

    text-indent: 25px;
  }

  .account-card {
    padding: 30px 22px;
  }

  .account-message {
    font-size: 16px;
  }

  .password-wrapper input {
    font-size: 12px;
  }

  .miss-question > p {
    font-size: 22px;
  }

  .final-message {
    padding: 35px 25px;
  }

}