@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400..700;1,400..700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Libre Baskerville', 'Times New Roman', serif;
  scrollbar-width: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges; 
  
  cursor: url('/res/cursor/normal.png') 0 0, auto;
}

.toggle-header, a, button, input, textarea, select, details, summary, [onclick] {
	cursor: url('/res/cursor/link.png') 0 0, pointer;
}


::-webkit-scrollbar {
	width: 0%;
	background: transparent;
}

body {
  background-image: url('/res/img/bg.png');
  background-repeat: repeat;
  background-size: 32px 32px;
  background-attachment: fixed;
}

table, th, td {
	border: 1px double;
}

td {
	padding: 2px;
}

main {
  background-color: white;
  line-height: 1.5;
  margin: 2rem 220px 3rem 3rem;
  padding: 2rem;
  min-height: 500px;
  justify-content: center;
  display: block;
  align-items: flex-start;
  
  border-color: black;
  border-style: ridge;
  border-width: 8px;
  background-image: url('/res/img/bg_light.png');
  background-repeat: repeat;
  background-position: 0 0;
  background-size: 32px 32px;
}

main h1 {
  font-size: 2.8rem;
  letter-spacing: .1em;
  margin-bottom: 1.2rem;
  color: darkblue;
}

main h2 {
  font-size: 2.4rem;
  text-align: center;
  text-decoration: underline dotted blue;
}

main p {
  margin-bottom: 1.2rem;
  text-indent: 1.2rem;
  font-size: 1.1rem;
}

main p:first-of-type {
  margin-top: 0.2rem;
}

main blockquote {
  margin: 1.8rem 2rem;
  /*padding: 0.8rem 1.5rem;*/
  padding: 2rem;
  background-color: white;
  color: black;
  border-width: 8px;
  border-color: black;
  border-style: inset;
}

main img,
main video,
main audio,
main iframe,
main canvas,
main figure,
main svg,
main picture,
main embed {
  display: block;
  margin-left: auto;
  margin-right: auto;
  border: 4px double #f25e02;
  max-width: 100%;
  height: auto;
}

button {
	border: solid 2px black;
	padding-top: 10px;
	padding-bottom: 10px;
	padding-left: 40px;
	padding-right: 40px;
	margin: 8px;
}

.toggle-section {
	margin: 10px 0;
	padding: 10px;
	border: 8px black ridge;
	background: white;
}

.toggle-header {
	color: blue;
	padding: 10px;
	margin: -10px -10px 10px -10px;
	user-select: none;
	text-align: center;
	font-size: 2rem;
	
}

.toggle-header:hover {
	color: black;
}

.toggle-content {
	border-top: 2px black dashed;
	margin: 1rem;
	padding: 10px 0;
}


.hidden {
	display: none;
}


.info {
    width: 100%;
    text-align: center;
    background-color: white;
    color: blue;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-width: 4px;
    border-color: blue;
    border-style: double;
}

.warning {
    width: 100%;
    text-align: center;
    background-color: yellow;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-width: 4px;
    border-color: black;
    border-style: double;
}

.error {
    width: 100%;
    text-align: center;
    background-color: red;
    color: white;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-width: 4px;
    border-color: black;
    border-style: double;
}

.highlight {
  background-color: blue;
  color: white;
  text-decoration: underline solid white;
}

.highlight a {
  background-color: blue;
  color: white;
  text-decoration: underline solid white;
}

.writing-error {
  text-decoration: underline wavy red;
}

.pl {
  background: linear-gradient(to bottom, white 0%, white 50%, red 50%, red 100%);
  border: 2px solid black;
}

.foss {
  background-color: green;
  border: 2px solid black;
}

.links {
	background: white;
	border: 8px ridge black;
	text-align: center;
	padding: 2rem;
	width: 25rem;
	margin: 0 auto;
	
	display: flex;
	flex-direction: column;
	gap: 1rem;
}


.toggle-header,.mono,code {
	font-family: monospace;
}


.guestbook {
	height: 400px;
}

.wabweh {
  position: fixed;
  bottom: 0;
  left: 0;
  display: block;
  background-size: cover;
  background-image: url("/res/img/whuh.png");
  background-position: center;
  min-width: 64px;
  min-height: 64px;
}

.wabweh:hover {
  background-image: url("/res/img/bweh.png");
}



body:has(nav) {
  height: 100%;
  margin: 0;
  padding: 0;
}
nav {
  position: fixed;
  background-color: white;
  top: 2rem;
  bottom: 2rem;
  right: 0;
  width: 160px;
  min-height: 400px;
  margin-right: 3rem;
  overflow-y: auto;
  padding: 1rem;
  border-width: 8px;
  border-color: black;
  border-style: outset;
}


nav hr {
  margin-top: 1rem;
  margin-bottom: 1rem;
  border: none;
  border-top: 4px dotted pink;
  animation: hrNavBlink 1.2s step-end infinite;
}

@keyframes hrNavBlink {
  0%, 100% { border-color: orange; }
  50% { border-color: #f25e02; }
}

a {
  color: #f25e02;
  font-weight: 900;
  font-size: 0.8rem;
}

a:hover {
	color: red;
}
