html, body {
	background-color: #ffffff;
	color: #000000;
	font-family: arial, helvetica, sans-serif;
	padding: 0;
	margin: 0;
}

html { overflow-y: scroll; }

body {
  position: absolute;
  left: 0; right: 0;
  height: auto;
  min-height: 100%;
  width: 100%;
}

a img { border: none; }

/* navigation */
#navigation {
  position: absolute;
  top: 8em;
  right: 0;
  background-color: #1b97d5;
  color: #fff;
  width: 12em;
  border: 2px solid #0061aa;
  border-right: none;
  overflow: hidden;
  /* Ah, the joys of browser prefixes. */
  -moz-border-radius:    1em 0 0 1em;
  -webkit-border-radius: 1em 0 0 1em;
  -khtml-border-radius:  1em 0 0 1em;
  border-radius:         1em 0 0 1em;
}

#navigation ul {
  margin: 0;
  text-indent: 0;
  padding: 0.65em;
  padding-right: 0;
  list-style-type: none;
}

#navigation ul ul {
  padding: 0;
  padding-left: 1em;
}

#navigation li {
  margin: 0;
  padding: 0;
}

#navigation a { text-decoration: underline; }
#navigation a,
#navigation span {
  display: block;
  width: 100%;
  padding: 0.5em;
  padding-left: 1em;
  color: #fff;
  /* Ah, the joys of browser prefixes. */
  -moz-border-radius:    1em 0 0 1em;
  -webkit-border-radius: 1em 0 0 1em;
  -khtml-border-radius:  1em 0 0 1em;
  border-radius:         1em 0 0 1em;
}

#navigation a:hover {
  background-color: #0061aa;
}

#navigation .selected a { font-weight: bold; }
#navigation .selected ul a { font-weight: normal; }

#brand-nav li.selected {
  font-weight: bold;
}

#skip-nav {
  display: none;
}

/* Contact information */
#contact {
  display: block;
  position: absolute;
  z-index: 1;
  text-align: center;
  font-size: 1.5em;
  right: 0;
  bottom: 5em;
  width: 8em;
  padding: 1em;
  background-color: #1b97d5;
  border: 2px solid #0061aa;
  border-right: none;
  overflow: hidden;
  color: #fff;
  white-space: pre-wrap;
  /* Ah, the joys of browser prefixes. */
  -moz-border-radius:    1em 0 0 1em;
  -webkit-border-radius: 1em 0 0 1em;
  -khtml-border-radius:  1em 0 0 1em;
  border-radius:         1em 0 0 1em;
}
#contact span { display: block; }
#contact a {
  text-decoration: none;
  color: #fff;
  width: auto;
  font-weight: bold;
  font-size: 1.2em;
}

/* the body/content area */
#body {
  clear: left;
  margin: 1em;
  margin-right: 13.5em;
  margin-bottom: 22em;
  position: relative;
  overflow: visible;
}

@media (max-height: 60em) {
  #body { margin-bottom: 29em; }
}

/* Make lists work like they're logically supposed to
   (prevents bullets from overlapping product images) */
#body ul, #body ol { overflow: auto; }

#body a[href$=".pdf"]:after { content: " (pdf)"; }

/* New item listing style */
ul.fancyitems { margin: 0; padding: 0; overflow: visible !important; }
ul.fancyitems li {
  display: inline-block;
  list-style-type: none;
  vertical-align: middle;
  padding: 1em;
}

ul.fancyitems li * { display: block; margin-left: auto; margin-right: auto; text-align: center; }
ul.fancyitems b { font-size: 1.25em; }
ul.fancyitems .price { font-size: 2em; }
ul.fancyitems button { margin-top: 1em; }

/* the footer */
#footer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  clear: both;
  overflow: auto;
  font-size: smaller;
  background-color: #0061aa;
  color: #fff;
  padding: 0;
  padding-top: 4em;
  padding-bottom: 30px;
  margin: 0;
  margin-top: 10em;
  min-height: 4em;
}

/* we do this so we can get the bottom frill 4px from the bottom to
   mirror the top frill */
#footer::before {
  display: block;
  content: ""; /* Doesn't show up otherwise.  Boo! */
  width: 100%;
  position: absolute;
  bottom: 0;
  height: 17px;
  background-image: url(/pics/frillflip.gif);
  background-repeat: repeat-x;
  background-position: 0 0;
}

#footer p {
  text-align: center;
}

#footer a:link { color: #fff; }
#footer a:visited { color: #ddd; }

/* other stuff */

a[href^="mailto:"]:after { content: "\270d"; font-size: 1.4em; }
a[href^="http://"]:after { content: "\2386"; }
a[href*="www.originaludderbalm.com"]:after, /* work with translation programs */
a[href^="http://test.oub.com/"]:after,
a[href^="http://www.trustlogo.com/"]:after,
a[href^="http://www.originaludderbalm.com/"]:after,
a[href^="http://www.mbmacorp.com/"]:after { content: ""; }

