:root {
	--text: darkslategray;
	--line: #d78673;
	--accent: #eac2bb;
	--bg: #fef9ea;
	--fill: whitesmoke;
    --nav-fill: #eee68e;
	--blockquote-text-fill: dimgray;
    /* alt hexcodes */
    /* #f5d8e1 */
    /* #dac3e7; */
    /* #7ccced; */
    /* #eee68e; */
}

body { 
	color: var(--text);
	font-family: annaimn-regular, noteworthy, verdana, sans-serif; 
	cursor: url('assets/cursors/butt-up-gudetama-cursor.png'), auto;
}

/* Interactive elements show heart cursor on hover */
a:hover,
button:hover,
input:hover,
select:hover,
textarea:hover,
[role="button"]:hover,
[tabindex]:hover,
summary:hover {
	cursor: url('assets/cursors/butt-down-gudetama-pointer.png'), pointer;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	scrollbar-color: var(--text) var(--line);
	}

*::-webkit-scrollbar { width: 20px; }
*::-webkit-scrollbar-track { background: var(--line); }
*::-webkit-scrollbar-thumb { background-color: var(--text); border: transparent; }

img { max-width: 100% }

.full-row-meme {
	width: 45%;
	margin-left: auto;
	margin-right: auto;
	display: block;
}

nav {
	float: left;
	width: 15%;
	height: 100vh;
	position: relative;
	background-color: var(--bg);
}

nav div {
	height: fit-content;
	width: fit-content;
	position: absolute;
	top: 50%;
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
	right: -1.5vw;
	text-align: right;
}

nav a {
	display: block;
	margin: 10px 0;
	padding: 0;
	font-size: 1.5em;
	text-decoration: none;
	color:var(--fill);
	filter: drop-shadow(1px 1px 0 var(--text)) 
			drop-shadow(-1px 1px 0 var(--text)) 
			drop-shadow(0 -1px 0 var(--text)) 
			drop-shadow(1px 0 var(--text));
}

nav a:hover, nav a:focus {
	color: var(--accent);
}

main {
	float:left;
	width: 82%;
	height: 100vh;
	padding: 2em;
	overflow-y: scroll;
	background-color: var(--bg);
}

.container { max-width: 1500px }

summary {
	list-style-type: none;
	position: relative;
	padding-left: 1.5em;
}

summary::before {
	content: "🥚 ";
	position: absolute;
	left: 0;
	transition: transform 0.3s ease;
}

details[open] summary::before {
	content: "🍳 ";
	transform: rotate(90deg);
}

