/************/
/* DOCUMENT */
/************/

:root {
	--blue: 84, 167, 240;
    --lightblue: 189, 224, 254;
	--darkblue: 40, 88, 123;
    --pink: 253, 212, 255;
	--purple: 192, 167, 232;
}

html {
	background-image: url("/design/bg-panel.png");
	animation: BgScroll 60s linear infinite;
	cursor: url("/design/cursor.png") 1 1, auto;
}

ul {
	list-style: none;
}

@keyframes BgScroll {
	0% {
		background-position-x: 0%;
		background-position-y: 0%;
	}

	100% {
		background-position-x: 100%;
		background-position-y: 100%;
	}
}

body {
    height: 800px;
    max-width: 1000px;
	position: relative;
    margin: 40px auto;
	display: grid;
	grid-template-rows: 100%;
	background-color: rgba(var(--lightblue), 0.1);
	position: relative;
	font-family: Helvetica, Arial, sans-serif;
}

body::before {
	content: "";
	height: 100%;
	width: 100%;
	border-image: url("/design/index-border.png");
	border-image-slice: 59 59 59 59;
	border-image-width: 59px 59px 59px 59px;
	border-image-outset: 24px 35px 24px 35px;
	border-image-repeat: round round;
	position: absolute;
	z-index: 2;
	pointer-events: none;
}

body::after {
	content: "";
	position: absolute;
	height: 100%;
	width: 100%;
	background-image: url("/design/bg-panel2.png");
	z-index: -1;
}

/*********/
/* INDEX */
/*********/

.index-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto 100px;
	grid-template-areas:
		"owl main"
		"links boring";
}

.main {
	max-height: 100%;
	display: grid;
	padding-right: 50px;
	grid-template-rows: 1fr 1fr;
	grid-area: main;
	z-index: 1;
}

header {
	display: flex;
	align-items: center;
	justify-content: center;
	background-image: url("/design/welcome.png");
	background-position: 50%;
	background-repeat: no-repeat;
	filter: drop-shadow(1px 1px 0px rgba(var(--blue)))
}

.sites {
	display: grid;
	grid-template-rows: 100px 90px 60px 60px;
	gap: 10px;
	justify-items: center;
	align-items: center;
}

.site-sprite {
	width: 100%;
	background-image: url("/design/sitesprites.png");
	background-size: 100%;
	background-repeat: no-repeat;
}

.site-link {
	
}

.site-link:hover {
	scale: 1.02;
	filter: brightness(1.05);
}

.site-link:active {
	scale: 1;
	filter: contrast(1.05);
}

.comix {
	background-position: 0 53.254438%;
	background-size: 177.71261%;
	height: 100px;
}

.comix-anim {
	background-position: 0 80.670611%;
	transform: translateY(-5px);
}

.gamer-diaries {
	background-position: 0 0%;
	background-size: 100%;
	height: 90px;
}

.gd-anim {
	background-position: 0 26.418787%;
	transform: translateY(-5px);
}

.owls-well {
	background-position: 0 100%;
	background-size: 226.119403%;
	height: 60px;
}

.ow-anim {
	transform: translateY(-5px);
}

.badworld {
	background-image: url("/design/badworld.png");
	height: 60px;
	width: 200px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: 50% 50%;
}

.bw-anim {
	transform: translateY(-5px);
}

.coming-soon {
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: Courier, monospace;
	font-style: italic;
	grid-area: r3c2;
	display: none;
}

.boring {
	display: grid;
	grid-template-columns: repeat(3, auto);
	grid-area: boring;
	padding-right: 50px;
	align-items: center;
	justify-items: center;
	z-index: 1;
}

.boringpage {
	text-decoration: none;
	color: rgba(var(--darkblue));
	text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.1);
	font-family: Courier, monospace;
	font-weight: bold;
	font-size: 18px;
}

.boringpage:hover {
	filter: brightness(1.5);
}

.boringpage:active {
	filter:brightness(0.9);
}

.owl {
	grid-area: owl;
	width: 355px;
	height: 620px;
	position: relative;
	left: 75px;
	top: 40px;
	background-image: url("/design/owlsprites.png");
	background-size: 100%;
	background-repeat: no-repeat;
	image-rendering: pixelated;
	animation: OwlFloat 7s ease-in-out infinite;
	z-index: 0;
}

.chirpbox {
	position: absolute;
	height: 250px;
	width: 250px;
	left: 25%;
	top: 5%;
}

.post-click {
	position: relative;
	top: 60%;
	right: 40%;
}

.postbox {
	position: relative;
	border: 1px solid red;
	color: rgba(var(--darkblue));
	width: 300px;
	font-weight: bold;
	top: 100%;
	right: 25%;
	border-image-slice: 27 27 27 27 fill;
	border-image-width: 40px 40px 40px 40px;
	border-image-outset: 8px 20px 8px 20px;
	border-image-repeat: round round;
	border-image-source: url("/design/post-border1.png");
	white-space: pre-line;
}

