.profile-container {
  background: linear-gradient(90deg, rgba(61, 61, 133, 1) 0%, rgba(149, 148, 207, 1) 100%); /* Desired background color */
  text-align: center;
  padding: 20px;
  margin: 0 auto;
}

.header h1 {
  font-family: 'CopperplateCC-Heavy', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #ffffff;
}

.book {
  transition: opacity 0.6s ease-in-out;
}

.page img {
  width: 30vw;
  height: 44vw;
  border-radius: 3px;
}

.page {
  width: 30vw;
  height: 44vw;
  background-color: #111111;
  float: left;
  margin-bottom: 0.5em;
  background: left top no-repeat;
  background-size: cover;
  z-index: 1;
}

.page:nth-child(even) {
  clear: both;
}

.book {
  perspective: 250vw;
}

.book .pages {
  width: 60vw;
  height: 44vw;
  position: relative;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  border-radius: 4px;
}

.book .page {
  float: none;
  clear: none;
  margin: 0;
  position: absolute;
  top: 0;
  width: 30vw;
  height: 44vw;
  transform-origin: 0 0;
  transition: transform 1.8s cubic-bezier(0.77, 0, 0.18, 1), box-shadow 1s ease;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  cursor: pointer;
  user-select: none;
  background-color: #f0f0f0;
  z-index: 1;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.book .page:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.8s ease;
  box-shadow: 20px 19px 15px rgba(0, 0, 0, 0.2);
  z-index: 6;
}

.book .page:nth-child(odd) {
  pointer-events: all;
  transform: rotateY(0deg);
  right: 0;
  border-radius: 0 4px 4px 0;
  background-image: linear-gradient(to right, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 10%);
}

.book .page:nth-child(odd):hover {
  transform: rotateY(-12deg);
  box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.2);
}

.book .page:nth-child(odd):hover:before {
  background: rgba(0, 0, 0, 0.04);
}

.book .page:nth-child(even) {
  pointer-events: none;
  transform: rotateY(180deg);
  transform-origin: 100% 0;
  left: 0;
  border-radius: 4px 0 0 4px;
  background-image: linear-gradient(to left, rgba(0,0,0,.12) 0%, rgba(0,0,0,0) 10%);
}

.book .page.grabbing {
  transition: none;
}

.book .page.flipped:nth-child(odd) {
  pointer-events: none;
  transform: rotateY(-180deg);
  box-shadow: inset -5px 0 15px rgba(0, 0, 0, 0.15);
}

.book .page.flipped:nth-child(even) {
  pointer-events: all;
  transform: rotateY(0deg);
  box-shadow: inset 5px 0 15px rgba(0, 0, 0, 0.15);
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

.book {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2em 0;
  line-height: 1.5em;
}

/* Page position correction */
.page:nth-child(odd) {
  background-position: right top;
}

.download-btn {
  background: linear-gradient(90deg, rgba(99, 98, 155, 1) 0%, rgba(61, 61, 133, 1) 100%);
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  font-size: 1.2rem;
  border-radius: 15px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease-in-out;
  width: 250px;
  z-index: 1;
  display: inline-block;
  position: absolute;
  margin-left:-10%;
}

.download-btn:hover {
  background-color: #5a44d0;
  transform: scale(1.05);
}

/* Responsive styles */
@media screen and (max-width: 1200px) {
  .book .pages {
    width: 70vw;
    height: 50vw;
  }

  .book .page {
    width: 35vw;
    height: 50vw;
  }

  .page img {
    width: 35vw;
    height: 50vw;
  }
}

@media screen and (max-width: 768px) {
  .book .pages {
    width: 80vw;
    height: 56vw;
  }

  .book .page {
    width: 40vw;
    height: 56vw;
  }

  .page img {
    width: 40vw;
    height: 56vw;
  }

  .download-btn {
    padding: 12px 25px;
    font-size: 1rem;
    margin-left: -20%;
  }
}

@media screen and (max-width: 480px) {
  .book .pages {
    width: 90vw;
    height: 63vw;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  .book .page {
    width: 45vw;
    height: 63vw;
  }

  .page img {
    width: 45vw;
    height: 63vw;
  }

  .download-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin-left: -30%;
  }

  .profile-container {
    padding: 15px;
  }
}
