html, body, h1, h2, h3, p, div, span, a, img, br, table, tr, td, th, tbody, thead {
  margin: 0;
  padding: 0;
}

hr {
	margin:10pt 0;
	padding: 0;
}

h1 {
  margin-bottom: 0.67em;
  border-bottom: 1px dashed red;
}

h2 {
  margin-bottom: .83em;
  margin-top: .83em;
}

h3 {
  margin-bottom: .415em;
  margin-top: .83em;
}

h4 {
  margin-bottom: 0.3em;
  margin-top: 0.7em;
}

p {
  margin: 1em 0;
  text-align: justify;
}

body {
  background-color: #35231c;
  color: black;
  margin: 10px;
}

img {
  border: 0;
  max-width: 95%;
  height: auto;
}

#logo img {
  max-width: none;
}

textarea {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  max-width: 100%;
}

pre {
  font-size: 1.0em;
  background-color: #f5ede0;
  margin: 1em 0 1em 20px;
  padding: 0.6em 0.9em;
  white-space: pre-wrap;
  word-wrap: break-word;
  border-left: 3px solid #874739;
}

.impressum, .impressum a {
	text-align: center;
	color: #bd9979;
	font-size: small;
}

/* Tutorial figures (screenshots) */
figure.tut-figure {
  margin: 1.2em 0 1.2em 20px;
  border: 1px solid #888;
  display: inline-block;
  max-width: calc(100% - 40px);
}

figure.tut-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0;
  border: 0;
}

figure.tut-figure figcaption {
  padding: 0.35em 0.6em;
  background-color: #cda985;
  font-size: small;
  border-top: 1px solid #888;
}

/* Progressive step tables in tutorials */
.step-table {
  border-collapse: collapse;
  margin: 1em 0 1em 20px;
  font-size: 0.9em;
}

@media (max-width: 700px) {
  .step-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: 0;
  }
  .step-table-caption {
    margin-left: 0;
  }
}

.step-table-caption {
  margin: 1em 0 0 20px;
  font-style: italic;
}

.step-table th,
.step-table td {
  border: 1px solid #999;
  padding: 0.2em 0.6em;
  vertical-align: top;
}

.step-table th {
  background-color: #d4c4b4;
}

.step-table tr td {
  background-color: #cfa784;
}

.step-table tr.row-new td {
  background-color: #fffacd;
}

.step-table tr.row-changed td {
  background-color: #d9f0d9;
}

/* Malbolge code and Normalized columns use monospace */
.step-table td:nth-child(2),
.step-table td:nth-child(3) {
  font-family: monospace;
  text-align: center;
}

/* Reverse-engineering tutorial table */
.rev_tut table {
  border-collapse: collapse;
  margin-left: 20px;
}

.rev_tut td, .rev_tut th {
  border: 1px solid black;
  text-align: center;
}

.rev_tut th {
  padding: .3em;
}

/* External link indicator */
a.ext::after {
  content: "\2197";
  font-size: 0.7em;
  vertical-align: super;
  margin-left: 2px;
  font-style: normal;
  font-weight: normal;
}

.clearboth {
  clear: both;
}

.small {
  font-size: small;
}
.typewriter {
  font-family: monospace;
}
#language_selection {
  font-size: 0.9em;
  text-align: right;
  margin: 0;
  margin-right: 3px;
  margin-top: 2px;
  position: relative;
}

#language_selection a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-style: italic;
}

#language_selection a:hover {
  color: white;
  text-decoration: underline;
  font-weight: bold;
  font-style: italic;
}

#language_selection a:active {
  color: white;
  text-decoration: underline;
  font-weight: bold;
  font-style: italic;
}

#page {
  margin: 0 auto;
  border: 1px solid red;
  top: 0;
  width: 100%;
  max-width: 1700px;
}

.keyword {
    font-style: italic;
}

.hell_command, .hell_section, .hell_label, .hell_constant, .hell_expression, .io_stream, .malbolge_register, .malbolge_instruction {
	font-weight: bold;
	font-family: monospace;
	font-size: 1em;
	background-color: #e5d6c5;
	padding: 1px 3px;
	border-radius: 2px;
	word-wrap: break-word;
}

pre .hell_command, pre .hell_section, pre .hell_label, pre .hell_constant {
	font-weight: normal;
	font-size: 1em;
	background-color: transparent;
	padding: 0;
	border-radius: 0;
}

pre .hell_section {
	color: #1e4fa8;
}

pre .hell_label {
	color: #8b2000;
}

pre .hell_command {
	color: #1a6b1a;
}

pre .hell_constant {
	color: #7a2a8a;
}

@media (min-width: 500px) {
#top {
  position: relative;
  left: 0;
  top: 0;
  color: white;
  height: 175px;
  right: 0;
  overflow: hidden;
}

#logo {
  height: 175px;
  position: absolute;
  left: 0;
  padding-top: 0;
  text-align: left;
}
}

@media (max-width: 500px) {
#top {
  position: relative;
  left: 0;
  top: 0;
  color: white;
  right: 0;
  overflow: hidden;
}

#logo {
  display: none;
}
}

#menu {
  position: relative;
  background-color: white;
  font-style: italic;
  left: 0;
  right: 0;
  clear: both;
  border-bottom: 1px solid red;  
  border-top: 1px solid red;  
}

#menu ul {
  margin: 0;
  padding: 0;
}

#menu ul li {
  margin: 0;
  padding: 0;
  list-style: none;
  float: left;
}

#menu ul li a {
  padding: 5px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 0;
  color: black;
  text-decoration: none;
  font-weight: bold;
  font-style: italic;
  display: block;
}


