#parametrek {
    /* mobile is stupid */
    -webkit-transform: translate3d(0, 0, 0);
    padding-left: 2em;
    padding-right: 2em;
    margin: 0 auto;
    /* max-width: 80em; */
}

@font-face {
    font-family: ParametrekSymbols;
    src: url('ParametrekSymbols.eot');
}

@font-face {
    font-family: ParametrekSymbols;
    src: url('ParametrekSymbols.ttf');
}

.slide_widget {
    /* also impossible to center and hacked in JS
       and still not perfectly aligned... */
    padding-top: 0.75em;
}

.bar {
    /*width: 15em;*/
    width: 50%;
    height: 1.5em;
    border: 1px solid black;
    position: relative;
    cursor: pointer;
    background-color: gray;
    box-shadow:
      inset 0 1em 1.5em #000000;
    display: inline-block;
    touch-action: none;
}

.slider {
    width: 0%;
    height: 100%;
    background-color: #f90;
    box-shadow: 
      0em 0.1em 0.5em rgba(0,0,0,0.5),
      inset 0 1em 1.5em rgba(255,255,255, 0.25),
      inset 0 -1em 1.5em rgba(0,0,0, 0.75);
    top: 0px;
    left: 0px;
    position: absolute;
    cursor: pointer;
    border-width: 0px 1px;
    border-style:solid;
}

.slider:before {
    display: inline-block;
    position: absolute;
    top: -5px;
    left: -10px;
    /*content: url(knob4.png);*/
    content: url(data:image/gif;base64,R0lGODlhEwAUAPQAAAAAAAQEBAAAAH5+foCCgYSGhomMi42OjoyPj5GUk5OYmJaYmJidnJugoJ6ioqCmpqCoqKOpqaesrKivrqqxsa+3trC2trC4t7S9vLnAwMHKycrU09Hc2wAAAAAAAAAAACH5BAEAAB0ALAAAAAATABQAAAWBYACMZGmWx+JIVqZt3KZlluQsx5iu7RvPtVsOsGO5YDKaDadTGX3JIJPo7CGBy2HR+lMKm7xjV6qtiqNZ8PPqnQ7MUOyNAOgACuG411Dv2BFrYxIJfX52ClxRDIWGdg1nMw8CjZQAEXETjJR+ABRIF5ObmwAVHBiaooYAEKipqq4hADs=);
}

.slider:after {
    display: inline-block;
    position: absolute;
    top: -5px;
    left: 100%;
    text-indent: -9px;
    /*content: url(knob4.png);*/
    content: url(data:image/gif;base64,R0lGODlhEwAUAPQAAAAAAAQEBAAAAH5+foCCgYSGhomMi42OjoyPj5GUk5OYmJaYmJidnJugoJ6ioqCmpqCoqKOpqaesrKivrqqxsa+3trC2trC4t7S9vLnAwMHKycrU09Hc2wAAAAAAAAAAACH5BAEAAB0ALAAAAAATABQAAAWBYACMZGmWx+JIVqZt3KZlluQsx5iu7RvPtVsOsGO5YDKaDadTGX3JIJPo7CGBy2HR+lMKm7xjV6qtiqNZ8PPqnQ7MUOyNAOgACuG411Dv2BFrYxIJfX52ClxRDIWGdg1nMw8CjZQAEXETjJR+ABRIF5ObmwAVHBiaooYAEKipqq4hADs=);
}

.midline {
    width: 2px;
    height: 0.5em;
    margin: 1.0em auto 0 auto;
    background-color: #530;
}

.slide_info {
    /*width: 10em;*/
    width: 10%;
    padding: 1em;
    display: inline-block;
    position: relative;
    top: -0.4em;
}

.info_right {
    text-align: right;
}

.info_left {
    text-align: left;
}

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.ptrek_selector {
    /* all normal css centering methods break
       when this table is ragged
       so centering is forced in the JS
       collapse seems busted too, very odd */
    /*border-collapse: collapse;*/
    text-align: center;
}

/*
.ptrek_selector td {
    border: 1px solid black;
    padding: 0.5em;
    cursor: pointer;
    box-shadow: inset 0 0 1.5em #000000;
}
*/

