/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow: hidden; /* Prevent scrolling */
	overscroll-behavior-y: contain; /* prevents pull-down-refresh on Mobile devices */
}

header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    height: 15vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header h1 {
    margin-bottom: 0.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0; /* Ensure no extra padding */
    margin: 0; /* Ensure no extra margin */
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 75vh; /* Adjusted to fit within the viewport */
}

.hero {
    background: url('img/wabs.jpg') no-repeat center center;
    background-size: contain;
    height: 30vh; /* Adjusted height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-message {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 1rem;
    text-align: center;
    border-radius: 10px;
}

main {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-grow: 1;
}

.option {
    background: #f4f4f4;
    padding: 2rem;
    border-radius: 10px;
    width: 70%; 
    height: 90%;
	max-height: 500px;
    overflow-y: auto; /* Enables vertical scrolling */
    text-align: justify;
    margin: 0 1rem;
    font-size: 20px;
}

.book-reviewa {
    text-align: justify;
}


.book-cover {
    background: #f4f4f4;
    padding: 1rem;
    border-radius: 10px;
    width: 20%; /* Adjusted width */
	height:90%;
	max-height: 500px;
    text-align: center;
    margin: 0 1rem;
	font-size:20px;
}

.book-coverimg {
	width: 100%;
	object-fit: cover;
	border:outset;
	cursor:pointer;
}

/*
it cover previous button
.book-coverimg:hover {
    transform: scale(2);
}
*/

.get-book{
	font-size:60px;
	cursor:pointer;
	color:darkred;
	border:outset;
	border-radius:10px;
	margin-right:10px;
}

.option h3 {
    margin-bottom: 0.5rem;
	font-size:24px;
}

.option p {
    margin-bottom: 1rem;
	font-size:20px;
}

button {
    padding: 0.5rem 1rem;
    background: #333;
    color: #fff;
    border: outset;
    border-radius: 5px;
    cursor: pointer;
	font-size:20px;
}

button:hover {
    background: #555;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 0.5rem 0;
    height: 10vh; /* Adjusted height */
    width: 100%;
}

footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 0.5rem;
}

footer a:hover {
    text-decoration: underline;
}

.content {
	display: none;
	transition: max-height 0.3s ease-out;
	overflow: hidden;
	position:fixed;
	/*top:50px;*/
	margin:20px;
	margin-top:30px;
	padding:20px;
	border-radius:5px;
	border:outset;
	background-color:white;
	color:black;
	z-index:3000;
	overflow: auto;
	text-align:justify;
	height: 80%;
	width:500px;
	/*max-height: 200px;*/
}

.content.show {
	display: block;
	max-height: 500px; /* Adjust as needed */
	max-width:500px;
}

.close-button {
	cursor: pointer;
	padding: 5px 3px;
	background-color: #dc3545;
	color: white;
	border: none;
	border-radius: 5px;
	float: right;
	font-size:14px;
	width:50px;
}

.bottom-buttons {
	margin-top: 10px;
	font-size:18px;
}

.bottom-buttons .content {
	margin-top: -80px;
	margin-bottom: 10px;
	max-width:500px;
}
.associate-identity{
	text-align:center;
	font-size:12px;
	font-weight:bold;
}

/* Mobile device */
.product-container {
	/*Position:fixed;*/
    display: block; /*flex;*/
    flex-wrap: wrap;
    justify-content: space-between;
	overflow-y: auto; /* Enables vertical scrolling */
}

.product-item-mobile {
    width: calc(100.00% - 20px); /* 96.00% ensures 1 item fit evenly in a row, minus 20px for margin */
    margin-bottom: 20px;
    text-align: center;
}

.product-image-mobile {
    height: 200px;
    width: 100%;
    object-fit: scale-down;
    margin-bottom: 20px; /* Increase the bottom margin to add more space */
    margin-left: 10px; /* Example: Add left margin */
    margin-right: 10px; /* Example: Add right margin */
	transition: transform 0.3s ease; /* Add smooth transition effect */
}

.product-item-mobile {
	font-size: 16px;
	text-align:justify;
	margin-bottom: 40px; /* Increase the bottom margin to make space for the icon */
    padding-bottom: 80px; /* Add padding to create space between the product name and the icon */
    position: relative; /* Add relative positioning to the product item */
	margin-left: 5px;
	padding-right:10px;
	padding-left:10px;
}

.product-image-mobile:hover {
    /*transform: scale(2);*/ /* Double the size of the image on hover */
}

.product-item-mobile:hover {
    font-size: 14px; /* half the size of the item text on hover */
	cursor:pointer;
	font-weight: bold;
}

.product-name, .product-review, .product-price{
	margin-left:5px;
	margin-right:10px;
	text-align:justify;
}

.product-name h3{
	color:blue;
	font-weight:bold;
}

.product-name-search h3{
	margin-right:10px;
	padding-right:10px;
}

.product-review h4{
	font-weight:bold;
	display:inline;
}

.product-price h4{
	font-weight:bold;
	display:inline;
}
