/* Used by: 
    tools.GetPALsiteStyle(), 
    all model pages, 
    quick fault guides
    modelgallery.py 
*/


body, td {
    font-family: Verdana, Arial, Helvetica;
}

body {
    margin: 0px;
    padding: 0px;
}

/* used to display +1.0v -0.5v above each other for the specs */

span.stack {
    display:inline-block; 
    text-align:right; 
    line-height:0.3em;
    font-size: 0.7em;
}

/* Used for the banner in the ovi, spec, tech, acc pages */

#model {
    font-family: Arial, Helvetica;
    font-weight: bold;
    color: #ffffff;
    font-size: 60px;
}

.model_button a {
    white-space: nowrap;
    width: 100%;
    color: #cccc55;
    text-decoration: none;
    font-size: 12px;
}

.model_button a:hover {
    width: 100%;
    color: #ffffaa;
    text-decoration: underline;
}

ul.model_button {
    margin-left: 40px;
    padding-left: 10px;
    padding-top: 10px;
    list-style: square;
}

ul.model_button li {
    font-size: 14px;
    color: #ffff00;
    padding-bottom: 0px;
    line-height: 1.1;
}

/* Common formatting in ovi, spec, tech, acc under main_body*/

div#main_body ul{
    padding-left: 8px;
}

div#main_body ol li,  div#main_body ul li{
    margin-bottom: 0.6em;
    margin: 0px 0px 8px 10px;
}

div#main_body ul li {
    list-style: square;
}

div#main_body img {
    margin: 0px 10px;       
    /* position: relative; */
    left: -10px; 
}

div#main_body h3 {
    margin-top: 0.6em;
    margin-bottom: 0.4em;
}

div#main_body h2 {
    margin-top: 0.6em;
    margin-bottom: 0.4em;
}

span.credit {
    font-style: italic;
    font-size: 0.7em;
    color: #667;         /* mostly on white background, but also used on pcat grey pages */
}

/* square ul bullet lists in the model pages */
/* Used both after a p and h4 (too much gap) */

ul.model_list {
    margin: 0px 0px 5px 10px;
    padding: 10px 0px 0px 5px;
    list-style: square;
    font-size: 90%;
}

ul.model_list li {
    margin-bottom: 0.6em;
}

ul.model_list menu {
    padding: 2px 0px 0.5em 0px;
    font-size: 0.95em;
}

ol.model_list {
    margin: 0px 0px 5px 10px;
    padding: 4px 0px 0px 10px;
    font-size: 90%;
}

ol.model_list li {
    margin-bottom: 6px;
}

td.tech_left {
    max-width: 430px;
    text-align: center;
    vertical-align: top;
    font-style: italic;
    font-size: 80%;
    padding: 10px 5px 10px 0px;
}

td.tech_right {
    padding: 10px 0px 10px 0px;
    vertical-align: top;
}

.caption {
    font-style: italic;
    font-size: 80%;
    padding: 0px 0px 10px 0px;
}

/* palsite.css has .clear with clear both 

.clear {
    clear: left;
}
*/

#header_1 {
    margin: 0px;
    padding: 10px 10px 0px 10px;
    border: 0px;
    background-color: #3e18e2;
}

#header_1 img {
    margin: 0px;
    padding: 0px;
    border: 0px;
}

#header_2 {
    font-family: Arial, Helvetica;
    font-size: 2px;
    font-weight: bold;
    margin: 0px;
    padding: 10px 10px 10px 10px;
    border: 0px;
    background-color: #afafaf;
}

.v2000_opts {
    font-size: 18px;       /* Override the 2px above */
}

#header_2 img {
    padding: 0px;
    margin: 0px;
}

.chassis {
    font-size: 16px;
    font-weight: bold;
    text-align: right;
}

.show_big {
    display: block;
}

.show_small {
    display: none;
}

.shrink_iframe {
    width: 100%;
    max-width: 560px;       /* 560 x 315 = 16/9 */
    aspect-ratio: 16 / 9;
}

/* Force normal size and spacing for (usually) small images */

.img_def {
    width: auto;
    height: auto;
    margin: 10px !important;
    left: 0px !important;
}

/* mshrink - image format in models */

.mshrink {
    min-width: 80px;
    margin: 0px 10px 0px 10px;
}

.shrink, .mshrink{
    max-width: 100%;
}

/* Same media statement in palsite.css, keep in sync */
@media (max-width:650px){
    #model {
        font-size: 32px;    /* Was 45px but MkIII */
    }
    
    ul.model_button {
        margin-left: 20px;
    }

    .show_big {
        display: none;
    }

    .show_small {
        display: block;
    }
    
    .hide_small {
        display: none;
    }
    
    div#main_body img {    
        max-width: 100%;
        min-width: 90px;
        
        margin: 0px 15px;       /* hspace=10 */
        position: relative;
        left: -20px;
    }
}

#main_body {
    border: 0px;
    margin: 0px;
    padding: 10px;
    background-color: #fff;
}


/* Display an image and caption on the RHS */
div.img_right {
    float: right;
    margin: 0px auto 10px auto;
    padding: 0px 0px 5px 5px;
    text-align: center;
}

div.img_right img {
    left: 0px;
}

/* Display an image caption block floated left and centered */

div.block_left {
    float: left;
    text-align: center;
    margin: 0px 5px 10px 0px;
}