.ptrek_selector div {
    /*display: inline-block;*/
    margin: 0.25em;
    padding: 0.5em;
    cursor: pointer;
    background-color: #466;
    font-weight: bold;
    /*line-height: 2em;*/
    text-align: center;
    text-shadow:
      rgba(255,255,255, 0.875) 0px 0px 1px;

    border-radius: 0.5em;
    border: solid 1px #000;

    box-shadow:
      inset 0px 0px 1px rgba(255,255,255, 0.875),
      inset 0em 1em 1em rgba(255,255,255,0.25),
      0em 0.1em 0.5em rgba(0,0,0,0.5);
}

.ptrek_selector div:active {
    box-shadow: inset 0 0 0.5em #000000;
    text-shadow: none;
}

@media screen, projection {
.ptrek_selector_default div:hover {
    background-color: #688;
}}

.ptrek_selector_partial div {
    /*background-color: #f90;*/
    background-color: #7bb;
    color: #000;
    text-shadow: #fff 0px 1px 5px;
    box-shadow: 
      inset 0px 0px 1px rgba(255,255,255, 0.875),
      0em 0em 1em #7bb,
      inset 0em 1em 1em rgba(255,255,255,0.4);
    border: solid 1px #7bb; 
}

@media screen, projection {
.ptrek_selector_partial div:hover {
    background-color: #8ff;
    box-shadow: 
      0em 0em 1.5em #8ff,
      inset 0em 1em 1em rgba(255,255,255,0.4);
}}

.ptrek_selector_partial div:active {
    background-color: #8ff;
    box-shadow: 
      0em 0em 1.5em #8ff,
      inset 0 0 0.5em #000000;
}

#ptrek_tally {
    text-align: center;
    /*font-weight: bold;*/
    font-size: 1.5em;
    margin: 1em;
}

#ptrek_footer {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 3em;
    text-align: center;
}

#ptrek_timer {
    /*text-align: center;*/
    /*font-weight: bold;*/
    margin: 1em;
}

#ptrek_power {
    /*text-align: center;*/
    /*font-style: bold;*/
    margin: 1em;
    color: #888;
}

#ptrek_power a { text-decoration: none; color: #888; }

.ptrek_form {
    table-layout: fixed;
    width: 70%;
    border-collapse: collapse;
}

.ptrek_form_label {
    font-weight: bold;
    font-size: 1.1em;
}

.ptrek_form td {
    border-collapse: collapse;
    border: 1px solid gray;
    border-style: solid hidden solid hidden;
    padding: 0.5em;
}

.ptrek_form tr {
    width: 100%;
}

.ptrek_widget {
    width: 100%;
    text-align: center;
}

.ptrek_widget ul {
    text-align: left;
}

.ptrek_back_button {
    color: black;
    background: #b70;
    border-color: black;
    font-size: 1em;
    padding: 0.25em;
    cursor: pointer;
    /*width: 1em;*/
    height: 1em;
    text-align: center;
    line-height: 1em;
    border-radius: 0.25em;
    border-style: solid;
    border-width: 1px;
    box-shadow: 
      inset 0px 0px 1px rgba(255,255,255, 0.875),
      inset 0em 0.5em 0.5em rgba(255,255,255,0.25),
      0em 0.1em 0.5em rgba(0,0,0,0.5);
    text-shadow:
      rgba(255,255,255, 0.875) 0px 0px 1px;
}

@media screen, projection {
div.ptrek_back_button:hover {
    background: #d80;
}}

div.ptrek_back_button:active {
    background: #f90;
}

.ptrek_form div.ptrek_form_buttons {
    white-space: nowrap;
    text-align: right;
}

.ptrek_help_button {
    display: inline-block;
    color: white;
    background: #0a0;
    border-color: black;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    width: 1.25em;
    height: 1.25em;
    margin: 0.5em;
    text-align: center;
    line-height: 1.25em;
    border-radius: 0.25em;
    border-style: solid;
    border-width: 1px;
    box-shadow:
      inset 0px 0px 1px rgba(255,255,255, 0.875),
      0em 0.1em 0.5em rgba(0,0,0,0.5);
    text-shadow:
      rgba(255,255,255, 0.875) 0px 0px 1.5px;
}

@media screen, projection {
div.ptrek_help_button:hover {
    background: #0c0;
}}

