body {
	background: white;
}
body:has(:popover-open) {
    pointer-events: none;
    overflow: hidden;
}
body:has(:popover-open) #nav {
    background: white;
    pointer-events: initial;
}
.normal {
	pointer-events: none;
}
.mainbox {
	width: 70vw;
	margin: 2rem auto;
}
#headerbox {
	padding: 2rem;
	max-width: 70vw;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
button[popovertarget] {
	border: 0;
	background: none;
	padding: 0.5rem;
	border: 1px solid rgba(0,0,0,0.5);
	display: flex;
	align-items: center;
}
button[popovertarget]:hover {
	cursor: pointer;
	background: rgba(0,0,0,0.05);
}
#logo {
	height: 7rem;
	width: auto;
}
#nav ul {
	list-style: none;
}
#nav>ul>li {

	border-bottom: 1px solid rgba(0,0,0,0.05);
}
#nav>ul>li>a {
	display: block;
	font: 500 0.9rem "Inter";
	padding: 1rem 4rem;
	color: hsla(0, 0%, 0%, 0.8);	
}
#nav>ul>li:first-child {
	border-bottom: 1px solid rgba(0,0,0,0.3);
}
#nav>ul>li:last-child {
	border-top: 1px solid rgba(0,0,0,0.3);
}
#nav {
	border: 0;
	margin: 4rem auto;
	background: white;
	border: 1px solid rgba(0,0,0,0.7);
}
#nav::backdrop {
	background: rgb(240, 240, 240, 0.8);
	pointer-events: none;
	backdrop-filter: blur(2rem);
}
#herobox {
	margin: 3rem auto;
	text-align: center;
	margin-bottom: 5rem;
}
#herobox>div {
	position: relative;
	width: 50vw;
	margin: 0 auto;
}
#herobox p {
	font: 400 1.5rem "Inter";
	margin-bottom: 1rem;
	color: rgba(0,0,0,0.8);
}
p#parahero {
	width: fit-content;
	padding: 1.5rem 2rem;
	border: 3px solid rgba(0,0,0,0.4);
}
#banner {
	margin: 3rem auto;
	margin-bottom: 5rem;
	width: 90vw;
}
#banner img {
	width: 100%;
	height: auto;
}
span.email {
	padding: 0.25rem 0.5rem;
	background: rgba(0,0,0,0.05);
	font-weight: 700;
}
#herobox p>strong {
	font-weight: 700;
	font-size: inherit;
}
.boxhead {
	margin-bottom: 2rem;
}
.boxhead h2 {
	font: 700 1.3rem "Inter";
}
#footer {
	margin-top: 5rem;
	display: grid;
	grid-template-columns: 1fr 1fr 2fr 1fr 1fr;
	padding: 4rem;
}
#footer h3 {
	font: 500 1rem "Rubik";
	margin-bottom: 1rem;
	text-transform: uppercase;
}
#footer ul {
	list-style: none;
}
#footer ul li,
#footer p {
	font: 400 0.9rem "Inter";
	color: rgba(0,0,0,0.8);
	margin-bottom: 0.5rem;
}
#footer div.w30 {
	width: 100%;
}
#footer div.w30 ul {
	display: grid;
	grid-template-columns: 1fr 1fr;
}
#subfooter {
	padding: 4rem;
}
#subfooter p {
	font: 400 0.8rem "Rubik";
	color: rgba(0,0,0,0.9);
}
#booklist {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	justify-content: center;
	align-items: start;
	gap: 3rem;
	font: 400 1rem "Inter";
}
#booklist>div {
}
#booklist h3 {
	font: 400 1.1rem "Inter";
	padding: 0.5rem;
}
#booklist img {
	width: 100%;
	height: auto;
	border: 0px solid hsla(0, 0%, 0%, 0.5);
	border: 1px solid white;
	border-radius: 0.2rem;
	box-shadow: 0 0 16px 0 rgba(0,0,0,.15);
}
#gallery {
	margin: 3rem auto;
	margin-bottom: 5rem;
	width: 90vw;
}
#gallery>div {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
}
#gallery img {
	height: 24rem;
	width: auto;
}
.autoscroll {
	flex-shrink: 0;
	animation: scroll 30s linear infinite;
}
.autoscroll > * {
	display: flex;
	overflow: hidden;
}
#bookbox {
	background: rgba(0,0,0,0.03);
	padding: 2rem;
}
#coverbox {
	max-width: 1280px;
	margin: 2rem auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}
#coverbox h1 {
	font: 700 2.5rem "Inter";
	margin-bottom: 3rem;
}
#coverbox img {
	width: 70%;
	height: auto;
}
#coverbox>div:first-child {
	text-align: right;
}
dl#spec {
	max-width: 480px;
	display: grid;
	align-items: center;
	grid-template-columns: 1fr 2fr;
	font: 400 1.1rem "Inter";
	gap: 0.5rem;
}
dl#spec dd {
	font-weight: bold;
	font-size: 1.2rem;
}
#tab {
	list-style: none;
	display: inline-grid;
	grid-template-columns: 1fr 1fr;
	width: fit-content;
	padding: 1rem 2rem;
	gap: 1rem;
}
#tab li {
	font: 500 1.5rem "Rubik";
	position: relative;
	padding: 1rem 0;
}
#tab li:hover {
	cursor: pointer;
}
#tab li.active::after {
	border-bottom: 4px solid red;
	width: 40%;
	bottom: 0;
	left: 0;
	position: absolute;
	display: block;
	content: "";
	margin-top: 0.5rem;
}
.tabcontent {
	padding: 2rem;
}
.tabcontent p {
	font: 400 1rem/1.5rem "Inter" !important;
	margin-bottom: 1rem;
}
.tabcontent {
	display: none;
}
.show {
	display: block !important;
}
@keyframes scroll {
	to {
		transform: translateX(-100%)
	}
}
/*	MEDIA QUERY	*/
@media screen and (max-width:640px) {
	.mainbox {
		width: 90vw;
	}
	#headerbox {
		max-width: 100vw;
	}
	#logo {
		height: 4rem;
	}
	#herobox>div {
		width: 85vw;
	}
	#herobox p {
		font-size: 1.2rem;
	}
	#booklist {
		grid-template-columns: repeat(2, 1fr);
	}
	#coverbox h1 {
		font: 700 1.5rem/1.75rem "Inter";
		margin-bottom: 3rem;
	}
	#coverbox {
		max-width: 90vw;
		display: block;
		padding: 0 2rem;
	}
	#coverbox>div:first-child {
		text-align: center;
	}
	#coverbox img {
		width: 100%;
		margin-bottom: 1rem;
	}
	dl#spec {
		grid-template-columns: 1fr 1.5fr;
	}
	dl#spec dd {
		font-size: 1rem;
	}
	.tabcontent p {
		font-size: 1.2rem !important;
	}
	#footer {
		grid-template-columns: 1fr 1fr;
		padding: 2rem;
		gap: 2rem 0;
	}
	#footer div.w30 ul {
		display: block;
	}
	#gallery {
		margin-top: 7rem;
	}
	#gallery>div {
		flex-wrap: wrap;
	}
	#gallery img {
		height: 12rem;
	}
}