a:hover {
	text-decoration: underline;
	color: #0000ff;
	background-color: transparent;
}

thead tr th {
  padding: 0.25em 0.4em;
  text-align: center;
  font-weight: bold;
  color: #fff;
  background-color: #0061aa;
}

tr.item1 {
	background-color: #ddf;
	color: inherit;
}

/* sometimes you want to add a little extra space
   between items to group them together. */
tr.extitem td { padding-top: 1em; }

tr.sep, td.sep {
	font-size: 5px;
	line-height: 6px;
}

.single-product { margin: 1em; }
.single-product th { text-align: right; }

em.new {
  border: dashed 1px;
  padding: 0 2px;
  background-color: #ff0;
  margin:  0 0.25em;
}

.sm {
	font-size: 0.8em;
	font-weight: normal;
}

.nbrand {
	color: #0000e0;
	background-color: #dedede;
}

img {
	margin: 3px;
}

/* header */

#header {
  font-weight: bold;
  background-color: #0061aa;
  color: #fff;
  padding-top: 20px;
  padding-left: 233px;
  background-image: url(/pics/frill.gif);
  background-repeat: repeat-x;
  background-position: 0 4px;
  min-height: 106px;
  height: 9em;
  position: relative;
  margin-bottom: 81px;
}

#header h1, #header img {
  margin: 0;
  padding: 0;
}

#header h1 {
  position: absolute;
  left: 233px;
  bottom: 4px;
  right: 6em;
  margin-right: 2px;
  font-size: 2em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Emboss! */
  text-shadow: -0.03em -0.03em 0.04em #5c9ac9, -0.03em 0 0.04em #5c9ac9, 0 -0.03em 0.04em #5c9ac9,
                0.03em  0.03em 0.04em #003e6d,  0.03em 0 0.04em #003e6d, 0  0.03em 0.04em #003e6d;
}

#header img {
  position: absolute; left: 0; top: 20px; 
  width: 233px; height: 188px;
}

#header ul span {
  display: block;
  width: auto;
  color: #fff;
}

#header ul a:link, #header ul a:visited, #header ul span { padding: 0.2em; }

#header ul a:link,
#header ul a:visited {
  font-weight: normal;
  text-decoration: underline;
  display: block;
  width: auto;
  color: #fff;
  /* Ah, the joys of browser prefixes. */
  -moz-border-radius:    1em;
  -webkit-border-radius: 1em;
  -khtml-border-radius:  1em;
  border-radius:         1em;
}

#header ul a:visited { color: #ddd; }

#header ul a:hover {
  background-color: #1b97d5;
}

#header ul {
  list-style-type: none;
  margin: 0;
  padding: 0.25em;
  display: block;
  /* really ugly width to work in IE when JS is disabled */
  width: 60%;
  /* stupidly gross IE hack for when JS is enabled */
  width: expression((document.body.clientWidth - 350)*0.97 + "px");
  position: relative;
  overflow: auto;
}

/* moz gets it right */
#header > ul { width: auto; }

#header ul li {
  float: left;
  display: block;
  position: relative;
  width: 24%;
  margin: 0;
  padding: 0;
  text-align: center;
}

#header > ul > li { width: 25%; }

#testmarker {
  display: block;
  font-size: 0.75em;
  line-height: 1em;
  font-style: italic;
  color: white;
  text-align: center;
  background-color: #f00;
  -moz-border-radius: 1em;
  width: 60%;
  margin: 0 auto;
  text-shadow: none;
}

input, textarea, select {
	border-width: 1px;
	border-style: inset;
	background-color: #dedede;
	color: #000;
}

input, textarea { font-family: monospace; }

input.noformat { /* class name is a hack for IE */
        border-style: none;
        background-color: transparent;
}

.order {
  border-width: 0.1em;
  border-style: outset;
  font-weight: bold;
  font-family: sans-serif;
  font-size: 1em;
  line-height: 1em;
  padding: 0.5em;
  background-color: #fcaa53;
  -moz-border-radius:    1.5em;
  -webkit-border-radius: 1.5em;
  -khtml-border-radius:  1.5em;
  border-radius:         1.5em;
}

.order:active:hover { border-style: inset; padding: 0.55em 0.45em 0.45em 0.55em; }

span.oubhilight {
	background-color: transparent;
	color: #0000dd;
}

h1 {
	font-size: 2em;
	font-weight: bold;
}

h2 {
	font-size: 1.4em;
	font-weight: bold;
}

dl.contact dt {
    font-weight: bold;
}

dl.contact dd {
    margin-bottom: 1em;
}

blockquote {
	border-width: 1px;
	border-style: solid;
	border-color: black;
	padding: 0.5em;
	margin: 1em;
}

blockquote cite {
	display: block;
	text-align: right;
}

blockquote.iprod {
        border-width: 1px;
        border-style: dashed;
        border-color: black;
        padding: 0.5em;
        margin: 1em;
        margin-right: 0.1em;
        float: right;
        background-color: #fffff0;
}

