/* If you see this I'm sorry. I have no clue what I'm doing */

@font-face {
	font-family: "Linux Libertine";
	src: url(fonts/LinLibertine_R.otf);
}

:root {
	--main-links: rgb(85, 85, 85);
	--external-links: rgb(48, 48, 48);
	--background-light: rgb(255, 255, 255);
	--text-light: rgb(0, 0, 0);

	--main-links-default: var(--main-links);
	--external-links-default: var(--external-links);
	--background-default: var(--background-light);
	--text-default: var(--text-light);

	/* Probably never happening */

	--main-links-dark: rgb(194, 194, 194);
	--external-links-dark: rgb(85, 85, 85);
	--background-dark: rgb(0, 0, 0);
	--text-dark: rgb(255, 255, 255);
}

body.dark-mode {
	--main-links-default: var(--main-links-dark);
	--external-links-default: var(--external-links-dark);
	--background-default: var(--background-dark);
	--text-default: var(--text-dark);
}

/* ! External */

.melonLink img {
	width: 300px;
	height: 30px;
	border-radius: 0px;
}
.melonLink {
	border-radius: 0px;
}

.listening {
	display: flex;
	width: 176px;
	height: 80px;
	font-size: 0.8em;
	gap: 7px;
	align-items: center;
	text-align: left;
}

.now-playing-container {
	font-size: 1.1em;
}

#statuscafe {
	padding-top: 1em;
}
#statuscafe-username {
	margin-bottom: 0.5em;
	font-size: 1em;
}
#statuscafe-content {
	min-width: 100%;

	margin-left: 1px;
	font-size: 1em;
	max-height: 55px;
	overflow-x: scroll;
}

/* ! Main */

html,
body {
	scrollbar-width: thin;
	font-family: "Times New Roman", Times, serif;
	width: 98dvw;
}

body {
	color: var(--text-default);
	background-color: var(--background-default);
}

/*! Filters*/
.grayscale {
	filter: grayscale(100%) contrast(1);
	&:hover {
		filter: none;
		transition: 100ms ease-in;
	}
}

.blur {
	filter: blur(5px);
	&:hover {
		filter: none;
		transition: 100ms ease-in;
	}
}

.pixelate img {
	image-rendering: pixelated;
}

/* ! About */

.about .row-column {
	padding-right: 0;
	flex-wrap: wrap;
}
.about {
	details {
		margin-top: 20px;
		width: 59ch;
		margin-bottom: 20px;
	}
	.fellows {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: left;
		gap: 10px;
		img {
			max-width: 70px;
			border: 1px dotted black;
		}
	}
}
.right-column {
	display: flex;
	justify-content: left;
	align-items: left;
	flex-direction: column;
	gap: 0.5em;
	width: 180px;
	max-width: 180px;

	textarea {
		white-space: wrap;
		min-width: 170px;
		max-width: 170px;
		height: 40px;
		max-height: 170px;
		resize: vertical;
	}

	details {
		margin-top: 0px;
		margin-bottom: 3px;
		cursor: pointer;
	}
}

.right-box {
	.quizzes {
		display: flex;
		flex-direction: column;
		scrollbar-width: none;
		gap: 5px;
		max-height: 90%;
		overflow-x: scroll;
		max-width: 300px;
		img {
			max-width: 280px;
			width: 20em;
			image-rendering: auto;
		}
	}
}

.photo img {
	max-width: 180px;
	object-fit: cover;
}

.credits {
	font-size: 1.1em;
	a {
		font-size: 1.1em;
	}
	p {
		font-size: 1em;
		margin: 0;
	}
}

figure {
	margin-left: 0;
}

.updates {
	overflow-x: scroll;
	overscroll-behavior: none;
	height: 13rem;
	ul {
		line-height: 1.5em;
		padding-bottom: 15px;
		padding-left: 30px;
		padding-right: 20px;
		border-bottom: 1px dotted rgb(129, 129, 129);
	}
	li {
		margin-bottom: 5px;
	}
	.webring {
		margin: 0 auto;
	}
	h4 {
		padding-left: 20px;
	}
	summary {
		margin-bottom: 10px;
	}
}
.about {
	float: left;
	margin-right: 50px;
}
footer {
	display: flex;
	flex-direction: row;
	gap: 4px;
	position: absolute;
	bottom: 0px;

	p {
		font-size: 0.8em;
	}
	p:not(:first-child)::before {
		display: inline-block;
		margin: 0 3px;
		content: "- ";
	}
	p:not(:last-of-type) {
		margin-right: 0px;
	}
}

/* ! Buttons */
.buttons {
	display: flex;
	flex-wrap: wrap;
	column-count: 2;
	gap: 4px;
	min-width: 180px;
	max-width: 180px;

	margin-bottom: 10px;
	scrollbar-width: none;
	img {
		width: 88px;
		height: 31px;
	}
}

.neighbours {
	height: calc(39px * 6);
	max-height: calc(100% - 42px);
	overflow-y: scroll;
	overflow-x: hidden;
	scrollbar-width: none;
}

.nobutton {
	display: inline-block;
	vertical-align: middle;
	text-align: center;
	min-width: 88px;
	min-height: 31px;
	max-width: 88px;
	max-height: 31px;
	text-decoration: underline dotted;
	font-size: 0.9em;
}

.mybuttons {
	width: 176px;
	margin-bottom: 0 !important;
	padding: 0 !important;
	column-count: 2;
}

::selection {
	color: #fff;
	background-color: rgb(122, 122, 122);
}
a:hover {
	text-decoration: none;
}
a {
	color: var(--main-links-default);
}
p {
	font-size: 1.2em;
	max-width: 62ch;
}
.button {
	display: block;
	align-self: center;
	width: 88px;
	height: 31px;
}

