body{ 
  background: white;
  margin: 0;
  padding: 0;
  font-family: Arial;
}

a {
  text-decoration: none;
}

.container {
  width:100%;
  height: 65vh;
  display: flex;
  justify-content: center;
  align-items: center;
}


.book {
  width: 225px;
  height: 350px;
  position:relative;
  text-align: center;
  margin:2.5%;
}

.book-cover {
  position: absolute;
  z-index:1;
  width: 100%;
  height: 100%;
  transform-origin: 0 50%;
  -webkit-transform-origin: 0 50%;
  background: #111;
  background-size:cover;
  border-radius: 3px;
  box-shadow: 
    inset 4px 1px 3px #ffffff60,
    inset 0 -1px 2px #00000080;
  transition: all .5s ease-in-out;
  -webkit-transition: all .5s ease-in-out;
}

.cover1 {
  background: url('http://joeisdead.xyz/buy/images/joeisdead_hardcover_1.jpg');
}

.cover2 {
  background: url('http://joeisdead.xyz/buy/images/joeisdead_paperback_2.jpg');
}

.cover3 {
  background: url('http://joeisdead.xyz/buy/images/thebookofjoe_cover_1.jpg');
}

.book .book-cover {
  background-size: 100% 100%;
}


.effect {
  width: 20px;
  height: 100%;
  margin-left: 10px;
  border-left: 2px solid #00000010;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
  transition: all .5s ease;
}

.light {
  width: 90%;
  height: 100%;
  position: absolute;
  border-radius: 3px; 
  background-image: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 100%);
  top: 0;
  right:0;
  opacity: .1;
  transition: all .5s ease;
  -webkit-transition: all .5s ease;
}

.book:hover { cursor:pointer; }

.book:hover .book-cover {
  transform: perspective(2000px) rotateY(-30deg);
  -webkit-transform: perspective(2000px) rotateY(-30deg);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  box-shadow: 
    inset 4px 1px 3px #ffffff60,
    inset 0 -1px 2px #00000080,
    10px 0px 10px -5px #00000030
}

.book:hover .effect {
  width: 40px;
 /** margin-left:13px;
  opacity: 0.5; **/
}

.book:hover .light {
  opacity: 1;
  width: 70%;
}

.book-inside{
  width: calc(100% - 2px);
  height:96%;
  position:relative;
  top: 2%;
  border: 1px solid grey;
  border-radius:3px;
  background: white;
  box-shadow: 
  10px 40px 40px -10px #00000030,
  inset -2px 0 0 grey,
  inset -3px 0 0 #dbdbdb,
  inset -4px 0 0 white,
  inset -5px 0 0 #dbdbdb,
  inset -6px 0 0 white,
  inset -7px 0 0 #dbdbdb,
  inset -8px 0 0 white,
  inset -9px 0 0 #dbdbdb;
}

.title {
  font-size:22px;
  width: 100%;
  color: #333;
  text-align: center;
  position: absolute;
  top:-30px;
  height: 1px;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: all 1s ease-in-out;
  -webkit-transition: all 1s ease-in-out;
}

.title p {
  width: 100%;
  margin:0;
  line-height:1.3;
}


.btn {
  position:relative;
  background: #aaa;
  color: #fff;
  font-weight: bold;
  padding: 15px 30px;
  font-size: 16px;
  letter-spacing:1px;
  border-radius: 50px;
  bottom: -50px;
  display: inline-block;
  opacity: 1;
  transition: all 1s ease-in-out;
  -webkit-transition: all 1s ease-in-out;
}

.book:hover .btn, .book:hover .title {
  opacity: 1;
}




.header {
  text-align: center;
  margin-bottom: 1px; /* Reduced from a larger value or set as needed */
}

.book:first-child {
  margin-top: 10px; /* Adjust as needed to reduce the space */
}

h1, h2 {
  margin: 0;
  padding: 5px 0; /* Reduced padding if necessary */
}

.home-button {
  background-color: #EB0000;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 10px; /* Adjusted if necessary */
  cursor: pointer;
  transition: background-color 0.3s;
}

.home-button:hover {
  background-color: #0056b3;
}

.fade-in {
  opacity: 0;
  animation: fadeInAnimation 2s forwards;
}

@keyframes fadeInAnimation {
  to {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .container {
    width: 100%;
    padding: 0 10px;
  }
  .header h1, .header h2 {
    font-size: 1.5em; /* Smaller font size on small devices */
  }
  .book {
    flex-direction: column; /* Stack the elements vertically */
    align-items: center;
  }
  .book .title, .book .book-cover, .book .btn {
    width: 90%; /* Adjust width */
  }
  .book .btn {
    padding: 10px; /* Larger touch area for links */
  }
}