div.ptrek_help_button:active {
    background: #0a0;
}

div.ptrek_help {
    text-align: left;
}

div.ptrek_cyclic_button {
    display: inline-block;
    color: black;
    background: #8AA;
    border-color: black;
    font-size: 1em;
    padding: 0.25em;
    cursor: pointer;
    width: 3em;
    height: 1em;
    margin: 0.5em;
    text-align: center;
    line-height: 1em;
    border-radius: 0.25em;
    border-style: solid;
    border-width: 1px;
    box-shadow:
      inset 0px 0px 1px rgba(255,255,255, 0.875),
      0em 0.1em 0.5em rgba(0,0,0,0.5);
}

@media screen, projection {
div.ptrek_cyclic_button:hover {
    background: #ACC;
}}

div.ptrek_cyclic_button:active {
    background: #CEE;
    color: black;
}

.ptrek_invert_button {
    display: inline-block;
    color: white;
    background: black;
    border-color: white;
    font-size: 1em;
    padding: 0.25em;
    cursor: pointer;
    /*width: 1em;*/
    height: 1em;
    margin: 0.5em;
    text-align: center;
    line-height: 1em;
    border-radius: 0.25em;
    border-style: solid;
    border-width: 1px;
    box-shadow:
      0px -1px 0.5px #000,
      0px 1px 0.5px #000,
      -1px 0px 0.5px #000,
      1px 0px 0.5px #000,
      0em 0.1em 0.5em rgba(0,0,0,0.5);
    /* the only place that needs stacked shadows */
}

@media screen, projection {
div.ptrek_invert_button:hover {
    background: #333;
    color: white;
}}

div.ptrek_invert_button:active {
    background: white;
    color: black;
}

.ptrek_reset_button {
    display: inline-block;
    color: black;
    background: firebrick;
    border-color: black;
    font-size: 1.25em;
    cursor: pointer;
    width: 1em;
    height: 1em;
    margin: 0.5em;
    text-align: center;
    line-height: 1em;
    border-radius: 0.25em;
    border-style: solid;
    border-width: 1px;
    box-shadow: 
      inset 0px 0px 1px rgba(255,255,255, 0.875),
      0em 0.1em 0.5em rgba(0,0,0,0.5);
    text-shadow:
      rgba(255,255,255, 0.875) 0px 0px 1.5px;
}

@media screen, projection {
div.ptrek_reset_button:hover {
    background: salmon;
}}

div.ptrek_reset_button:active {
    background: red;
}

li.unchecked span.box {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: white;
    color: white;
    text-align: center;
    line-height: 1em;
    margin: 0 0.5em;
    border-radius: 0.25em;
    border-color: black;
    border-style: solid;
    border-width: 1px;
}

li.checked span.box {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: white;
    color: #800;
    text-align: center;
    line-height: 1em;
    margin: 0 0.5em;
    border-radius: 0.25em;
    border-color: black;
    border-style: solid;
    border-width: 1px;
}

@media screen, projection {
li.checked:hover span.box {
    box-shadow: 0 0 0.5em #08F;
}}

@media screen, projection {
li.unchecked:hover span.box {
    box-shadow: 0 0 0.5em #08F;
}}

li.checked:active span.box {
    box-shadow: 0 0 0.5em #0DF;
}

li.unchecked:active span.box {
    box-shadow: 0 0 0.5em #0DF;
}

span.dummymark {
    color: transparent;
    font-family: ParametrekSymbols, sans-serif;
}

li.unchecked span.mark {
    position: relative;
    /*line-height: 0em;*/
    font-size: 1px;
    /*display: none;*/
}

li.checked span.mark {
    font-family: ParametrekSymbols, sans-serif;
    position: relative;
    pointer-events: none;
    line-height: 0em;
    font-size: 2em;
    top: 0.1em;
    left: 0em;
}

span.ptrek_detail_button {
    color: black;
    /*background: #8aa;*/
    background: #b70;
    background: rgba(176, 112, 0, 0.3);
    border-color: black;
    font-size: 1em;
    padding: 0.15em;
    position: relative;
    top: -0.35em;
    cursor: pointer;
    text-align: center;
    margin: 0em 0.4em;
    border-radius: 0.4em;
    border-style: solid;
    border-width: 1px;
}

