body {
  font-size: 0.95em;
  font-family: Arial, Helvetica, sans-serif;
  margin: 8px 32px;
}

/* Main boxes. */
#boxheading { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
}
#boxheading .slogan { 
  display: block;
  vertical-align: middle;
  text-align: center;
  padding: 0 16px;
}

#boxheading .slogan ~ .slogan { 
  padding-left: 0; 
}

#boxheading img[src*="logo"] {
  width: 240px;
  padding-right: 24px;
}

#boxheading img[src*="helix"] {
  float: right;
  width: 100px;  /* Native size is 120px. */
  /*height: 114px;*/
  padding-left: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
} 

.boxouter { 
  clear: both; 
  min-width: 824px; 
  overflow: hidden; 
  max-width: 1930px; 
  margin: auto;
}
.boxleft { 
  float: left;
  width: 32%; 
  min-width: 0;  /* Overwritten in media query. */
}
.boxright { 
  float: right; 
  width: 65%; 
  min-width: 536px;  /* = 16 + 2 + 5 * 100 + 2 + 16. */
}  

.select-choice {
  float: left;
  width: 20%;
  min-width: 108px;
  margin-right: 4px;
}

.select-results {
  float: right; 
  width: 75%;
  min-height: 512px;
  margin-bottom: 8px;
}

/* Individual styles. */
.textpink { color: deeppink; }
.textgray { color: darkgray; }
.textblue { color: blue; }
.textplain { text-decoration: none; color: black; }
.textbf { font-weight: bold; }
.textit {  font-style: italic; }
.textsmaller { font-size: 0.875em; }
.textlarger { font-size: 1.15em; }
.textevenlarger { font-size: 1.25em; }
.texttitlelarge { font-size: 6.0em; }
.textbreakall { word-break: break-all; }  /* Must be combined with .inlineblock. */
.textnowrap { white-space: nowrap; }
.textwiderspace {  letter-spacing: 2px; }

.spacetiny { margin-top: 2px !important; }
.spacesmall { margin-top: 4px !important; }
.spacepar { margin-top: 0.65em !important; }
.spacelarge { margin-top: 24px !important; }
.padright { padding-right: 24px !important; }

.borderbf { border-radius: 8px; padding: 8px 16px; }
.borderpink { border: 2px solid deeppink; }
.bordergray { border: 2px solid darkgray; }

.backgroundblue { background-color: lightblue; }

.hidden { display: none !important; }
.clearleft { clear: left; }
.inlineblock { display: inline-block; }
.block { display: block; }
.overflowhidden { overflow: hidden; }
.nowdlimit { width: auto !important; }

table { border: none; border-collapse: collapse; padding: 0; margin: 0; }
td { vertical-align: top; }
img[src*="ico-"] { height: 12px; margin-left: 6px; }
a { text-decoration-line:underline; cursor:pointer; }

/* Fields. */
input[type='text'], textarea, input[type='submit'], button {
  border: none;
  width: 100%;
  font-size: 1.15em;
  /* font-family: Arial, Helvetica, sans-serif; */
  margin: 4px 0;
  padding: 4px 0 4px 4px;
  background-color: gainsboro;
}
textarea {
  overflow: auto;
  /* white-space: pre;     /* Replaces wrap="off" in Firefox. */
  /* white-space: nowrap;  /* Replaces wrap="off" in Edge. */
}

input[type="file"] { display: none; }
.file-name {
  width: 62%; 
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left: 4px
}

/* Checkboxes. */
.cb {
  display: inline-block;
  width: 152px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.textsmaller .cb {
  overflow: visible;
  padding-bottom: 2px;
}

.cb input { 
  position: absolute;
  opacity: 0;
  width: 0.1px;
  height: 0.1px;  
}
.cb label {
  position: relative;
  padding-left: 22px;
}
.cb label::before {
  content: "";
  position: absolute;
  display: block;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background-color: gainsboro;
}

.cb label:hover::before, input[type='submit']:hover, button:hover { background-color: darkgray; }
.cb label:active::before, input[type='submit']:active, button:active { background-color: black; }
.active, .active:hover { background-color: deeppink; }

.cb input:focus ~ label::before, 
  textarea:focus,
  input[type='text']:focus, 
  input[type='submit']:focus, 
  button:focus { outline: auto deeppink; }
.cb input:checked ~ label::after {
  content: "";
  position: absolute;
  display: block;
  top: 25%;
  left: 3px;
  width: 3.75px;
  height: 7.5px;
  border: solid black;
  border-width: 0px 2px 2px 0px;
  transform: rotate(45deg) translateY(-25%);
  transform-origin: center;
} 

.textsmaller input:checked ~ label::after {
  top: 20%;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: all 0.15s ease;
    transition-delay: 0.5s;
    padding: 10px;
    color: #333;
    border-radius: 4px;
    box-shadow: 2px 2px 1px darkgray;    
}

[data-tooltip]:hover:before {
    opacity: 1;
    background: gainsboro;
    margin-top: -48px;
    margin-left: 24px;    
}

/* Or line. */
.or {
  text-align: center;
  border-bottom: 2px solid deeppink;
  line-height: 0;
  margin: 32px 0 32px 0;
}
.or > span {
  color: deeppink;
  font-weight: bold;
  background: white;
  padding: 0 0.95em;
}

/* Overwrites. */
.canclespace { margin-top: 0; }

input[type='submit'], button { 
  width: 35%; 
  min-width: 100px;
  padding-left: 0; 
  padding-right: 0;
}

.select-choice button {
  width: 28px; 
  min-width: 28px;
  margin-right: 8px;
}

@media only screen and (max-width: 1044px) {
  #boxheading .slogan ~ .slogan { display: none; }
}

@media only screen and (max-width: 767px) {
  body { margin: 8px 24px; }
  #boxheading .texttitlelarge { font-size: 3em; }
  #boxheading img { width: 60px; height: 57px; }  /* 25% original size. */
  #boxheading .slogan { padding: 0 8px; }
  .boxouter { min-width: 336px; }
  .boxleft { width: 100%; min-width: 336px; }
  .boxright { float: left; width: 100%; min-width: 336px; } 
}
 
@media only screen and (max-width: 584px) {
  #boxheading .slogan { display: none; }
}
