/* Standard formats */
div.content 
{
font-size: 16px;
color: #D0D0D0;
}

h1 
{
font-size: 24px;
font-weight: bold;
color: #5C9696;
text-align: left;
margin-top: 22px;
margin-bottom: 16px;
line-height: 29px;
}

h2 
{
font-size: 20px;
font-weight: bold;
color: #5C9696;
text-align: left;
margin-top: 16px;
margin-bottom: 16px;
}

h3, h4
{
font-size: 16px;
font-weight: bold;
color: #FFD000;
margin-bottom: -12px;
text-align: left;
}

h4
{
float:left;
margin: 0 8px -1px 0;
position: top;
}

h3.bmargin
{
margin-bottom: 0px;
}

/* Episode scripts and code */
.script, .script *
{
font-family: "Courier New", Courier, monospace;
}

sup, sub
{
font-size: 11px;
}

img.auto 
{
max-width: 100%;
height: auto;
}

/* For site guide */
.bulink a, a.bulink
{
font-weight: bold;
font-size: 16px;
text-decoration: none;
}

.bulink a:hover, a:hover.bulink
{
color: #d0d0d0;
}

.bulink a:active, a:active.bulink
{
color: #ffffff;
}

.guidetable
{
max-width: 780px;
padding: 0px;
}

.guidetable td
{
padding: 4px;
padding-left: 0px;
padding-right: 12px;
}

.guidetable td img[src$=".png"]
{
padding: 10px;
background: #243c3c;
border: none;
margin-left: -2px;
}

.guidetable td A img[src$=".png"]:hover
{
background: #3A6060;
}

/* All pages */
.intranav
{
text-align: center;
}

.intranav br {display: none}

.intranav a, .intranav .nolink, .intranav .thispage 
{
display: inline-block;
color: #D0D0D0;
text-decoration: none;
padding: 5px 6px 2px 6px;
border-bottom: 3px solid #243c3c;
margin: 5px 1px 0 1px;
}

.intranav .nolink 
{
color: #484840;
padding: 5px 6px 5px 6px;
border-bottom: none;
}

.intranav .thispage 
{
padding-bottom: 2px;
border-bottom: 3px solid #3A6060;
}

.intranav a:hover 
{
color: #FFFFFF;
background: #3A6060;
padding-bottom: 5px;
border-bottom: none;
text-decoration: none;
}

.smallfont
{
font-size: 13px;
line-height: 125%;
}

.caption
{
font-size: 13px;
margin-top: 0px;
}

/* Paragraph in table fix */

td > p:first-child, td > h3, td > h2 {margin-top: 0}
td > p:last-child {margin-bottom: 0}

/* Left and right image fixes */
img[align="right"]
{
margin-left: 16px;
margin-right: -14px;
margin-bottom: 8px;
}

p a:first-child img[align="right"], h4 + a img[align="right"], li a:first-child img[align="right"], ul li img[align="right"]:first-child, td br + a > img[align="right"], td a:first-of-type > img[align="right"], td a:first-child img[align="right"], p.creditline img[align="right"]:first-child, p > img[align="right"]:only-of-type, div a:first-child img[align="right"], a > a:first-child img[align="right"], p.dlist + a img[align="right"], h2 + a img[align="right"]
{
margin-right: 0px;
}
/* Workaround: li img[align="right"]:first-child messes up SSDB when in ol */

/* Clear centered paragraph */
p ~ p[align="center"], p ~ p[style="text-align: center"] {clear: both;}

img[align="left"]
{
margin-right: 16px;
margin-left: -6px;
margin-bottom: 8px;
}

p a:first-child img[align="left"], td img[align="left"], td a:first-child img[align="left"], p.creditline img[align="left"]:first-child, p > img[align="left"]:only-of-type
{
margin-left: 0px;
}

img[align="right"][src$="trekxi.png"], img[align="right"][src$="discovery.png"], img[align="right"][src$="remastered.png"], img[align="right"][src$="tas.png"], img[align="right"][src$="no_updates.png"]
{
margin-top: 0px;
margin-left: 16px;
margin-right: 0px;

}

img[align="left"][src$="trekxi.png"], img[align="left"][src$="discovery.png"], img[align="left"][src$="remastered.png"], img[align="left"][src$="tas.png"], img[align="left"][src$="no_updates.png"]
{
margin-top: 0px;
}

img.inlineimg
{
margin: 0px 8px 4px 0px;
float: left;
}

/* Image or intranav after heading fix */
h1 + p a img, h1 + p img
{
clear: both;
/* margin-top: 5px !important; */
} 

/* Exception for EAS FY index pages */
h1 + p img[align="left"]
{
clear: left;
}

