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

body {
  background-color: #2b0018;
  color: #2c2c2c;
  min-height: 100vh;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: #2b0018;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

.back-button:hover {
  background: #f5f1e8;
  transform: translateX(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.diary-container {
  background: #f5f1e8;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  overflow: hidden;
}

.diary-cover {
  color: #f5f1e8;
  background-color:#e3bec6;
  padding: 4rem 2rem;
  text-align: center;
  border-bottom:3px solid #5e0034;
}

.diary-cover h1 {
  font-size: 4rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
}

.diary-pages {
  padding: 2rem;
}

.diary-entry {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #d4c5b9;
  page-break-inside: avoid;
  position: relative;
}

.entry-date {
  font-size: 1.5rem;
  color:#5e0034;
  margin-bottom: 1rem;
  font-weight: 700;
}

.entry-content {
  line-height: 1.8;
  font-size: 1.1rem;
  color: #3d3d3d;
  text-align: justify;
}

.entry-content p {
  margin-bottom: 1rem;
  text-indent: 2rem;
}

.libre-baskerville-400{
  font-family: "Libre Baskerville", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* Responsive Design */
@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  .back-button {
    top: 15px;
    left: 15px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .diary-cover {
    padding: 2.5rem 1rem;
  }

  .diary-cover h1 {
    font-size: 2.5rem;
  }

  .diary-pages {
    padding: 1.5rem;
  }

  .diary-entry {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .entry-content {
    font-size: 1rem;
  }
}

/* Paper texture effect */
.diary-container {
  background-image: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.03) 2px,
      rgba(0, 0, 0, 0.03) 4px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.03) 2px,
      rgba(0, 0, 0, 0.03) 4px
    ),
    linear-gradient(135deg, #f5f1e8 0%, #f9f7f4 100%);
}
