html, body {
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
}

#single{
	background: transparent;
}

.relate {
	min-height: 20vh;
}

body.night .article{
	background-color: #1d1719;
	background:  #1d1719;
}

body.day .article {
	background-color: #fff;
}

body.night{
	background-color: #222;
}

body.day{
	background-color: #ddd;
}

html, .preview {
	scroll-behavior: smooth;
}
a.wpadmin-entry{
	font-size: 14px; position: absolute; width: 100%; text-align: center; bottom: 30px;
}
a.wpadmin-entry:link {color:#333;}
a.wpadmin-entry:visited {color:#333;}
a.wpadmin-entry:hover {color:#888;}

body.night a.wpadmin-entry:link {color:#ddd;}
body.night a.wpadmin-entry:visited {color:#ddd;}
body.night a.wpadmin-entry:hover {color:#999;}

figure {
	margin-top: 30px;
	margin-bottom: 30px;
}

.wp-block-image {
	margin-top: 30px;
	margin-bottom: 30px;
}

.relate h1 {
	font-size: 30px;
	color: #333;
	line-height: 1.3;
	position: relative;
	font-weight: bold;
}

.glow {
	text-shadow:1px 1px 10px #555, 1px 1px 1px #ccc;
	font-size:48px;
}

#pager {
	text-align: center;
	margin: 70px 0;
	min-width: 70px; height: 70px; 
	position: relative;
	letter-spacing: 1px;
}

#pager :hover{
	letter-spacing: 5px;
	transition: all 3s ease-out;
}

#pager a {
	color: #333;
	border: none;
	font-size: 15px;
	height: 50px !important;
	width: 50px !important;
	background: transparent;
}

body.night #pager a {
	color: #fff;
	background: transparent;
}

.content hr {
	height: 1px;
	width: 90%;
	margin: 30px 0 30px 5%;
	background: linear-gradient(to right, rgba(0, 0, 0, 0), #888, rgba(0, 0, 0, 0));
	border: none;
}

body.night .icon-menu,body.night #container:before {
	background: rgba(0,0,0,.9);
}

body.night .icon-logo {
	color: #000;
}

body.night .content {
	color: white;
	border-left: 2px dashed #ddd; /* Adjust thickness and color as needed */
}

body.day .content {
	color: black;
	border-left: 2px dashed #333; /* Adjust thickness and color as needed */
}

body.night h1, body.night .icon-play, body.night .icon-pause, body.night .icon-images, body.night .subtitle, body.night .else h3 a {
	color: #ddd;
}

body.night img{
	opacity: 0.85;
}

body.night .stuff{
	color: #aaa;
}

body.night .stuff a {
	color: #aaa;
}

body.night .stuff a:hover {
	text-decoration: underline;
}

body.day .stuff a {
	color: #666;
}

body.day .stuff a:hover {
	text-decoration: underline;
}

body.day .relate {
    background-color: #ddd;
}

body.night .relate{
	background-color: #333;
}

body.night .content h1, body.night .content h2, body.night .content h3, body.night .content h4, body.night .content h5, body.night .content h6, body.night .content a{
	color: #ddd;
}

body.night input, body.night textarea{
	background: #444;
	color: #ddd;
}

body.night input:focus, body.night textarea:focus {
	border-color: #fff;
	background: #111;
}

@media screen and (max-width: 900px) {
	body.night .post{
		background-color: #333;
		border-bottom: 1px solid #333;
	}
}

body.night .else h3 + p {
	color: #fff;
}


@media screen and (min-width: 900px) {
	body.night .else{
		border: 1px solid #333;
	}
}

body.night .relate h3 {
	border-bottom: 1px solid #555;
	color: #ccc;
}

body.night .relate h3 a {
	color: #ccc;
}

body.night .relate li {
	border-bottom: 1px solid #555;
	color: #ccc;
}

.relateimg {
	width: 150px;
	height: 150px;
	object-fit: cover;
	object-position: center;
}

body.night #top {
	background: rgba(2, 2, 2, 0.48);
	color: fff;
}

body.night .bar{
	background: rgba(255, 255, 255, .2);
}

body.night .switchmenu svg path,
body.night .image-icon svg path{
	fill: #ddd;
}
body.night .menu a{
	color: white;
}

.wp-block-quote {
	padding-right:40px;
}

/* Music reference widget*/

.song-widget {
	font-family: 'keai';
	display: flex;
	align-items: center;
	border: 1px solid #ddd;
	margin-left: auto;
	margin-right: auto;
	margin-top: 30px;
	margin-bottom: 30px;
	padding: 5px;
	border-radius: 200px;
	width: 300px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	background: #eee;
	position: relative;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	cursor: default;
	transition: transform 0.2s, background 0.2s;
}

body.night .song-widget{
	background: #333;
	color: #fff;
	box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
	border: 1px solid #333;
}

.song-widget:hover {
	background: #fff;
	box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
	transform: scale(1.1);
}

body.night .song-widget:hover {
	background: #000;
	box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
	transform: scale(1.1);
}

.album-cover {
	width: 80px;
	height: 80px;
	margin-top: 10px;
	margin-bottom: 10px;
	margin-right: 0px;
	margin-left: 15px;
	border-radius: 50%;
	border: double;
	border-width: 10px;
	margin-right: 15px;
	flex-shrink: 0;
	animation: spin 40s linear infinite;
}

.album-cover.paused {
	animation-play-state: paused;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.song-details {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}



.song-title, .song-artist {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: center;
}

.song-title {
	font-size: 20px;
	font-weight: bold;
	width: 170px;
	margin-top: -10px;
	margin-bottom: 0px;
	margin-left: -8px;
	margin-right: 0px;
}
.song-artist {
	font-size: 14px;
	margin: 5px 0px 0 -8px;
	width: 170px;
}

/* Add keyframes for scrolling text */
@keyframes scroll {
	0% {
		transform: translateX(0%);
	}
	100% {
		transform: translateX(-50%);
	}
}
.scrolling {
	display: inline-block;
	white-space: nowrap;
	animation: scroll 15s linear infinite;
}
.scrolling-content {
	display: inline-block;
}


/* Index */

#post0 {
	text-align: right;
}

#post0 h2, .else h3, .relate h1{
	animation: halfFadeAnimation ease .5s;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
}

