/* Added because otherwise Chrome shrinks the image in table cells */
td img
{
    max-width: none;
}

/* From layout1.css  To be removed */
.top-go
{
    position: absolute;
    top: 50px;
    right: 0;
    width: 18px;
    height: 43px;
    padding: 17px 0;
    background: url('../images/bg_topgo.gif') no-repeat 0 0;
}

.top-join
{
    position: absolute;
    top: 1em;
    right: 10%;
}

h1, h2, h3
{
    font-family: Arial, sans-serif;
    font-weight: bold;
    line-height: 1.2em;
}
h1 {font-size: 1.6em; margin-top: 0.7em; margin-bottom: 0.5em;}
h2 {font-size: 1.2em;}
h3 {font-size: 1.0em; margin-top: 0.5em;}
h3.DateHeading {text-align: center;}

a:link.spRedBlockBtn
{
    float: left;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 1em;
    font-weight: bold;
    margin-left: 5px;
    padding: 2px 5px 2px 5px;
    background: #ab2a45; /* rgb(171,42,71) */
    color: #FFF;
    border-width: 5px;
    border-style: solid;
    border-top-color: #ce8e9b; /* rgb(206,142,155) */
    border-right-color: #b75367; /* rgb(183,83,103) */
    border-bottom-color: #ce8e9b; /* rgb(206,142,155) */
    border-left-color: #9a1934; /* rgb(154,25,52) */
}
a:visited.spRedBlockBtn
{
    float: left;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 1em;
    font-weight: bold;
    margin-left: 5px;
    padding: 2px 5px 2px 5px;
    background: #c62849; /* rgb(202,40,73) */
    color: #FFF;
    border-width: 5px;
    border-style: solid;
    border-top-color: rgb(218,170,180);
    border-right-color: #d15e75; /* rgb(209,94,117) */
    border-bottom-color: rgb(218,170,180);
    border-left-color: #be1f40; /* rgb(190,31,64) */
}
a:hover.spRedBlockBtn
{
    float: left;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 1em;
    font-weight: bold;
    margin-left: 5px;
    padding: 2px 5px 2px 5px;
    background: #FFF;
    color: #c62849; /* rgb(202,40,73) */
    border-width: 5px;
    border-style: solid;
    border-top-color: rgb(218,170,180);
    border-right-color: #d15e75; /* rgb(209,94,117) */
    border-bottom-color: rgb(218,170,180);
    border-left-color: #be1f40; /* rgb(190,31,64) */
}

div.spNavContent
{
    width: 980px;  /* (Width + left margin + padding) of (spNav + spContent) */
    margin-left: 0;
    margin-right: auto;
}

div.spNav
{
    width: 180px;
    float: left;
}

div.spContentHeader
{
    width: 767px;
    margin: 0 auto 2px 195px;  /* Allow for width of spNav at left */
    padding: 10px;
    text-align: left;
    color: #ffffff;
    font-family: DroidSansBold, Arial, sans-serif;
    font-size : 14px;
    font-weight: bold;
}
div.spContent
{
    width: 765px;  /* = spContentHeader - 2 pixels for borders */
    margin: 0 auto 10px 195px;  /* Allow for width of spNav at left */
    padding-top: 5px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: left;
}

/* Display two equally wide columns in the content area */
div.spContentTwoCol
{
    width: 786px;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}
div.spContentTwoColFloatRight
{
    float: right;
    width: 393px;  /* Half of spContentTwoCol */
}
div.spTwoColHeading
{
    width: 368px;
}
div.spTwoColContent
{
    width: 366px;  /* = spTwoColHeading - 2 pixels for borders */
}
div.spTwoColLeft
{
    margin-left: 0;
    margin-right: 6px;
}
div.spTwoColRight
{
    margin-left: 6px;
    margin-right: 0;
}

