body, html { margin: 0; }

body:not(.iframe) {
	background-color: var(--d-purple);
	background-image: url('/graphix/bg/rainbow-paw-stars.png');
	background-size: min(400px, 50vw, 50vh);
}

body .main-container {
	margin: 0 auto;
	font-size: 1.125rem;
	text-align: left;
	color: var(--l-blue);
	height: auto; 
}
body.full-posts .main-container {
	background-color: var(--dd-purple);
	padding: 2em .75em .5em .75em;
	min-height: calc(100vh - 1rem);
	
	@media screen and (width > 500px) {
		width: min(1000px, 80%);
	}
	@media screen and (width <= 500px) {
		width: 100%;
		-webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;
	}
}
/* when only summaries being shown */
body.summaries-only .main-container {
	width: auto;
	padding: .75em;
	min-height: 100%;
}

img { max-width: 100% }
img.tall { max-height: max(300px,min(90vh,500px)); }
img.mini { max-height: 1em; }
img.bbcode_smiley { margin-left: 0px; }

figure { text-align: center; }

/* scrollbar */
::-webkit-scrollbar { width: 15px; } /* width */
::-webkit-scrollbar-track { /* Track */
	background-color: var(--dd-blue);
	box-shadow: inset 0 0 5px var(--dd-purple);
	border-radius: 0;
}
::-webkit-scrollbar-thumb { /* Handle */
	background: var(--green);
	box-shadow: inset 0 0 5px var(--green);
	border-radius: 0;
}

.title {
	display: block;
	text-align: center;
	font-size: max(1em, min(10vw,2em));
	font-weight: normal;
}
.title h1 {
	font-family: 'Super Comic', 'Comic Sans MS', 'Comic Sans', sans-serif;
	text-transform: uppercase;
	/* remove html default header styling */
	margin: 0; line-height: inherit; font-weight: inherit; font-size: inherit;
}
.title, .title:link, .title:visited { color: var(--pink); }
.title:hover { color: var(--l-pink); }
.title img.block {
	display: block;
	margin: 0 auto;
}
.title img:not(.block) {
	height: 1em;
	margin-bottom: -.1em;
}
/* when page is not in full post mode */
.summaries-only .title { font-size: 1em; }

.subtitle {
	color: var(--green);
	display: block;
	text-align: center;
}
a:hover .subtitle { color: var(--yellow); }

nav {
	text-align: center;
	margin: 0 auto 1em auto;
	font-family: 'Super Comic', 'Comic Sans MS', 'Comic Sans', sans-serif;
}

.tag-parameters {
	text-align: center;
}
.tag-parameters button {
	padding: 0.1em 0.5em;
	margin: 0.25em;
	background: var(--d-purple);
	border: 2px var(--purple) solid;
	color: var(--pink);
}
.tag-parameters button:hover { color: var(--yellow); }

/* posts list styling */
.posts { padding: 0 5% 0 8%; list-style: none; }
/* when page is in iframe */
.summaries-only .posts { padding: 0; }

.post { margin-bottom: 0.75em; }

.post:before { /* custom size image bullet points */
  content: '';
  display: inline-block;
  height: 1em;
  width: 1.5em;
  background-image: url('/graphix/deco/smiley-spin-green.gif');
  background-size: contain;
  background-repeat: no-repeat;
}
.full-posts .post:before { margin-left: -1.5em; /* should be negative same as width */ }
.summaries-only .post:before { margin-left: 0; }
/* alternate image bullet points */
.post:nth-child(2n+1):before { background-image: url('/graphix/deco/smiley-spin-yellow.gif'); }
.post:nth-child(3n+1):before { background-image: url('/graphix/deco/smiley-spin-pink.gif'); }

.post .date, .post .date a { display: inline-block; color: var(--yellow); }
.post .date a:hover { color: var(--l-green); }

.post .tags {
	display: flex; flex-wrap: wrap;
	gap: .25em;
	a {
		color: var(--pink);
		&:hover { color: var(--yellow); }
	}
}

.post .details { padding-left: 2em; margin-bottom: 3em; }

.post .details h3, .post .details h4 { color: var(--yellow); }

.post .summary { color: var(--l-green); }
.summaries-only .post .summary { padding-left: 2em; color: var(--l-blue); }

footer { margin: 0 1em .5em 1em; }

/* next/prev page button area */
#pagination {
	display: flex;
	justify-content: space-between;
}
/* actual buttons */
#pagination a, #pagination button {
	color: var(--white);
	background: var(--purple);
	padding: .2em .5em .4em .5em;
	border-radius: .5em;
	&:hover, &:focus-visible { background-color: var(--pink); }
}

/* jump to content buttons for keyboard/screenreader nav */
.skip-to-content {
	color: var(--d-purple);
	background: var(--yellow);
	border: 2px var(--purple) solid;
	border-top: none;
	padding: .2em .5em .4em .5em;
	border-radius: 0 0 .5em .5em;
}