#menu ul li a:hover {
  text-decoration: underline;
  color: black;
}

#menu ul li a:active {
  text-decoration: underline;
  color: black;
}

#menu .menu-back {
  float: right;
  padding: 5px 10px;
  color: #874739;
  text-decoration: none;
  font-style: normal;
  font-weight: normal;
  font-size: 0.85em;
  display: block;
}

#menu .menu-back:hover,
#menu .menu-back:active {
  text-decoration: underline;
  color: #874739;
  font-weight: normal;
}

#menuActive a {
  background-color: #874739;
}

#menuActiveFather a {
  background-color: #a96556;
}

#untermenu {
  position: relative;
  background-color: white;
  font-style: italic;
  left: 0;
  right: 0;
  clear: both;
  font-size: small;
}

#untermenu ul {
  margin: 0;
  padding: 0;
}

#untermenu ul li {
  margin: 0;
  padding: 0;
  list-style: none;
  float: left;
}

#untermenu ul li a {
  padding: 3px;
  padding-left: 7px;
  padding-right: 7px;
  margin: 0;
  color: black;
  text-decoration: none;
  font-weight: bold;
  font-style: italic;
  display: block;
}

#untermenu ul li a:hover {
  text-decoration: underline;
  color: black;
}

#untermenu ul li a:active {
  text-decoration: underline;
  color: black;
}

::selection {
color: white; background-color:#A00000;
}

::-moz-selection {
color: white; background-color:#A00000;
}

#pagebody {
  clear: both;
  position: relative;
  left: 0;
  right: 0;
  background-color: #bd9979;
  overflow: hidden;
}

#inhalt {
  clear: both;
  margin: 20px;
}

#pagebody a {
  color: black;
  text-decoration: none;
  font-weight: bold;
  font-style: italic;
}

#pagebody a:hover {
  color: gray;
  text-decoration: none;
  font-weight: bold;
  font-style: italic;
}

#pagebody a:active {
  color: gray;
  text-decoration: none;
  font-weight: bold;
  font-style: italic;
}

.smiley {
  white-space: nowrap;
}

@media (min-width: 480px) {
#pietimage1 {
  display:block;
  float:right;
  margin:0;
  margin-left:1.0em;
  margin-bottom:0.3em;
  width:136px;
}

#pietimage2 {
  display:block;
  float:right;
  margin:0;
  margin-left:1.0em;
  margin-bottom:0.3em;
  width:184px;
}

#pietimage3 {
  display:block;
  float:right;
  margin:0;
  margin-left:1.0em;
  margin-bottom:0.3em;
  width:184px;
}
}

@media (max-width: 900px) {
#hellide_screenshot {
  display:none;
}
}

@media (max-width: 639px) {
#wtris_screenshot {
  display:none;
}
}

@media (max-width: 480px) {
#pietimage1 {
  display:none;
}

#pietimage2 {
  display:none;
}

#pietimage3 {
display:none;
}
}

#piet_bf_textarea {
  min-width: 70%;
}

.monospace {
  font-family: monospace;
}

.nomargintop {
  margin-top:0;
}

#big {
  display:none;
}

#pietbfi {
  float:left;
  margin-right:5pt;
  margin-bottom:5pt;
}

#pietbfi_generated {
  float:left;
  margin-right:5pt;
  margin-bottom:5pt;
  margin-top:5pt;
}

#pietbfexplaination {
  margin-top: 8px;
  margin-bottom: 8px;
  width: 100%;
}

#pietbfexplaination .description {
  margin: 0;
  margin-left: auto;
  margin-right: auto;
  width: 70%;
}

#pietbfexplaination .image {
  text-align: center;
  margin: 0;
  width: 100%;
}

.malbolge_code {
  font-family: monospace;
  max-width: 85%;
}

#malbolge_quine {
  width: 100%;
  height: 70vh;
}

#robin_screenshot {
  float:right;
  margin:0;
  margin-left:1.0em;
  margin-bottom:0.3em;
}

#robin_screenshot #small {
  width:320px;
  display: inline-block;
}

#robin_screenshot #big {
  width:470px;
}

.valigntop {
  vertical-align:top;
}

.taligncenter {
  text-align:center;
}

.fett {
  font-weight:bold;
}

table td {
  vertical-align: top;
}

table td.malbolge_code {
  vertical-align: middle;
}

.error {
  color: maroon;
  font-weight: bold;
}

em {
  font-weight: bold;
  font-style: normal;
  text-decoration: none;
}

strong {
  font-weight: bold;
  font-style: italic;
  text-decoration: none;
}

#print_quine {
  display: none;
}

@media print {
img {
  max-width: 100%;
  height: auto;
}
body {
  background-color: #FFFFFF;
}
#top {
  display: none;
}
#menu {
  display: none;
}
#untermenu {
  display: none;
}
#pagebody {
  background-color: #FFFFFF;
}
h1 {
  border-bottom: 0;
}
#pietimage1 {
  display:none;
}
#pietimage2 {
  display:block;
  float:right;
  margin:0;
  margin-left:1.0em;
  margin-bottom:0.3em;
  width:184px;
}
#pietimage3 {
  display:none;
}
#hellide_screenshot {
  display: none;
}
#online_bf2piet_form {
  display: none;
}
#wtris_screenshot {
  display:none;
}
#robin_screenshot {
  display: none;
}
object {
  display: none;
}
#print_quine {
  display: inline;
}
#page {
  border: 0;
}
.impressum {
  display: none;
}
}
