/* style.css */
body {
  margin: 0;
  font-family: 'Georgia', serif;
  background: #f4f1ea;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.book {
  width: 600px;
  height: 400px;
  box-shadow: 0 0 20px rgba(15, 1, 1, 0.2);
  background: white;
  display: flex;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
  transition: width 0.3s ease, height 0.3s ease;
  font-size: 24px;
  font-weight: bolder;
  
  padding: 20 px;
}

p {
text-align: center;
padding: 20 px;

}

.page {
  width: 50%;
  padding: 10px;
  box-sizing: border-box;
}

.left {
  border-right: 1px solid #ccc;
}

.right {
  border-left: 1px solid #ccc;
}

.controls {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.button {
  font-size: 1.2rem;
  cursor: pointer;
  user-select: none;
  padding: 10px 20px;
  background: #ddd;
  border-radius: 5px;
  transition: background 0.3s;
}

.button:hover {
  background: #bbb;
}

#hello {
      position: absolute;
      top: -50px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 2em;
      color: blue;
      animation: drop 5s linear forwards;
    }

    @keyframes drop {
      0% { top: -50px; opacity: 1; }
      90% { top: 90vh; opacity: 1; }
      100% { top: 100vh; opacity: 0; }
    }

.page {
  transition: transform 0.6s ease;
  transform-origin: left center;
}

.page.turning {
  transform: rotateY(-180deg);
}

#book.cover {
  background-color: #2c3e50;
  color: white;
  font-family: 'Georgia', serif;
  text-align: center;

}
