@font-face {
  font-family: 'Courgette-Regular';
  src: url('Courgette-Regular.ttf') format('truetype');
}

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Basic Styles */
body {
    line-height: 1.6;
	height: 100%; /* Ensure body fills the height of the viewport */
	min-width: calc(calc(100vh - 60px) * 0.62);
	font-family: Book Antiqia, serif;
	background-color: #E7DDB4;
	color: #142f23;
}
.hidden {
	display: none;
}
.container {
	
}

header {
	background: #018f50; /*#43725d;*/
	color: #fff;
    padding: 20px 0;
    height: 60px; /* Fixed height for the header */
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 20px;
}

header h1 {
    margin: 0px;
    padding: 0;
    text-align: center;
	margin-right: auto;
	display: inline-block;	
}

.courgette {
  font-family: 'Courgette-Regular', cursive;
}


.menubutton {
	display: none;
	height: 30px;
	float: right;
    margin: 8px 25px 0px 0px;
	filter: invert(1);
}

nav {
	margin-left: auto;
}

nav ul {
    list-style: none;
	text-align: left;
	font-size: 1.2em;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
}

nav ul li a:hover {
	color: #000;
}

section {
	height: calc(100vh - 60px); /* Calculate height of section to fill viewport height minus header height */
    
}

section h2 {
    text-align: center;
}

.book {
    margin-bottom: 30px;
}

.book img {
    display: block;
    margin: auto;
    max-width: 100%;
    height: auto;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.preload { display: none; }
.flex {
	display: flex;
}
.left {
	height: calc(100vh - 60px); /* Calculate height of section to fill viewport height minus header height */
	width: calc(100% - calc(calc(100vh - 60px) * 0.62));
	padding: 15px;
	overflow: scroll;    
	border-left: none;
}

.right {
	height: calc(100vh - 60px); /* Calculate height of section to fill viewport height minus header height */
}

.buybutton {
	border: 1px solid black;
	border-radius: 12.5px;
	background-color: #fec439;
	padding: 2px 7px;
	margin: 2px;
	display: inline-block;
	text-decoration: none;
	color: black;
	font-weight: bold;
	text-align: center;
	width: 98%;
	margin: 2px auto;
}
.buybutton img {
	height: 20px;
	margin-top: -2px;
	margin: 2px;
	vertical-align: middle;
}
.buybutton:hover {
	background-color: #e5ae1d;
}

.buyingoptions {
	padding: 5px 10px;
	display: block;
}

.buyingoptions_title {
    background: #018f50; /*#43725d;*/
	border: 1px solid black;
	border-radius: 5px;
	margin: 6px;
	width: 60%;
	clear: both;
	display: none;
}
h2, h3 {
    background: #018f50; /*#43725d;*/
	border: 1px solid black;
	border-radius: 5px;
	padding: 0px 5px;
	margin: 6px;
	width: 98%;
	clear: both;
}

.plus {
	height: 18px;
	margin: 2px;
	margin-top: -2px;
	vertical-align: middle;
}

.thumbnail {
	height: 150px;
	float: left;
	margin: 10px;
}
.thumbnail img {
	height: 100%;
}
.larger {
	height: 200px;
}
.fancyborder {
	border: 1px solid black;
	border-radius: 4px;
}

/* Container for the image */
.image-container {
	position: relative;
	display: inline-block;
}

/* Overlay */
.overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.1); /* Adjust opacity here */
	opacity: 0;
	transition: opacity 0.1s ease;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Plus sign icon */
.overlay img {
	width: 50px; /* Adjust size as needed */
	height: auto;
}

/* Apply grayscale filter to the image */
.image-container:hover img {
	filter: grayscale(50%);
}

/* Show overlay on hover */
.image-container:hover .overlay {
	opacity: 1;
}