blockquote p { display: inline; }
/* Any browser that understands these should have decent enough
   unicode support to handle the quotes. */
blockquote > p:before { content: "\201C"; }
blockquote > p:after { content: "\201D"; }
/* If we do a double-break (new paragraph?), then insert an
   opening quote, because English has wacky quoting rules that
   require it. Unfortunately, we can't do p:after + p to kill
   the closing quote, and there are no other adjacent selectors.
   Curse your limitations, CSS! */
blockquote > p > br + br:after { content: "\201C"; }

.oldprice {
	text-align: center;
	text-decoration: line-through;
}

.c { text-align: center; }

.subtitle {
	margin-top: -1.2em;
	margin-bottom: 0.1em;
	font-style: italic;
}

@media screen {

/* product-group blocks */
.product-group1, .product-group2 {
  margin: 0;
  padding: 0.2em;
  /* widths to work around IE annoyances. The irony is that, at lower
     resolutions, the IE-specific hack makes this part look better in IE than
     it does in Mozilla. (CSS really could use support for expressions.) */
  width: 97%; /* JS disabled */
  /* JS enabled; set depending on window size */
  width: expression((document.body.clientWidth < 1000 ? 97 : 49) + '%');
}
.product-group1 { float: left;  }
.product-group2 { float: right; }
/* IE tends to scroll horizontally with clear set, so make sure it doesn't see it */
* > .product-group1 { clear: left;  }
* > .product-group2 { clear: right; }
div[class="product-group1"], div[class="product-group2"] {
  width: 49%;
  min-width: 350px;
}

div.wide {
  width: 97%; /* Die, IE, Die! */
  clear: both;
}
div[class~="wide"] { width: 100%; }

}

@media screen and (max-width: 1000px) {
  .product-group1, .product-group2 {
    float: none !important;
    width: 100% !important;
    clear: both !important;
  }
}

.product-group1 h2, .product-group2 h2 {
  margin-top: 0;
}

/* product images */
.product-img1, .product-img2 {
  text-align: center;
  font-size: larger;
  padding: 0;
}
.product-img1 {
  float: left;
  margin-right: 1em;
}
.product-img2 {
  float: right;
  margin-left: 1em;
}

.outofstock {
  color: #c00;
}

/* webtv, why must you suck so? */
@media tv {
  #header, #header ul, #header li, #header ul a { background-color: transparent; }
  #navigation, #contact {
    position: relative;
    background-color: transparent;
    width: auto;
  }
}

/* when printing, pages don't need the various navigation menus, so don't
   bother showing them. */
@media print {
  #header {
    margin-bottom: 81px;
    min-height: 106px;
  }

  #navigation, #header ul { display: none; }
  #contact {
    left: 233px;
    top: 20px;
    right: 0;
    bottom: auto;
    width: auto;
    margin-top: 0.5em;
    white-space: normal;
    border: none;
    background: none;
    overflow: visible;
    margin: 0;
    padding: 0;
  }

  #header img {
    width: 233px;
    height: 188px;
  }

  #header h1 { left: 233px; right: 0; font-size: 2em; text-shadow: none; }
  #testmarker { display: none; }

  #body { margin: 0; }

  .product-group1, .product-group2 { clear: both; }

  #footer { position: relative; }
}

@media screen and (min-width: 1049px) {
  /* Embiggen the header on larger screens */
  #header { padding-left: 350px; min-height: 160px; margin-bottom: 122px; }
  #header img { width: auto; height: auto; }
  #header > a:first-of-type { visibility: hidden; }
  #header > a:first-of-type::after {
    visibility: visible;
    position: absolute; left: 0;
    width: 350px; height: 282px;
    background-image: url(/pics/logo.gif); content: " ";
  }
  #header h1 { font-size: 2.5em; right: 4em; left: 350px; }
  #header ul a:link, #header ul a:visited, #header ul span { padding: 0.5em; }
}

@media screen and (max-width: 600px) {
  #header { height: auto; }
  #header ul li { width: 50%; }
  #header ul span, #header ul a:link, #header ul a:visited { padding: 0.5em; }
  #header h1 { display: none; }
  #body { margin-right: 1em; margin-bottom: 0; }
  #navigation { margin-bottom: 14em; }
  #navigation, #contact { position: static; width: auto; }
  #navigation a, #navigation span { padding: 1em; border-bottom: 1px solid black; }
  #contact { margin: 1em 0 1em 1em; }
  #contact a { float: none; text-decoration: underline; }
  img, .product-img1, .product-img2 { display: block; margin: 0.25em auto; float: none !important; }
}

@media screen and (max-width: 440px) {
  #header { padding-left: 0; margin-bottom: 0; height: auto; }
  #header img { width: 100%; height: auto; max-width: 233px; position: static; margin: 0 auto; display: block; }
  #header ul { position: static; }
  #header ul:first-of-type li:first-of-type { display: none; }
  #header ul li { width: 33.3%; }
}

