* {
	box-sizing: border-box;
	list-style-position: inside;
}

:root {
	--fonts: gaegu-r, ms pgothic, arial;
	--d-blue: #5d92d8;
	--red: #d05874;
	--green: #c5f0af;
	--yellow: #ecc54f;
	--pink: #f47cc4;
}

html {
	scrollbar-color: #b3ec96 #c4d85d;
}

body {
	background: url("./images/bggrid-transp.png");
	background-color: rgb(247, 251, 221);
	margin: 0;
	margin-top: 50px;
	color: #916b40;
	font-size: 17px;
	line-height: 20px;
	font-family: var(--fonts);
}

h2,
h3,
h4 {
	font-family: pixelhandwriting;
}

a {
	color: rgb(206, 102, 120);
	font-weight: bold;
}

.outlink::after {
	text-decoration: none;
	content: "↗";
	padding-left: 2px;
	vertical-align: text-bottom;
}

#wrapper {
	position: relative;
	display: grid;
	max-width: 1050px;
	margin: auto;
	grid-template-areas:
		"header header header"
		"navi intro music"
		"navi intro music"
		"navi notepad updates"
		"footer footer pic";
	grid-template-columns: 200px 500px 300px;
	grid-template-rows: 60px 300px 250px 360px;
	grid-gap: 20px;
}

.box {
	position: relative;
	border-radius: 10px;
	border: 1px dashed var(--d-blue);
	padding: 10px;
	overflow: auto;
}

dialog {
	color: inherit;
	border: 2px dashed;
	background: white;

	button {
		color: black;
		cursor: help;
		font-family: inherit;
		text-align: right;
		background: transparent;
		border: none;
		margin: 0px 15px;
		font-size: inherit;
		border-radius: 10px;
	}
}

dialog::backdrop {
	background: rgba(0, 0, 0, 0.525);
}

#close-dialog {
	color: #d05874;
	font-size: 25px;
	float: right;
}

#dialog-disagree {
	color: white;
	background: var(--red);
	float: right;
}

#dialog-disagree:hover {
	background: white;
	color: var(--red);
}

#dialog-agree {
	float: left;
	color: white;
	background-color: #76ae76;
}

#dialog-agree:hover {
	float: left;
	background: white;
	color: #76ae76;
}

header {
	background-size: cover;
	background-position: top;
	grid-area: header;
	text-align: center;
	transition-duration: 0.5s;

	h1 {
		background: linear-gradient(to right, #ffef86, #f8f9a3, #bbf9a0, #81ff81);
		background-clip: border-box;
		-webkit-background-clip: text;
		-webkit-text-fill-color: transparent;
		line-height: normal;
		margin: 0px;
		font-weight: normal;
		font-size: 55px;
		font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
		letter-spacing: 5px;
		word-spacing: 5px;
		transition-duration: 1s;
		text-shadow:white
	}

	h1:hover {
		background: linear-gradient(to left, #81ff81, #bbf9a0, #f8f9a3, #ffef86);
		background-clip: border-box;
		-webkit-background-clip: text;
		-webkit-text-fill-color: transparent;
		text-shadow: white
	}
}

main#intro {
	box-shadow: 0px 0px 20px 0px var(--green);
	margin-top: 30px;
	height: 340px;
    width: auto;
	background-image: url(./images/yellow-memopad.jpg);
	background-color: rgb(255, 255, 255);
	background-size: cover;
	grid-area: intro;
	border: 2px solid rgb(99, 180, 107);
	line-height: 26px;
	font-size: 18px;
	scrollbar-color: #a3eba9 #dcf4b5;
	transition-duration: 0.5s;
}

main#intro:hover {
	box-shadow: 0px 0px 20px 10px var(--green);
}

main#intro .inner {
	overflow: auto;
	margin: 50px 80px 50px 100px;
	height: 220px;
}

