* { resize: none; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
html, body, #container1, #container2 { height: 100%; }
body { margin: 0; background-color: white; font-family: "Times New Roman", serif; }
button, input[type=button]  { position: relative; border: 1px solid #444; border-radius: 2px; }
button, input[type=button], .charsHeading  { background-color: #e0e0e0; background-repeat: no-repeat; background-position: center; }
button:hover, input[type=button]:hover, #options label:hover, #moreTags td:hover, .char:hover   { cursor: pointer; background-color: #d0d0d0; }
button:active, input[type=button]:active  { background-color: #c0c0c0; }
button { padding: 0.2em 0.4em; }
input[type=checkbox] { margin-left: 0; }
input[type=text] { border: 1px solid #444; }
input[type=text], textarea { outline: 0; }

#container1 { padding: 0.5em 0.7em; }
#container2 { position: relative; }
#top { padding: 0.4em 0.3em 0.4em 0.5em; border: 1px solid black; border-bottom: none; position: relative; z-index: 1; }
#title { font-size: 125%; font-weight: bold; color: #333; }
#lastUpdated { position: relative; top: -0.12em; font-size: 62.5%; color: #666; margin-left: 0.7em; }
#form { margin: 0.4em 0 0 0.1em; }
#tags, #commands { display: inline; }
#tags input, #commands input  { font-family: arial, cambria, "sans-serif"; font-size: 85%; }
#tags input, #commands input  { margin: 0 0.4em 0 0; padding: 0; min-width: 1.8em; height: 1.8em; vertical-align: bottom; }
#cmd_options > input, #cmd_links  > input, #commands #cmd_convert  { padding-left: 0.375em; padding-right: 0.375em; }
#strong { font-weight: bold; }
#em { font-style: italic; }
#ins { text-decoration: underline; }
#del { text-decoration: line-through; }
#tags #undo[disabled], #tags #redo[disabled] { background-color: white; } 
#tags #undo[disabled]:hover, #tags #redo[disabled]:hover { cursor: default; } 

#cmd_convert { display: none; }
#commands #cmd_convert { background-color: #bff; }
#commands #cmd_convert:hover { background-color: #98ffff; }

#a { background-image: url('images/svg-link.svg?v'); background-size: 64%; } 
#blockquote { background-image: url('images/svg-indent.svg?v'); background-size: 58%; background-position: 50% 55%; } 
/* www.flaticon.com/free-icon/vacations-sunset_70161 */
#img { background-image: url('images/svg-sunset.svg?v'); background-size: 74%; }
#remove { background-image: url('images/svg-NotLessThan.svg?v'); background-size: 57%; background-position: 46% 53%; } 
/* http://www.flaticon.com/free-icon/left-quote_59149 */
#quote2 { background-image: url('images/svg-ldquo.svg?v'); background-size: 39%; background-position: 50% 33.5%; }
/* adapted from the double quote */ 
#quote1 { background-image: url('images/svg-lsquo.svg?v'); background-size: 39%; background-position: 50% 33.5%; } 
/* www.flaticon.com/free-icon/signing-the-contract_69001 */
#signature { background-image: url('images/svg-signature.svg?v'); background-size: 68%; background-position: 67% 57%; } 
/* using svg for the enabled state doesn't work in IE, all versions, including MS Edge */
/* #undo { background-image: url('images/svg-undo.svg'); background-size: 57%; background-position: 57% 50%; } */
/* www.flaticon.com/free-icon/undo-arrow_34213 */
#undo { background-image: url('images/png-undo.png?v'); background-size: 57%; background-position: 57% 47%; }
#undo[disabled] { background-image: url('images/svg-undo-disabled.svg?v'); } 
/* #redo { background-image: url('images/svg-redo.svg?v'); background-size: 57%; background-position: 43% 50%; } */
/* www.flaticon.com/free-icon/redo-arrow_34243 */
#redo { background-image: url('images/png-redo.png?v'); background-size: 57%; background-position: 45% 47%; }
#redo[disabled] { background-image: url('images/svg-redo-disabled.svg?v'); }
#linksButton { background-image: url('images/svg-www.svg?v'); background-size: 69.5%; } 
#cmd_optionsButton { background-image: url('images/svg-options.svg?vW'); background-size: 69.5%; }

/* the textarea caused problems in IE & FF, hence the absolute positioning */
/* first used float left on #input & #output, */
/* but those elements were repeatedly vanishing in Chrome when deleting enough text to go from overflow to no overflow */
/* both #input & #output contribute an inner border to keep their inner widths equal */
#input, #output { position: absolute; width: 50%; height: 200px; border: 1px solid black; padding: 0.75em 0.65em; overflow: auto; }
#input { left: 0; font: inherit; margin: 0; }	/* Firefox is setting the top margin to 1px somehow */
#output { right: 0; word-wrap: break-word; border-left: 1px solid transparent; }
#output a:hover { text-decoration: underline double; }

#overview { display: none; }
.divider1, .divider2 { width: 100%; border-style: solid; border-color: #333; }
.divider1 { height: 1px; border-width: 1px 0 0 0; }
.divider2 { height: 2px; border-width: 1px 0 1px 0; }

#message { position: absolute; left: -3px; bottom: -2px; display: none; z-index: 10; } 
#message { color: white; background-color: #333; padding: 0.25em 0.4em }
#message span { text-decoration: underline; cursor: pointer; }

#more, #cmd_options, #cmd_links { display: inline-block; }
#more > div, #cmd_options > div , #cmd_links > div  { position: absolute; padding-top: 0.25em; }
#moreTags  { opacity: 0; border-collapse: collapse; background-color: white; box-shadow: -2px 2px 5px #aaa; }
#moreTags td { text-align: center; min-width: 3.25em; padding: 0.3em 0.25em; border: 1px solid #444; }

#options, #links { opacity: 0; background-color: white; border: 1px solid #444; box-shadow: -4px 4px 10px #666; } 
#options button, #links button { font-size: 75% }
#options input, #links input { height: auto; }

#options { position: relative; padding: 0.75em 0.6em; }
#options input { margin: 0 0.6em 0 0; vertical-align: -1px; min-width: 0; }
#options input { border: 0; background-color: transparent; }		/* for ie9 & ie10 */
#options select { margin: 0 0.6em 0 0; vertical-align: top; }
#options label, #options div.label { display: block; padding: 0.125em 0.3em; }
#options .inactiveLabel:hover { cursor: default; background-color: transparent; }
#options label, #options div.label  { margin-top: 0.15em; }
#options div.buttons { margin: 0.6em 0 0 0.3em; padding: 0.12em 0; }
#options button { margin-right: 0.6em; }
#cookiesDisabled { display: none; line-height: normal; margin: 0 0.3em 0.6em 0.3em; }
#options #fontSize { margin-left: 1em; }

#links { padding: 1em 0.6em; }
#links input[type=text] { background-color: white; width: 12em; padding: 0.25em; font: inherit; margin: 0; }
#links a { display: block; text-decoration: none; color: inherit; margin: 0.8em 0 0 0.25em; }
#links a:hover { text-decoration: underline; }
#links button { margin: 1.4em 0 0 0.25em; }
#links #linksQuote { margin-left: 0.5em; }

#charsDiv { position: absolute; top: 0.3em; bottom: 0.3em; left: -101%; overflow-y: hidden; max-width: 48%; z-index: 2; }
#charsDiv { border: 1px solid black; padding: 0.5em 0.5em 1em 0.5em; background-color: white; box-shadow: -4px 4px 10px #666; }
#charsTop { margin-bottom: 0.4em; }
#charsTop span, #charsTop label  { margin-right: 0.2em; } 
#charsTableDiv { overflow-y: scroll; border-top: 1px solid #bbb; }
#charsData { position: absolute; display: none; }
#charsTable { border-collapse: collapse; line-height: 110%; }
td { border: 1px solid #bbb; padding: 0.25em 0.35em; border-top: 0; }
td:first-child { text-align: center; }
td.charsHeading { text-align: left; font-weight: bold; padding: 0.6em 0 0.4em .25em; }

.icon  { position: relative; top: 1px; width: 0.8em; height: 0.8em; margin: 0 0em; }
