@font-face {
  font-family: 'HeadingFont';
  src: url('adelia.ttf');
}

@font-face {
  font-family: 'BodyFont';
  src: url('Sweet.ttf');
}

body {
  background: linear-gradient(#fff0f5, #ffe4ec);
  font-family: 'BodyFont';
  color: #3a2e2e;
  text-align: center;
  height: 100vh;
  margin: 0;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  position: relative;
  z-index: 2;
  animation: diaryOpen 1s ease-out;
  transform-origin: top;
}

@keyframes diaryOpen {
  0% {
    transform: rotateX(-90deg) scale(0.9);
    opacity: 0;
  }
  100% {
    transform: rotateX(0deg) scale(1);
    opacity: 1;
  }
}

h1, h2 {
  font-family: 'HeadingFont', cursive;
  font-size: 2.5rem;
  color: #c45a8a;
}

p {
  font-size: 18px;
  line-height: 1.6;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #aaa;
  margin-top: 10px;
  background-color: #ffb6c1;
  cursor: pointer;
  font-family: 'BodyFont', cursive;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}