/* 
  -- Even more rounded corners with CSS: Base stylesheet --
*/

.shadebox {
 float: left;
 margin:0px auto;
 min-width:8em;
 max-width:760px; /* based on image dimensions - not quite consistent with drip styles yet */ 
 margin-left:12px; /* default, width of left corner */
 margin-bottom:0.5em; /* spacing under dialog */
}

.shadebox .sb_content,
.shadebox .t,
.shadebox .b,
.shadebox .b div {
 background:transparent url(/styles/images/whitebox.png) no-repeat top right;
 _background-image:url(dialog2-blue.gif);
}

.shadebox .sb_content {
 position:relative;
 zoom:1;
 _overflow-y:hidden;
 padding:0px 12px 0px 0px;
}

.shadebox .t {
 /* top+left vertical slice */
 position:absolute;
 left:0px;
 top:0px;
 width:12px; /* top slice width */
 margin-left:-12px;
 height:100%;
 _height:1600px; /* arbitrary long height, IE 6 */
 background-position:top left;
}

.shadebox .b {
 /* bottom */
 position:relative;
 width:100%;
}

.shadebox .b,
.shadebox .b div {
 height:30px; /* height of bottom cap/shade */
 font-size:1px;
}

.shadebox .b {
 background-position:bottom right;
}

.shadebox .b div {
 position:relative;
 width:12px; /* bottom corner width */
 margin-left:-12px;
 background-position:bottom left;
}

.shadebox .hd,
.shadebox .bd,
.shadebox .ft {
 position:relative;
}

.shadebox .wrapper {
 /* extra content protector - preventing vertical overflow (past background) */
 position:static;
 max-height:1000px;
 overflow:auto; /* note that overflow:auto causes a rather annoying redraw "lag" in Firefox 2, and may degrade performance. Might be worth trying without if you aren't worried about height/overflow issues. */
}

.shadebox h1,
.shadebox p {
 margin:0px; /* margins will blow out backgrounds, leaving whitespace. */
 padding:0.5em 0px 0.5em 0px;
}

.shadebox h1 {
 padding-bottom:0px;
 font-size: 15px;
 border-bottom: 1px solid #a0a0a0;
}