* {
  box-sizing: border-box;
  /* outline: 1px solid blue; */
}

@font-face {
	font-family: 'AvenirNext';
  src: url('/fonts/AvenirNext-Regular.woff2') format('woff2'),
       url('/fonts/AvenirNext-Regular.woff') format('woff'),
       url('/fonts/AvenirNext-Regular.otf') format('opentype');	
  font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'AvenirNext';
  src: url('/fonts/AvenirNext-Medium.woff2') format('woff2'),
       url('/fonts/AvenirNext-Medium.woff') format('woff'),
       url('/fonts/AvenirNext-Medium.otf') format('opentype');	
  font-weight: 500;
	font-style: normal;
}

@font-face {
	font-family: 'AvenirNextCondensed';
  src: url('/fonts/AvenirNext-Condensed.woff2') format('woff2'),
       url('/fonts/AvenirNext-Condensed.woff') format('woff'),
       url('/fonts/AvenirNext-Condensed.otf') format('opentype');	
  font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'AvenirNextCondensed';
	src: url('/fonts/AvenirNext-MediumCondensed.woff2') format('woff2'),
			 url('/fonts/AvenirNext-MediumCondensed.woff') format('woff'),
			 url('/fonts/AvenirNext-MediumCondensed.otf') format('opentype');	
	font-weight: 500;
	font-style: normal;
}

@font-face {
	font-family: 'AvenirNextCondensed';
	src: url('/fonts/AvenirNext-DemiCondensed.woff2') format('woff2'),
			 url('/fonts/AvenirNext-DemiCondensed.woff') format('woff'),
			 url('/fonts/AvenirNext-DemiCondensed.otf') format('opentype');	
	font-weight: 600;
	font-style: normal;
}

a {
	text-decoration: none;
}

html, body {
  margin: 0;
  padding: 0;
	overflow-x: hidden; /* Prevent horizontal scrolling */
	overflow-y: auto;
	max-width: 100vw;
	min-height: 100%;
}

body {
	background-color: #FFF2E5;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	font-family: 'AvenirNext';
	padding: 0px;
	margin: 0px;
	width: 100vw;
	height: 100%;	
}

#checkout {
	width: 100%;
}

#topbar {
	width: 100%;
	margin: 0px;
	height: 4vw;
	display: flex;
  flex-direction: row;
	justify-content: space-between;
}

.logo, .cart-link {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	padding-inline: 18px;
	height: 100%;
	width: max-content;
}

.cart-link {
	background-color: rgba(0, 0, 0, 0);
	cursor: pointer;
	border: none;
}

.cart-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5vw;
  height: 2.5vw;
}

#cart-link-image {
  width: 100%;
  height: auto;
  display: block;
}

@media only screen and (max-width: 1370px) { 
  .cart-container {
		width: 2.5em;
		height: 2.5em;
  }
}


#logo-image {
	height: 80%;
}

.go-to-checkout {
  position: fixed;
  top: 70px;
  right: 20px;
  width: 300px;
  background: white;
  border: 2px solid #000;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
	justify-content: space-between;
  gap: 1rem;
  font-family: 'AvenirNext';
}

.go-to-checkout.hidden {
  display: none;
}

.empty-cart {
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 2vw;
}

.close-cart {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  font-weight: bold;
}

.checkout-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
  font-family: 'AvenirNextCondensed';
}

.cart-product {
  display: flex;
  align-items: center;
	justify-content: space-between;
  gap: 1rem;
}

.cart-details-container {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.cart-image {
  width: 60px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cart-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cart-title {
  font-family: 'AvenirNextCondensed';
  font-weight: 600;
  font-size: 1rem;
}

.cart-price {
  font-family: 'AvenirNextCondensed';
  font-size: 0.9rem;
  color: #666;
}

#checkout-button {
  padding: 10px 15px;
  background-color: #F39132;
  color: #000;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'AvenirNextCondensed';
  transition: background-color 0.2s ease;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

#checkout-button.hidden { 
  display: none;
}

#checkout-button:hover {
  background-color: #d67f29;
}

.total-price {
	font-weight: normal;
	font-size: 0.7rem;
}

@media (max-width: 600px) {
  .go-to-checkout {
    right: 5%;
    width: 90%;
    top: 60px;
    padding: 1rem;
  }
}