div.block_left img {
    left: 0px !important;
}

/* Quick Fault Guide */

.qfg div {
    font-family: Verdana, Arial, Helvetica;
}

.qfg table {
    width: 100%;
    padding: 5px;
    margin: 0;
    background-color: #cccccc;
}

.qfg table th {
    background-color: #cccccc;
    font-weight: bold;
    text-align: left;
}

.qfg table th:nth-child(1){
    width: 20%;
}

.qfg table th:nth-child(2){
    width: auto;
}


.qfg table td {
    padding: 5px;
    vertical-align: top;
}

.qfg table td:nth-child(1){
    background-color: #ddddee;
    width: 20%;
    word-wrap: break-word;
}

.qfg table td:nth-child(2){
    width: auto;
    word-wrap: anywhere;
}

.qfg tr:nth-child(even) {
    background-color: #ffffee;
}

.qfg tr:nth-child(odd) {
    background-color: #ffffcc;
}

/* Ensure the two input boxes resize */
.qfg_submit {           
    width: 100%;
    max-width: 600px;
    background-color: #eee;
    border: 1px solid #000;
}

/* Display the model image on the RHS */
div.qfg_model {
    float: right;
    margin: 0px auto 10px auto;
    text-align: center;
    font-size: 0.8em;
    font-style: italic;
}

.qfg_model img {
    margin: 0px 0px 0px 10px;
    border: 1px solid #ccc;
    width: 200px;
    padding: 3px;
}

/* Format the div holding the figlet challenge code */
.qfg_fig {
    background-color: #DFE5FB;
    font-size: 10px;
    font-weight: bold;
    font-family: Courier New;
    border: 1px solid #CBD5FB;
    padding: 2px;
    width: auto;
    display: inline-block;
    margin: 2px;
}

/* Quick fault guide overview page */

div.qfgo {
    background-color: #fff;
    padding: 5px;
}

div.qfgo span {
    color: #beb0ff;
}

.qfgo ul {
    margin: 0em;
    padding: 0em;
    list-style-type: none;
}

.qfgo li {
    margin: 2px 0px 2px 0px;
    font-size: 0.8em;
}

.qfgo div {
    display: inline-block;
}

.qfgo li>div:nth-child(1) {
    width: 12em;
}

.qfgo li>div:nth-child(2) {
    background-color: #DFE5FB;
    width: 3em;
    text-align: center;
    margin-left: 15px;
    margin-right: 3px;
}

.qfgo li>div:nth-child(3) {
    border: 1px solid #aaa;
    width: 50%;
}

div.qfgo_inner {
    background-color: #00f !important;
}

@media (max-width:750px){
    .qfgo li>div:nth-child(3) {
        display:block;
        width:95%;
    }
}

/* Nav bar - used by Repair centre, PCAT pages and others */
/* No longer used - replaced with clickbar class */

.pcat td {
    font-family: Arial, Helvetica;
    font-size: 14px;
    text-align: center;   
    background-color: #336699;
    padding: 4px;
}

.pcat a {
    text-decoration: none;
    color: white;
}

/* Two column model specifications */

.spec_row {
    display: flex;
    margin-bottom: 20px;
}

.spec_block {
    flex: 1;
    margin-right: 30px;
}

@media (max-width:650px){
    .spec_row {
        display: block;
    }
    
    .spec_block {
        margin-right: 0px;
        display: inline-block;        
    }
}

/* Two column model specifications - SANYO style */

div.sanyospec table{
    width: 100%;
}

div.sanyospec table tr > td{
    vertical-align: top;
}

div.sanyospec table tr td{
    padding-bottom: 5px;
}

div.sanyospec table tr > td:first-child{
    width: 40%;
    padding-right: 2em;
}


/*  Accessory pages with many accessories, e.g. bmc-100 */

.acc_left {
    width: 410px;
    min-height: 250px;
    float: left;
    margin: 0px 10px 10px 0px;
    padding: 10px;
    background-color: #f6f6f6;
    border: 1px solid #ddd;
}

div.acc_left img {
    margin: 0px auto 5px auto !important;
    left: 0px !important;
}

@media (max-width:650px){
    .acc_left {
        width: 92%;
        min-height: auto;
    }
}

/* all images inside main div (most pages) */

div.main img {
    max-width: 100%;
}

/* Parts / PCAT related pages (black banner with 2 cols underneath) */

div.parts {
    padding: 4px;
    display: grid;
    grid-template-columns: 25% auto;
}

div.parts_item {
    margin: 2px;
    padding: 6px;
}

div.parts_item:nth-child(2n) {
    background-color: #0000ff;
    font-size: 1.05em;
    color: #ffffff;
}

div.parts_item:nth-child(2n+1) {
    background-color: #999999;
}

div.parts_item:nth-child(1) {
    padding: 14px;
    grid-column: 1 / span 2;
    text-align: center;
    background-color: #000;
}

div.parts ol li, div.parts ul li {
	margin-top: 0.4em;
	margin-bottom: 0.6em;
}

@media (max-width:750px){
    /* Reduce first column size */
    div.parts {
        grid-template-columns: auto auto;
    }
}

@media (max-width:380px){
    /* Flatten into a single column */
    div.parts_item:nth-child(2n), div.parts_item:nth-child(2n+1) {
        grid-column: 1 / span 2;
    }
}
