/* CSS for the guide */

* { margin: 0; padding: 0; }

body {
    font-family: Verdana,Sans-serif,Arial,'Trebuchet MS','Times New Roman';
    font-size: small;
    color: #000;
}

div#container >h1, div#container >h2 {
    margin: 15px 0 5px -10px;
    padding: 5px 10px;

    border-top: 1px dashed #A3A3A3;
    padding: 7px 0 18px 10px;
    background: #F4F4F4;
    color: #0033CC;

    clear: both;
}
div#container >h2 {
    margin-top: 40px;
}
p { margin: 14px 0px;
    line-height: 1.5em;
}

p span {
    padding: 3px;
    background: #ddd;
}

code {
    background: #ddd;
    padding: 1px 3px;
    color: #555;
}

pre {
    font-family: monospace;
}

ul {
    margin: 10px 0;
    margin-left: 25px;

}
ul ul {
    margin-top: 0;
}

br {
    clear: both;
}

table {
    border: 2px solid #ac9;
    border-collapse: collapse;
}

table td {
    padding: 5px 10px;
}
table thead {
    background: #ac9;
}
table thead th {
    padding: 10px;
    background: #efe;
    text-align: left;
}

table tr.odd td {
    background: #eee;
}

dl ss {
    float: left;
}

a.top, a.top:visited {
    color: gray;
    font-family: Arial, helvetica;
    background: url(top.png) no-repeat left 5px;
    padding-left: 15px;
    clear: both;
    display: block;
}

p.browsercssok {
    color:  #ff6600;
    border: 1px solid #ff6600;
    padding: 5px;
    font-weight: bold;
}

p.browsertouchok {
    color: green;
    border: 1px solid green;
    padding: 5px;
    font-weight: bold;
}

p.browsernotok {
    color: red;
    border: 1px solid red;
    padding: 5px;
    font-weight: bold;
}

a {
    color: #0033CC;
}
a:visited {
    color: #003366;
}

/*--------------------------------------------------------------------------*/

div#header {
    background-color: #eee;
    padding: 1em;
    margin: 10px auto;
    width: 90%;
    border-top: 1px dashed #A3A3A3;
    border-bottom: 1px dashed #A3A3A3;
}
#container {
    padding: 1em;
    margin: 1em auto;
    width: 90%;
    margin-top: 0;
}

#footer {
    display: none;

    color: #777;
    clear: both;
    background-color: #ddd;
    padding: 10px;
    border-top: 3px solid #aaa;
    text-align: center;
    width: 90%;
    margin: 10px auto;
}

div.code {
/*    color: #555;*/
    padding: 8px;
    padding-left: 0;
    margin-right: 6px;
    float: left;
    width: 47%;
/*    border: 1px solid #aaa;*/
    font-weight: bold;
/*    overflow: hidden;*/
/*    max-height: 400px;*/
/*    overflow: hidden;*/
/*    overflow-y: auto;*/
}

div.code h3 {
    margin: 4px 0;
    color: #aaa;
    font-size: 130%;
}
div.active h3 {
    color: black;
}

textarea {
    padding: 3px;
    width: 95%;
    height: 150px;
    border: 1px dotted #aaa;
    text-align: left;
    font-size: 11px;
    font-family: "courier new";
    color: #444;
    overflow-x: auto;
}
textarea:focus {
    border: 1px solid #ac9;
    background: #eee;
}

input[type=button] {
    margin: 5px 0;
    padding: 2px 12px;
    font-size: 16px;
}

div.playground {
    clear: both;
    width: 95%;
    border: 3px solid #aaa;
    background: #000;
    height: 200px;
    margin: 10px 0;
    position: relative;
    color: #fff;
    font-size: normal;
}


/*--------------------------------------------------------------------------*/
div.toc {
    border-left: none;
    border-right: none;
    margin: 0 25px;
    padding: 20px;

    -moz-column-count: 2;
    -moz-column-width: 40%;
    -webkit-column-count: 2;
    -webkit-column-width: 40%;

    height: 500px;
}

div.toc span {
    font-size: 20px;
    margin-bottom: 10px;
    background: inherit;
}

div.toc > ul > li {
    font-size: 120%;
    font-weight: bold;
}
div.toc ul ul > li {
    font-size: 85%;
    font-weight: normal;
}

/* hilighting code */
/*--------------------------------------------------------------------------*/

td.linenos pre {
    padding: 5px 0px;
    border: 0;
    background-color: transparent;
    color: #aaa;
}

table.highlighttable {
    border: none;
}

table.highlighttable td {
    padding: 0;
}

pre {
    padding: 5px;
    background-color: #eeffcc;
    color: #333333;
    line-height: 120%;
    font-size: 100%;

    border: 1px dashed #2F6FAB;
    background: #F9F9F9;

/*    overflow: hidden;*/
/*    overflow-x: auto;*/
}

/*--------------------------------------------------------------------------*/

div.scroller {
    max-height: 500px;
    overflow: auto;
/*    overflow-y: auto;*/
/*    width: 101%;*/
}

div.case div.code {
    float: left;
    width: 48%;
}

div.case div.html {
/*    float: right;*/
    width: 48%;
}

div.case div.css pre {
/*    height: 200px;*/
}
table.highlighttable {
    width: 98%;
/*    height: 200px;*/
}
table.highlighttable td.linenos {
    width: 20px;
    padding: 0;
    vertical-align: top;
}
table.highlighttable td.linenos pre {
/*    overflow: hidden;*/
}

div.code textarea {
    display: none;
}

.highlight .err {
    border: none;
}

img.teaser {
    float: left;
    padding: 0 10px 10px 0;
}

/*--------------------------------------------------------------------------*/
/* cases */

div.usecase * { margin: 0; padding: 0; }

div.phoneframe {
    background: url(phone.png) no-repeat left top;
    margin: 10px auto;
    width: 309px; height: 649px;
    position: relative;
    clear: both;
    font-size: normal;
}
div.usecase {
    position: absolute;
    left: 31px; top: 79px;
    clear: both;
    width: 241px;
    height: 360px;
    background: #fff;
    position: relative;
    color: #000;
    overflow: hidden;
/*    overflow-y: auto;*/
    font-family: helvetica;
}
div.usecase p {
    margin: 12px 0;
}