@media screen, projection {
span.ptrek_detail_button:hover {
    /*background: #acc;*/
    background: #fb3;
}}

span.ptrek_detail_button:active {
    /*background: #cee;*/
    /*background: #fc6;*/
    background: #fa3;
}

span.ptrek_report_button {
    color: black;
    background: #07b;
    background: rgba(0, 112, 176, 0.3);
    padding: 0 0.15em;
    border-radius: 0.4em;
    cursor: pointer;
    border-color: black;
    border-style: solid;
    border-width: 1px;
}

@media screen, projection {
span.ptrek_report_button:hover {
    background: #3bf;
}}

span.ptrek_report_button:active {
    background: #3af;
}

.ptrek_form_sort {
    display: inline-block;
    font-size: 1.5em;
    line-height: 1em;
    margin: 0.5em;
}

.up_arrow {
    color: gray;
    cursor: pointer;
    text-shadow: 0.1em 0.1em 0.2em black;
}

.down_arrow {
    color: gray;
    cursor: pointer;
    text-shadow: 0.1em 0.1em 0.2em black;
}

.up_arrow:active {
    position: relative;
    top: 0.1em;
    text-shadow: none;
}

.down_arrow:active {
    position: relative;
    top: 0.1em;
    text-shadow: none;
}

.ptrek_sprite {
     background: url(flashlights.sprites.jpg);
     background-repeat: repeat-y;
     /*height: 100px;*/
     /*width: 100px;*/
     display: inline-block;
     /*position: relative;*/
}

.multi_widget ul {
    display: inline;
    white-space: normal;
    list-style: none;
    padding: 0;
    margin: 0;
    vertical-align: top;
}

.multi_widget li {
    display: inline;
    /*padding: 0em 1em 0em 0em;*/
    /*margin: 0em 0em 0em 1em;*/
    /*text-indent: -1em;*/
    white-space: nowrap;
    padding: 0.5em;
    line-height: 2em;
}

.multi_widget label {
    cursor: pointer;
}

.multi_widget li {
    cursor: pointer;
}

.multi_widget ul.multi_sublist {
    display: inline-block;
}

.multi_widget ul.multi_sublist li {
    display: block;
    padding: 0.2em;
    line-height: 1em;
}

.boolean_widget ul {
    width: 60%;
    text-align: right;
}

.boolean_widget p {
    font-weight: bold;
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

.boolean_widget li {
    display: inline;
    list-style: none;
    white-space: nowrap;
    padding: 0.5em;
    line-height: 2em;
    font-weight: normal;
    text-align: right;
}

.ptrek_note {
    text-align: center;
    font-style: italic;
}

.tally {
    font-weight: bold;
    border: 1px solid black;
}

#ptrek_summary {
    width: 50%;
    margin: 1em auto 1em auto;
}

#ptrek_summary p {
    font-size: smaller;
    margin: 0.5em;
}

#ptrek_paragraphs {
    display: table;
    width: 100%;
}

#ptrek_paragraphs td {
    border-collapse: collapse;
    border-top: 1px solid gray;
    border-bottom: 0px solid gray;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}

#ptrek_paragraphs .ptrek_info_bucket {
    text-align: left;
    vertical-align: top;
    padding-left: 2em;
    padding-right: 2em;
}

#ptrek_paragraphs .ptrek_col_picture {
    width: 100px;
}

#ptrek_paragraphs div.ptrek_product_line {
    padding-left: 2em;
    text-indent: -2em;
}

#ptrek_paragraphs .ptrek_col_model {
    text-shadow: none;
    font-size: 2em;
    font-weight: bold;
}

#ptrek_paragraphs .ptrek_col_brand {
    font-style: italic;
}

#ptrek_paragraphs .ptrek_col_info {
    margin-left: 1em;
    font-size: smaller;
}

#ptrek_paragraphs ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    margin-left: 1em;
}

#ptrek_paragraphs li {
    padding-left: 1em;
    text-indent: -.7em;
}

#ptrek_paragraphs li:before {
    content: "•";
    padding-right: 0.25em;
    color: #888;
}

#ptrek_paragraphs .ptrek_para_label {
    font-weight: bold;
    margin-right: 0.5em;
}

#ptrek_paragraphs .ptrek_col_price_purchase {
    text-align: center;
}