/* ! Header */
header {
	display: flex;
	flex-wrap: nowrap;
	width: 95%;
	height: 50px;
	position: absolute;
	z-index: 2;
	/* padding-top: 2px; */
	align-items: center;

	.button {
		margin-top: 0;
		padding-top: 0;
		padding-bottom: 0;
		padding-left: 2vw;
		padding-right: 2vw;
	}
}

nav {
	height: fit-content;
	padding-top: 0.5em;
	padding-right: 3em;
	line-height: 1.5em;
	user-select: none;

	label.tab:not(:last-of-type) {
		margin-right: 1vw;
	}

	label.tab:first-of-type {
		margin-left: 0vw;
	}

	label.tab {
		font-size: 20px;
		text-decoration: none;
		color: var(--main-links-default);
		cursor: pointer;
	}

	a {
		font-size: 20px;
		text-decoration: none;
	}

	span.external a:not(:last-of-type) {
		margin-right: 1vw;
	}

	a:first-of-type {
		margin-left: 1vw;
	}
	span.external a {
		color: var(--external-links-default);
	}
}

#navmenu {
	display: none;
	margin-left: auto;
	user-select: none;
	width: fit-content;
	summary {
		font-size: 3em;
		cursor: pointer;
	}
	summary::marker {
		content: "≡";
	}
	div {
		position: absolute;
		top: 1em;
		right: 0;
		margin: 1em 0em 1em 1em;
		background-color: var(--background-default);
		border: 2px dotted var(--main-links-default);
		z-index: 2;
		font-size: 1.5em;
		padding: 0 1em;
	}
	ul {
		list-style: none;
		padding: 0;
		margin: 0.5em 0;
		line-height: 1.5em;
	}

	label.tab {
		text-decoration: none;
		color: var(--main-links-default);
		cursor: pointer;
	}
	a {
		text-decoration: none;
	}
	a:hover {
		text-decoration: underline;
	}
}

/* ! Sections */

.tab section {
	padding-top: calc(2.4em + 1vw);
	padding-right: 0dvw;
	padding-bottom: 1dvw;
	padding-left: 5dvw;
	position: absolute;
	min-height: 90dvh;
	width: 90dvw;
}

input.tab section {
	display: none;
}

input.tab:not(:checked) + section {
	display: none;
}

input.tab {
	display: none;
}

.weblistcontainer {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 2em;
}

.webrings {
	max-width: 300px;
	width: 51svw;
	margin-right: 50px;
	margin-left: 10px;
}
.webringcontainer {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	flex-wrap: wrap;
	gap: 9px;
}
.fanlistings {
	width: 50%;
}
.fanlistingcontainer {
	width: 300px;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 5px;
}

.mylinks {
	line-height: 1.6em;
	a {
		font-size: 18px;
	}
}

.uses {
	width: 90%;
	li {
		font-size: 1.2em;
	}
	h3 > span {
		font-weight: 500;
	}
}

.useslist {
	font-size: 1.2em;
	line-height: 1.6em;
	a {
		margin-bottom: 10px;
	}
	p {
		font-size: 0.9em;
		line-height: 1.6em;
		margin-top: 0;
		margin-bottom: 10px;
		text-indent: 7px;
	}
}

.joined p {
	width: 90%;
}

/* ! Table */
.row-column {
	display: flex;
	flex-direction: row;
	padding-right: 20px;
}

.listboxcontainer {
	display: flex;
	flex-direction: column;
	gap: 7px;
	flex-wrap: nowrap;
	max-width: 300px;
	&:first-of-type {
		margin-right: 1em;
	}
}

.listbox {
	padding: 0.5em;
	padding-right: 0em;
	padding-left: 0;
	line-height: 22px;
	margin-right: 3%;
	font-size: 1.1em;
	text-align: left;

	h3 {
		margin-top: 0;
	}
}

/* ! Guestbook */
.guest {
	position: relative;
	top: 3em;

	iframe {
		display: block;
		border: none;
		width: 70%;
		height: 800px;
		overflow-x: auto;
		scrollbar-width: none;
	}
}

/* ! Responsiveness */

@media screen and (max-width: 500px) {
	.guest iframe {
		width: 300px;
		margin: 0 auto;
	}
	footer p {
		font-size: 0.6em;
	}
}

@media screen and (max-width: 530px) {
	.listboxcontainer {
		flex-wrap: wrap;
		width: 75svw;
		max-width: 75svw;
	}
	.row-column {
		flex-direction: column;
	}
}

@media screen and (max-width: 750px) {
	.home {
		.about {
			width: 50%;
		}
	}
}

@media screen and (max-width: 630px) {
	nav {
		display: none;
	}
	#navmenu {
		display: block;
	}
}

@media screen and (max-width: 550px) {
	.about {
		width: 90% !important;
	}

	header {
		.button {
			padding-left: 5svw;
		}
	}

	.mybuttons,
	span,
	#statuscafe {
		align-self: baseline;
	}

	#statuscafe {
		width: 70svw;
	}

	.me {
		display: none;
	}
	details,
	.updates {
		width: 85svw;
	}

	.row-column {
		flex-direction: column;
	}

	.right-column {
		justify-content: center;
		align-items: center;
		flex-direction: column;
		max-width: 100svw;
		width: 80svw;
		.buttons {
			min-width: 85svw !important;
			padding-left: 1.5em;
		}
		.photo {
			align-self: baseline;
			margin-bottom: 3em;
		}
	}
	nav {
		padding-left: 5svw;
		line-height: 1.6em;
		padding-top: 10px;
		padding-right: 2svw;
	}
}
