html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-size: 16px;
}

#code,
#result {
    display: inline-block;
    width: 45%;
    margin: 0 20px 20px 20px;
    vertical-align: top;
    text-align: left;
    position: relative;
}

#code,
#source {
    /* Persist line endins for innerHTML */
    white-space: pre-wrap;
}

.title {
    font-size: 45px;
    font-family: Consolas, monaco, monospace;
    font-weight: bold;
    font-variant: small-caps;
    letter-spacing: 3px;
}

#main-content {
    padding-bottom: 20px;
}

.centered {
    text-align: center;
}

.inline {
    display: inline-block;
}

.auto-width {
    width: auto;
}

.paddings-10 {
    padding: 10px;
}
.paddings-20 {
    padding: 20px;
}

.width-400 {
    width: 400px;
}

.fs-20 {
    font-size: 20px;
}

#demos a {
    padding: 8px 40px;
}

.jumbotron {
    padding: 35px;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

/* ----------------------------------------------------- */
/* ---------------------- Setup ------------------------ */
/* ----------------------------------------------------- */

.setup-wrapper input,
.setup-wrapper div {
    display: inline-block;
}
.setup-wrapper div {
    font-size: 16px;
    padding: 20px 10px;
}


/* ----------------------------------------------------- */
/* --------------------- Themes ------------------------ */
/* ----------------------------------------------------- */

iframe.th-frame {
    width: 670px;
    height: 380px;
    display: block;
}

/* ----------------------------------------------------- */
/* ----------------------- 404 ------------------------- */
/* ----------------------------------------------------- */

.error-404 .error-code {
    color: #410040;
    font-size: 35px;
    font-weight: bold;
}
.error-404 .error-title {
    color: #410040;
    font-size: 120px;
    font-weight: bold;
}
.error-404 .error-subtitle {
    color: #7D0D7D;
    font-size: 50px;
    font-weight: bold;
}
.error-404 .error-description {
    color: #9F9F9F;
    font-size: 20px;
}


/* ----------------------------------------------------- */
/* --------------------- Ribons ------------------------ */
/* ----------------------------------------------------- */

.github-fork-ribbon {
    width: 12.1em;
    height: 12.1em;
    position: absolute;
    overflow: hidden;
    top: 0;
    right: 0;
    z-index: 9999;
    pointer-events: none;
    font-size: 13px;
    text-decoration: none;
    text-indent: -999999px;
}

.github-fork-ribbon.fixed {
    position: fixed;
}

.github-fork-ribbon:before,
.github-fork-ribbon:after {
    /* The right and left classes determine the side we attach our banner to */
    position: absolute;
    display: block;
    width: 15.38em;
    height: 1.54em;

    top: 3.23em;
    right: -3.23em;

    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;

    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.github-fork-ribbon:before {
    content: "";

    /* Add a bit of padding to give some substance outside the "stitching" */
    padding: .38em 0;

    /* Set the base colour */
    background-color: #a00;

    /* Set a gradient: transparent black at the top to almost-transparent black at the bottom */
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.15)));
    background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15));
    background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15));
    background-image: -ms-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15));
    background-image: -o-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15));
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15));

    /* Add a drop shadow */
    -webkit-box-shadow: 0 .15em .23em 0 rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0 .15em .23em 0 rgba(0, 0, 0, 0.5);
    box-shadow: 0 .15em .23em 0 rgba(0, 0, 0, 0.5);

    pointer-events: auto;
}

.github-fork-ribbon:after {
    /* Set the text from the title attribute */
    content: attr(title);

    /* Set the text properties */
    color: #fff;
    font: 700 1em "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.54em;
    text-decoration: none;
    text-shadow: 0 -.08em rgba(0, 0, 0, 0.5);
    text-align: center;
    text-indent: 0;

    /* Set the layout properties */
    padding: .15em 0;
    margin: .15em 0;

    /* Add "stitching" effect */
    border-width: .08em 0;
    border-style: dotted;
    border-color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.github-fork-ribbon.left-top, 
.github-fork-ribbon.left-bottom {
    right: auto;
    left: 0;
}

.github-fork-ribbon.left-bottom, 
.github-fork-ribbon.right-bottom {
    top: auto;
    bottom: 0;
}

.github-fork-ribbon.left-top:before, 
.github-fork-ribbon.left-top:after,
.github-fork-ribbon.left-bottom:before, 
.github-fork-ribbon.left-bottom:after {
    right: auto;
    left: -3.23em;
}

.github-fork-ribbon.left-bottom:before, 
.github-fork-ribbon.left-bottom:after,
.github-fork-ribbon.right-bottom:before, 
.github-fork-ribbon.right-bottom:after {
    top: auto;
    bottom: 3.23em;
}

.github-fork-ribbon.left-top:before, 
.github-fork-ribbon.left-top:after, 
.github-fork-ribbon.right-bottom:before, 
.github-fork-ribbon.right-bottom:after {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    #code,
    #result {
        width: 90%;
        margin: 30px auto;
        display: block;
    }
    iframe.th-frame {
        width: 100%;
        height: 405px;
        display: block;
    }
}