/* 
  -- Even more rounded corners with CSS: Base stylesheet --
*/

.rounded {
 position:relative;
 margin:0px auto;
 min-width:8em;
 max-width:880px; /* based on image dimensions - not quite consistent with drip styles yet */
 z-index:1;
 margin-left:13px; /* default, width of left corner */
 margin-bottom:0.5em; /* spacing under dialog */
}

.rounded .roundedcontent,
.rounded .t,
.rounded .b,
.rounded .b div {
 background:transparent url(roundbg2.gif) no-repeat top right;
}

.rounded .roundedcontent {
 position:relative;
 zoom:1;
 _overflow-y:hidden;
 padding:20px 20px 0 12px;
}

.rounded .t {
 /* top+left vertical slice */
 position:absolute;
 left:0px;
 top:0px;
 width:13px; /* top slice width */
 margin-left:-13px;
 height:100%;
 _height:1600px; /* arbitrary long height, IE 6 */
 background-position:top left;
}

.rounded .b {
 /* bottom */
 position:relative;
 width:100%;
}

.rounded .b,
.rounded .b div {
 height:16px; /* height of bottom cap/shade */
 font-size:1px;
}

.rounded .b {
 background-position:bottom right;
}

.rounded .b div {
 position:relative;
 width:13px; /* bottom corner width */
 margin-left:-13px;
 background-position:bottom left;
}

.rounded .hd,
.rounded .bd,
.rounded .ft {
 position:relative;
}

.rounded .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. */
}

.rounded h1,
.rounded p {
 margin:0px; /* margins will blow out backgrounds, leaving whitespace. */
 padding:0.5em 0px 0.5em 0px;
}

.rounded h1 {
 padding-bottom:0px;
}

/* other rounding technique for solid box */

div.roundBoxRed {background-color: #E51B24; font-size:11px}
div.roundBoxRed p{margin: 0px 10px; }
div.roundBoxRed b.btop, div.roundBoxRed b.btop b, div.roundBoxRed b.bbot, div.roundBoxRed b.bbot b{display: block;height: 10px; font-size: 1px; background:url(roundboxbg_red.gif) no-repeat}
div.roundBoxRed b.btop b{background-position: 100% -10px}
div.roundBoxRed b.bbot{background-position: 0 -20px}
div.roundBoxRed b.bbot b{background-position: 100% -30px}

div.roundBoxWhite {background-color: white; font-size:11px}
div.roundBoxWhite p{margin: 0px 10px; }
div.roundBoxWhite b.btop, div.roundBoxWhite b.btop b, div.roundBoxWhite b.bbot, div.roundBoxWhite b.bbot b{display: block;height: 10px; font-size: 1px; background:url(roundboxbg_white.gif) no-repeat}
div.roundBoxWhite b.btop b{background-position: 100% -10px}
div.roundBoxWhite b.bbot{background-position: 0 -20px}
div.roundBoxWhite b.bbot b{background-position: 100% -30px}

div.roundBoxTan {background-color: #FAFAF5; font-size:11px}
div.roundBoxTan p{margin: 0px 10px; }
div.roundBoxTan b.btop, div.roundBoxTan b.btop b, div.roundBoxTan b.bbot, div.roundBoxTan b.bbot b{display: block;height: 10px; font-size: 1px; background:url(roundboxbg_tan.gif) no-repeat}
div.roundBoxTan b.btop b{background-position: 100% -10px}
div.roundBoxTan b.bbot{background-position: 0 -20px}
div.roundBoxTan b.bbot b{background-position: 100% -30px}


div.roundBoxRedWhite {background-color: white; font-size:11px}
div.roundBoxRedWhite p{margin: 0px 10px; }
div.roundBoxRedWhite b.btop, div.roundBoxRedWhite b.btop b, div.roundBoxRedWhite b.bbot, div.roundBoxRedWhite b.bbot b{display: block;height: 10px; font-size: 1px}
div.roundBoxRedWhite b.btop, div.roundBoxRedWhite b.btop b{background:url(roundboxbg_red.gif) no-repeat}
div.roundBoxRedWhite b.bbot, div.roundBoxRedWhite b.bbot b{background:url(roundboxbg_white.gif) no-repeat}
div.roundBoxRedWhite b.btop, div.roundBoxRedWhite div.rbHeader{background-color: #E51B24}
div.roundBoxRedWhite b.btop b{background-position: 100% -10px}
div.roundBoxRedWhite b.bbot{background-position: 0 -20px}
div.roundBoxRedWhite b.bbot b{background-position: 100% -30px}

