* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: 'Kalam', cursive;
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
  color: #111;
  line-height: 1.6;
  font-size: 16px;
}


.cover-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: url('png /bg_f8f8f8-flat_750x_075_f-pad_750x1000_f8f8f8-removebg-preview.png') center/cover no-repeat;
  text-align: center;
}

.cover-page h1 {
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 4rem;
  color: #fff;
  text-shadow: 2px 2px 5px #000;
  margin-bottom: 0.5rem;
}

.cover-page .subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #fff;
}

.lock {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lock input {
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  border: 2px solid #fff;
  outline: none;
}

.lock button {
  padding: 0.5rem 1.5rem;
  background: #ff6f91;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.lock button:hover {
  background: #ff4c6a;
}

.lock .hint {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #fff;
}

.title-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  background: linear-gradient(90deg, #ff9a9e, #fad0c4);
  border-radius: 30px;
  padding: 1rem 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.title-header img {
  width: 80px;
  height: auto;
}

.title-header h1 {
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 3rem;
  color: #ff6f91;
  text-align: center;
  text-shadow: 0 0 5px #fff, 0 0 10px #ff6f91, 0 0 20px #ff6f91;
}


.book {
  padding: 2rem;
  max-width: 900px;
  margin: 2rem auto;
  border-radius: 15px;
  background: repeating-linear-gradient(
      45deg,
      #fff0f5,
      #fff0f5 10px,
      #ffe6f0 10px,
      #ffe6f0 20px
    );
  border: 6px double #ff6f91;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  scrollbar-width: thin;
  scrollbar-color: #ff6f91 #ffe6f0;
}

.book::-webkit-scrollbar {
  width: 10px;
}

.book::-webkit-scrollbar-track {
  background: #ffe6f0;
}

.book::-webkit-scrollbar-thumb {
  background: #ff6f91;
  border-radius: 10px;
}


.book h1.title {
  text-align: center;
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 3rem;
  margin: 1rem 0;
  color: #ff6f91;
}


article {
  background: linear-gradient(180deg, #fff, #ffe6f0);
  border: 3px dashed #ff6f91;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(255,182,193,0.2);
}

article::before {
  content: "♥ ♥ ♥ ♥ ♥ ♥ ♥";
  position: absolute;
  top: 10px; 
  left: 10px;
  font-size: 0,5rem;
  color: rgba(255, 111, 145, 0.6);
  z-index: 10; 
  pointer-events: none; 
}


article time {
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 1.1rem;
  background: #ff6f91;
  color: white;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 1rem;
}

article p {
  font-family: 'Kalam', cursive !important;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #333;
  background: rgba(255, 255, 255, 0.7);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: inset 0 0 10px rgba(255,182,193,0.6);
  margin-bottom: 1rem;
  display: block;
}


article p:last-child,
article p:last-of-type {
  text-align: right;
  font-weight: bold;
  color: #ff4c6a;
  background: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}


article p em {
  font-family: 'Kalam', cursive;
  font-style: normal;
  color: #ff4c6a;
  background: #fff;
  padding: 0 0.3rem;
  border-radius: 5px;
}


.gif-center,
.gif-left,
.gif-right,
.center-img,
.coeur-img,
.ongles-img {
  border: 4px solid #ff6f91;
  background: #fff;
  padding: 0.5rem;
  box-shadow: 0 0 0 4px #fff, 0 10px 20px rgba(0,0,0,0.3);
  transform: rotate(-2deg);
  margin: 2rem auto;
  max-width: 80%;
  display: block;
  transition: transform 0.3s;
}

.gif-left {
  transform: rotate(-5deg);
}

.gif-right {
  transform: rotate(4deg);
}

.gif-center:hover,
.gif-left:hover,
.gif-right:hover {
  transform: scale(1.05) rotate(0deg);
}


@media (max-width: 768px) {
  .book {
    padding: 1rem;
  }

  .book h1.title {
    font-size: 2.2rem;
  }

  article p {
    font-size: 1rem;
  }

  .gif-center,
  .gif-left,
  .gif-right,
  .center-img,
  .coeur-img,
  .ongles-img {
    width: 80%;
  }
}

article.interactive {
  background: linear-gradient(180deg, #fff, #ffe6f0);
  border: 3px dashed #ff6f91;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(255,182,193,0.2);
}

article.interactive textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 10px;
  border: 2px solid #ff6f91;
  font-family: 'Kalam', cursive;
  font-size: 1.1rem;
  resize: none;
  margin-bottom: 1rem;
}

article.interactive button {
  padding: 0.5rem 1rem;
  background: #ff6f91;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

article.interactive button:hover {
  background: #ff4c6a;
}

#publishedText {
  margin-top: 1rem;
  font-family: 'Kalam', cursive;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #333;
  background: rgba(255,255,255,0.7);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: inset 0 0 10px rgba(255,182,193,0.6);
}

.lizzie3-img {
  display: block;      
  margin: 2rem auto;  
  max-width: 60%;      
  height: auto;         
  border: 4px solid #ff6f91; 
  padding: 0.5rem;
  box-shadow: 0 0 0 4px #fff, 0 10px 20px rgba(0,0,0,0.3);
  transform: rotate(-2deg); /

}

.lizzie3-img:hover {
  transform: scale(1.05) rotate(0deg);
}

.lizzie4-img {
  display: block;      
  margin: 2rem auto;  
  max-width: 60%;      
  height: auto;         
  border: 4px solid #ff6f91; 
  padding: 0.5rem;
  box-shadow: 0 0 0 4px #fff, 0 10px 20px rgba(0,0,0,0.3);
  transform: rotate(-2deg); /

}

.lizzie4-img:hover {
  transform: scale(1.05) rotate(0deg);
}
