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

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

.dialog_green .content,
.dialog_green .t,
.dialog_green .b,
.dialog_green .b div {
	background:transparent url(http://www.flexial.com/images/dialog-green.png) no-repeat top right;
	_background-image:url(http://www.flexial.com/images/dialog-green.gif);
}

.dialog_blue .content,
.dialog_blue .t,
.dialog_blue .b,
.dialog_blue .b div {
	background:transparent url(http://www.flexial.com/images/dialog-blue.png) no-repeat top right;
	_background-image:url(http://www.flexial.com/images/dialog-blue.gif);
}

.dialog_red .content,
.dialog_red .t,
.dialog_red .b,
.dialog_red .b div {
	background:transparent url(http://www.flexial.com/images/dialog-red.png) no-repeat top right;
	_background-image:url(http://www.flexial.com/images/dialog-red.gif);
}

.dialog_white .content,
.dialog_white .t,
.dialog_white .b,
.dialog_white .b div {
	background:transparent url(http://www.flexial.com/images/dialog-white.png) no-repeat top right;
	_background-image:url(http://www.flexial.com/images/dialog-white.gif);
}

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

.dialog .t {
	/* top+left vertical slice */
	position:absolute;
	left:0px;
	top:0px;
	width:24px; /* top slice width */
	margin-left:-24px;
	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:24px; /* height of bottom cap/shade */
	font-size:1px;
}

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

.dialog .b div {
	position:relative;
	width:24px; /* bottom corner width */
	margin-left:-24px;
	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;
}