#rss {
	grid-area: updates;
	background: #ffffff;
	background: radial-gradient(
		circle,
		--green 20%,
		--pink 54%,
		--yellow 100%
	);
	background-position: center;
	height: 300px;
	padding: 40px 15px;
	margin-left: 30px;
	margin-top: -150px;
	border-radius: 20%;
	border: 3px solid --yellow;
	box-shadow: 0px 0px 13px 4px --green inset;
	overflow: hidden;
	scrollbar-color: --pink white;
	transition-duration: 0.5s;
	#rss:hover {
		background-position: bottom;
	}


	h3.feed-title {
		display: none;
	}

	a {
		text-decoration: none;
		color: rgb(218, 124, 144);
	}

	.feed-item-title {
		font-size: 19px;
		margin: 5px 0px;
	}

	.feed-item-desc {
		font-size: 17px;
		line-height: normal;
		font-family: gaegu-r;
	}

	.feed-item-desc a {
		text-decoration: underline;
	}

	.feed-item-desc a:hover {
		text-decoration: line-through;
	}

	.feed-item-title {
		font-size: 13px;
		text-align: center;
	}
	.feed-item-title a::before {
		vertical-align: middle;
		content: url("assets/flower-big-pink.gif");
		padding-right: 6px;
	}

	.feed-item-title:nth-of-type(1) a {
		color: rgba(103, 126, 110, 0.815);
	}

	.feed-item-title a:hover {
		text-decoration: line-through;
	}

	.feed-item-title:nth-of-type(1) a::before {
		vertical-align: middle;
		content: url("assets/twinkle.gif");
		padding-right: 6px;
	}

	.feed-item-desc:nth-of-type(1) {
		border: 4px ridge rgba(191, 212, 192, 0.712);
		border-radius: 10px;
		padding: 10px;
		background: rgba(255, 255, 255, 0.726);
	}

	.feed-item-desc:nth-of-type(1) a {
		color: rgb(131, 131, 189);
	}

	h3 {
		margin: 0px;
		letter-spacing: 2px;
		text-align: center;
		margin-top: -20px;
		margin-bottom: 5px;
	}

	.inner {
		overflow: auto;
		height: 100%;
	}
}

/* make this the wrapper and inside have tape! */
#pic-wrapper {
	grid-area: pic;
	position: relative;
	overflow: visible;
	border: 0px;
	transition-duration: 0.5s;
	rotate: 10deg;
	margin-top: -160px;
}

#pic-wrapper:hover {
	rotate: 0deg;
}

#piclog {
	z-index: 5;
	background: white;
	border-color: white;
	border-style: solid;
	border-width: 20px 20px 80px 20px;
	border-radius: 10px;
	margin-left: 20px;
	width: 250px;
	height: 360px;
	padding: 0px;
	box-shadow: 5px 5px 1px 1px #59595989;
	transition-duration: 0.5s;

	img {
		width: 100%;
		border-radius: 10px;
	}
}

#piclog:hover {
	box-shadow: none;
}

#tape {
	z-index: 10;
	top: -25px;
	left: 20%;
	position: absolute;
	pointer-events: none;
}


#status {
	grid-area: status;
	margin-top: 150px;
	background: #fcfeffcb;
	border: 3px solid var(--red);
	box-shadow: 0px 0px 30px 0px var(--red) inset;
}

span.title a {
	color: inherit;
	text-decoration: none;
	font-weight: normal;
	line-height: inherit;
}

#statuscafe-username {
	display: inline-block;
}

#statuscafe-username a {
	color: #916b40;
}

#statuscafe-username::after {
	content: ":";
}

#statuscafe-content {
	display: inline;
	font-style: italic;
}

#comm {
	top: -140px;
	margin-left: 30px;
	background: transparent;
	grid-area: notepad;
	border: none;
	overflow: visible;
	height: 450px;
}

