	:root {
		/** you can change all this to fit your own styles without having to touch the rest of the code! **/
		  
		--body-background: #e4e4eb;
		--main-background: #e4e4eb;
		--text: #333;
		--accent: #9e9ecf;
		--accent-dark: #5f5195;
		--accent-light: #c4c4f2;
		--highlight-color: #f7f7f9;
		--fandom-button: #f2f2f2;

		/** these are default browser font styles, but you can name specific fonts, ex. 'Georgia'**/
		--main-font: sans-serif;
		--h1-font: monospace;
		--h2-font: monospace;
		--h3-font: sans-serif;

		--fic-metadata-divider: " ■ "; /** change this to your liking **/

		/** these can be changed to solid, dotted, dashed, double, and none. it combines with border-size in some cases **/
		--main-border-style: solid;
		--link-border-style: solid; /** links only, also can be wavy **/
		--hr-style: solid;

		/** some sizing, which you can change but I highly advise for you to keep the provided units (em, %, and px respectively). smaller than 1 can be used as decimals, e.g. 0.8 **/
		--base-size: 1em;
		--line-height: 150%;
		--main-width: 50em;
		--border-size: 2px;

		/** calculations for sizing, you might not want to touch these **/
		--size-quarter: calc(var(--base-size) / 4);
		--size-half: calc(var(--base-size) / 2);
		--size-one-half: calc(var(--base-size) * 1.5);
		--size-double: calc(var(--base-size) * 2);
	}
	
	[data-theme="dark"] {
		--body-background: #0D0D3B;
		--main-background: #0D0D3B;
		--text: #E4E9F2;
		--accent: #9e9ecf;
		--accent-dark: #c4c4f2;
		--accent-light: #5f5195;
		--highlight-color: #B8BEDE;
		--fandom-button: #59599C;
		}

	* {
		padding: 0;
		margin: 0;
		box-sizing: border-box;
		-webkit-text-size-adjust: none;
	}

	p,
	details {
		padding: var(--size-half) 0;
	}

	ul,
	ol {
		margin: var(--base-size) var(--size-double);
	}

	li {
		padding-left: var(--base-size);
	}

	body {
		background: var(--body-background);
		color: var(--text);
		font: normal var(--base-size) / var(--line-height) var(--main-font);
	}

	#totop{
		display: block;
		position: fixed;
		bottom: 0;
		right: 0;
		background: var(--main-background);
		padding: var(--base-size);
		border-top-left-radius: 30px;
		font-size: 2em;
	}

	main {
		background: var(--main-background);
		width: var(--main-width);
		margin: 0 auto;
		padding: 0 var(--size-one-half) var(--size-one-half);
	}

	#head {
		margin: 0 auto;
		padding: var(--size-one-half) 0;
		border-bottom: var(--border-size) var(--main-border-style) var(--accent);
		text-align: center;
	}

	#blurb {
		padding: 0 0 var(--size-half);
		/** border-bottom: var(--border-size) var(--main-border-style) var(--accent); **/
	}

	.filterFic {
		width: auto;
		margin: 15px 0;
		display: none;
	}

	fic-summary {
		padding: 10px 0;
		margin: 0 20px;
		display: block;
	}

	fic-summary p {
		padding: 0 0 0.5em;
		margin: 0;
	}

	fic-summary p:last-child {
		padding: 0;
	}

	.show {
		display: block;
	}

	#fandom-navigation {
		margin: var(--size-double) 0 0;
	}

	.masterlist {
		margin: 10px 0;
		overflow: hidden;
	}

	#footer {
		border-top: var(--border-size) var(--main-border-style)  var(--accent);
		margin: var(--base-size) 0 0;
		padding: var(--size-double) 0 0;
		text-align: center;
		text-transform: lowercase;
		font-size: calc(var(--base-size) * 0.85);
	}
	
	header {
    text-align: center;
  }
  
  footer {
    text-align: center; 
    margin: var(--base-size) 0 var(--size-double);
		padding: var(--size-double) 0 0;
		font-size: calc(var(--base-size) * 0.85);
  }

	.fandomButton {
		border: none;
		outline: none;
		padding: var(--size-half);
		background-color: var(--fandom-button);
		display: inline-block;
		margin: var(--size-quarter) var(--size-quarter) var(--size-quarter) 0;
		font-size: var(--base-size);
		color: var(--text);
		font-family: var(--main-font);
	}

	.fandomButton:hover {
		background-color: var(--accent-dark);
		color: white;
	}

	.fandomButton.active {
		background-color: var(--accent);
		color: white;
	}

	.filterFic ul {
		list-style-type: none;
		margin: 0;
		padding: 0;
	}

	.filterFic ul li {
		display: inline;
		margin: 0;
		padding: 0;
	}

	.filterFic ul li:after {
		content: var(--fic-metadata-divider);
		color: var(--accent);
	}

	.filterFic ul li:last-child:after {
		content: " ";
	}

	h1 {
		font: normal 2.5em var(--h1-font);
		text-transform: lowercase;
		color: var(--accent);
		padding: var(--size-half) 0;
	}

	#head h1 {
		padding-bottom: 0;
	}

	h2 {
		font: italic 1.5em var(--h2-font);
		text-transform: lowercase;
		padding: 0 0 var(--base-size);
	}

	#head h2 {
		padding-top: var(--size-half);
	}

	h3 {
		font-size: var(--size-one-half);
		font-family: var(--h3-font);
		color: var(--accent-dark);
		margin: var(--base-size) 0 var(--size-half);
	}

	h4 {
		/** this is a custom header that isn't used anywhere outside of the preview, feel free to modify or remove it for your own use **/
		color: var(--accent-dark);
		text-transform: uppercase;
		font: normal 1.2em var(--h3-font);
		letter-spacing: 2px;
		margin: var(--size-half) 0 var(--base-size);
		text-align: center;
	}

	strong {
		color: var(--accent);
	}

	em {
		color: var(--accent-dark);
	}

	u{
		border-bottom: var(--border-size) var(--link-border-style) var(--accent);
	}

	mark {
		background-color: var(--highlight-color);
	}

	a:link,
	a:visited {
		color: var(--accent);
		-webkit-text-decoration-line: var(--link-border-style);
		text-decoration: underline;
		text-decoration-style: var(--link-border-style);
		text-decoration-thickness: var(--border-size);
		text-decoration-color: var(--accent);
		-webkit-text-decoration-color: var(--accent);
        padding: 2px;
	}

	a:hover,
	a:active,
	a:focus {
		color: var(--highlight-color);
		-webkit-text-decoration-line: var(--link-border-style);
		text-decoration: underline;
		text-decoration-style: var(--main-border-style);
		text-decoration-thickness: var(--border-size);
		text-decoration-color: var(--highlight-color);
		-webkit-text-decoration-color: var(--highlight-color);
		/** box-shadow: inset 0px -5px 0 0px var(--accent-light); **/
        background-color: var(--accent-light);
	}
	
	summary {
	  font-weight: bold;
	}

	summary:hover, details[open] > summary{
		color: var(--accent-dark);
		text-decoration: underline;
		text-decoration-style: var(--main-border-style);
		text-decoration-thickness: var(--border-size);
		text-decoration-color: var(--accent-light);
	}

	code {
		font: normal var(--base-size) monospace;
		/** background: #dadada; **/
	}

	hr {
        width: 50%;
		border-top: none;
		border-bottom: var(--border-size) var(--hr-style) var(--accent);
		margin: var(--size-one-half) auto var(--size-double);
	}

	blockquote {
		margin: var(--base-size) 0;
		padding: var(--size-half) var(--size-one-half);
		border-left: var(--size-half) var(--main-border-style) var(--accent);
	}

	spoiler {
		background: var(--text)!important;
		color: var(--text)!important;
	}

	spoiler::selection {
		color: var(--text);
		background: var(--main-background);
	}

	spoiler::-moz-selection{
		color: var(--text);
		background: var(--main-background);
	}

	img{
		max-width: 100%;;
	}

	@media (max-width: 900px) {
		main {
			width: 95vw;
			padding: var(--base-size);
		}
	}

	@media (max-width: 600px) {
		main {
			width: 95%;
			padding: var(--base-size) 0.5em;
		}
		#head,
		#blurb,
		#footer {
			padding-left: 0.5em;
			padding-right: 0.5em;
		}
		h1 {
			font-size: 2em;
		}
		h2 {
			font-size: 1.2em;
		}
		.fandomButton {
			font-size: 0.95em;
			padding: 0.5em 0.7em;
			margin-bottom: 0.3em;
		}
		.filterFic ul {
			margin: 0.5em 0.5em;
		}
		.filterFic {
			margin: 10px 0;
			padding: 0 0.2em;
		}

		totop{
			display: none; /** hides to top link on mobile, but you can comment or delete this to keep it visible **/
		}
	}

	@media (max-width: 400px) {
		h1 {
			font-size: 1.8em;
		}
		h2 {
			font-size: 1.3em;
		}
		.fandomButton {
			font-size: 0.85em;
			padding: 0.4em 0.5em;
		}
	}

	/** custom css **/

.purple {
  filter: hue-rotate(60deg);
}

.purple a:hover {
  background-color: #84d0f1;
}

/*style dark mode toggle*/
.toggle-switch {
  position: absolute;
  right: 1em;
  top: .5em;
  width: 60px;
}

.toggle-switch label {
  position: absolute;
  width: 100%;
  height: 37px;
  background-color: var(--accent);
  border-radius: 50px;
  cursor: pointer;
}

 .toggle-switch input {
  position: absolute;
  display: none;
}

.slider {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  transition: 0.3s;
}

.slider:before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: inset 10px -4px 0px 0px var(--body-background);
  background-color: var(--accent);
  transition: 0.3s;
}

input:checked ~ .slider {
  background-color: var(--accent);
}

input:checked ~ .slider::before {
  transform: translateX(22px);
  background-color: var(--body-background);
  box-shadow: none;
}