h1, h2, h3, h4, h5, h6 {
  color: #666;
  line-height: 1.5em;
  height: 50px;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  color: inherit;
  text-decoration: none;
}

h1 a strong, h2 a strong, h3 a strong, h4 a strong, h5 a strong, h6 a strong {
  color: #333;
}

h1{
  font-weight: bold;
}

h1, h2 {
  font-size: 2em;
  letter-spacing: -1px;
}

h3 {
  font-size: 1.5em;
}

p{
  font-size: 0.9em;
}

/* Section and aside */
section, aside {
  padding: 1em;
}

aside {
  border-left: 2px solid rgba(0,0,0,0.75);
}

input, select, textarea, iframe, #firepad-container {
          box-shadow: inset 0px 0px 2px 0px rgba(0,0,0,0.75);
     -moz-box-shadow: inset 0px 0px 2px 0px rgba(0,0,0,0.75);
  -webkit-box-shadow: inset 0px 0px 2px 0px rgba(0,0,0,0.75);
  border: none;
  padding: 5px 20px;
}

input, select, textarea {
          border-radius: 3px 3px 3px 3px;
     -moz-border-radius: 3px 3px 3px 3px;
  -webkit-border-radius: 3px 3px 3px 3px;
}

input:focus, select:focus, textarea:focus{
  -webkit-box-shadow: 0px 0px 3px 1px rgba(224,58,72,1);
  -moz-box-shadow: 0px 0px 3px 1px rgba(224,58,72,1);
  box-shadow: 0px 0px 3px 1px rgba(224,58,72,1);
}

main, section{
  height: 100%;
}

main {
  width: 100%;
}

section#left{
  float: left;
  width: 50%;
}

section#right{
  float: right;
  width: 50%;
  border-left: 2px solid rgba(224,58,72,1);
}

article#scriptContainer{
  height: calc(100% - 62px);
}

input[type="button"] {
  margin: 10px 0;
  height: 26px;
}

iframe#scriptIframe{
  height: calc(100% - 50px);
  width: 100%;
}

.firepad {
  width: 100% !Important;
  height: calc(100% - 216px) !Important;
  margin: 10px 0;
}

#logo{
  float: right;
  width: 200px;
}

/* --- light tidy-up for viewer pages (introR etc.) --- */

body{
  background: #f4f5f7;
  color: #222;
  font-family: Arial, Helvetica, sans-serif;
}

main{
  height: 100%;
}

/* Make the two panels look like intentional columns */
section#left, section#right{
  padding: 16px 18px;
}

section#left{
  background: #ffffff;
}

section#right{
  background: #fbfbfc;
}

/* Headings: smaller, cleaner, no forced height */
h1, h2, h3, h4, h5, h6{
  height: auto;
  line-height: 1.2em;
  margin: 0 0 10px 0;
  color: #333;
}

h2{
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0;
}

p{
  font-size: 13px;
  line-height: 1.45;
  color: #444;
  margin-bottom: 10px;
}

/* Button: make it look like a button */
input[type="button"]{
  height: auto;
  padding: 7px 12px;
  border: 1px solid #bbb;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

input[type="button"]:hover{
  border-color: #888;
}

/* Keep functionality, but soften the “boxes” */
input, select, textarea, iframe, #firepad-container{
  box-shadow: none;
  border: 1px solid #ddd;
  padding: 8px 10px;
  background: #fff;
}

/* Script container spacing */
article#scriptContainer{
  height: calc(100% - 90px);
}

/* Make iframe fill nicely */
iframe#scriptIframe{
  height: calc(100% - 44px);
  border-radius: 6px;
}

/* Firepad sizing stays, but looks nicer */
.firepad{
  border-radius: 6px;
  height: calc(100% - 170px) !important;
}

/* --- Viewer page tidy-up (introR etc.) --- */

/* Buffer around the whole page */
body{
  background: #f4f5f7;
}

main{
  padding: 16px !important;     /* outer buffer */
  height: 100vh;
  box-sizing: border-box;
}

/* Two columns with a nicer gap and no “red line” */
main{
  display: flex;
  gap: 16px;                    /* space between columns */
}

/* Remove any existing divider line and add padding inside each column */
section#left, section#right{
  width: auto !important;       /* overrides old 50% widths if present */
  float: none !important;       /* overrides float layout if present */
  flex: 1 1 0;
  border: 0 !important;         /* removes the red line if it was a border */
  padding: 16px !important;     /* inner buffer */
  background: #ffffff;
  box-sizing: border-box;
}

/* Make headings look like headings (not body text) */
h2{
  font-size: 20px !important;
  font-weight: 700 !important;
  margin: 0 0 10px 0 !important;
}

p{
  font-size: 13px;
  margin: 0 0 10px 0;
  color: #444;
}

/* Make the logo about half size and position it nicely */
#logo{
  width: 120px !important;      /* tweak to taste: 100–140px */
  height: auto !important;
  float: none !important;
  display: block;
  margin: 0 0 12px auto;        /* pushes it to the right */
}

/* Ensure the main content areas still fill the column height */
section#left, section#right{
  display: flex;
  flex-direction: column;
}

article#scriptContainer,
#firepad-container{
  flex: 1 1 auto;
  min-height: 0;                /* important for flex + scrolling children */
}

/* Keep iframe/firepad filling available space */
iframe#scriptIframe{
  width: 100%;
  height: 100% !important;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

/* Put the right-panel title and logo on one line */
.rightHeader{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

/* Stop the logo floating (your CSS currently floats it) */
#logo{
  float: none !important;
  width: 120px !important;   /* adjust if you want */
  height: auto !important;
  margin: 0 !important;
}

/* Make sure the h2 doesn’t have weird margins */
.rightHeader h2{
  margin: 0 !important;
}