#notepad {
	position: relative;
	z-index: 2;
	background-image: url(./images/memopadkitty.jpg);
	background-size: 300px;
	border-radius: 10px;
	border: 3px solid rgb(255, 255, 255);
	max-width: 300px;
	height: 400px;
	margin-left: 10px;
	overflow: auto;
	text-align: center;
	color: black;
	box-shadow: 0px 0px 16px 1px #ffffff;
	scrollbar-color: rgb(210, 223, 251) rgb(252, 240, 183);
	transition-duration: 0.5s;
	font-family: Comic Sans MS;
}

.notepad-boxes {
	box-shadow: 0px 0px 16px 2px #ffffff inset;
	/* background-color: rgba(250, 252, 239, 0.262); */
	background-size: 90px;
	height: 100%;
	overflow: auto;
	padding: 15px;
	display: none;
	transition-duration: 0.5s;

	h3 {
		font-size: 25px;
		margin: 10px 0px;
		text-align: center;
	}
}

.notepad-boxes#now {
	a {
		color: unset;
		text-decoration: underline wavy;
	}
	.date {
		border-top: 2px dashed rgb(157, 134, 134);
		font-size: 13px;
		text-align: center;
		margin-top: 15px;
	}

	p:hover span.title::before {
		content: "╰┈➤ ";
	}

	span.title {
		display: block;
		margin-bottom: 10px;
		font-size: 17px;
		line-height: 3px;
		text-shadow: 1px 1px 0px white, -1px -1px 0px white;
		transition-duration: 0.6s;
	}
}

.notepad-boxes#now,
.notepad-boxes#chat {
	background: rgba(255, 254, 249, 0.647);
	text-align: left;
	line-height: 23px;
}

p:nth-of-type(4n + 1) span.title:first-child {
	background:  #388E3C;
}

p:nth-of-type(4n + 2) span.title:first-child {
	background: #8BC34A;
}

p:nth-of-type(4n + 3) span.title:first-child {
	background:  #DCE775;
}

p:nth-of-type(4n + 4) span.title:first-child {
	background: #FFF59D;
}

#tabs {
	z-index: 1;
	position: absolute;
	top: 10px;
	left: 300px;

	button {
		background: var(--d-blue);
		cursor: help;
		display: block;
		font-size: 15px;
		width: 90px;
		border: 1px solid white;
		font-family: inherit;
		padding: 2px 12px 2px 25px;
		margin: 10px 0px;
		text-align: left;
		transition-duration: 0.2s;
	}

	button:nth-of-type(4n + 1) {
		background: rgb(246, 241, 147);
	}

	button:nth-of-type(4n + 2) {
		background: rgb(249, 184, 215);
	}

	button:nth-of-type(4n + 3) {
		background: #c2e2ea;
	}

	button:nth-of-type(4n + 4) {
		background: #c2eacd;
	}

	button.active:nth-of-type(3n + 3) {
		color: #c2e2ea;
		background: black;
	}

	button.active:nth-of-type(3n + 2) {
		color: rgb(249, 184, 215);
		background: black;
	}

	button.active:nth-of-type(3n + 1) {
		color: rgb(246, 241, 147);
		background: black;
	}

	button.active:nth-of-type(4n + 4) {
		color: #c2eacd;
		background: black;
	}

	button:hover,
	button.active {
		margin-left: 17px;
		text-align: right;
		width: 90px;
	}
}

/* stickers / decorations */

aside.deco {
	position: absolute;
	pointer-events: none;
	image-rendering: pixelated;
}

#sticker2,
#sticker3,
#sticker6,
#sticker7,
#sticker8,
#sticker9 {
	pointer-events: all;
}

#sticker1 {
	z-index: 10;
	top: 350px;
	right: -20px;
}



#sticker2 {
	z-index: 8;
	bottom: -70px;
	left: -20px;
}

#sticker3 {
	z-index: 8;
	top: 10px;
	right: 10px;
}

#sticker4 {
	z-index: -1;
	top: 280px;
	left: 120px;
}

#sticker5 {
	z-index: 10;
	top: 300px;
	left: -50px;
}