/* Display one very wide column in the content area */
div.spContentHeaderWide
{
    width: 962px;  /* spContentWide + 2 for border */
    margin: 20px auto 2px 0;
    padding: 10px;
    text-align: left;
    color: #ffffff;
    font-family: DroidSansBold, Arial, sans-serif;
    font-size : 14px;
    font-weight: bold;
}
div.spContentWide
{
    width: 960px;
    margin: 0 auto 10px 0;  /* Side margins same as spContentHeaderWide */
    padding-top: 5px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: left;
}

/* BNAPEX - theme colour: green */
div.spHeaderBNAPEX
{
    background-image:url('../../images/grad-green.png');
}
div.spContentBNAPEX
{
    border: 1px solid green;
}

/* Publications - theme colour: teal */
div.spHeaderPubs
{
    background-image:url('../images/grad-teal.png');
}
div.spContentPubs
{
    border: 1px solid teal;
}

/* BNAPS - theme colour: magenta */
div.spHeaderBNAPS
{
    background-image:url('../images/grad-magenta.png');
}
div.spContentBNAPS
{
    border: 1px solid purple;
}

/* Events - theme colour: lime */
div.spHeaderEvents
{
    background-image:url('../images/grad-lime.png');
}
div.spContentEvents
{
    border: 1px solid #89b52a;  /* Lime */
}

/* Study Groups - theme colour: purple */
div.spHeaderStudy
{
    background-image:url('../images/grad-purple.png');
}
div.spContentStudy
{
    border: 1px solid #2d0f39;  /* Violet */
}

/* Membership - theme colour: orange */
div.spHeaderMember
{
    background-image:url('../images/grad-orange.png');
}
div.spContentMember
{
    border: 1px solid #ff6000;  /* Orange */
}

/* Regional Groups - theme colour: blue */
div.spHeaderRegional
{
    background-image:url('../images/grad-darkblue.png');
}
div.spContentRegional
{
    border: 1px solid #0066ff;  /* Dark blue */
}

div.spCentre {text-align: center;}
div.spEvent {margin-left: 30px;}

div.hdrBNAPSname
{
    display: table-cell;
    height: 84px;
    vertical-align: middle;
    padding-left: 2px;
}

/* div.spGridShell, div.spGridLeft, and div.spGridRight are designed to work together */
div.spGridShell
{
    width: 1050px;  /* = div.spGridLeft + div.spGridRight */
    margin: 15px auto;
    padding: 0;
    border: 0;
}
div.spGridLeft
{
    width: 500px;
    margin: 0 5px 0 0;
    padding: 5px 5px 5px 10px;
    border: 1px solid black;
    background-color: #ffffe0;
    float: left;
}  
div.spGridRight
{
    width: 500px;
    margin: 0 0 0 5px;
    padding: 5px 5px 5px 10px;
    border: 1px solid black;
    background-color: #ffffe0;
    float: left;
}