.postbox-anim {
	border-image-source: url("/design/post-border2.png");
}

.postbox::after {
	content: "";
	position: absolute;
	top: -70px;
	right: 80%;
	height: 40px;
	width: 40px;
	background-image: url("/design/speech-spike.png");
	background-repeat: no-repeat;
	border: 20px solid transparent;
	z-index: -1;
}

.post-info {
	white-space: initial;
	display: flex;
	justify-content: space-between;
	font-weight: normal;
	font-size: 0.8em;
}

.post-date {
	font-style: italic;
}

.post-link {
	text-decoration: underline;
}

.hidden {
	visibility: hidden;
}

@keyframes OwlFloat {
	0%, 100% {
	  transform: translateY(0px);
	}
	50% {
	  transform: translateY(50px);
	}
  }


.links {
	grid-area: links;
	display: grid;
	grid-template-columns: repeat(5, max-content);
	align-items: center;
	padding: 10px;
	margin-left: 40px;
	gap: 10px;
	z-index: 1;
}

.link {
	height: 30px;
	width: 30px;
	background-size: contain;
	background-position: 50%;
}

.badge {
	image-rendering: pixelated;
}

.bluesky {
	background-image: url("/design/bluesky.png");
}

.rss {
	background-image: url("/design/rss.png");
}

.mail {
	background-image: url("/design/mail.png");
}

/*******************/
/***** CREDITS *****/
/*******************/

.credits-container,
.changelog-container {
	font-family: Helvetica, Arial, sans-serif;
	display: grid;
	padding: 50px 70px;
	font-weight: bold;
	text-align: right;
	justify-content: end;
	color: rgba(var(--darkblue));
	position: relative;
}

.credits-label,
.changelog-label {
	position: absolute;
	background-size: 100%;
	background-repeat: no-repeat;
	height: 73px;
	width: 190px;
	top: 100px;
	left: 100px;
}

.credits-label {
	background-image: url("/design/credits.png");
}

.changelog-label {
	background-image: url("/design/changelog.png");
}

.credits-li {
	width: auto;
}

.credits-ul > li {
	margin-bottom: 20px;
}

li ul {
	font-size: 0.8em;
	margin-top: 10px;
}

.changelog-ul,
.credits-ul {
	overflow-y: scroll;
	padding-right: 30px;
	max-width: 500px;
}

ul a {
	color: rgb(84, 84, 255);
	text-decoration: underline;
}

.changeday {
	margin: 10px 0px;
}

.change-date {
	font-size: 0.8em;
	font-style: italic;
}

.change {
	font-weight: normal;
	margin: 3px 0px;
}

.change::before {
	content: "‣ ";
}

.go-back {
	position: absolute;
	max-width: 100%;
	background-size: 100%;
	background-position: 0 0%;
	background-image: url("/design/backsprites.png");
	bottom: 0px;
	left: 20px;
	height: 175px;
	width: 200px;
}

.go-back:hover {
	background-position: 0 100%;
}

/*******/
/* 404 */
/*******/

.fourohfour {
	margin: auto auto;
	text-align: center;
	font-family: Courier, Helvetica, sans-serif;
	font-weight: bold;
}

.fourohfour h1 {
	font-size: 3em;
	margin: 20px;
}

.fourohfour div {
	font-size: 1.4em;
	margin: 5px;
}

.fourohfour a {
	color: green;
}

/****************************/
/****************************/
/********** MOBILE **********/
/****************************/
/****************************/

@media (max-width: 1000px) {

	html {
		background-image: url("/design/bg-panel2.png");
	}

	body {
		margin: 0;
		height: 100vh;
		background-color: rgba(var(--lightblue), 0.0);
	}

	body::before {
		border-image: none;
	}

	body::after {
		background-image: none;
	}

	.index-grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto;
		grid-template-areas:
			"main"
			"boring"
			"owl"
			"links";
		align-content: space-between;
	}

	.main {
		padding: 0;
		grid-template-rows: 250px auto;
	}

	.sites {
		width: 400px;
		margin: 0 auto;
		row-gap: 10px;
	}

	.boring {
		margin: 30px 0px;
		padding: 0px;
	}

	.owl {
		top: 0px;
		left: 0px;
		margin: 0 auto;
		background-size: 100%;
		width: calc(161px);
		height: calc(282px);
	}

	.chirpbox {
		left: 20%;
		height: 125px;
		width: 125px;
	}

	.post-click {
		width: 80px;
		top: 50%;
		right: 60%;
	}

	.postbox {
		right: 80%;
	}

	.postbox::after {
		right: 70%;
	}

	.links {
		margin: 20px auto;
		opacity: 0.5;
	}

	.credits-container,
	.changelog-container {
		padding: 30px 20px;
	}

	.credits-label,
	.changelog-label {
		top: 20px;
		left: 30px;
	}

	.credits-ul,
	.changelog-ul {
		margin-top: 100px;
	}

	.changelog-ul {
		padding-bottom: 100px;
		padding-right: 20px;
	}

}