#sticker6 {
	z-index: 10;
	top: 670px;
	left: 300px;
}

#sticker7 {
	z-index: 10;
	top: 0px;
	left: 30px;
}

#sticker8 {
	z-index: 10;
	top: 500px;
	left: -180px;
}

#sticker9 {
	z-index: 10;
	top: 485px;
	left: -200px;
	rotate: 5deg;
}

nav.box {
	border: none;
	grid-area: navi;
	overflow: auto;

	h3 {
		letter-spacing: 5px;
		text-align: center;
		margin: 25px 10px 25px 0px;
	}

	a {
		font-weight: normal;
		font-size: 20px;
		margin: 5px 0px;
		text-decoration: none;
		color: inherit;
		display: block;
		transition-duration: 0.3s;
	}

	a:hover {
		padding: 5px 0px;
	}

	.p::before {
		content: url("./images/apple.webp");
	}

	.p:hover::before {
		content: url("./images/apple-2.webp");
	}

	.m::before {
		content: url("./images/ladybug.webp");
	}

	.m:hover::before {
		content: url("./images/ladybug-2.webp");
	}

	.o::before {
		content: url("./images/clover.webp");
	}

	.o:hover::before {
		content: url("./images/clover-2.webp");
	}

	.s::before {
		content: url("./images/button.webp");
	}

	.s:hover::before {
		content: url("./images/button-2.webp");
	}
}

footer.box {
	border: none;
	text-align: center;
	grid-area: footer;
}

#s-m-t-tooltip {
	background: white;
	background-size: 50px;
	text-shadow: 1px 1px 1px rgb(187, 210, 241), -1px -1px 1px rgb(187, 210, 241);
	border-radius: 10px;
	color: rgb(0, 0, 0);
	font-family: gaegu-l, var(--fonts);
	font-size: 18px;
	border: 4px double rgb(148, 176, 232);
	max-width: 400px;
	text-align: center;
	z-index: 9999;
	margin: 30px 15px 7px 12px;
	padding: 10px;
	word-break: normal;
}

@media screen and (max-width: 1040px) {
	#wrapper {
		display: block;
		grid-template-columns: 25% 50% 25%;
		grid-template-rows: 60px 300px 250px 360px;
		grid-gap: 0;
	}

	body {
		margin: 0;
		padding: 20px;
	}

	.deco {
		display: none;
	}

	main#intro,
	header,
	section#rss,
	aside#pic-wrapper,
	aside#comm,
	footer.box,
	nav.box,
	#tabs {
		display: block;
		position: relative;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		rotate: 0deg;
		width: auto;
		height: auto;
		margin: 15px 0px;
	}

	main#intro {
		background: transparent;
		box-shadow: 0px 0px 0px 0px var(--pink);
		border: 0px;
		padding: 20px;
		height: 100%;

		.inner {
			margin: 0px;
			height: 100%;
		}
	}

	main#intro:hover {
		box-shadow: 0px 0px 0px 0px var(--pink);
	}

	section#rss {
		border-radius: 5px;
		height: 400px;
		overflow: auto;
		margin: 15px 10%;
		background: transparent;
		box-shadow: 0px 0px 0px 0px var(--pink) inset;
		border: 0px;

		.inner {
			overflow: auto;
			height: auto;
			border: 0px;
		}
	}

	nav.box {
		text-align: center;

		h3 {
			margin: 4px 0;
		}

		a {
			display: inline-block;
		}

		a:hover {
			padding: 0;
		}
	}

	#tabs {
		text-align: center;
		margin: 3px;
		padding: 20px;

		button,
		button:hover,
		button.active {
			display: inline-block;
			padding: 2px 6px;
			margin: 5px 0px;
			width: auto;
			border-radius: 12px;
		}
	}

	aside#piclog,
	#notepad {
		margin: auto;
	}

	aside#music {
		display: block;
		margin: auto;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		rotate: 0deg;
		border: 1px solid black;
	}
}