div.spFlexCentre
{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
div.spButtonArray
{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 10px;
}

/* Video recording */
div.spVideo
{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}
p.spVideoIcon
{
    display:inline-block;
    width: 120px;
    height: 74px;
    text-align: center;
    line-height: 3em;
    font-weight: bold;
    background-image: url(https://bnaps.org/images/ivideo.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
}

table.spRowByRow  /* Display in individual rows across the screen */
{
    margin-left: auto;
    margin-right: auto;
    border: 1px solid black;
    border-collapse: collapse;
    width: 95%;
}

tr#spFormField
{
    display: none;
}

hr {color: gray; background-color: gray; height: 1px;}

p, blockquote
{
    margin: 1.0em 10px;
}
blockquote.spQuote
{
    width: 80%;
    margin: 20px auto;
    padding: 1.2em 20px 1.2em 20px;
    border-left: 8px solid black;
    position: relative;
}
blockquote.spQuote::before
{
    content: "\201C";
    font-size: 4em;
    position: absolute;
    left: 10px;
    top: -10px;
}
blockquote.spQuote::after
{
    content: '';
}
blockquote.spQuote span
{
    display: block;
    font-weight: bold;
    margin-top: 1em;
}

h1 + p, h2 + p, h3 + p
{
    margin-top: 0.2em;
}
P.ulContinue {margin-left: 0;}  /* Set to same value as ul.spContent li */
P.olContinue {margin-left: 0.5em;}  /* Set to same value as ol.spContent li */
p.Caption {margin-top: 0.2em; text-align: center; font-weight: bold;}
p.CopyrightNotice {font-size: 0.8em;}
p.UpdateNotice {font-size: 0.8em;}

/* Caption and credit for illustrations */
p.spCaption
{
    margin-top: 0.2em;
    text-align: center; 
    font-weight: bold;
}
p.spCredit
{
    margin-top: 1px;
    margin-right: 0; 
    margin-bottom: 2px; 
    text-align: right;
    font-size: 0.8em; 
}

p.spWarning, span.spWarning
{
    color: red;
}
span.Warning {color: red;}  /* DO NOT USE */
span.spNote {font-size: 0.8em;}
span.Foreign {font-style: italic;}
cite {font-style: italic;}
em {font-style: italic;}

ul.spNavSideBarLocal
{
    margin-top: 0;
    margin-left: 0;
    padding-left: 0;
    list-style-type: none;
    list-style-position: inside;
}

ul.spContent li
{
    margin-left: 0;
    padding-left: 0;
    list-style-type: disc;
    list-style-position: outside;
}
/* Reference: https://stackoverflow.com/questions/7698764/custom-bullet-symbol-for-li-elements-in-ul-that-is-a-regular-character-and/12216973#12216973 */
ul.spSymbol
{
    list-style: none;
    margin: 1.0em 20px;
    padding-left: 0;
}

ul.spSymbol li
{
    padding-left: 1em;
    text-indent: -1.7em;
}

ul.spSymbol li:before {
    content: "►";
    padding-right: 5px;
}

ol.spContent li
{
    margin-left: 0.5em;  /* Set to 0.5em for 2-digit lists */
    padding-left: 0;
    list-style-type: decimal;
    list-style-position: outside;
}
ol.spContentLevel2 li
{
    margin-left: -0.5em;
    padding-left: 0;
    list-style-type: lower-alpha;
    list-style-position: outside;
}
li.LastItem {margin-bottom: 1.0em;}

span.redblockIndent
{
    margin-left: 1.5em;
}

/* List of members who served in a specified office or position */
table.spListOfficials
{
    margin: 20px auto;
    width: 600px;
    border: 2px solid black;
    border-collapse: collapse;
}
table.spListOfficials th
{
    padding: 5px;
    border: 1px solid black;
    text-align: center;
    font-weight: bold;
}
table.spListOfficials td
{
    padding: 5px;
    border: 1px solid black;
    text-align: left;
}
table.spListOfficials td.spDate
{
    width: 80px;
    text-align: center;
}
div.spListOfficials
{
    margin: 20px auto;
    width: 600px;
}

/* Generic table with a border */
table.spBorderGeneric
{
    margin: 20px auto;
    border: 2px solid black;
    border-collapse: collapse;
}
table.spBorderGeneric th, table.spBorderGeneric td
{
    padding: 5px;
    border: 1px solid black;
}
table.spBorderGeneric th
{
    text-align: center;
    font-weight: bold;
    background-color: #d8d8d8;
}
table.spBorderGeneric td
{
    text-align: left;
}

/* Generic table with no border */
table.spNoBorderGeneric
{
    margin: 20px auto;
    border: 0;
    border-collapse: collapse;
}
table.spNoBorderGeneric th, table.spNoBorderGeneric td
{
    padding: 5px;
    border: 0;
}
table.spNoBorderGeneric th
{
    text-align: center;
    font-weight: bold;
    background-color: #d8d8d8;
}
table.spNoBorderGeneric td
{
    text-align: left;
}

/* Table whose cells are links */
table.spCellLink
{
    margin: 10px auto;
    border-collapse: collapse;
    border: 2px solid black;
}
table.spCellLink td
{
    border: 1px solid #cccccc;
    padding: 5px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
}

/* The following selectors are designed for forms */
table.spForm
{
    border: 0;
    border-collapse: collapse;
}
td.spFormLabel
{
    text-align: right;
    width: 140px;
}
span.spFormInstruction
{
    display: block;
    padding-top: 2px;
    font-size: 0.9em;
}
span.spFormFieldMandatory
{
    color: red;
}
span.spFormFieldError
{
    display: block;
    padding-top: 2px;
    color: red;
}
table.spForm th
{
    border: 0;
    padding: 5px;
    background-color: #ffddcc;
    text-align: center;
    font-weight: bold;
}
table.spForm td
{
    border: 0;
    padding: 5px;
}

/* The following selectors are for new style forms */
input[type=text].spForm, input[type=password].spForm, input[type=checkbox].spForm,
input[type=radio].spForm, select.spForm, textarea.spForm
{
    background-color: #e9e9ed;
    margin: 4px 0 0 0;
    padding: 3px 0 3px 3px;
    border: 1px solid gray;
    border-radius: 7px;
}
input[type=text].spForm:hover, input[type=password].spForm:hover, input[type=checkbox].spForm:hover,
input[type=radio].spForm:hover, select.spForm:hover, textarea.spForm:hover
{
    box-shadow: 0 0 5px rgba(81, 203, 238, 1);
    margin: 4px 0 0 0;
    padding: 3px 0 3px 3px;
    border: 1px solid rgba(81, 203, 238, 1);
}
span.spFormInputHeading
{
    font-size: 1.1em;
    font-weight: bold;
}
/* Simulates the text input element in new style forms */
p.spSimInputText
{
    margin: 4px 0 0 10px;
    padding: 3px 0 3px 3px;
    width: 250px;
    border: 1px solid gray;
    border-radius: 7px;
}

button.spORE
{
    color: black;
    background-image: linear-gradient(white, lightgray);
    border: 1px solid gray;
    border-radius: 8px;
    padding: 5px 8px;
    font-weight: bold;
}
button.spButtonBlue
{
    padding: 4px 8px;
    background-color: #33ccff;
    border: 2px solid blue;
    border-radius: 7px;
    font-size: 1.1em;
    font-weight: bold;
}
button.spButtonBlue:hover
{
    background-color: aqua;
    border: 2px solid blue;
}
button.spButtonBlueDisabled
{
    padding: 4px 8px;
    border: 2px solid blue;
    border-radius: 7px;
    font-size: 1.1em;
    font-weight: bold;
}
img.spImageLink
{
    margin: 2px 0;
    border: 2px solid blue;
}
img.spImageLink:hover
{
    border: 2px solid aqua;
}
img#spGoToTop
{
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: 2px solid white;
    cursor: pointer;
    padding: 5px;
}
img#spGoToTop:hover
{
    border: 2px solid blue;
}

/* Suppress the Nav bar at the top and Nav column at the left when printing */
@media print
{
    div.spNavContent
    {
        width: 760px;
        margin-left: 0;
        margin-right: auto;
    }
    div.spNav {display: none;}
    div.spContentHdr
    {
        margin-left: 0;
        margin-right: auto;
        padding-left: 0;
        padding-right: 10px;
    }

    div#intro {display: none;}
    div.top-go {display: none;}

    div.spContent
    {
        width: 740px;
        margin-left: 0;
        margin-right: auto;
        padding-left: 10px;
        padding-right: 10px;
        border-collapse: collapse;
        text-align: left;
        background-color: #FFFFFF;
    }
}

img.IconLeft
{
    margin-left: 10px;
    margin-right: 10px;
    float: left;
}
img.Right
{
    margin: 20px 10px 20px 20px;
    float: right;
}
img.BNAPSIcon
{
    margin-left: 0;
    margin-right: 20px;
    float: left;
}

caption
{
    margin-top: 1.0em;
    margin-bottom: 0.5em;
    font-family: Arial, sans-serif;
    font-size: 1.5em;
    font-weight: bold;
}