#post0 a {
	color:#fff;
}

.else a,.relate li div a{
	color:#000;
}


body.night .else a, body.night .relate li div a {
	color: #ddd;
}

#post0:hover h2, .relate li:hover h1{
	transition: transform 1s ease;
	animation: growShrink 1s infinite ease-in-out alternate;
	display: inline-block;
}


/* Apply styles when the screen width is less than 900px */
@media (max-width: 899px) {
	.relate li div a, .content, .relate li div p, #pager a, .else h3 + p, #post0 h2 + p {
		font-size: 15px;
	}
	.post:hover {
		box-shadow: 1px 1px 20px 1px #ccc;
	}

	body.night .post:hover {
		box-shadow: 1px 1px 20px 1px #333;
	}

	.post:hover h3{
		transition: transform 1s ease;
		animation: growShrink 1s infinite ease-in-out alternate;
		display: inline-block;
	}

}

/* Apply styles when the screen width is 900px or greater */
@media (min-width: 900px) {
	.else:hover {
		box-shadow: 1px 1px 20px 1px #ccc;
	}
	body.night .else:hover {
		box-shadow: 1px 1px 20px 1px #333;
	}
	
	body.night .else {
		background: #333;
	}
	
	body.day .else {
		background: #fff;
	}
}

.else:hover h3{
	transition: transform 1s ease;
	animation: growShrink 1s infinite ease-in-out alternate;
	display: inline-block;	
}


@-webkit-keyframes glow {
	from {
		text-shadow: 0 0 5px #666, 0 0 10px #666, 0 0 15px #666, 0 0 20px #666, 0 0 25px #666;
	}
	to {
		text-shadow: 0 0 10px #666, 0 0 15px #666, 0 0 20px #666, 0 0 25px #666, 0 0 30px #666;
	}
}

@keyframes glow {
	from {
		text-shadow: 0 0 0px #666, 0 0 10px #666, 0 0 15px #666, 0 0 20px #666, 0 0 25px #666;
	}
	to {
		text-shadow: 0 0 10px #666, 0 0 15px #666, 0 0 20px #666, 0 0 25px #666, 0 0 30px #666;
	}
}


/* Nav & menu */

.menu {
	margin: 10px 0px;
}

.menu-outer {
	padding-top:15px;
	text-align: center;
	margin: auto;
	width:85%;
}

.menu a {
	color: #000;
	letter-spacing: 1px;
	margin-right: 0px;
	transition: all 1s ease-out;
}
.menu a:hover {
	color: #000;
	letter-spacing: 1px;
	padding-right: 0;
	transition: all 5s cubic-bezier(0, 0, 0, 1);
}

.menu a:last-child:hover {
	padding-right: 16px;
}

body.mu li {
	visibility:visible;
}

.menu li {
	text-align: right;
	font-size: 24px;
	font-family: 'keai';
	display: block;
	margin-left:auto;
	white-space: nowrap;
	transform-origin: right;
	visibility:hidden;
}

@media only screen and (max-height: 420px) {
	.menu li{
		display:inline-block;
	}
}

/* Fade in effect */

.fade{
	animation-delay: 5s;
	animation: fadeInAnimation ease 5s;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
}


.delay-fade{
	animation: fadeInAnimation ease 5s;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
}

