body { font: 20px system-ui, Roboto, "Segoe UI", sans-serif; background-color: #fff; color: #111; text-align: center; margin: 0; padding: 0; border-top: 1rem solid #004080; }
header { margin: 2rem auto; padding: 0; }
section { width: 800px; margin: 4rem auto 2rem auto; padding: 0; text-align: left; }
section.home { display: flex; justify-content: space-between; margin-top: 5rem; }

h1 { color: #222; font-size: 3rem; line-height: 1; margin: 0; padding: 0; }
h1 a, h1 a:active, h1 a:visited { color: #222; border-bottom: 0.25rem solid #ccc; text-decoration: none; }
h1 a:hover { color: #222; border-bottom: 0.25rem solid #222; text-decoration: none; }
h2 { color: #444; font-weight: normal; margin: 2rem 0 0 0; padding: 0; }
.skinny { font-weight: normal; }
h3 { color: #444; margin: 1rem 0 0 0; padding: 0; }
a, a:visited, a:hover { color: #004080; }
a:active { color: #111; }
p, li { line-height: 1.4; }

.description, .example { margin: 0; padding: 0; }
.description p { margin: 0 0 2rem 0; padding: 0; }
.description h1 { margin-bottom: 0.75rem; }
.homelinks { color: #aaa; }
.homelinks a, .homelinks a:visited { font-size: 1.5rem; line-height: 1; font-weight: bold; text-decoration: none; }
.homelinks a:hover { text-decoration: underline; }
.homelinks a:active { color: #333; }
.example { text-align: center; }
textarea { margin: 0; }
.example #buttons { margin-top: 1rem; }
.example input { margin: 0 1rem; }

form { width: 50%; padding: 0.67rem; background-color: #eee; margin: 1.5rem 0; }
input[type=text], input[type=submit] { display: inline; background-color: #fff; font-size: 0.9rem; line-height: 1; border: none; }
input[type=text] {  width: 67%; padding: 0.25rem; }
input[type=submit] { display: inline; -webkit-appearance: none; color: #004080; border-radius: 0.25rem; padding: 0.25rem 1rem; margin-left: 1rem; }
.oneliner { display: flex; justify-content: space-between; }
#warning { display: block; margin-top: 0.75rem; color: #a00000; font-size: 0.75rem; line-height: 1; }

ul { padding-left: 1rem; }
ul li { margin-bottom: 0.5rem; }
h2:target { margin-left: -1.5rem; padding-left: 0.5rem; border-left: 1rem solid #fc6; }
code { white-space: pre-wrap; word-wrap: break-word; }
.emoji { display: block; text-align: center; margin: 1rem auto 2rem auto; font-size: 6em; }
.pcenter { text-align: center; }

@media only screen and (max-width: 736px) {
body { font-size: 18px; }
h1 { margin-bottom: 0.25rem; }
section { width: 90%; margin: 2rem auto; }
section.home { flex-wrap: wrap; margin-top: 3rem; }

.description, .example { margin: 0 auto 3rem auto; text-align: center; }
textarea { width: 300px; height: 240px; font-size: 18px; line-height: 22px; }

form { width: 90%; margin: 2rem 0; }
input[type=text] { width: 50%; }
input[type=submit] { padding: 0.25rem 1rem; }
.emoji { font-size: 1em; margin: 4rem 0; transform: scale(3,3); }

.example textarea { width: 20rem; height: 15rem; padding: 1.5rem 0.5rem 0.5rem 0.5rem; box-shadow: inset 0 1.2rem 0 0 #004080, inset -0.2rem 0 0 0 #e3e3e3, inset 0 -0.2rem 0 0 #e3e3e3, inset 0.2rem 0 0 0 #e3e3e3; }
.example textarea:hover { box-shadow: inset 0 1.2rem 0 0 #004080, inset -0.2rem 0 0 0 #d6d6d6, inset 0 -0.2rem 0 0 #d6d6d6, inset 0.2rem 0 0 0 #d6d6d6; }
.example textarea:focus { box-shadow: inset 0 1.2rem 0 0 #004080, inset -0.2rem 0 0 0 #9f9f9f, inset 0 -0.2rem 0 0 #9f9f9f, inset 0.2rem 0 0 0 #9f9f9f; }
}

@media (prefers-color-scheme: dark) {
body { background-color: #111; color: #eee; }
h1, h1 a, h1 a:active, h1 a:visited, h1 a:hover { color: #ddd; }
h1 a, h1 a:active, h1 a:visited { border-bottom: 0.25rem solid #aaa; }
h1 a:hover { border-bottom: 0.25rem solid #ddd; }
h2, h3 { color: #aaa; }
form { border: none; background-color: #3a3a3a; }
input[type=text], input[type=submit] { background-color: #1a1a1a; color: #eee; border: none; }
a, a:visited, a:hover, .homelinks a, .homelinks a:visited, .homelinks a:hover { color: #008AFF; }
}

@media screen and (max-width: 736px) and (prefers-color-scheme: dark) {
.example textarea { box-shadow: inset 0 1.2rem 0 0 #004080, inset -0.2rem 0 0 0 #333, inset 0 -0.2rem 0 0 #333, inset 0.2rem 0 0 0 #333; }
.example textarea:hover { box-shadow: inset 0 1.2rem 0 0 #004080, inset -0.2rem 0 0 0 #444, inset 0 -0.2rem 0 0 #444, inset 0.2rem 0 0 0 #444; }
.example textarea:focus { box-shadow: inset 0 1.2rem 0 0 #004080, inset -0.2rem 0 0 0 #888, inset 0 -0.2rem 0 0 #888, inset 0.2rem 0 0 0 #888; }
}
