@charset "utf-8";

:root {
	--color-primary: #2B5442;
	--color-secondary: #E5A15D;
	--color-background: #F9F8F6;
	--color-text: #333;
	--color-muted: #666;
	--color-border: #ddd;
	--color-highlight: #feb;
}

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

body {
    min-height: 100vh;
    background: var(--color-background);
	font-family: 'Inter', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
    color: var(--color-text);
	margin: 0;
}

a:link {
	color: var(--color-primary);
	text-decoration: none;
}

a:visited {
	color: var(--color-primary);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

li {
	margin-inline-start: 1rem;
}

/* Desktop layout */
.layout {
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr minmax(180px, 240px);
    min-height: 100vh;
}

.footer {
	width: 100%;
	overflow: auto;
	background: var(--color-background);
	border-top: var(--color-border) solid 1px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.footercontent {
	font-size: 0.8em;
	padding: 1em;
	overflow: auto;
	padding-bottom: 2em;
}

.footercontent a:link {
	color: var(--color-text);
	text-decoration: none;
}

.footercontent a:hover {
	color: var(--color-text);
	text-decoration: underline;
}

.footercontent a:visited {
	color: var(--color-text);
	text-decoration: none;
}

.footercolumn {
	width: 33%;
	float: left;
}

.alert {
	background: #6c3;
	color: #fff;
	padding: 1rem;
	font-family: 'Inter', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
	z-index: 10;
	display: none;
	position: absolute;
	inset-inline: 0;
	margin-left: 1rem;
	margin-right: 1rem;
	font-weight: bold;
	border-top-left-radius: 1rem;
	border-top-right-radius: 1rem;
}

.sidebar {
    background: #fff;
    padding: 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 200;
    transition: transform 0.25s ease;
}

.sidebar-left {
    border-right: 1px solid var(--color-border);
}

.sidebar-right {
    border-left: 1px solid var(--color-border);
}

.content {
    padding: 1rem;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
	position: relative;
}

.hamburger-left.close {
	display: none;
}

.hamburger-right.close {
	display: none;
}

.hamburger {
    display: none;
    position: fixed;
    z-index: 300;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    top: 12px;
}

.hamburger-left {
    left: 12px;
}

.hamburger-right {
    right: 12px;
}

.hamburger span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: #333;
    border-radius: 2px;
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.overlay.open {
    opacity: 1;
    pointer-events: all;
}

.logo {
	max-width: 75%;
	height: auto;
	margin-bottom: 1rem;
}

.errormessage {
	font-size: 1rem;
	color: #f30;
	font-weight: bold;
	padding-bottom: 0.5rem;
}

.herotext {
	margin: 0em;
	float: left;
	width: auto;
	background-color: rgba(255, 255, 255, 1);
	padding: 1em;	
	border-bottom-right-radius: 1em;
	border: 1px solid #999;
	max-width: 50em;
	min-height: 1em;
}

.loginhero {
	height: 250px;
	background: url(/images/friends_cafe.jpg) left;
	background-size: cover;
	min-width: 18em;
	padding: 1em;
	border: var(--color-border) solid 1px;
    border-radius: 1rem;
	margin-bottom: 1rem;
}

.bloghero {
	height: 250px;
	background: url(/images/lovebooks.webp) left;
	background-size: cover;
	min-width: 18em;
	padding: 1em;
	border: var(--color-border) solid 1px;
    border-radius: 1rem;
	margin-bottom: 1rem;
}

.feedhero {
	height: 250px;
	background: url(/images/lovebooks.webp) left;
	background-size: cover;
	min-width: 18em;
	padding: 1em;
	border: var(--color-border) solid 1px;
    border-radius: 1rem;
	margin-bottom: 1rem;
}

.abouthero {
	height: 250px;
	background: url(/images/lovebooks.webp);
	background-size: cover;
	min-width: 18em;
	padding: 1em;
	border: var(--color-border) solid 1px;
    border-radius: 1rem;
	margin-bottom: 1rem;
}

.safetyhero {
	height: 250px;
	background: url(/images/safety.png);
	background-size: cover;
	min-width: 18em;
	padding: 1em;
	border: var(--color-border) solid 1px;
	border-radius: 1rem;
	margin-bottom: 1rem;
}

.greenhero {
	height: 250px;
	background: url(/images/subjects/green.jpg);
	background-size: cover;
	min-width: 18em;
	padding: 1em;
	border-bottom: var(--color-border) solid 1px;
	border-radius: 1rem;
	margin-bottom: 1rem;
}

.scholarshiphero {
	height: 250px;
	background: url(/images/scholarship.png);
	background-size: cover;
	min-width: 18em;
	padding: 1em;
	border-bottom: var(--color-border) solid 1px;
	border-radius: 1rem;
	margin-bottom: 1rem;
}

.pagenavtoolbar {
	font-size: 1em;
	margin-bottom: 0.5em;	
	clear: left;
	overflow: auto;
}

.pagenavbutton {
	border: 1px solid var(--color-muted);
	padding: 0.5em;
	font-size: 0.75em;
	float: left;
	background: #ccc;
	margin-right: 0.25em;
	cursor: pointer;
	border-radius: 3px;
}

.pagenavbutton:hover {
	background: #fff;	
}

.pagenavbuttondisabled {
	color: #666;
	cursor: pointer;
	background: #eee;
	border: 1px solid var(--color-muted);
	padding: 0.5em;
	font-size: 0.75em;
	float: left;
	margin-right: 0.25em;
	border-radius: 3px;
	cursor: default;
}

.pagenavbuttonellipsis {
	color: #666;
	cursor: pointer;
	padding: 0.5em;
	font-size: 0.75em;
	float: left;
	margin-right: 0.25em;
	border-radius: 3px;
	cursor: default;
}

.pagenavpagenumber {
	padding-top: 0.25em;
	padding-right: 1em;
	padding-left: 0.5em;
	float: left;
}

.blogimage {
	background: #fff;
	padding: 1em;
	border: 1px solid var(--color-border);
	font-size: 0.75em;
	color: #333;
	border-radius: 0.5em;
}

.blogimage img {
	width: 100%;
	border-radius: 0.5em;
	height: auto;
}

.blogitem {
	float: left;
	clear: both;
	margin-bottom: 0.5em;
	background: #fff;
	padding: 1rem;	
	border: 1px solid var(--color-border);
	border-radius: 1em;
}

.blogitemimg {
	width: 200px;
	float: left;
	background: #fff;
	padding: 0.5em;
	margin-right: 0.5em;
	margin-bottom: 0.5em;
	border: 1px solid var(--color-border);
	border-radius: 0.25em;
}

.blogitem img {
	width: 100%;
}

.affiliatebutton {
    background: #feb;
    width: auto;
    padding: 1em;
    /* display: inline-block; */
    color: #000;
    border: 1px solid #999;
	border-radius: 0.25em;
	cursor: pointer;
	font-weight: bold;
	float: left;
	clear: both;
	margin: 1em 0;
}

.affiliatebutton a:link {
	color: black;
}

.affiliatebutton:hover {
	background: #fc6;
}

.blogcategorytag {
    border: 1px solid var(--color-border);
    border-radius: 0.25em;
    padding: 0.5em;
    font-size: .75em;
    color: #333;
    background: #eee;
    display: inline-block;
    margin-top: 1em;
}

.bookcontent {
	overflow: auto;
}

.bookcontent h2, .bookcontent h3 {
	margin: 0.5rem 0 0.5rem 0;
}

.bookinfomain {
	width: 100%;
	border-radius: 1rem;
	background: #fff;
	padding: 1rem;
	border-bottom: 1px solid var(--color-muted);
	overflow: auto;
}

.bookinforow{
	display: flex;
}

.bookinfodetailssubjects {
	font-size: 0.75rem;
	color: var(--color-secondary);
	margin-bottom: 1rem;
	display: block;
	text-transform: uppercase;
	font-weight: bold;
}

.bookinfodetailsauthorby {
	color: var(--color-muted);
}

.bookinfosummary {
	font-family: 'Inter', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
	font-size: 1rem;
	color: #333;
	background: #fff;
	border-radius: 1rem;
	border-bottom: 1px solid var(--color-muted);
	padding: 1rem;
	margin-top: 1rem;
	flex: 1;
}

/* Book details on the right sidebar */
.bookinfodetails { 
	font-family: 'Inter', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
	font-size: 0.875rem;
	background: #fff;
	border-radius: 1rem;
	border-bottom: 1px solid var(--color-muted);
	padding: 1rem;
	margin: 1rem 0rem 0rem 1rem;
	width: 300px;
	height: fit-content;
}

.bookinfodetailsrow {
	display: flex;
	margin-bottom: 0.5rem;
}

.bookinfodetailstitle {
	color: var(--color-muted);
	font-size: 0.75rem;
}

.bookinfodetailsicon {
	width: 1.5rem;
	height: 1.5rem;
	float: left;
	margin-right: 0.5em;
}

.bookinfodetailsdata {
	float: left;
}

.bookinfodetailsicon svg {
	width: 100%;
	color: var(--color-muted);
	height: auto;
}

.booktitle {
	font-family: 'Libre Baskerville', 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
	font-weight: bold;
	font-size: 1.5em;
}

.bookimage {
	float: left; 
	border: 0px solid var(--color-muted);
	min-height: 120px;
	border-radius: 0.5em;
	width: 120px;
}

.bookimage img {
	width: 100%;
	display: block;
	border-radius: 0.5em;
	height: auto;
}

.bookimageprimary {
	float: left; 
	margin-right: 1em;
	border: 1px solid #999;
	border-radius: 0.5em;
	width: 120px;
	min-height: 100px;
}

.bookimageprimary img {
	width: 100%;
	display: block;
	border-radius: 0.5em;
	height: auto;
}

.bookresult {
	font-family: 'Libre Baskerville', 'Playfair Display', Georgia, "Times New Roman", Times, serif;
	padding: 0.5em;
	font-size: 0.8em;
	color: #555;
	cursor: pointer;
	border-bottom: 1px solid #999;
	overflow: auto;
}

.breadcrumb {
	font-size: 1rem;
	color: #555;
	margin: 0rem 0 0rem 0;
}

/* Booklist styles */

.booklisttab {
	padding: 1rem;
	font-size: 0.875rem;
	color: #555;
	cursor: pointer;
	border-bottom: 1px solid #999;
	overflow: auto;
	float: left;
	border-radius: 0.5em;
	margin: 0rem 0.5rem 0.5rem 0rem;
	background: #fff;
}

.booklisttab.active {
	background: var(--color-primary);
	color: #fff;
}

.booklisttab:hover {
	background: var(--color-primary);
	color: #fff;
}

.booklisttabtitle {
	float: left;
	padding: 0.25rem;
}

.booklisttabcount {
	float: right;
	color: #fff;
	border-radius: 0.5em;
	background: var(--color-primary);
	padding: 0.25rem;
	min-width: 1.5em;
	margin-left: 1rem;
	text-align: center;
}

.booklistbooks {
	overflow: auto;
	clear: left;
}

.booklistbook {
	float: left;
	width: 18rem;
	margin: 0 0.5rem 0.5rem 0;
	background: white;
	padding: 0.5rem;
	border-bottom: 1px solid var(--color-muted);
	border-radius: 0.5em;
	height: 7rem;
	font-size: 0.825rem;
	cursor: pointer;
}

.booklistbook:hover {
	border-top: 1px solid var(--color-muted);
	border-bottom: 0px;
}

.booklistbookcover {
	width: 4rem;
	height: auto;
	border-radius: 0.5em;
	float: left;
	margin-right: 0.5rem;
	height: 100%;
}

.booklistbookcover img {
	width: 100%;
	height: auto;
	border-radius: 0.5em;
}

.booklistbooktitle {
	padding-top: 0.25rem;
	font-weight: bold;
	float: left;
	color: var(--color-primary);
	font-family: 'Libre Baskerville', Georgia, "Times New Roman", Times, serif;
	width: calc(100% - 6.5rem);
}

.booklistbookauthor {
	float: left;
	color: var(--color-muted);
	font-size: 0.75rem;
	width: calc(100% - 6.5rem);
	font-size: 0.825rem;
}

.booklistcontrolpanel {
	overflow: auto;
	margin-bottom: 0.5rem;
	clear: both;
	background: #fff;
	padding: 0.5rem;
	border-bottom: 1px solid #666;
	border-radius: 0.5em;
}

.booklistselect {
	margin-top: 0px;
	padding: 0.5rem;
	font-size: 0.875rem;
	border: 1px solid var(--color-primary);
	border-radius: 0.5em;
	font-family: 'Inter', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
	color: #fff;
	background-color: var(--color-primary);
	height: 2.5rem;
}

.booklistselect option {
	background-color: #fff;
	color:#333;
}

.booklistselect option:hover {
	background-color: #eee;
}

.bookcontrolpanel {
	margin-top: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.booklistsidebar {
	width: 100%;
	font-family: 'Inter', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
	color: var(--color-muted);
	background-color: var(--color-background);
	text-align: right;
	font-size: 0.875rem;
	margin-top: 1rem;
	background-color: #fff;
	padding: 1rem;
	border-bottom: 1px solid var(--color-muted);
	border-radius: 1rem;
}

.booksharebutton {
	margin-top: 0px;
	background: #fff;
	color: var(--color-primary);
	padding: 0.5rem;
	border-radius: 0.5em;
	border: 1px solid var(--color-primary);
	font-size: 0.875rem;
	cursor: pointer;
	background-color: var(--color-background);
	align-items: center;
	display: inline-flex;
	gap: 0.25rem;
	height: 2.5rem;
}

.booksharebutton:hover {
	background: var(--color-secondary);
	color: #fff;
	border: 1px solid var(--color-secondary);
}

.booksharebutton svg {
	width: 1em;
	height: 1em;
}

.bookfavoritebutton {
	margin-top: 0px;
	background: var(--color-background);
	color: var(--color-primary);
	padding: 0.5rem;
	border-radius: 0.5em;
	font-size: 0.875rem;
	cursor: pointer;
	border: 1px solid var(--color-muted);
	align-items: center;
	display: inline-flex;
	gap: 0.25rem;
	height: 2.5rem;
}

.bookfavoritebutton:hover {
	background: var(--color-secondary);
	color: #fff;
	border: 1px solid var(--color-secondary);
}

.bookfavoritebutton svg {
	width: 1em;
	height: 1em;
}

.bookfavorited {
	background: var(--color-secondary);
	color: #fff;
	border: 1px solid var(--color-secondary);
}

.bookfavorited:hover {
	background: var(--color-primary);
	color: #fff;
	border: 1px solid var(--color-secondary);
}

.mobilelogo {
	display: none;
}

.mobilelogo img {
	height: 3rem;
	width: auto;
	margin-top: 0.5rem;
	margin-left: 4rem;
}

.navbutton {
	padding: 0.75rem;
	font-size: 0.875rem;
	color: var(--color-primary);
	background: var(--color-background);
	margin-bottom: 0.5rem;
	cursor: pointer;
	border-radius: 1rem;
	display: flex;
	align-items: center;
}

.navbutton.active {
	background: var(--color-primary);
	color: #fff;
}	

.navbutton.active:visited {
	background: var(--color-primary);
	color: #fff;
}	

.navbutton:link {
	color: var(--color-primary);
}

.navbutton:hover {
	background: var(--color-primary);
	color: #fff;
	text-decoration: none;
}

.navbutton:visited {
	color: var(--color-primary);
}

.navbutton:visited:hover {
	color: #fff;
}

.searchbar {
	width: 100%;
	padding: 1rem;
	border: 1px solid var(--color-border);
	border-radius: 1em;
	font-family: 'Inter', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
	color: #333;
	background-color: var(--color-background);
	margin-bottom: 1rem;
}

#hero {
	height: 250px;
	/*background: url(/images/lovebooks.webp);*/
	min-width: 18em;
	padding: 1em;
	border: var(--color-border) solid 1px;
	background-size: cover;
	border-radius: 1rem;
	margin-bottom: 1rem;
}

.icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
	margin-right: 0.5em;
}

.profilebox {
	width: 100%;
	padding: 1rem;
	border: 1px solid var(--color-border);
	border-radius: 1em;
	font-family: 'Inter', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
	color: var(--color-muted);
	background-color: var(--color-background);
	align-items: center;
	text-align: center;
	font-size: 1.25rem;
}

.profilebox a {
	text-decoration: none;
}

.profilebox img {
	border-radius: 1rem;
}

.socialmediaicon {
	float: left;
	padding: 0.25em;
}

.subscription {
	margin-top: 1rem; 
	text-align: center; 
	border: 1px solid #fbbed2; 
	background: rgb(255, 240, 255); 
	padding: 0.5em; 
	border-radius: 1rem;
}

.pendingemailnotice {
	border: 1px solid var(--color-secondary); 
	background: var(--color-background); 
	padding: 0.75em 1em; 
	margin-bottom: 1em;
}

/* ------------------------------------------- Overrides ----------------------------------------------- */
input {
	font-size: 1em;
	padding: 0.75em;
	border: 1px solid var(--color-border);
	border-radius: 0.25em;
	font-family: 'Inter', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
	color: #333;
}

select {
	font-size: 1em;
	padding: 0.75em;
	border: 1px solid var(--color-border);
	border-radius: 0.25em;
	font-family: 'Inter', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
	color: var(--color-muted);
}

h1 {
	font-size: 2em;
	font-family:  'Libre Baskerville', 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
	margin-top: 0;
}

h2 {
	font-size: 1.5em;
	font-family: 'Inter', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
	margin-top: 0;
}

h3 {
	font-size: 1.25em;
	font-family:  'Libre Baskerville', 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
	margin-top: 0;
}

label {
	font-weight: bold;
	color: #333;
}

#gdpr-cookie-message {
    z-index: 9999;
}