#ptrek_paragraphs .ptrek_col_price {
    font-size: 2em;
}

#ptrek_paragraphs .ptrek_col_reviews {
    font-size: smaller;
}

.ptrek_generic_button {
    /*display: inline-block;*/
    margin: 0.25em;
    padding: 0.5em;
    cursor: pointer;
    font-weight: bold;
    /*line-height: 2em;*/
    text-align: center;
    text-shadow:
      rgba(255,255,255, 0.875) 0px 0px 1px;

    border-radius: 0.5em;
    border: solid 1px #000;

    box-shadow:
      inset 0px 0px 1px rgba(255,255,255, 0.875),
      inset 0em 1em 1em rgba(255,255,255,0.25),
      0em 0.1em 0.5em rgba(0,0,0,0.5);
}

.ptrek_generic_button:active {
    box-shadow: inset 0 0 0.5em #000000;
    text-shadow: none;
}

@media screen, projection {
.ptrek_generic_button:hover {
    background-color: #688;
}}

.ptrek_share_button {
    margin: 1em 0em;
    float: right;
    position: absolute;
    cursor: pointer;
    right: 7%;
    background-color: #940;
}

@media screen, projection {
.ptrek_share_button:hover {
    background-color: #B62;
}}

#overlay {
    /*background-color: #000;*/
    /*opacity: .7;*/
    /*filter: alpha(opacity=70);*/
    background-color: rgba(0,0,0,0.4);
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
}

#overlay .over_text {
    position: relative;
    background-color: #f5f5f5;
    /*opacity: 1;*/
    /*filter: alpha(opacity=100);*/
    top: 30%;
    left: 0%;
    width: 50%;
    text-align: center;
    font-size: smaller;
    line-height: 1.5em;
    margin: 0 auto;
    padding: 1em;
    border: 1px solid black;
    border-radius: 1em;
    box-shadow: 0em 0em 2em black;
}

#overlay .over_button {
    cursor: pointer;
    position: relative;
    background-color: #44f;
    /*opacity: 1;*/
    /*filter: alpha(opacity=100);*/
    top: 30%;
    left: 0%;
    width: 10%;
    margin: 0.5em auto 0em auto;
    text-align: center;
}

@media screen, projection {
#overlay .over_button:hover {
    background-color: #22f;
}}

#ptrek_show_all{
    margin: 3em;
}

#ptrek_show_all #ptrek_show_all_button {
    background-color: #466;
}

@media screen, projection {
#ptrek_show_all #ptrek_show_all_button:hover {
    background-color: #688;
}}

/* mobile last */
@media only screen and (max-width: 900px) {
#parametrek {
    padding-left: 0em;
    padding-right: 0em;
}

#overlay .over_text {
    top: 10%;
    width: 90%;
}

.ptrek_form {
    width: 100%;
}

.ptrek_form td.ptrek_form_label {
    padding-left: 0;
}

.ptrek_form td {
    border: 0;
}

.ptrek_form tr {
    outline: 1px solid gray;
    outline-style: solid hidden solid hidden;
}

.ptrek_form td.ptrek_form_label {
    /*
    it would be great if this worked but safari sucks
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    -webkit-text-orientation: upright;
    text-orientation: upright;
    let's use a silly hack instead
    */
    width: 0px;
    word-break: break-all;
    white-space: break-spaces;
    overflow-wrap: anywhere;
    font-family: monospace;
    font-size: 1.5em;
}

.info_right {
    padding-left: 0;
    z-index: -1;
}

.info_left {
    padding-right: 0;
    z-index: -1;
}

.ptrek_form td.ptrek_widget {
    padding: 0.5em 0em;
}

.bar {
    width: 70%;
}

.ptrek_form td.ptrek_form_misc div {
    display: block;
    margin: 1em auto;
}

.ptrek_form div.ptrek_form_buttons {
    white-space: normal;
    text-align: center;
}

.ptrek_help_button {
    margin: 0 auto;
}

.ptrek_reset_button {
    margin: 0 auto;
}

#ptrek_paragraphs .ptrek_col_model {
    font-size: 1.5em;
}

#ptrek_paragraphs .ptrek_info_bucket {
    padding-left: 0.25em;
}
}
