@media (prefers-color-scheme: dark) {
    body.ebookPage {
        background-color: #333;
		color: #fff;
    }

	.ebookPage .ebookView .menuBar{
		background: #3b3b3b;
		border-top: 1px solid #4f4f4f;
	}

	.ebookPage .ebookView .thumbnail{
		background: #4f4f4f;
	}

	::-webkit-scrollbar-thumb {
		background: #eaeaea; 
		border-radius: 3px;
	}
	  
	::-webkit-scrollbar-thumb:hover {
		background: #fff; 
	}

	.ebookPage .ebookView .ebook{
		background: #3b3b3b;
	}

	.ebookPage .ebookView .menuBar .menu input{
		background: #4f4f4f;
		color: #fff;
	}

	.ebookPage .ebookView .ebook .navigator{
		background: rgb(48 48 48 / 70%);
	}
}

@media (prefers-color-scheme: light) {
    body.ebookPage {
        background-color: #e6e6e6;
		color: #333;
    }

	.ebookPage .ebookView .menuBar{
		background: #f7f7f7;
		border-top: 1px solid #bebebe;
	}

	.ebookPage .ebookView .thumbnail{
		background: #fff;
	}

	::-webkit-scrollbar-thumb {
		background: #eaeaea; 
		border-radius: 3px;
	}
	  
	::-webkit-scrollbar-thumb:hover {
		background: #fff; 
	}

	.ebookPage .ebookView .ebook{
		background: #e6e6e6;
	}

	.ebookPage .ebookView .menuBar .menu input{
		background: #fff;
		color: #333;
	}

	.ebookPage .ebookView .ebook .navigator{
		background: rgb(218 218 218 / 70%);
	}
}

@viewport {
    zoom: 1.0;
    min-zoom: 1.0;
    max-zoom: 1.0;
}

