#toggleContainer label { 
  text-align:center;
}

#container {
  width: 100%;
  box-sizing: border-box;
}

#toggleContainer {
  height: 49px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 355px;
  margin:auto;
  /* background:#198754; */
  background: #0000001a !important;
  color:#000 !important;
}

.tileItem {
    width: 250px;
    height: 250px;
    margin: 5px;
    border-radius: 5px;
	margin: 10px;
	text-decoration: none;
    position: relative; /* Added */
    overflow: hidden; /* Added */
}

.tileItem:hover {
    transform: scale(1.05);
    transition: all 0.5s ease;
}

.tileItem:hover .overlay { /* Added */
    opacity: 1;
}

.overlay { /* Added */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust opacity as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Added */
    transition: opacity 0.5s; /* Added */
}

.tileItem:hover .detailsBtn, .tileItem:hover .buyBtn { /* Added */
    opacity: 1;
}

#tilesContainer {
    height: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    box-sizing: border-box;
    align-content: center;
    padding-top: 2em;
    padding-bottom: 2em;
    text-align: center;
}

/* tileItem Ended */

#galleryContainer { 
  height: auto;
  width: 800px;
  background: transparent;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  padding-top: 2em;
  padding-bottom: 2em;
}

#toggle {
  height: 10vh;
  width: 177px;
  display: flex;
  align-items: center;
  margin: 10px;
}

#tilesView {
  min-height: auto;
  width: 100%;
  background: transparent; /* #e7e7e7; #d7ffd0;*/
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom:4em;
  margin-top: 0.6em;
  border: 1px solid green;
  border-radius: 10px;
}

#galleryView {
  height: auto;
  width: 100%;
  background: transparent; /* #e7e7e7; #d7ffd0; */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.6em;
  border: 1px solid green;
  border-radius: 10px;
}

#outer3 {
  width: 100px;
  height: 40px;
  background-color: transparent;
  margin: 10px auto;
  border-radius: 3px;
  border: 2px solid #000;
  transition: all 0.5s;
}

#slider3 {
  height: 37px;
  width: 47px;
  background-color: #000;
  border-radius: 0.5px;  
  transition: all 0.5s;
}

#slider3.active {
  -webkit-transform: translatex(50px);
  -ms-transform: translatex(50px);
  -o-transform: translatex(50px);
  transform: translatex(50px);
  transition: all 0.5s;
  background-color: #000 !important;
}

#outer3.outerActive {
  background-color: transparent;
  border: 2px solid #000; /*009537; */
  transition: all 0.5s;
}

#mainView {
  height: 300px;
  width: auto;  
  border-radius: 5px;
  margin-left: 10px;
  margin-right: 10px;
  z-index: 1;
  transition: all 1s;
  display:flex;
  align-items:center;
}


#mainView:hover {
  transform: scale(1.2);
  transition: all 1s;
}

#leftView {
  height: 250px;
  width: 200px;
  opacity: 0.5;
  border-radius: 5px;
  transform: skewy(5deg);
  transform-origin: top right;
  background-color: #eb9100;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 1s;  
}

#leftView:hover {
  opacity: 1;
  transition: all 1s;
}

#rightView {
  height: 250px;
  width: 200px;
  opacity: 0.5;
  border-radius: 5px;
  transform: skewy(-5deg);
  transform-origin: top left;
  background-color: #eb9100;
  display: flex;
  justify-content: center;
  align-items: center;
 transition: all 1s;
}

#rightView:hover {
  opacity: 1;
  transition: all 1s;
}

.navBtns {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: none;
  position: absolute;
  opacity: 0.8;
  background-color: transparent;
  cursor: pointer;
  color: #98c696;
}

.navBtns:hover {
  opacity: 1;
  transition: all 1s;
  background-color: #527f4942;
  color:#000;
}

#navLeft {
  left: 5px;
}

#navRight {
  right: 5px;
}

#linkTag { 
  cursor: pointer;
  z-index: 1;
  box-sizing: border-box;
}

#galleryContainer {
    position: relative; /* Add position relative to make absolute positioning of book details work */
}

#bookContainer {
    position: relative; /* Add position relative */
}

#bookDetails {
    position: static;
    top: 0;
    left: 100%; /* Position the book details to the right of the book image */
    padding-left: 20px; /* Add padding to create space between the image and details */
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #000;
	max-width: 400px;
}

#bookDetails h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

#bookDetails p {
    margin: 0;
    font-size: 16px;
}

#bookDetails #buyNowButton {
    display: contents;
    margin-top: 10px;
    color: green;
    background-color: #198754; /* Change to desired background color */
    padding: 8px 16px; /* Adjust padding as needed */
    border-radius: 5px; /* Add border radius for rounded corners */
}


#container {
    width: 100%;
    overflow: hidden;
}

#galleryView {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#galleryContainer {
    display: flex;
    position: relative;
    overflow: hidden;
    width: 100%;
}

#bookSlide {
    display: flex;
    transition: transform 0.5s ease-in-out;
    /*width: 100%; */
    position: relative;
}

#mainView img {
    width: auto;
    height: 100%;
}

.navBtns {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

#navLeft {
    left: 10px;
	z-index: 500;
}

#navRight {
    right: 10px;
	z-index: 500;
}

/* New Styles for Tile View */
#tilesView {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    display: none;
}

#tilesContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.tileItem img {
    width: auto;
    height: 100%;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    padding: 5px;
}

.detailsBtn, .buyBtn {
    padding: 5px 10px;
    background: #198754;
    color: #000;
    text-decoration: none;
	border: none;
}

.detailsBtn:hover, .buyBtn:hover {
    background: #000;
	color:#198754;
}

.buyNow {
	color: #fff;
    background: #198754;
    padding: 5px 13px;
    width: fit-content;
	margin-top: 0.7em;
	text-transform: uppercase;
	font-weight: bold;
}

.buyNow:hover {
	color: #fff;
    background: #000;
}


/* Mobile Display Styles */
@media (max-width: 991.98px) {
    #bookSlide {
        flex-wrap: wrap-reverse;
    }
    #mainView {
        margin: auto;
        height: 220px;
    }
    #galleryContainer {
        padding-bottom: 0;
        padding-top: 0;
    }
    #bookDetails {
        height: 315px;
    }
}