.stripe {
	float: left;
	width: 3%;
	height: 100vh;
	background: url(https://hellokittyislandadventure.wiki.gg/images/f/f0/Gudetama_Pattern.png?5056a7);
	background-repeat: repeat-y;
	background-size: auto 20vh;
}

hr {
	border: none;
	border-top: 5px solid var(--line);
}

header {
	font-size: 1.75rem;
	color:var(--fill);
	filter: drop-shadow(1px 1px 0 var(--text))
			drop-shadow(-1px 1px 0 var(--text))
			drop-shadow(0 -1px 0 var(--text))
			drop-shadow(1px 0 var(--text));
	text-align: -webkit-center;
}

h2, h3, h4, h5, h6, p, table, details, cite, blockquote {
	margin: 1rem 0;
}

ul, ol, dl {
	margin: 1rem 0 1rem 2rem;
}

ul ul, ol ol { 
	margin: 0 0 0 2rem;
}

p, table,  ul, ol, dl {
	font-size: 1rem;
}

a { 
	color: var(--line);
	padding: 2px;
}

p a:hover { 
	color: var(--blockquote-text-fill);
	background-color: var(--accent);
}

h6 { font-size: 1em; }
h5 { font-size: 1.25em; }
h4 { font-size: 1.5em; }
h3 { font-size: 1.75em; }
h2 { font-size: 2em;
	text-align: center;
	background-color: var(--accent);
	padding: 5px;
}

blockquote {
	background-color: var(--accent);
	color: var(--blockquote-text-fill);
	padding: 1em;
	font-size: 1.25rem;
}

blockquote a, blockquote code {
	color: var(--text);
}

cite { 
	display: block;
	text-align: right;
	font-size: 1rem;	
}

code, details, pre {
	background-color: var(--bg);
	font-size: 1.25rem;
}

code { 
	font-family: 'Courier New', monospace; 
	padding: 2px;
}

details, pre {
	padding: 1em;
}

pre { overflow-x: auto; }

details p { margin: 1rem 0 1rem 2rem; }

table {	border: 5px solid var(--line); }
tr, td, th { border: 2px solid var(--line); }
td, th { padding: 3px }

/* Responsive table styles */
.responsive-table {
	width: 100%;
	border-collapse: collapse;
}

.responsive-table th,
.responsive-table td {
	border: 2px solid var(--line);
	padding: 8px;
	text-align: center;
}

/* Large viewports: show all 8 columns */
@media screen and (min-width: 1200px) {
	.responsive-table th:nth-child(n+9),
	.responsive-table td:nth-child(n+9) {
		display: none;
	}
}

/* Medium viewports: show 4 columns */
@media screen and (max-width: 1199px) and (min-width: 768px) {
	.responsive-table th:nth-child(n+5),
	.responsive-table td:nth-child(n+5) {
		display: none;
	}
}

/* Small viewports: show 2 columns */
@media screen and (max-width: 767px) {
	.responsive-table th:nth-child(n+3),
	.responsive-table td:nth-child(n+3) {
		display: none;
	}
	
	.responsive-table th,
	.responsive-table td {
		padding: 4px;
		font-size: 0.9em;
	}
}

figcaption { 
	text-align: center;
	margin: -0.5em 1em 1em 1em;
}

footer { 
	text-align: center;
	background-color: var(--accent); 
	margin-top: 2em;
	padding: 5px;

	p {
		font-size: 0.9em;
	}
}

footer a { color: var(--text); }

.flex-box {
    display:flex;
    flex-wrap:wrap;
    margin: -1em;
	align-items: flex-start;
}

.flex-box section {
	margin: 1em;
	}

.full { flex: 1 1 100%;}
.half { flex: 1 1 calc(50% - 2em); }
.twothird { flex: 1 1 calc(66% - 2em); }
.threequarter { flex: 1 1 calc(75% - 2em); }

@media screen and (min-width: 800px){
	.third, .quarter { 
		flex: 1 1 calc(33% - 2em);
	}
}

@media screen and (max-width: 800px){

	nav, main, .stripe {
		float: none;
		width: 100%;
		height: fit-content;
	}
	
	nav { padding: 2vw }
	
	nav div {
		height: fit-content;
		width: 100%;
		position: static;
		-ms-transform: translateY(0);
		transform: translateY(0);
		text-align: right;
	}
	
	nav img {
		z-index: -1;
		position: absolute;
		left:0;
		max-height: 5rem;
	}
	
	nav a {
		display: inline-block;
		margin: 5px;
	}
	
	nav a::after { content: " ↗"; }
	
	main { 
		overflow: auto;
		padding: 2em 1em;
	}
	
	header {
		text-align: center;
		font-size: 7vw !important;
	}
	
	section { padding: 0 1em; }
	
	.stripe {height: 30px;background-repeat: repeat-x;}
	
	*::-webkit-scrollbar { width: 10px; }

	.full-row-meme {
		width: 100%;
	}

	.photopile {
		display: block !important;
	}
	
}

.photopile { 
	display: flex; 
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: center;
	max-width: 100%;
	cursor: url('assets/cursors/gudetama-heart-cursor.png'), auto;
  }
  .photopile figure { 
	display: inline-block;
	flex: 1;
	background: white;
	box-shadow: 1px 4px 5px rgba(0,0,0,0.55);
	transform: rotate(2deg);
	min-height: 100%;
  }
  .photopile figure img {
	max-width: calc(100% - 2rem);
	margin: 1rem 1rem 0 1rem;
	border: 2px rgb(0,0,0,0.55) inset;
  }
  .photopile figcaption {
	text-align: center;
	margin: 0.5rem 1rem 1rem 1rem;
	font-size: 1rem;
	color: black;
  }
  .photopile figure:hover { 
	z-index: 3;
  }
  .photopile figure:nth-child(2n) { 
	transform: rotate(-10deg);
  }
  .photopile figure:nth-child(3n) {
	transform: rotate(5deg);
  }
  .photopile figure:nth-child(4n) { 
	transform: rotate(4deg);
  }
  .photopile figure:nth-child(5n) { 
	transform: rotate(-2deg);
  }
  .photopile figure:nth-child(6n) {
	transform: rotate(-7deg);
  }

/* Heart animation styles */
.heart-animation {
	position: absolute;
	pointer-events: none;
	z-index: 1000;
	font-size: 1.5rem;
	animation: float-heart 1.5s ease-out forwards;
	opacity: 0;
}

@keyframes float-heart {
	0% {
		opacity: 0;
		transform: translateY(0) scale(0.5);
	}
	20% {
		opacity: 1;
		transform: translateY(-10px) scale(1);
	}
	100% {
		opacity: 0;
		transform: translateY(-60px) scale(0.8);
	}
}

  