.half-fade{
	animation: halfFadeAnimation ease .5s;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@keyframes halfFadeAnimation {
	0% {
		opacity: 0.5;
	}
	100% {
		opacity: 1;
	}
}

/* Grow shrink effect */

@keyframes growShrink {
	from {
		transform: scale(1);
	}
	to {
		transform: scale(1.25); 
	}
}

/* Glitch effect*/
.glitch-text{
	animation: glitch 3s steps(100) infinite;
}

@keyframes glitch { 
	0% { text-shadow: 3px 0 0 red, -3px 0 0 #0c33f5; filter: blur(0);}
	1% { text-shadow: 3px 0 0 red, -3px 0 0 #0c33f5; filter: blur(0);}
	2% { text-shadow: 3px 0 0 red, -3px 0 0 #0c33f5; filter: blur(0);}
	3% { text-shadow: 3px 0 0 red, -3px 0 0 #0c33f5; filter: blur(0);}
	4% { text-shadow: 3px 0 0 red, -3px 0 0 #0c33f5; filter: blur(0);}
	5% { text-shadow: -3px 0 0 red, 3px 0 0 #0c33f5; filter: blur(0);}
	6% { text-shadow: -3px 0 0 red, 3px 0 0 #0c33f5; filter: blur(0);}
	7% { text-shadow: -3px 0 0 red, 3px 0 0 #0c33f5; filter: blur(0);}
	8% { text-shadow: -3px 0 0 red, 3px 0 0 #0c33f5; filter: blur(0);}
	9% { text-shadow: -3px 0 0 red, 3px 0 0 #0c33f5; filter: blur(0);}
	10% { text-shadow: -3px 0 0 red, 3px 0 0 #0c33f5; filter: blur(0);}
	11% { text-shadow: 1px 0 0 red, -1px 0 0 lime; filter: blur(0.5px);}
	12% { text-shadow: 1px 0 0 red, -1px 0 0 lime; filter: blur(0.5px);}
	13% { text-shadow: 1px 0 0 red, -1px 0 0 lime; filter: blur(0.5px);}
	14% { text-shadow: 1px 0 0 red, -1px 0 0 lime; filter: blur(0);}
	15% { text-shadow: 1px 0 0 red, -1px 0 0 lime; filter: blur(0);}
	16% { text-shadow: -3px 0 0 red, 3px 0 0 lime; filter: blur(0);}
	17% { text-shadow: -3px 0 0 red, 3px 0 0 lime; filter: blur(0);}
	18% { text-shadow: -3px 0 0 red, 3px 0 0 lime; filter: blur(0);}
	19% { text-shadow: -3px 0 0 red, 3px 0 0 lime; filter: blur(0);}
	20% { text-shadow: -3px 0 0 red, 3px 0 0 lime; filter: blur(0);}
	21% { text-shadow: 0.8px 0 0 #0c33f5, -0.8px 0 0 lime; filter: blur(0);}
	22% { text-shadow: 0.8px 0 0 #0c33f5, -0.8px 0 0 lime; filter: blur(0);}
	23% { text-shadow: 0.8px 0 0 #0c33f5, -0.8px 0 0 lime; filter: blur(0);}
	24% { text-shadow: 0.8px 0 0 #0c33f5, -0.8px 0 0 lime; filter: blur(0);}
	25% { text-shadow: 0.8px 0 0 #0c33f5, -0.8px 0 0 lime; filter: blur(0);}
	26% { text-shadow: 0.8px 0 0 #0c33f5, -0.8px 0 0 lime; filter: blur(0.5px);}
	27% { text-shadow: 0.8px 0 0 #0c33f5, -0.8px 0 0 lime; filter: blur(0.5px);}
	28% { text-shadow: 0.8px 0 0 #0c33f5, -0.8px 0 0 lime; filter: blur(0);}
	29% { text-shadow: 0.8px 0 0 #0c33f5, -0.8px 0 0 lime; filter: blur(0);}
	30% { text-shadow: 0.8px 0 0 #0c33f5, -0.8px 0 0 lime; filter: blur(0);}
	31% { text-shadow: -3px 0 0 #0c33f5, 3px 0 0 lime; filter: blur(0);}
	32% { text-shadow: -3px 0 0 #0c33f5, 3px 0 0 lime; filter: blur(0);}
	33% { text-shadow: -3px 0 0 #0c33f5, 3px 0 0 lime; filter: blur(0);}
	34% { text-shadow: -3px 0 0 #0c33f5, 3px 0 0 lime; filter: blur(0);}
	35% { text-shadow: -3px 0 0 #0c33f5, 3px 0 0 lime; filter: blur(0.5px);}
	36% { text-shadow: -3px 0 0 #0c33f5, 3px 0 0 lime; filter: blur(0.5px);}
	37% { text-shadow: -3px 0 0 #0c33f5, 3px 0 0 lime; filter: blur(0.5px);}
	38% { text-shadow: -3px 0 0 #0c33f5, 3px 0 0 lime; filter: blur(0);}
	39% { text-shadow: -3px 0 0 #0c33f5, 3px 0 0 lime; filter: blur(0);}
	40% { text-shadow: -3px 0 0 #0c33f5, 3px 0 0 lime; filter: blur(0);}
	41% { text-shadow: 45px 0 0 #0c33f5, -45px 0 0 lime; filter: blur(0);}
	42% { text-shadow: 0 0 0 #0c33f5, 0 0 0 lime; filter: blur(0);}
	43% { text-shadow: 1px 0 0 red, -1px 0 0 lime; filter: blur(0);}
	44% { text-shadow: 1px 0 0 red, -1px 0 0 lime; filter: blur(0);}
	45% { text-shadow: 1px 0 0 red, -1px 0 0 lime; filter: blur(0);}
	46% { text-shadow: 1px 0 0 red, -1px 0 0 lime; filter: blur(0.5px);}
	47% { text-shadow: -3px 0 0 red, 3px 0 0 lime; filter: blur(0.5px);}
	48% { text-shadow: -3px 0 0 red, 3px 0 0 lime; filter: blur(0);}
	49% { text-shadow: -3px 0 0 red, 3px 0 0 lime; filter: blur(0);}
	50% { text-shadow: -3px 0 0 red, 3px 0 0 lime; filter: blur(0);}
	51% { text-shadow: 3px 0 0 red, -3px 0 0 #0c33f5; filter: blur(0);}
	52% { text-shadow: 3px 0 0 red, -3px 0 0 #0c33f5; filter: blur(0);}
	53% { text-shadow: 3px 0 0 red, -3px 0 0 #0c33f5; filter: blur(0);}
	54% { text-shadow: 3px 0 0 red, -3px 0 0 #0c33f5; filter: blur(0);}
	55% { text-shadow: 3px 0 0 red, -3px 0 0 #0c33f5; filter: blur(0.5px);}
	56% { text-shadow: -3px 0 0 red, 3px 0 0 #0c33f5; filter: blur(0.5px);}
	57% { text-shadow: -3px 0 0 red, 3px 0 0 #0c33f5; filter: blur(0.5px);}
	58% { text-shadow: -3px 0 0 red, 3px 0 0 #0c33f5; filter: blur(0);}
	59% { text-shadow: -3px 0 0 red, 3px 0 0 #0c33f5; filter: blur(0);}
	60% { text-shadow: -3px 0 0 red, 3px 0 0 #0c33f5; filter: blur(0);}
	61% { text-shadow: 30px 0 0 red, -30px 0 0 lime; filter: blur(0);}
	62% { text-shadow: 0 0 0 red, 0 0 0 lime; filter: blur(0);}
	63% { text-shadow: 1px 0 0 red, -1px 0 0 #0c33f5; filter: blur(0);}
	64% { text-shadow: 1px 0 0 red, -1px 0 0 #0c33f5; filter: blur(0);}
	65% { text-shadow: 1px 0 0 red, -1px 0 0 #0c33f5; filter: blur(0);}
	66% { text-shadow: 1px 0 0 red, -1px 0 0 #0c33f5; filter: blur(0.5px);}
	67% { text-shadow: -3px 0 0 red, 3px 0 0 #0c33f5; filter: blur(0.5px);}
	68% { text-shadow: -3px 0 0 red, 3px 0 0 #0c33f5; filter: blur(0);}
	69% { text-shadow: -3px 0 0 red, 3px 0 0 #0c33f5; filter: blur(0);}
	70% { text-shadow: -3px 0 0 red, 3px 0 0 #0c33f5; filter: blur(0);}
	71% { text-shadow: 50px 0 0 red, -50px 0 0 #0c33f5; filter: blur(0);}
	72% { text-shadow: 0 0 0 red, 0 0 0 #0c33f5; filter: blur(0);}
	73% { text-shadow: 3px 0 0 red, -3px 0 0 #0c33f5; filter: blur(0);}
	74% { text-shadow: 3px 0 0 red, -3px 0 0 #0c33f5; filter: blur(0);}
	75% { text-shadow: 3px 0 0 red, -3px 0 0 #0c33f5; filter: blur(0);}
	76% { text-shadow: 3px 0 0 red, -3px 0 0 #0c33f5; filter: blur(0);}
	77% { text-shadow: -3px 0 0 red, 3px 0 0 #0c33f5; filter: blur(0);}
	78% { text-shadow: -3px 0 0 red, 3px 0 0 #0c33f5; filter: blur(0);}
	79% { text-shadow: -3px 0 0 red, 3px 0 0 #0c33f5; filter: blur(0);}
	80% { text-shadow: -3px 0 0 red, 3px 0 0 #0c33f5; filter: blur(0);}
	81% { text-shadow: 1px 0 0 red, -1px 0 0 lime; filter: blur(0);}
	82% { text-shadow: 1px 0 0 red, -1px 0 0 lime; filter: blur(0);}
	83% { text-shadow: 1px 0 0 red, -1px 0 0 lime; filter: blur(0.5px);}
	84% { text-shadow: 1px 0 0 red, -1px 0 0 lime; filter: blur(0.5px);}
	85% { text-shadow: 1px 0 0 red, -1px 0 0 lime; filter: blur(0.5px);}
	86% { text-shadow: -3px 0 0 red, 3px 0 0 lime; filter: blur(0.5px);}
	87% { text-shadow: -3px 0 0 red, 3px 0 0 lime; filter: blur(0.5px);}
	88% { text-shadow: -3px 0 0 red, 3px 0 0 lime; filter: blur(0);}
	89% { text-shadow: -3px 0 0 red, 3px 0 0 lime; filter: blur(0);}
	90% { text-shadow: -3px 0 0 red, 3px 0 0 lime; filter: blur(0);}
	91% { text-shadow: 60px 0 0 lime, -60px 0 0 #0c33f5; filter: blur(0);}
	92% { text-shadow: 0 0 0 lime, 0 0 0 #0c33f5; filter: blur(0);}
	92% { text-shadow: 0.8px 0 0 #0c33f5, -0.8px 0 0 lime; filter: blur(0);}
	93% { text-shadow: 0.8px 0 0 #0c33f5, -0.8px 0 0 lime; filter: blur(0);}
	94% { text-shadow: 0.8px 0 0 #0c33f5, -0.8px 0 0 lime; filter: blur(0);}
	95% { text-shadow: 0.8px 0 0 #0c33f5, -0.8px 0 0 lime; filter: blur(0);}
	96% { text-shadow: -3px 0 0 #0c33f5, 3px 0 0 lime; filter: blur(0);}
	97% { text-shadow: -3px 0 0 #0c33f5, 3px 0 0 lime; filter: blur(0);}
	98% { text-shadow: -3px 0 0 #0c33f5, 3px 0 0 lime; filter: blur(0);}
	99% { text-shadow: -3px 0 0 #0c33f5, 3px 0 0 lime; filter: blur(0);}
	100% { text-shadow: -3px 0 0 #0c33f5, 3px 0 0 lime; filter: blur(0);} }



/* sliding effect */
@keyframes slideInFromTop {
	from {
		transform: translateY(-100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Style for the div with the animation */
.enter-from-top {
	animation: slideInFromTop 1s ease-out;
	position: relative; /* Ensure the div is positioned relative to its container */
}

.nav {
	position: fixed;
	height: 100%;
	width: 100%;
	opacity: 0;
	top:0;
	z-index: 6666;
	visibility: hidden;
	transition: opacity 0.5s ease-out, visibility 0s 0.5s;
	/* From https://css.glass */
	background: rgba(255, 255, 255, 0.65);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(10.1px);
	-webkit-backdrop-filter: blur(10.1px);
}

body.night .nav {
	/* From https://css.glass */
	background: rgba(0, 0, 0, 0.65);
	box-shadow: 0 4px 30px rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10.1px);
	-webkit-backdrop-filter: blur(10.1px);
}

body.night .scrollbar {
	background: rgb(255,255,255);
}

.switchmenu {
	z-index: 6667 !important;
}

.site-logo{
	transform: translate(0, -20vh);
	transition: transform 2s ease-out;
	transition-delay: 1.0s;
}

body:not(.loading) .site-logo {
	transform: translate(0, 0);
}


body.mu .nav {
	opacity: 1;
	top:0;
	visibility: visible;
	transition: opacity 0.5s ease-out;
}

/* Force relate to display */

.relate {
	display:block!important;
}
.relate ul {
	display:block !important;
}
.relate li {
	display:block !important;
}

.relate h1 {
	display:block;
	padding: 4px 0px;
}

.relate li div a {
	display:block !important;
}

/* Force top on top */
#top {
	position: fixed !important;
	background: rgba(254, 254, 254, 0.48);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(7.7px);
	-webkit-backdrop-filter: blur(7.7px);
	border-bottom: 1px solid rgba(254, 254, 254, 0.3);
}

.subtitle {
	display: inline-block
}

.content {
	margin-top: 20px;	
}

.title {
	margin-top: -2px;
}

.article {
	margin-top: 0px;
	padding-top: 50px;
	min-height: 100dvh;
}

.scrollbar {
	position: absolute;
	height: 2px;
	width: 30px;
	top: 0;
	background-color: #000000;
	-webkit-transition: width .5s ease;
	-moz-transition: width .5s ease;
	transition: width .5s ease;
}

/* Variables */
:root {
	--bubble-color: #000;
}

body.night {
    --bubble-color: #fff;
}

/* Base Button Style */
button {
	font-family: 'keai';
	background: #000;
	border: none;
	border-radius: 2px;
	color: #fff;
	padding: 8px 20px;
	margin: 8px 2px;
	font-size: 16px;
	cursor: pointer;
	position: relative;
	box-shadow: 0px 0px 15px 1px gray;
	transition: transform 0.2s, background 0.2s;
}

/* Hover State */
button:hover {
	background: #000;
	border: none;
	color: #fff;
	box-shadow: 0px 0px 15px 3px gray;
}

/* Active/Pressed State */
body.touch button:hover{
	background: #fff;
	border: none;
	color: #000;
	box-shadow: 0px 0px 15px 5px gray;
	transform: scale(1.03);
}

button:active {
	background: #fff;
	border: none;
	color: #000;
	box-shadow: 0px 0px 15px 5px gray;
	transform: scale(1.03);
}

/* Bubble Effect Styles */
button:before, 
button:after {
	position: absolute;
	content: '';
	display: block;
	width: 140%;
	height: 100%;
	left: -20%;
	z-index: -1000;
	transition: all ease-in-out 0.5s;
	background-repeat: no-repeat;
	display: none;
}

button:before {
	top: -75%;
	background-image:  
		radial-gradient(circle, var(--bubble-color) 20%, transparent 20%),
		radial-gradient(circle, transparent 20%, var(--bubble-color) 20%, transparent 30%),
		radial-gradient(circle, var(--bubble-color) 20%, transparent 20%), 
		radial-gradient(circle, var(--bubble-color) 20%, transparent 20%),
		radial-gradient(circle, transparent 10%, var(--bubble-color) 15%, transparent 20%),
		radial-gradient(circle, var(--bubble-color) 20%, transparent 20%),
		radial-gradient(circle, var(--bubble-color) 20%, transparent 20%),
		radial-gradient(circle, var(--bubble-color) 20%, transparent 20%),
		radial-gradient(circle, var(--bubble-color) 20%, transparent 20%);
	background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%, 10% 10%, 18% 18%;
}

button:after {
	bottom: -75%;
	background-image:  
		radial-gradient(circle, var(--bubble-color) 20%, transparent 20%), 
		radial-gradient(circle, var(--bubble-color) 20%, transparent 20%),
		radial-gradient(circle, transparent 10%, var(--bubble-color) 15%, transparent 20%),
		radial-gradient(circle, var(--bubble-color) 20%, transparent 20%),
		radial-gradient(circle, var(--bubble-color) 20%, transparent 20%),
		radial-gradient(circle, var(--bubble-color) 20%, transparent 20%),
		radial-gradient(circle, var(--bubble-color) 20%, transparent 20%);
	background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 10% 10%, 20% 20%;
}

button.animate:before {
	display: block;
	animation: topBubbles ease-in-out 0.75s forwards;
}

button.animate:after {
	display: block;
	animation: bottomBubbles ease-in-out 0.75s forwards;
}

@keyframes topBubbles {
	0% {
		background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%, 40% 90%, 55% 90%, 70% 90%;
	}
	50% {
		background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%, 50% 50%, 65% 20%, 90% 30%;
	}
	100% {
		background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%, 50% 40%, 65% 10%, 90% 20%;
		background-size: 0% 0%, 0% 0%,  0% 0%,  0% 0%,  0% 0%,  0% 0%;
	}
}

@keyframes bottomBubbles {
	0% {
		background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%, 70% -10%, 70% 0%;
	}
	50% {
		background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%, 105% 0%;
	}
	100% {
		background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%, 110% 10%;
		background-size: 0% 0%, 0% 0%,  0% 0%,  0% 0%,  0% 0%,  0% 0%;
	}
}

/* Music control on main page*/

.bg-music-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 999;
}

.bg-music-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.bg-music-btn:active svg {
    fill: #000;
}

body.touch .bg-music-btn:hover svg{
	fill: #000;
}

.bg-music-btn.playing .play-icon {
    display: none;
}

.bg-music-btn:not(.playing) .pause-icon {
    display: none;
}


textarea{
	min-width:80px;
	resize: vertical;
	width: 90%;
	background: #eee;
	border: 2px solid #222;
	border-radius: 3px;
	padding: 15px 20px;
	font-size: 16px;
	color: #111;
	outline: none;
	transition: border 0.2s, background 0.2s;
}

textarea:focus {
	border-color: #444;
	background: #fff;
}

input{
	height: 15px;
	min-width: 80px;
	width: 50%;
	background: #eee;
	border-radius: 25px;
	padding: 15px 20px;
	font-size: 16px;
	color: #111;
	outline: none;
	transition: border 0.2s, background 0.2s;
}

input:focus{
	border-color: #444;
	background: #fff;
}


select{
	background: #eee; /* Light beige background */
	border: 2px solid #222;
	border-radius: 3px;
	padding: 5px;
	font-size: 16px;
	color: #000000; 
	outline: none;
	transition: border 0.2s, background 0.2s;
}

select:focus {
	border-color: #444;
	background: #fff;
}

body.night select{
	background: #444;
	color: #ddd;
	transition: border 0.2s, background 0.2s;
}

body.night select:focus {
	border-color: #fff;
	background: #111;
}


/* Loading screen container */
.loading_screen {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	opacity: 0; /* Start with opacity 0 */
	visibility: hidden; /* Use visibility instead of display */
}
body.night .loading_screen{
	background: rgb(0,0,0);
	background: linear-gradient(349deg, rgba(0,0,0,1) 0%, rgba(65,65,65,1) 78%, rgba(113,113,113,1) 100%);
}
body.day .loading_screen{
	background: rgb(250, 249, 235);
	background: radial-gradient(circle, rgb(175, 146, 123) 0%, rgb(250, 249, 235) 100%);
	/* 	background: rgb(250,224,235);
	background: radial-gradient(circle, rgba(250,224,235,1) 0%, rgba(222,237,255,1) 100%); */
}
body.loading .loading_screen {
	opacity: 1;
	visibility: visible;
}

/* Loading text */
@media screen and (max-width : 504px)
{
	.loading_text {
		position: fixed;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		color: white;
		font-family: 'keai';
		font-size: 16px;
		z-index: 10000;
		animation: pulse 3s ease-in-out infinite;
		white-space: pre-line;  /* This makes \n work */
		text-align: center;     /* Centers each line */
	}
}

@media screen and (min-width : 504px) and (max-width : 1204px)
{
	.loading_text {
		position: fixed;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		color: black;
		font-family: 'keai';
		font-size: 20px;
		z-index: 10000;
		animation: pulse 3s ease-in-out infinite;
		white-space: pre-line;  /* This makes \n work */
		text-align: center;     /* Centers each line */
	}
}

@media screen and (min-width : 1204px)
{
	.loading_text {
		position: fixed;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		color: black;
		font-family: 'keai';
		font-size: 24px;
		z-index: 10000;
		animation: pulse 3s ease-in-out infinite;
		white-space: pre-line;  /* This makes \n work */
		text-align: center;     /* Centers each line */

	}
}

body.night .loading_text{
	color: white;
}
body.day .loading_text{
	color: white;
}

@keyframes pulse {
	0% { opacity: 0.2; }
	50% { opacity: 0.5; }
	100% { opacity: 0.2; }
}

/* Rain container */
.rain {
	position: absolute;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

/* Individual rain drops */
.rain i {
	position: absolute;
	width: 3px;
	height: 100px;
	background: linear-gradient(transparent, rgba(255,255,255,0.5));
	transform: rotate(20deg);
	opacity:0;
}


@keyframes rain {
	0% {
		transform: rotate(20deg) translateY(-3000%);
		opacity: 0;
	}
	50% {
		opacity: 1;
	}
	100% {
		transform: rotate(20deg) translateY(3000%);
		opacity: 1;
	}
}
.rain i {
	animation: rain linear infinite;
}

body.night .rain i{
	background: linear-gradient(transparent, rgba(255,255,255,0.5));
}

/* Snow container */
.snow {
	position: absolute;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 6;
	pointer-events: none;
}

/* Individual snowflakes */
.snow i {
	position: absolute;
	width: 20px;
	height: 20px;
	background: white;
	border-radius: 50%; /* Make it circular */
	opacity: 0;
	animation: snow linear infinite;
}

@keyframes snow {
	0% {
		transform: translateY(-200%) scale(1);
		opacity: 0;
	}
	30% {
		opacity: 1;
	}
	95% {
		opacity: 0.7 scale(1);
	}
	100% {
		transform: translateY(120vh) scale(0);
		opacity: 0;
	}
}

/* Confetti container */
.confetti {
	position: absolute;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 6;
	pointer-events: none;
}

/* Individual confetti particles */
.confetti i {
	position: absolute;
	width: 10px;
	height: 10px;
	background: red; /* Will be overridden by JS */
	transform: rotate(45deg); /* Diamond shape */
	opacity: 0;
	animation: confettiFall linear infinite;
}

@keyframes confettiFall {
	0% {
		transform: translateY(-100%) rotate(0deg) scale(1);
		opacity: 0;
	}
	5% {
		opacity: 1;
	}
	95% {
		opacity: 1;
		transform:  translate(var(--x-offset, 0px), 180vh) rotate(360deg) scale(1);
	}
	100% {
		transform: translate(var(--x-offset, 0px), 200vh) rotate(720deg) scale(0.8);
		opacity: 0;
	}
}

/* Orbs container */
.orb {
	position: absolute;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

@keyframes orb {
	0% {
		transform: translateY(0) scale(1);
		opacity: 1;
	}
	50% {
		opacity: 0.5 scale(0.6);
	}
	95% {
		opacity: 0.2 scale(0.7);
	}
	100% {
		transform: translate(var(--x-offset, 0px),-200vh) scale(0);
		opacity: 0;
	}
}
.orb i {
	position: absolute;
	width: 20px;
	height: 20px;
	background: radial-gradient(circle, #fff8dc, #fdf5e6);
	border-radius: 50%;
	opacity: 0;
	box-shadow: 
		0 0 8px #fff8dc,
		0 0 16px #fae7b5,
		0 0 24px #ffe4b5,
		0 0 32px #ffdead;
	animation-name: orb;
	animation-timing-function: ease-out;
	animation-fill-mode: forwards;
	transform: translate(var(--x-offset, 0px), 0);
}

/* Hide original loading spinner */
body.loading:before {
	display: none;
}

/* Keep the fade effect for other content */
body.loading #container, 
body.loading #single, 
body.loading .nav {
	opacity: 0;
}

body.loading {
	overflow: hidden;
}


.image-logo {
	z-index: 4;
	position: relative;
	display: block;
	-webkit-background-size: 93px 39px;
	-moz-background-size: 93px 39px;
	background-size: 93px 39px;
	background-repeat: no-repeat;
	background-position: center center;
	width: 93px;
	height: 39px;
	margin-right: 8%; 
	margin-left: auto;
}

.image-logo-display {
	z-index: 4;
	position: relative;
	display: block;
	-webkit-background-size: 93px 39px;
	-moz-background-size: 93px 39px;
	background-size: 93px 39px;
	background-repeat: no-repeat;
	background-position: center center;
	width: 93px;
	height: 39px;
	margin: auto; 
}


html,.preview,.table-container {
	overflow: -moz-scrollbars-none; /* Firefox-specific */
	-ms-overflow-style: none; /* Internet Explorer */
}

body::-webkit-scrollbar,.table-container::-webkit-scrollbar {
	display: none; /* Chrome, Safari, and Edge */
}

.table-container{
	max-height: 66vh; 
	overflow-y: auto; 
	background: rgba(255, 255, 255, 0.2);
	border-radius: 5px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	overflow: -moz-scrollbars-none;
	-ms-overflow-style: none;
	margin: auto;
	transform: scale(0.95);
	transition: transform 0.3s ease;
}

body.night .table-container{
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(0, 0, 0, 0.3);
	box-shadow: 0 4px 30px rgba(255, 255, 255, 0.1);
}

.table-container:hover{
	transform: scale(1.0);
	transition: transform 0.3s ease;
}

span.bubble-user{
	font-size: 12px; 
	font-weight: bold; 
	color: #555;
}
body.night span.bubble-user{
	color: #ddd;
}

.spoiler {
	display:inline;
	background-color:black;
	transition-duration:.5s;
	color: black;
}
.spoiler > *{
	opacity:0%;
}

.spoiler:hover {
	* {
		opacity:100%;
	}
	background-color:transparent;
	transition-duration.5s;
}


body.night .spoiler:hover{
	color: white;
}


.image-icon {
	-webkit-background-size: 0px 0px;
	-moz-background-size: 0px 0px;
	background-size: 0px 0px;
	background-position: center center;
	background-repeat: no-repeat;
	width: 24px;
	height: 24px;
	position: absolute;
	left: 14px;
	top: 14px;
}

.post-password-form {
	background-color: #f5f5f5;
	padding: 20px;
	border: 1px solid #ccc;
	border-radius: 5px;
	width: 70%;
	margin: 0 auto;
	text-align: center;
	transition: transform 0.5s ease;
	@starting-style {
		transform: scale(0);
	}
}

body.night .post-password-form {
	background-color: #333;
	border: 1px solid #000;
}

.post-password-form input[type="password"] {
	height: 15px;
	min-width: 80px;
	max-width: 20%;
	margin: 15px 0px 15px 0px;
	padding: 15px 20px;
	font-size: 16px;
	outline: none;
	transition: border 0.2s, background 0.2s;
}

input[type="password"]:focus{
	border-color: #444;
	background: #fff;
}


.post-password-form button[type="submit"] {
	border: none;
	border-radius: 50%;
	padding: 15px;
	font-size: 15px;
	height: 50px;
	width: 50px;
	font-size: 14px;
}

.image-logo
{
	opacity:0.2;
}

.switchmenu
{
	opacity:1 !important;
}


.icon-letter:before {
	content: "\e60c";
	font-size: 9px;
}

.icon-view, .icon-letter{
	margin-right: 0px !important;
}

.icon-view:before {
	content: "\e60f";
	font-size: 9px;
}

/* lightboxes */
.enlarge-overlay {
	position: fixed;
	top: 0; left: 0;
	width: 0%; height: 0%;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	cursor: zoom-out;
	opacity: 0;
}

.enlarge-overlay.show {
	display: flex;
	opacity: 1;
	width: 100%; height: 100%;
	transition: opacity 0.3s ease;
}

body.day .enlarge-overlay {
	background: rgba(255, 255, 255, 0.65);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(10.1px);
	-webkit-backdrop-filter: blur(10.1px);
}

body.night .enlarge-overlay {
	background: rgba(0, 0, 0, 0.65);
	box-shadow: 0 4px 30px rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10.1px);
	-webkit-backdrop-filter: blur(10.1px);
}

.enlarge-overlay img {
	max-width: 90%;
	max-height: 90%;
	box-shadow: 0 0 20px rgba(255,255,255,0.5);
	transform: scale(0.8);
	transition: transform 0.3s ease, opacity 0.3s ease;
	opacity: 0;
}

.enlarge-overlay.show img {
	transform: scale(1);
	opacity: 1;
}

/* wave */
.wave-separator {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

/* Default styling */
.wave-separator svg {
  display: block;
  width: 100%;
  height: 200px;
  background-color: #1d1719;
}

/* When body has .day class */
body.day .wave-separator svg {
  background-color: #ffffff;
}

body.day .wave-separator svg use {
  fill: #ddd;
}

/* When body has .night class */
body.night .wave-separator svg {
  background-color: #1d1719;
}

body.night .wave-separator svg use {
  fill: #333;
}

@media screen and (max-width: 780px) {
    #vibrant svg {
		display: block;
        transform:translate(35%,0%);
    }
}