@font-face {
  font-family: Canterbury; /* set name */
  src: url(Canterbury.ttf); /* url of the font */
}

/* start light mode styling */
	:root {
  --text: Black;
  --border: #605cd1;
  --accent: #605cd1;
  --bg: #BCBAF4;
  --gradientBottom: #A9A6EC;
  --gradientTop: #DBDAFF;
  a:link { color: lightblue; }
	}
	header {
		background: url(https://kovacore.neocities.org/Images/GothicPurple2.png);
	}
/* end light mode styling */

/* start dark mode styling */
	@media (prefers-color-scheme: dark) {
		:root {
			--text: white;
			--border: #605cd1;
			--accent: #605cd1;
			--bg: #343345;
			--gradientBottom: #3D3B57;
			--gradientTop: #2B2B33;
			a:link { color: lightblue; }
		}
		header {
			background: url(https://kovacore.neocities.org/Images/GothicPurple2.png);
		}
	}
/* end dark mode styling */

* { 
	box-sizing: border-box;
}
body {
	padding: 10px;
	font-family: 'MS PGothic', 'Canterbury', sans-serif;
	color: var(--text);
	scrollbar-color: var(--accent) Var(--gradientBottom);
	scrollbar-width: thin;

	/* page background pattern */
	background-color: var(--gradientTop);
	background: radial-gradient(circle, transparent 40%, var(--gradientTop) 40%, var(--gradientTop) 80%, transparent 80%, transparent), radial-gradient(circle, transparent 40%, var(--gradientTop) 40%, var(--gradientTop) 80%, transparent 80%, transparent) 10px 10px, linear-gradient(var(--bg) 0.8px, transparent 0.8px) 0 -0.4px, linear-gradient(90deg, var(--bg) 0.8px, var(--gradientTop) 0.8px) -0.4px 0;
	background-size: 20px 20px, 20px 20px, 10px 10px, 10px 10px;
}

.container {
	max-width: 55rem;
	margin: 5vw auto 12px auto;
	border: 6px ridge var(--border);
	outline: 3px solid var(--gradientTop);
	outline-offset: 4px;
	border-radius: 10px;
	display: flex;
	flex-wrap: wrap;
	padding: 5px;
	gap: 5px;

	/* container background pattern */
	background-color: var(--gradientBottom);
	background-image:  repeating-radial-gradient( circle at 0 0, transparent 0, var(--gradientBottom) 9px ), repeating-linear-gradient( var(--bg), var(--bg));
}

.column {
  max-width: 55rem;
  display: flex;
	flex-wrap: wrap;
	padding: 0px;
	gap: 1px;
  }

/* these control the column widths */
.small { flex: 1 1 9%; }
.large { flex: 1 1 82%; }
.full { flex: 1 1 100%; }
.half { flex: 1 1 49%; }
.third { flex: 1 1 30%; }
.two-thirds { flex: 1 1 60%; }
.quarter { flex: 1 1 24%; }
.fifth { flex: 1 1 19%; }

header {
	background-size: cover;
	background-position: center;
	width: 100%;
	height: 120px; /* change banner height here*/
	border: 2px ridge var(--border);
	border-radius: 5px;
	position: relative;
}
header span {
	font-size: 2.5rem;
	position: absolute;
	bottom: 0;
	right: 10px;
	margin: 10px;
	font-weight: bold;
	text-shadow: 1px 1px var(--text),
		-1px 1px var(--text),
		1px -1px var(--accent),
		-1px -1px var(--accent);
	color: var(--gradientTop);
}

nav {
	border: 2px ridge var(--border);
	border-radius: 5px;
	padding: 5px;
	background: linear-gradient(var(--gradientTop),var(--gradientBottom));
}
nav div {
	text-align: center;
	font-size: 1.25rem;
	margin: 5px 5px 10px 5px;
}
nav a {
	display: block;
	margin: 5px;
	background: linear-gradient(to right,var(--bg),var(--gradientBottom));
	border-radius: 5px;
	padding: 2px 7px;
	text-decoration: none;
}
nav a:link, nav a:visited { 
	color: var(--text);
}
nav a:hover, nav a:focus {
	background: linear-gradient(to right,var(--bg), var(--gradientBottom), var(--gradientTop));
}

/* optional button styling like in the preview */
div.small > img {
	display: block;
	margin: 5px auto;
	border:2px ridge var(--border);
	border-radius: 5px;
}

section {
	border: 2px ridge var(--border);
	border-radius: 5px;
	background: linear-gradient(var(--gradientTop),var(--gradientBottom));
	padding: 5px;
}

footer {
	text-align: center;
	margin-bottom: 5vw;
	font-size: 0.8rem;
}
footer a { 
	text-decoration: none;
}

h1, h2, h3, h4, h5, h6, p  { 
	margin: 5px;
	line-height: 1.2;
}
h1 { 
  font-family: 'Canterbury';
	font-size: 1.4rem;
	letter-spacing: 2px;
	font-weight: normal;
	text-align: center;
	border-bottom: 2px ridge var(--border);
	padding-bottom: 5px;
}
h2 { 
  font-family: 'MS PGothic', sans-serif;
	font-size: 1.25rem;
	font-weight: normal;
	text-align: center;
}
h3 { 
	font-size: 1.1rem;
}
h4 { 
	font-size: 1rem;
	color: var(--accent);
	padding-left: 12px;
}
p {
  font-family: 'MS PGothic', sans-serif;
	Padding-Bottom: 12px;
}
p.quotes{
	font-size: .9rem;
	padding-left: 25px;
}
p.ref {
	font-size: .8rem;
	padding-left: 12px;
	padding-bottom: 4px;
}
ul {
	padding-left: 25px;
}
ul li {
	padding: 5px;
}
hr	{
	border: 1px solid var(--accent);
}

vr {
  border-width: 1px;
  border-style: solid;
  color: var(--text);
  display: inline-block;
  min-height: 6px;
  border-radius: 30px;
  vertical-align: middle, stretch;
}

mark{
	border-radius: 7px;
	background-color: var(--accent);
	color: white;
	padding: 5px;
}
.pixelated {
  image-rendering: pixelated;
}
/* prevents overflow on smaller screens */
img { max-width: 100%; }
pre { overflow-x: auto; }

#ibutton {
  background-image: url('../Images/Button0.png');
  width: 250px;
  height: 250px;
  border-radius: 5px;
  
  background-size: cover;
  background-repeat: no-repeat;
  }
  
#ibutton:hover {
  background-image: url('../Images/Button1.png');
  width: 250px;
  height: 250px;
  border-radius: 5px;
  
  background-size: cover;
  background-repeat: no-repeat;
  }

a:hover, a:focus {
	font-style: italic;
}
a:visited {
	color: var(--accent);
}