/* Image border same as background */
td[bgcolor="#243c3c"], td[bgcolor="#243c3c"] font
{border-color: #243c3c}

/* Infobox Wolf 359, Warp */

div.infobox
{
margin-left: 16px;
float: right;
clear: right;
margin-top: 16px;
}

div.infobox + div.related_links
{
position: unset;
width: 243px;
float: right;
clear: right;
display: block;
margin-top: 0;   /* was 2px */
margin-left: 16px;
margin-bottom: 2px;
z-index: 1;
top: initial; 
box-shadow: none; 
}

/* Extremely important fix because of title_search */

h1 + .intranav, h1 + p, h1 + a + p, h1 + div, h1 + a + div, h1 + h3, h1 + a + h3, div.related_links + p, div + .intranav, h1 + table, h1 + form
{
margin-top: 40px;
}

h1 + .intranav, div + .intranav
{
margin-top: 30px;
}

h1 + p + h2 {margin-top: -37px}

h1 + p.highlight + p {margin-top: 21px}

h1 + p.highlight + p.intranav {margin-top: -5px}

h1 + p.highlight + div + div + p {margin-top: 23px}  /* warp0.htm */

h1 + p.highlight + div.infobox {margin-top: 0}

/* Credits and annotations */

p.creditline, div.creditline, h3.creditline
{
border-left: 12px solid #243c3c;
padding-left: 8px;
}

div.creditline
{
margin-left: 80px;
margin-right: 80px;
}

/* Highlight (yellow) */

.highlight
{
font-weight: bold;
color: #FFD000;
}

h1 + p.highlight
{
margin-top: -16px;
}

@media (max-width: 940px) { h1 + p.highlight {margin-top: -10px} }

h2 + p.highlight_small
{
margin-top: -16px;
}

.highlight_small
{
font-size: 13px;
font-weight: bold;
color: #FFD000;
}

/* Table formats */

.tableheading
{
font-weight: bold;
color: #243c3c;
}

.tableheading_small
{
font-size: 13px;
font-weight: bold;
color: #243c3c;
}

/* Particle database */

img.particle
{
float: left;
margin-right: 8px;
margin-top: -2px;
}

p.smallfont + img.particle
{
margin-top: 1px;
}

/* li2 with more spacing of the old CSS becomes normal li */

li
{
margin-bottom: 0.5em;
}

ul > li
{
margin-top: 0.5em;
}

li > ol
{
margin-top: 0.5em;
}

ul.ulrel > li
{
margin-bottom: 0;
margin-top: 0;
}

.ulmin
{
line-height: 125%;
margin-bottom: 0;
}

.ulmin li
{
margin-bottom: 8px;
}

td ul /*, td p*/, td ol
{
margin-top: 0px;
margin-bottom: 2px;
}

ol
{
list-style-position: outside;
margin-left: 28px;
padding-left: 12px;
line-height: 125%;
}

.ulmin2
{
line-height: 90%;
}

/* Reboot paragraphs */

.reboot, div.reboot, blockquote.reboot, p.reboot, li.reboot
{
margin-left: 0;
margin-right: 0;
color: #8C8C80;
}

/* Chrome li float left fix */

/*@media screen and (-webkit-min-device-pixel-ratio:0) 
{
li img[align="left"], li img[style="float:left"]
	{
	float:right;
	margin-right: 0 !important;
	margin-left: 8px !important;
	}
}*/

/* Starship Database tables */
.btable
{
font-weight: bold;
}

tr:first-of-type > td.btable:first-of-type 
{
background: none;
}

.btable[width="200"] img, img.wideillu
{
filter: contrast(78%);
}

.btable[width="200"] a:hover img, a:hover img.wideillu 
{
filter: contrast(82%) brightness(1.2);
}

ol.oltable li
{
margin-left: 24px;
}

ol.oltable li:last-of-type
{
margin-bottom: -2px;
}

/*td[width="60%"] img
{
margin-top: 3px;
}*/

@media (max-width: 702px)
{
td[width="60%"] a img[align="right"]
{
margin-right: 0px;
}
}

td.btable img[src*="emblem"]
{
margin-bottom: 8px;
}

/* Observations */
td.optwrap
{
white-space: nowrap;
}

@media (max-width: 790px)
{
td.optwrap
{
white-space: normal;
}
}

/* Observations index */
td br.opt
{
display: none;
}

@media (max-width: 940px)
{
td br.opt
{
display: initial;
}
}

/* Award pages */
img[src~="eae-sml.png"]
{
float: left;
margin-right: 16px;
}

img[src~="eae-sml.png"] + p, img[src~="eae-sml.png"] + p + p
{
padding-left: 48px;  
}

/* Spoilers */
spoiler {color: #8c8c80; background: #8c8c80}
spoiler:hover {color: inherit; background: inherit}
spoiler:before {width: 48px; color: #202020; text-align: middle; content: "$$$"; margin-right: 6px}
spoiler:hover:before {background: #8c8c80}