@media only screen and (min-width: 800px) {
	.go-to-checkout {
    width: 30vw;
		height: 22vw;
		padding: 2vw;
	}

	.close-cart {
	 font-size: 2vw;
	}

	.checkout-title {
   font-size: 2vw;
	}

	.cart-product {
    gap: 2vw;
	}

	.cart-image {
	 width: 5vw;
	}

	.cart-title {
    font-size: 1.5vw;
	}

	.cart-price {
    font-size: 1.5vw;
	}

	#checkout-button {
    font-size: 1.5vw;
		padding: 0.8vw 1vw;
	}
	
	.total-price {
		font-weight: normal;
		font-size: 1.3vw;
	}
}

.cart-quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.cart-quantity-controls button {
  background-color: #f39132;
  border: 0px solid black;
  border-radius: 0.5vw;
  font-size: 1.5vw;
  font-weight: bold;
  width: 2.4vw;
  height: 2.4vw;
	color: black;
	font-family: 'AvenirNext';
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cart-quantity-controls button:hover {
  background-color: #d67f29;
}

.cart-quantity-controls button:disabled {
  background-color: #eee;
  color: #aaa;
  cursor: not-allowed;
  border: 1px solid #ccc;
}

#cart-qty-display {
  font-size: 1.6vw;
  font-weight: bold;
  width: 1.5vw;
  text-align: center;
	font-family: 'AvenirNext';
	font-weight: 500;
}


@media only screen and (max-width: 1200px) {
	.cart-quantity-controls {
		gap: 5px;
		margin-left: 10%;
	}
	
	#cart-qty-display {
		font-size: 20px;
		width: 20px;
	}
	
	.cart-quantity-controls button {
		width: 20px;
		height: 20px;
		font-size: 12px;
	}
}

#banner {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: flex-end;
	overflow: hidden;
	width: 100%;
	max-height: 50vh;
}

#banner-image {
	width: 100%;
}

#book-container {
	position: absolute;
	top: 10%;
	left: 5%;
	width: 34vw;
	padding: 10px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

#book-image {
	width: 100%;
  aspect-ratio: 300 / 457;
	filter: drop-shadow(-2px 2px 10px rgba(0, 0, 0, 0.5));
}

@media only screen and (max-width: 800px) { 
	#banner {
	 min-height: 40vw;	
	}

  #book-container {
	top: 10%;
  width: 50vw;
	padding: 20px;
  }

	#book-image {
		width: 100%;
	}
}

.purchase-container {
	width: 100%;
	height: 30vw;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: flex-start;
	padding-left: 45vw;
}

.price-information {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding-top: 3vw;
}

.price {
	font-family: 'AvenirNextCondensed';
	font-weight: 500;
	font-size: 10vw;
}

.shipping {
	font-family: 'AvenirNextCondensed';
	font-weight: 500;
	font-size: 3vw;
	margin-top: -10px;
}

.purchase-button {
	width: 23.5vw;
	height: 5vw;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	border-radius: 15px;
	outline: 0.3vw solid black;
	background-color: white;
	border: none;
	margin-left: 5vw;
	margin-top: 8vw;
	cursor: pointer;
}

.purchase-button-container {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
}

.purchase-image {
	height: 3vw;
	margin-right: 10px;
}

.purchase-text {
	font-family: 'AvenirNextCondensed';
	font-weight: 500;
	font-weight: normal;
	color: black;
	font-weight: bold;
	font-size: 3vw;
	text-decoration: none;
}

@media only screen and (max-width: 800px) {
	#topbar { 
		height: 50px;
	}
	
  .purchase-container {
		height: 40vw;
    flex-direction: column;
		justify-content: center;
		align-items: center;
  }
	
	.price-information {
		margin-bottom: 3vw;
		padding: 0px;
		justify-content: center;
		height: 20vw;
	}
	
	.price {
		font-size: 12vw;
	}
	
	.shipping {
	 font-size: 3vw;
	 margin-top: -10px;
  }
	
	.purchase-button {
		width: 27vw;
		height: 8vw;
		border-radius: 2vw;
		margin-left: 0px;
		margin-top: 0;
		outline: 2px solid black;
	}
	
	.purchase-image {
	height: 4vw;
	margin-right: 7px;
  }
	
	.purchase-text {
	 font-weight: bold;
	 font-size: 3vw;
	 text-decoration: none;
	}
}

