/* 
  -- Even more rounded corners with CSS: Base stylesheet --
	Based on http://www.schillmania.com/projects/dialog2
*/

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

.dialog .content,
.dialog .t,
.dialog .b,
.dialog .b div {
 background:transparent url(/images/dialog/dialog2-blue-800x1600.png) no-repeat top right;
 _background-image:url(/images/dialog/dialog2-blue.gif);
}

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

.dialog .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;
}

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

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

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

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

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

.dialog .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. */
}

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

.dialog h1 {
 padding-bottom:0px;
}
/* dialog variants - alternate colours, widths and so on */

.dialog.short .wrapper {
 max-height:520px;
}

.dialog.type2 .content,
.dialog.type2 .t,
.dialog.type2 .b,
.dialog.type2 .b div {
 background-image:url(/images/dialog/dialog2-dark-800x1200-alpha-drip.png);
 _background-image:url(/images/dialog/dialog2-dark-alpha-drip.gif);
}

.dialog.type2 .b,
.dialog.type2 .b div {
 height:40px; /* slightly higher due to bottom shade */
}

.dialog.type2 .content {
 /* min-height:155px; */ /* compensate overall height for bottom shade */
}

/* "Mr. Clean" */

.dialog.type3 .content,
.dialog.type3 .t,
.dialog.type3 .b,
.dialog.type3 .b div {
 background-image:url(/images/dialog/dialog2-mrclean.png);
 _background-image:url(/images/dialog/dialog2-mrclean.gif);
}

.dialog.type4 .content,
.dialog.type4 .t,
.dialog.type4 .b,
.dialog.type4 .b div {
 background-image:url(/images/dialog/dialog2-blue-800x1600-drip.png);
 _background-image:url(/images/dialog/dialog2-blue.gif);
}

.dialog.type5 .content,
.dialog.type5 .t,
.dialog.type5 .b,
.dialog.type5 .b div {
 background-image:url(/images/dialog/dialog2-red-800x1200-drip.png);
 _background-image:url(/images/dialog/dialog2-red-drip.gif);
}

.dialog.type6 .content,
.dialog.type6 .t,
.dialog.type6 .b,
.dialog.type6 .b div {
 color: black;
 background-image:url(/images/dialog/dialog2-gray-800x1200-drip.png);
 _background-image:url(/images/dialog/dialog2-gray-drip.gif);
}
.dialog.type7 .content,
.dialog.type7 .t,
.dialog.type7 .b,
.dialog.type7 .b div {
 color: gray;
 background-image:url(/images/dialog/dialog2-ltgray-800x1200-drip.png);
 _background-image:url(/images/dialog/dialog2-ltgray-drip.png);
}

/* "drip" style extended class (eg. <div class="dialog type4 drip"> - more positioning due to width/height requirements */

.dialog.drip .b,
.dialog.drip .b div {
 height:80px;
}

.dialog.drip {
 margin-left:65px;
}

.dialog.drip .t,
.dialog.drip .b div,
.dialog.drip .hd,
.dialog.drip .bd,
.dialog.drip .ft,
.dialog.drip .wrapper {
 margin-left:-65px;
 width:65px;
}

.dialog.drip .wrapper {
 width:auto;
}

.dialog .wrapper .hd,
.dialog .wrapper .bd,
.dialog .wrapper .ft {
 margin-left:0px;
}

.dialog.drip .hd,
.dialog.drip .bd,
.dialog.drip .ft {
 zoom:1;
 width:auto;
 padding:0px 2px 0px 12px;
}

/* demo layout (columns, etc.) - only for this demo page */

#demo {
 position:relative;
 margin:0px auto;
 _width:100%; /* IE 6 sucks. */
 max-width:1600px;
}

.col {
 float:left;
 display:inline;
 width:49%;
 _width:48%;
 margin:0px 0.5% 0px 0.5%;
}

.col.last {
 margin-right:0px;
}

/* content-specific */

.dialog .content {
 padding:0.5em 1em 0.5em 0px;
}

.dialog .wrapper {
 min-height:155px; /* minimum content height, so bottom shade fills in nicely - can ignore if no gradient in dialog, etc. */
}

.dialog h1 {
 /* header */
 font-size:2em;
 margin:0px;
 padding:0px;
 padding-top:0.25em;
}

.dialog pre {
 font-size:1.1em;
 *font-size:0.9em;
}


