* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: lightblue;
  font-family: "Short Stack", cursive;
  color: #3b3b3b;
}

/* Main page container */
.container {
  width: 70%;
  max-width: 850px;
  margin: 40px auto;
  background-color: #ffffffcc;
  padding: 30px;
  border-radius: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border: 4px solid #fab2d5;
}

/* Header */
header {
  text-align: center;
  padding: 20px;
}

h1 {
  font-family: "Times New Roman", Times, serif;
  font-size: 48px;
  color: #ff6cae;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 20px;
  color: #3e3499;
}

/* Sections */
.card {
  background-color: #fff7fb;
  margin: 20px 0;
  padding: 20px;
  border-radius: 20px;
  border: 3px dashed #ffb6d9;
}

.books-content {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.books-content ul {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding-left: 20px;
}

.books-content li {
  margin-bottom: 8px;
}

.book-image {
  flex: 0 0 180px;
  width: 180px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h2 {
  color: #ff6fb1;
  margin-top: 0;
}

ul {
  line-height: 1.8;
}

/* About Me image overlap */
.about-card {
  position: relative;
  padding-top: 25;
  margin-top: 10px;
}

.about-image-wrapper {
  position: absolute;
  left: calc(50% + 400px);
  top: -62px;
  transform: translateX(-50%);
  width: 280px;
  height: auto;
}

.about-image-wrapper::before {
  content: "" !important;
  display: none !important;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 10px 15px;
  background-color: #ffb6d9;
  color: #3b3b3b;
  text-decoration: none;
  border-radius: 15px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.nav-links a:hover {
  background-color: #ff9ac7;
}

/* Links inside cards */
.card a {
  color: #ff6fb1;
  text-decoration: none;
  font-weight: bold;
}

.card a:hover {
  text-decoration: underline;
}

/* Cute cat side decorations */
.cat-side {
  position: fixed;
  top: 40px;
  width: auto;
  min-width: 120px;
  text-align: center;
  font-size: 24px;
  color: #9a7bff;
  z-index: -1;
  overflow: visible;
}

.cat-side p {
  background-color: #ffffffaa;
  padding: 12px 16px;
  border-radius: 20px;
  margin: 25px 10px;
  border: 2px solid #ffb6d9;
  white-space: nowrap;
}

.left {
  left: 10px;
}

.right {
  right: 10px;
}

/* Makes it work better on smaller screens */
@media (max-width: 900px) {
  .cat-side {
    display: none;
  }

  .container {
    width: 90%;
  }

  h1 {
    font-size: 38px;
  }
}