.product-information {
	background-color: #4C4C4C;
	color: white;
	display: flex;
	flex-direction: row;
	width: 100%;
	justify-content: flex-start;
	align-items: center;
	padding: 10px;
}

.product-title {
	text-wrap: nowrap;
}

.product-text {
	height: 100%;
	width: 60vw;
}

.book-samples {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	height: 100%;
}
	
.book-sample {
	max-width: 85%;
}

.book-sample1 {
	transform: translateY(-5%) rotate(-15deg);
}

@media only screen and (min-width: 800px) {
	.product-information {
    justify-content: space-around;
  }
	.product-title {
		font-size: 4vw;
	}
	.product-description {
		font-size: 2vw;
	}
	.book-sample {
	  max-width: 25vw;
  }
  .book-sample2 {
	 margin-top: -50%;
	}
}

.book-sample2 {
	transform: translateY(100%) rotate(15deg);
}

@media only screen and (max-width: 500px) {
	.product-information {
		flex-direction: column;
  }
	
	.book-samples {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: row;
		margin-top: 20px;
		max-width: 60%;
  }
	
	.book-sample1 {
	  transform: translateX(-50%) rotate(-15deg);
	}

	.book-sample2 {
		transform: translateX(50%) rotate(15deg);
	}
	
	.product-text {
		height: 100%;
		width: 100%;
	}
}

@media only screen and (max-width: 800px) {
	.product-information {
		margin-top: 4vh;
	}
	
	.product-title {
		font-family: 'AvenirNext';
		font-weight: 600;
		font-size: 5vw;
	}
	
	.product-description {
		font-family: 'Baskervville'
	}
}

.writer-information {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	width: 100%;
	margin-top: 40px;
}

.writer-image-container {
	width: 30vw;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 10px;
}

.writer-image {
	width: 100%;
}

.about-writer {
	width: 65%;
	margin-left: 5%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
}

.writer-text {
	width: 100%;
}

.writer-title {
	width: 100%;
	margin: 0;
	font-family: 'AvenirNext';
	font-weight: 500;
}

.writer-description {
	font-family: 'Baskervville';
	width: 50vw;
}

.writer-link {
	width: 100%;
}

.books-from-writer {
	height: 100%;
	font-family: 'AvenirNextCondensed';
	font-size: 20px;
}

.books-from-writer2 {
	height: 100%;
	font-family: 'AvenirNextCondensed';
	font-size: 20px;
	display: none;
	width: 100%;
}

.books {
	width: 100%;
	height: 100px;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
}

.book-image {
	height: 100%;
	margin-right: 10px;
}

@media only screen and (max-width: 500px) {
	.writer-image-container {
		width: 40vw;
		display: flex;
		justify-content: center;
		align-items: center;
		padding: 10px;
	}

	.writer-image {
		width: 100%;
	}

	.about-writer {
		width: 45%;
		margin-left: 5%;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: flex-start;
	}
	
  .books-from-writer {
		display: none;
	} 
	
	.books-from-writer2 {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	
	.books {
		justify-content: center;
		align-items: center;
  }
}

.poster-container {
	font-family: 'AvenirNextCondensed';
	font-size: 20px;
	width: 100%;
	margin-top: 10px;
	padding: 50px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
}

@media only screen and (min-width: 800px) {
	.writer-title {
	 font-size: 3vw;
  }

  .writer-description {
	 font-size: 2vw;
  }
	
	.books-from-writer, books-from-writer2 {
		font-size: 3vw;
	} 
}

.poster-image {
	margin-top: 10px;
	width: 100%;
}

footer {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	padding: 10px;
	background-color: #4C4C4C;
	color: white;
	font-family: 'AvenirNext';
	font-weight: 500;
}

footer a {
	color: white;
}

.hidden {
  display: none;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(5%, 5%);
  background: #fff;
  color: #000;
  z-index: 100;
  width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	font-size: 2rem;
}

@media only screen and (max-width: 800px) {
	.modal {
		font-size: 1rem;
	}
}


.modal-content {
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
}

.modal a {
  color: #333;
  text-decoration: underline;
}
@media only screen and (min-width: 800px) {
	.poster-container {
		font-size: 3vw;
	}
	
	footer {
		font-size: 2vw;
	}
}

.hidden {
	display: none;
}
