/*
Theme Name: MessagePad
Theme URI: http://eggfreckles.net
Description: Notes from my Newton
Author: Thomas Brand
Author URI: http://thomasbrand.net
Version: 2022.12.04
Licens: MIT License
License URI: https://opensource.org/licenses/MIT
Text Domain: Newton, messagepad, omp
*/

 @import url("reset.css");

body
{
	color: black;
	font-family: Sans-Serif;
}

a
{
	color: black;
}

strong a
{
	text-decoration: none;
}

strong
{
	font-weight: bold;
}

em
{
	font-style: italic;
}

sup, sub
{
	vertical-align: baseline;
	position: relative;
	top: -8px;
	font-size: 12px;
}

sub
{
	top: 8px;
}

code
{
	font-family: Courier,Monaco,monospace;
}

q
{
	quotes: '\201C' '\201D' '\2018' '\2019';
}

q:before
{
	content: open-quote;
}

q:after
{
	content: close-quote;
}

.alignright
{
	float: right;
}

.alignleft
{
	float: left;
}

img
{
	margin: 8px;
	user-select: none;
	filter: grayscale(100%);
	mix-blend-mode: multiply;
}

.footnotes hr
{
	display: none;
}

.footnotes
{
	border-top: 4px dotted black;
}

#omp
{
	width: 656px;
	margin: 20px auto 20px auto;
	border-width: 365px 198px 490px 137px;
	border-style: solid;
	background-clip: padding-box;
}

#screen
{
	width: 640px;
	margin: -266px 0px -65px 0px;
	padding: 8px 8px 32px 8px;
	border-top-right-radius: 0px;
	border-top-left-radius: 0px;
	border-bottom-right-radius: 320px 24px;
	border-bottom-left-radius: 320px 24px;
	box-shadow: inset 0px 0px 10px black;
}

header
{
	height: 30px;
	display: block;
	width: auto;
	margin-bottom: 12px;
	background-color: black;
	user-select: none;
	opacity: 0.75;
}

header a:first-of-type
{
	position: relative;
	font-weight: bold;
	font-size: 20px;
	top: 6px;
	left: 10px;
	float: left;
	text-decoration: none;
}

#slogan
{
	float: right;
	height: 30px;
	padding-right: 26px;
	text-align: center;
	font-size: 20px;
	font-weight: bold;
	display: block;
	background-position: right -164px;
}

#slogan span
{
	text-decoration: none;
	height: 30px;
	line-height: 44px;
	display: block;
	padding-left: 42px;
	background-position: left -164px;
	background-color: inherit;
}

h1
{
	display: block;
	width: auto;
	height: 30px;
	background-repeat: repeat-x;
	margin-left: 2px;
}

h1 a
{
	float: left;
	font-size: 16px;
	line-height: 30px;
	font-weight: bold;
	letter-spacing: 2px;
	text-decoration: none;
	padding-left: 8px;
	padding-right: 8px;
	background-color: inherit;
}

.stationary
{
	width: 30px;
	height: 30px;
	padding: 0;
	background-position: left -134px;
	background-color: inherit;
}

.stationary:hover
{
	background-position: -30px -134px;
}

.file
{
	float: right;
	width: 42px;
	height: 30px;
	padding: 0;
	background-position: left -68px;
	background-color: inherit;
}

.file:hover
{
	background-position: left -98px;
}

.mail
{
	float: right;
	width: 34px;
	height: 30px;
	padding: 0;
	background-position: -42px -68px;
	background-color: inherit;
}

.mail:hover
{
	background-position: -42px -98px;
}

main
{
	width: auto;
	min-height: 888px;
	line-height: 22px;
	text-align: left;
	font-weight: normal;
	margin: 0 auto 0 auto;
	background-color: inherit;
	opacity: 0.75;
}

#index
{
	margin-top: 12px;
	margin-bottom: 14px;
}

#index li
{
	list-style-type: none;
	margin: 0;
	padding: 0;
	background-image: none;
}

#index li:hover, #index li:active
{
	background: linear-gradient(90deg, transparent 70px, black -9999px);
}

#index li a
{
	display: block;
	height: 58px;
	width: auto;
	padding-left: 72px;
	padding-top: 6px;
	line-height: 12px;
	text-decoration: none;
	background-position: -220px -68px;
	background-repeat: no-repeat;
}

#index li a:hover
{
    background-position: -148px -68px;
	background-repeat: no-repeat;
}