/* ////////////////////////////////////////////////////// */
.gallery, .slides, .preview, .prev, .next {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.preview {
  background-color: rgba(0, 0, 0, 0.95); /* 50% opacity */
  z-index: 9999; /* Ensure the overlay appears on top */
  display: none;
}

.gallery {
  
}

.slides {
	
}

.slides img {
	height: 80%;
	border: 1px solid black;
	display: none;
	margin: 5% auto;
}

.active {
	display: block !important;
}

.prev, .next {
	align-content: middle;
	font-size: 9em;
	color: white;
	padding: 25% 25px 25px 25px;
}

.prev {
	width: 50%;
} 

.next {
	width: 50%;
	text-align: right;
	left: 50%;
}

.close {
	top: 1%;
	right: 4%;
	font-size: 3em;
	position: fixed;
	padding: 20px;
	color: white;
}

h3 {
	clear: both;
}

.previewlink {
	color: blue;
	text-decoration: underline;
}
/* ///////////////////////////////////////////////////// */


.background-image {
    width: calc(calc(100vh - 60px) * 0.62);
    height: calc(100vh - 60px);
    background-size: cover;
    background-position: center;
	background-image: url('cover1.jpg');
	
	animation-name: rotateBackground;
	animation-duration: 30s;
	animation-timing-function: ease;
	animation-delay: 1s;
	animation-iteration-count: infinite;
	animation-direction: normal;
	animation-fill-mode: none;
	animation-play-state: running;
	
	/*	
	animation-name: Specifies the name of the keyframe animation you want to apply to the element. It refers to the name defined in the @keyframes rule.
	animation-duration: Specifies the duration of the animation, in seconds (s) or milliseconds (ms).
	animation-timing-function: Specifies the timing function to be used for the animation, such as ease, ease-in, ease-out, linear, etc.
																							This defines the acceleration curve of the animation.
	animation-delay: Specifies the delay before the animation starts, in seconds (s) or milliseconds (ms).
	animation-iteration-count: Specifies the number of times the animation should repeat. The value can be a number, infinite for indefinite repetition, 
																							or initial to use the default value.
	animation-direction: Specifies whether the animation should play in reverse on alternate cycles. Values can be normal, reverse, alternate, or alternate-reverse.
	animation-fill-mode: Specifies what values are applied by the animation outside the time it is executing. Values can be none, forwards, backwards, or both.
	animation-play-state: Specifies whether the animation is running or paused. Values can be running or paused.
	*/
}

.column_container {
	display: flex;
}

@keyframes rotateBackground {
    10% { 	background-image: url('cover1.jpg');     }
	22% { 	background-image: url('cover2.jpg');     }
	34% { 	background-image: url('cover3.jpg');     }
	46% { 	background-image: url('cover4.jpg');     }
	58% { 	background-image: url('cover5.jpg');     }
	60% { 	background-image: url('cover6.jpg');     }
	72% { 	background-image: url('cover7.jpg');     }
	84% { 	background-image: url('cover8.jpg');     }
    100% { 	background-image: url('cover1.jpg');     }
}

@media only screen and (max-width: 1200px) {
	.column_container {
		display: block;
	}

	.column_container div {
		clear: both;
	}
}

@media only screen and (max-width: 975px) {
	.left {
		
	width: calc(100% - calc(calc(70vh) * 0.62));
		
	}
	.background-image {		
		width: 100%;
		width: calc(calc(70vh) * 0.62);
		height: calc(70vh);
		margin: 15px auto;
	}
}


@media only screen and (max-width: 780px) {
	header {
		display: block;
		overflow: hidden;
		padding: 2px;
		height: 50px;	
	}
	
	header h1 {
		font-size: 1.9em;
		margin: auto;
		width: calc(100% - 55px);
	}
	
	nav ul {
		padding: 10px;
		text-align: center;
	}
	
	nav {
		display: block;
		border-top: 1px solid white;
	}
	
	.menubutton {
		display: inline-block;
	}
	.flex {
		display: block;
	}
	.left { 
		display: block;
		height: auto;
		width: 100%;
		border: none; 
	}
	.right {
		display: block;
		width: 100%;
	}
	.background-image {		
		width: 100%;
		width: calc(calc(70vh) * 0.62);
		height: calc(70vh);
		margin: 15px auto;
	}
	
	.prev, .next { font-size: 4em; }
	
}

@media only screen and (min-width: 600px) {
	header {
		height: 50px !important; 
	}
}