body.ebookPage{
    padding: 0;
    margin: 0;
    width: 100vw;
    height: 100vh;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ebookPage img{
	box-sizing: border-box;
}

div{
	box-sizing: border-box;
}

.ebookPage .ebookView{
	max-width: 100%;
	max-height: 100%;
	min-width: 100%;
	min-height: 100%;
	overflow: hidden;
}

.ebookPage .mainContainer{
	height: calc(100vh - 40px);
}

.ebookPage .ebookView .thumbnail{
	min-width: 250px;
}

.ebookPage .ebookView .ebook{
	height: calc(100vh - 40px);
	width: 100%;
	padding: 15px;
    overflow: auto;
	position: relative;
}

.ebookPage .ebookView .ebook .navigator{
	position: absolute;
	top: calc(100% / 2 - 35px);
	transition: all .5s;
	cursor: pointer;
	z-index: 2;
	padding: 25px 10px;
	display: flex;
}

.ebookPage .ebookView .ebook .navigator.back{
	left: 0;
}

.ebookPage .ebookView .ebook .navigator.next{
	right: 0;
}

.ebookPage .ebookView .ebook .navigator.disabled{
	opacity: .2;
}

.ebookPage .ebookView .menuBar{
	height: 40px;
	display: flex;
	justify-content: space-between;
	padding: 0 20px;
	font-size: 13px;
}

.ebookPage .ebookView .menuBar .menu{
	display: flex;
	flex-direction: column;
	justify-content: center;
	cursor: pointer;
	user-select: none;
}

.ebookPage .ebookView .menuBar .menu input{
	text-align: center;
    border: none;
    max-width: 60px;
}

.ebookPage .ebook{
	display: flex;
}

.ebookPage .ebook img{
	max-width: 100%;
	max-height: 100%;
	margin: auto;
    cursor: grab;
    background-color: #fff;
}

.ebookPage .ebook .image {
	max-width: 100%;
	max-height: 100%;
	width: fit-content;
	height: fit-content;
	margin: auto;
    cursor: grab;
    /* background-color: #fff; */
}

.ebookPage .ebook .image svg{
	width: 100%;
	height: 100%;
	margin: auto;
    cursor: grab;
    background-color: #fff;
}

.ebookPage .thumbnail{
	display: flex;
	flex-direction: column;
	gap: 10px;
	overflow-y: auto;
	height: calc(100vh - 40px);
	max-height: calc(100vh - 40px);
}

.ebookPage .thumbnail .thumbnailCard{
	padding: 10px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 10px;
	cursor: default;
	opacity: .5;
	transition: all .3s;
	font-size: 13px;
}

.ebookPage .thumbnail .thumbnailCard:hover{
	opacity: 1;
}

.ebookPage .thumbnail .thumbnailCard img{
	max-width: 100%;
	max-height: 200px;
	opacity: .5;
	transition: all .3s;
	box-shadow: 0px 0px 2px 1px #707070;
}

::-webkit-scrollbar{
	width: 5px;
	height: 5px;
}

.ebookPage .thumbnail .thumbnailCard.highlight{
	opacity: 1;
}

.ebookPage .thumbnail .thumbnailCard.highlight img{
	border: 5px solid #00d5ff;
	opacity: 1;
}

.ebookPage .container{
	max-width: 95vw;
	margin: auto;
	min-height: 100px;
	padding: 20px;
	display: flex;
	/* align-items: flex-start; */
}

.ebookPage .container .filterContainer{
	width: 25%;
	background: #b23431;
	min-height: 100px;
	padding: 20px;
}

.ebookPage .container .filterContainer .button{
	padding: 0 10px;
    width: 70px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: #fff;
    background: #d3aa8a;
    border-radius: 3px;
	cursor: pointer;
}

.ebookPage .container .filterContainer .search{
	width: calc(100% - 70px);
}

.ebookPage .container .filterContainer .search input{
	background: #fff;
    border: 1px solid #ebeced;
    padding: 10px;
    width: 100%;
    border-radius: 3px;
    font-size: 23px;
    padding: 5px 15px;
    font-family: 'Sarabun', sans-serif;
}

.ebookPage .container .content{
	width: 100%;
    min-height: 100px;
    display: flex;
    gap: 10px;
    padding-left: 10px;
    flex-wrap: wrap;
}

.ebookPage .ebookCard{
	width: calc(100% / 4 - 8px);
	text-align: center;
    background: #fff;
	display: flex;
    flex-direction: column;
    gap: 10px;
	padding-bottom: 5px;
	transition: all .3s;
	cursor: pointer;
}

.ebookPage .ebookCard:hover{
	box-shadow: 0px 0px 24px 0px rgb(0 0 0 / 19%);
}

.ebookPage .ebookCard img{
	max-width: 100%;
    object-fit: contain;
	aspect-ratio: 1;
}

.ebookPage .ebookCard .title{
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0px;
    word-spacing: 0.1em;
	color: #BD2527;
}

.ebookPage .ebookCard .title a{
    text-decoration: unset;
	color: unset;
}

.ebookPage .artType{
	display: flex;
    gap: 10px;
    font-weight: bold;
    font-family: "Sarabun", Sans-serif;
    font-size: 24px;
    color: #fff;
}

.ebookPage .ebookCard .footer .artType{
	font-family: "Sarabun", Sans-serif;
    font-size: 23px;
    font-weight: 300;
    letter-spacing: 0px;
    word-spacing: 0.1em;
	color: #A7A9AC;
	display: block;
}

.ebookPage .title{
	text-align: center;
	font-size: 1.3rem;
	color: #fff;
}

.ebookPage .artType input{
	cursor: pointer;
}

.ebookPage .artType label{
	user-select: none;
	cursor: pointer;
}

@media only screen and (max-width: 600px) {
	.ebookPage .menuBar{
		position: fixed;
		bottom: 0;
		width: 100%;
	}

	.ebookPage .ebookView .ebook .navigator{
		top: calc(100% / 2 - 25px);
		padding: 15px 5px;
	}
}