#index li a:active
{
    background-position: -76px -68px;
	background-repeat: no-repeat;
}

#index li small
{
	font-size: 12px;
	font-weight: normal;
	font-family: monospace;
}

main p
{
	margin: 12px 10px 12px 22px;
}

main ul li
{
	margin: 12px 10px 12px 22px;
	padding: 0px 0px 0px 62px;
	background-repeat: no-repeat;
}

main ol li
{
	margin: 12px 10px 12px 42px;
	padding: 0;
	background-image: none;
	list-style: decimal;
}

main blockquote
{
	border-left: 1px black dotted;
	margin: 12px 10px 12px 38px;
	padding: 0 0 0 12px;
}

nav
{
	height: 34px;
	background-repeat: repeat-x;
	font-size: 22px;
	line-height: 34px;
	font-weight: bold;
	width: 100%;
	list-style: none;
	user-select: none;
	opacity: 0.75;
}

.button
{
	float: left;
	text-align: center;
	height: 34px;
	margin-left: 6px;
	padding-right: 12px;
	background-position: right top;
	background-color: inherit;
}

.button a
{
	text-decoration: none;
	display: block;
	height: 34px;
	line-height: 34px;
	padding-left: 18px;
	background-position: left top;
	background-color: inherit;
}

.button a:hover
{
	background-position: left -34px;
	padding-right: 12px;
	margin-right: -12px;
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
}

nav ul, #down, #up
{
	background-color: inherit;
}

#down a
{
	float: left;
	display: block;
	width: 44px;
	height: 34px;
	margin-left: 6px;
	background-position: -116px -34px;
	background-color: inherit;
}

#down a:hover
{
	background-position: -204px -34px;
}

#up a
{
	float: left;
	display: block;
	width: 44px;
	height: 34px;
	margin-left: 6px;
	background-position: -160px -34px;
	background-color: inherit;
}

#up a:hover
{
	background-position: -248px -34px;
}

/* Seperation of colors prefers-color-scheme: light */

body
{
	background-image: url("../images/hickory.jpg");
	background-color: #ab9;
}

#omp
{
	border-image: url('../images/omp.svg') 365 198 490 137 repeat stretch;
}

#screen, h1, main, nav, #slogan
{
	background-color: #ab9;
}

header a:first-of-type, .button a:hover, #index li a:active, #index li a:hover
{
	color: #ab9;
}

::-moz-selection
{
	background: black; color: #ab9;
}

::selection
{
	background: black; color: #ab9;
}

@media (prefers-color-scheme: dark) {
body
{
	background-image: url("../images/hickory-dark.jpg");
	background-color: #3da;
}

#omp
{
	border-image: url('../images/omp-dark.svg') 365 198 490 137 repeat stretch;
}

#screen, h1, main, nav, #slogan
{
	background-color: #3da;
}

header a:first-of-type, .button a:hover, #index li a:active, #index li a:hover
{
	color: #3da;
}

::-moz-selection
{
	background: black; color: #3da;
}

::selection
{
	background: black; color: #3da;
}
}

@media screen and (orientation: portrait) {
	body
	{
		background-image: none !important;
	}
	
	#screen, #omp
	{
		padding: 0px !important;
		box-shadow: none !important;
		border: none !important;
		margin: 0 auto 0 auto !important;
		width: 100% !important;
		min-width: 640px !important;
		height: 100% !important;
		border-bottom-right-radius: 0px;
		border-bottom-left-radius: 0px;
	}
	
	header
	{
		position: sticky;
		top: 0px;
		z-index: 1;
		opacity: 1;
	}

	main
	{
		padding-bottom: 50px;
		opacity: 1;
	}

	nav
	{
		position: fixed;
		bottom: 0px;
		padding-bottom: 8px;
		opacity: 1;
	}
}

@media print {
	*
	{
		color: black !important;
		background-image: none !important;
		background-color: white !important;
		opacity: 1 !important;
	}
	
	header, .stationary, .file, .mail, nav
	{
		display: none !important;
	}
	
	#screen, #omp
	{
		width: auto !important;
		padding: 8px !important;
		box-shadow: none !important;
		border: none !important;
		margin: 0px !important;
		background-color: white !important;
	}
	
	h1:after
	{
		content: "| By Thomas Brand";
		font-size: 16px;
		line-height: 30px;
		font-weight: bold;
		letter-spacing: 2px;
	}
}

