﻿/* 
  -- Even more rounded corners with CSS: Base stylesheet --
*/

.ctn {
 position:relative;
 margin:0px auto;
 min-width:8em;
 max-width:1000px; /* based on image dimensions - not quite consistent with drip styles yet */
 z-index:1;
 margin-left:12px; /* default, width of left corner */

}

.light .ctn_content,
.light .ctn_t,
.light .ctn_b,
.light .ctn_b div {
 background:transparent url(light/bg.png) no-repeat top right;
 _background-image:url(light/bg.png);
}

.dark .ctn_content,
.dark .ctn_t,
.dark .ctn_b,
.dark .ctn_b div {
 background:transparent url(dark/bg.png) no-repeat top right;
 _background-image:url(dark/bg.png);
}

.ctn .ctn_content {
 position:relative;
 zoom:1;
 _overflow-y:hidden;
 padding:0px 12px 0px 6px;
}

.ctn .ctn_t {
 /* top+left vertical slice */
 position:absolute;
 left:0px;
 top:0px;
 width:12px; /* top slice width */
 margin-left:-12px;
 height:100%;
 _height:3400px; /* arbitrary long height, IE 6 */
 background-position:top left;
}

.ctn .ctn_b {
 /* bottom */
 position:relative;
 width:100%;
}

.ctn .ctn_b,
.ctn .ctn_b div {
 height:30px; /* height of bottom cap/shade */
 font-size:1px;
}

.ctn .ctn_b {
 background-position:bottom right;
}

.ctn .ctn_b div {
 position:relative;
 width:12px; /* bottom corner width */
 margin-left:-12px;
 background-position:bottom left;
}

.ctn .ctn_hd,
.ctn .ctn_bd,
.ctn .ctn_ft {
 position:relative;
}

.ctn .ctn_wrapper 
{
 padding: 4px;
 /* extra content protector - preventing vertical overflow (past background) */
 position:static;
 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. */
}

.ctn h1,
.dialog p {
 margin:0px; /* margins will blow out backgrounds, leaving whitespace. */
 padding:0.5em 0px 0.5em 0px;
}

.ctn h1 {
 padding-bottom:0px;
}

.dark .ctn_hd h1
{
    color: #ffffff;
}