/* Tablet: right sidebar becomes drawer */
@media (max-width: 1024px) {
    .layout {
        grid-template-columns: minmax(180px, 240px) 1fr;
    }

    .content {
        padding-top: 4rem;
    }

    .hamburger-right {
        display: flex;
    }

    .overlay-right {
        display: block;
    }

    .sidebar-right {
        position: fixed;
        top: 0;
        right: 0;
        width: 260px;
        max-width: 85vw;
        height: 100vh;
        transform: translateX(100%);
        box-shadow: -2px 0 10px rgba(0,0,0,0.15);
    }

    .sidebar-right.open {
        transform: translateX(0);
    }

	.bookinforow {
		flex-direction: column;
	}

	.bookinfodetails {
		margin: 1rem 0 0 0;
		width: 100%;
	}
}

/* Mobile: left sidebar also becomes drawer ---------------------------------------------------------- */
@media (max-width: 640px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .hamburger-left {
        display: flex;
    }

    .overlay-left {
        display: block;
    }

    .sidebar-left {
        position: fixed;
        top: 0;
        left: 0;
        width: 260px;
        max-width: 85vw;
        height: 100vh;
        transform: translateX(-100%);
        box-shadow: 2px 0 10px rgba(0,0,0,0.15);
    }

    .sidebar-left.open {
        transform: translateX(0);
    }

	.mobilelogo {
		display: block;
		height: 0rem;
	}

	.bookinforow {
		flex-direction: column;
	}

	.bookinfodetails {
		margin: 1rem 0 0 0;
		width: 100%;
	}
}