body {
    background: #fff;
    margin: 0;
    padding: 0;
}

section,
header,
footer {
    display: block;
}

footer {
    position: absolute;
    left: 0;
    width: 100%;
    margin-top: 30px;
}

#wrapper {
    max-width: 1300px;
    margin: 0 auto;
    background: #fff;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    border-top: 1px solid #fff;
    padding-bottom: 15px;
    padding: 30px 20px 50px 20px;
}

h1 {
    padding-top: 10px;
}

h2 {
    font-size: 100%;
    font-style: italic;
}

header,
article>*,
footer>* {
    margin: 0;
    margin-bottom: 20px;
}

thead tr {
    background: #1D3659;
    color: #fff;
    text-align: left;
}

thead tr th {
    padding: 7px;
}

article {
    max-width: 1300px;
    margin: auto;
    background: #fff;
    padding: 20px 0;
}

article.home-demo {
    padding: 0;
    padding-bottom: 40px;
}

footer>* {
    margin: 0;
    color: #999;
}

#status {
    padding: 5px;
    color: #fff;
    background: #ccc;
}

#status.fail {
    background: #c00;
}

#status.success {
    background: #0c0;
}

#status.offline {
    background: #c00;
}

#status.online {
    background: #0c0;
}


/*footer #built:hover:after {
  content: '...quickly';
}
*/

[contenteditable]:hover:not(:focus) {
    outline: 1px dotted #ccc;
}

abbr {
    border-bottom: 0;
}

abbr[title] {
    border-bottom: 1px dotted #ccc;
}

li {
    margin-bottom: 10px;
}

#promo {
    font-size: 90%;
    /* background: #333 url(../images/learn-js.jpg) no-repeat left center; */
    /* display: inline-block; */
    /* color: #efefef; */
    text-decoration: none;
    cursor: pointer;
    /* border: 5px solid #006; */
    height: 160px;
}

#promo:hover {
    border-color: #00f;
}

#promo img {
    width: 100%;
    display: block;
}

#ih5 {
    font-size: 90%;
    background: #442C0D url(../images/ih5.jpg) no-repeat left center;
    display: block;
    color: #F7FCE4;
    text-decoration: none;
    cursor: pointer;
    padding: 1px 20px 1px 260px;
    border: 5px solid #904200;
}

#ih5:hover {
    border-color: #CF6D3B;
}

#ffad section {
    padding: 20px;
}

#ffad p {
    margin: 10px 10px 10px 100px;
}

#ffad img {
    border: 0;
    float: left;
    display: block;
    margin: 14px 14px 0;
}

#ffad .definition {
    font-style: italic;
    font-family: Georgia, Palatino, Palatino Linotype, Times, Times New Roman, serif;
}

#ffad .url {
    text-decoration: underline;
}

button,
input {
    font-size: 16px;
    padding: 3px;
    margin-left: 5px;
    max-width: 100%;
}

#view-source {
    display: none;
}

body.view-source {
    margin: 0;
    background: #fff;
    padding: 20px;
}

body.view-source>* {
    display: none;
}

body.view-source #view-source {
    display: block !important;
    margin: 0;
}

#demos {
    width: 100%;
    border-collapse: collapse;
}

table#demos {
    margin-bottom: 40px;
    border-bottom: 1px solid #DCDCDC;
}

#demos .demo {
    padding: 10px 5px;
}

#demos a {
    color: #58BEE8;
    text-decoration: none;
    font-size: 15px;
}

#demos a:hover {
    text-decoration: underline;
}

#demos tbody tr {
    border-top: 1px solid #DCDCDC;
}

#demos .demo p {
    margin-top: 0;
    margin-bottom: 5px;
}

#demos .support {
    width: 126px;
}

.support span {
    cursor: pointer;
    overflow: hidden;
    float: left;
    display: block;
    height: 16px;
    width: 16px;
    text-indent: -9999px;
    background-image: url(../images/browsers.gif);
    background-repeat: none;
    margin-right: 7px;
}

.support span.selected {
    outline: 1px dashed #75784C;
}

.support span.safari {
    background-position: 0 0;
}

.support span.chrome {
    background-position: 16px 0;
}

.support span.firefox {
    background-position: 32px 0;
}

.support span.ie {
    background-position: 48px 0;
}

.support span.opera {
    background-position: 64px 0;
}

.support span.nightly {
    opacity: 0.5;
    filter: alpha(opacity=50);
}

.support span.none {
    opacity: 0.1;
    filter: alpha(opacity=10);
}

#demos .tags {
    width: 140px;
}

#tags strong {
    width: 100%;
    display: inline-block;
    margin-bottom: 5px;
    font-size: 16px;
}

