body {
	margin: 0;
	font-family: sans-serif;
	background-color: #000;
	color: #fff;
}

.container {
	display: flex;
	height: 100vh;
	width: 100vw;
	box-sizing: border-box;
}

#sidebar {
	width: 6vw;
	background-color: #111;
	padding: 3px;
	height: 100vh;
	box-sizing: border-box;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}

#sidebar .sidebar-wrapper {
	flex: 1;
	width: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
}

#sidebar ul {
	list-style: none;
	padding: 0;
	margin: auto 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-height: 100%;
	overflow-y: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}


#sidebar ul::-webkit-scrollbar {
	display: none;
}



#sidebar li {
	width: 100%;
	margin: 3px 0;
}

#sidebar a {
	text-decoration: none;
	color: #fff;
	cursor: pointer;
	display: block;
	width: 100%;
	text-align: center;
	padding: 5px 0;
	border-radius: 3px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	transition: all 0.2s ease;
	box-sizing: border-box;
}

#sidebar a:hover {
	background-color: #222;
	border-color: #fff;
	transform: none;
}

#sidebar a.active {
	background-color: #444;
	font-weight: bold;
	border-color: #fff;
}

#sidebar::before,
#sidebar::after {
	content: '▲';
	color: rgba(255, 255, 255, 0.3);
	font-size: 16px;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	pointer-events: none;
	transition: color 0.2s ease;
}

#sidebar::after {
	content: '▼';
	bottom: 5px;
	top: auto;
}

#sidebar.scrollable-top::before {
	color: rgba(255, 255, 255, 0.8);
}

#sidebar.scrollable-bottom::after {
	color: rgba(255, 255, 255, 0.8);
}


#flipcard-container {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	padding: 20px;
	gap: 20px;
	transform: translateX(-3vw);
}


.flipcard {
	width: 35vw;
	max-width: 35vw;
	aspect-ratio: 4 / 5;
	margin: 15px;
	border: 2px solid #ccc;
	position: relative;
	cursor: pointer;
	overflow: hidden;
	font-family: "Garamond", "Georgia", serif;
	font-size: 2rem;
	color: #fff;
	background-color: #000;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: block;
}

.flipcard img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.flipcard .text {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	pointer-events: none;
}

.flipcard .text span {
	display: block;
	line-height: 1.3;
	text-align: center;
	word-break: break-word;
	background: radial-gradient(circle at center, #ffffff 0%, #aaaaaa 30%, #999999 40%, #888888 50%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: text-pulse 2s infinite ease-in-out;
}


@keyframes text-pulse {
	0% {
		filter: brightness(1);
	}

	50% {
		filter: brightness(2);
	}

	100% {
		filter: brightness(1);
	}
}




.flipcard:hover {
	transform: scale(1.05);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
}

.flipcard .page-number {
	position: absolute;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.8);
	background-color: rgba(0, 0, 0, 0.0);
	padding: 2px 5px;
	border-radius: 3px;
}

.flipcard.left .page-number {
	bottom: 5px;
	left: 5px;
}

.flipcard.right .page-number {
	bottom: 5px;
	right: 5px;
}

#media-controls {
	position: fixed;
	bottom: 0.2vw;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 0.2vw;
	background-color: rgba(0, 0, 0, 0.6);
	padding: 0.5vw 1vw;
	border-radius: 0.8vw;
	z-index: 1000;
}

#media-controls button {
	background-color: rgba(255, 255, 255, 0.1);
	color: #fff;
	border: 0.1vw solid rgba(255, 255, 255, 0.3);
	border-radius: 0.5vw;
	padding: 0;
	cursor: pointer;
	width: 3vw;
	height: 2vw;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

#media-controls button svg {
	width: 70%;
	height: 70%;
}

#media-controls button:hover {
	background-color: rgba(255, 255, 255, 0.3);
	color: #000;
	transform: scale(1.05);
}