.tags span {
    font-size: 15px;
    line-height: 1.4;
    color: #58BEE8;
    padding: 3px 9px;
    border: 1px solid #effbff;
    background: #effbff;
    -moz-border-radius: 12px;
    -webkit-border-radius: 12px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-block;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.tags span:hover,
.tags span.selected {
    border: 1px solid rgba(88, 190, 232, 0.4);
    background: rgba(239, 251, 255, 0.3);
    /* color: #58BEE8; */
}

#tags span {
    margin-right: 3px;
    margin-bottom: 7px;
}

#tags {
    font-size: 14px;
}

#html5badge {
    /*  display: none;*/
    margin-left: -30px;
    border: 0;
}

#html5badge img {
    border: 0;
}

.support span.yourbrowser {
    width: 16px;
    height: 16px;
    background: none;
    display: none;
}

.support span.yourbrowser.supported {
    background: url(../images/yourbrowser.gif) no-repeat top left;
}

.support span.yourbrowser.not-supported {
    background: url(../images/yourbrowser.gif) no-repeat top right;
}


/** Pretty printing styles. Used with prettify.js. */

pre {
    font-size: 14px;
}

.str {
    color: #080;
}

.kwd {
    color: #008;
}

.com {
    color: #800;
}

.typ {
    color: #606;
}

.lit {
    color: #066;
}

.pun {
    color: #660;
}

.pln {
    color: #000;
}

.tag {
    color: #008;
}

.atn {
    color: #606;
}

.atv {
    color: #080;
}

.dec {
    color: #606;
}

#forkme {
    display: none;
}


/* Carbon Ads */

#carbonads {
    position: fixed;
    display: block;
    overflow: hidden;
    margin-top: -2px;
    margin-left: 620px;
    padding: 1em;
    max-width: 130px;
    border: 1px solid hsl(0, 0%, 91%);
    background-color: #fbfbfb;
    text-align: center;
    font-size: 11px;
    font-family: Verdana, "Helvetica Neue", Helvetica, sans-serif;
    line-height: 1.5;
}

#carbonads a {
    color: inherit;
    text-decoration: none;
}

#carbonads a:hover {
    color: inherit;
}

#carbonads span {
    display: block;
    overflow: hidden;
}

.carbon-img {
    display: block;
    margin: 0 auto 1em;
}

.carbon-text {
    display: block;
    margin-bottom: 1em;
}

.carbon-poweredby {
    display: block;
    color: #888 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 8px;
}

video,
svg {
    max-width: 100%;
}

#using {
    word-break: break-all;
}

@media only screen and (min-width: 320px) and (max-width: 759px) {
    #carbonads {
        position: relative;
        float: none;
        margin: 3em auto 1em;
        max-width: 330px;
    }
    #carbonads span {
        position: relative;
    }
    #carbonads>span {
        max-width: none;
    }
    .carbon-img {
        float: left;
        margin: 0 1em 0 0;
    }
    .carbon-text {
        float: left;
        margin-bottom: 0;
        max-width: calc(100% - 130px - 1em);
        text-align: left;
    }
    .carbon-poweredby {
        position: absolute;
        right: 0;
        bottom: 0;
        display: block;
    }
}


/* 
Max width before this PARTICULAR table gets nasty
This query will take effect for any screen smaller than 760px
and also iPads specifically.
*/

@media only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px) {
    /* Force table to not be like tables anymore */
    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }
    /* Hide table headers (but not display: none;, for accessibility) */
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    tr {
        border: 1px solid #ccc;
    }
    td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 30%;
        min-height: 38px;
    }
    td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 30%;
        padding-right: 10px;
        white-space: nowrap;
        font-size: 13px;
    }
    #demos .support,
    #demos .tags {
        width: auto;
    }
    #demos .demo {
        padding-left: 30% !important;
        height: fit-content;
        padding-bottom: 7px;
        padding-top: 7px;
    }
    #demos .tags {
        height: fit-content;
    }
    #demos .tags .tag {
        margin-bottom: 0;
        margin-top: 5px;
        font-size: 13px;
    }
    #demos a {
        font-size: 14px;
    }
    .demo a,
    .demo small {
        display: inline-block;
        line-height: 1.2;
    }
    .demo a br {
        display: none;
    }
    .demo a small {
        position: relative;
        left: 10px;
    }
    .support span {
        top: 10px;
        position: relative;
    }
    /*
	Label the data
	*/
    td:nth-of-type(1):before {
        content: "Demo";
    }
    td:nth-of-type(2):before {
        content: "Support";
    }
    td:nth-of-type(3):before {
        content: "Technology";
    }
}