body {
    text-align: center;
    color: #888888;
    font-size-adjust: none;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: normal;
    font-family: Helvetica, arial, freesans, clean, sans-serif;
    font-size: 1em;
    margin: 0;
}

a {
    color: #666666;
}

p {
    margin: 5px;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

td {
    padding: 0;
}

code {
    padding: 1px 5px 1px 5px;
    background-color: #eeeeee;
}

div#main {
    margin: 0px auto;
    max-width: 900px;
    text-align: left;

}

div#header {
    margin: 0em 0px 0.5em 0px;
    text-align: center;
}

div#header a {
    text-decoration: none;
}

div#result {
    width: 100%;
    min-height: 2em;
    text-align: left;
    padding: 8px;
    font-size: 14px;
    color: #666666;
    float: left;
    overflow: auto;
}

div#captures {
    width: 100%;
    min-height: 2em;
    text-align: left;
    padding: 1em;
    font-size: 14px;
    color: #666666;
    float: right;
    vertical-align: top;
}

div#footer {
    margin-top: 30px;
    text-align: center;
    font-size: 16px;
}

div#cheatsheet {
    margin-top: 1em;
}

#cheatsheet table {
    border-collapse: separate;
    border-spacing: 0.2em;
}

#cheatsheet h3 {
    color: #000;
    font-weight: bold;
    font-size: 14px;
}

#cheatsheet .round {
    color: #444;
    font-size: 12px;
    vertical-align: top;
}

#cheatsheet .cheatgroup {
    display: block;
    width: 49%;
    margin-bottom: 1em;
}

.coll {
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 3px 3px 3px 3px;
}

.collheader {
    height: 1em;
    text-align: center;
    padding: 0.3em;
    cursor: pointer;
}

.collcontent {
    padding: 1em;
    border-top: 1px solid #ccc;
    overflow: auto;
}

.collcontent .key_td {
    font-weight: bold;
    padding-right: 1em;
    width: 50px;
}

div#main table {
    width: 100%;
}

.button {
    background: #eaeaea;
    cursor: pointer;
    border-radius: 3px;
    background-image: -moz-linear-gradient(#fafafa, #eaeaea);
    background-image: -webkit-linear-gradient(#fafafa, #eaeaea);
    background-image: linear-gradient(#fafafa, #eaeaea);
    background-repeat: repeat-x;
}

.button:hover {
    background-image: -moz-linear-gradient(#eaeaea, #dddddd);
    background-image: -webkit-linear-gradient(#eaeaea, #dddddd);
    background-image: linear-gradient(#eaeaea, #dddddd);
    background-repeat: repeat-x;
    background-color: #dddddd;
    color: #555555;
}

span.check {
    display: inline-block;
    font-size: 14px;
    line-height: 24px;
    padding: 0 8px 0 8px;
    border: 1px solid #d4d4d4;
}

span.check:active {
    background-image: -moz-linear-gradient(#ffffd0, #ffff50);
    background-image: -webkit-linear-gradient(#ffffd0, #ffff50);
    background-image: linear-gradient(#ffffd0, #ffff50);
    background-repeat: repeat-x;
    background-color: #ffffa0;
}

span.check.checked {
    background-image: -moz-linear-gradient(#ffffd0, #ffffa0);
    background-image: -webkit-linear-gradient(#ffffd0, #ffffa0);
    background-image: linear-gradient(#ffffd0, #ffffa0);
    background-repeat: repeat-x;
    background-color: #ffffa0;
    color: #555555;
}

span#title {
    font-family: Helvetica, arial, freesans, clean, sans-serif;
    font-size: 5em;
    font-weight: bold;
    color: #444444;
    letter-spacing: -1px;
    text-align: center;
}

.round {
    border: 1px solid #ccc;
    border-radius: 3px;
    outline: none;
    color: #ededed;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 8px;
}

input#regex {
    width: 100%;
    margin-right: 5px;
    padding: 8px;
    font-size: 14px;
    max-width: 100%;
    background: #fafafa;
}

textarea#test_string {
    width: 100%;
    height: 100px;
    margin-bottom: 20px;
    padding: 8px;
    background: #fafafa;
}

label#regex_label {
    margin-left: 5px;
}

label#test_string_label {
    margin-left: 5px;
}

span#result_label, span#captures_label {
    margin-left: 5px;
}

td#invalid_regex {
    text-align: right;
    color: #ff8888;
}

table#result_capture {
    width: 100%;
    display: none;
}

td#result_td {
    width: 70%;
    text-align: left;
    vertical-align: top;
    padding-right: 1em;
}

td#captures_td {
    width: 300px;
    text-align: right;
    vertical-align: top;
}

#captures_td i {
    color: #ccc;
}

p#authorship {
    font-size: 12px;
}

div#indicator {
    display: none;
    text-align: right;
    padding-right: 10px;
    float: right;
}

div#result_string {
    display: inline;
    float: left;
}

div#info {
    width: 100%;
    color: #449944;
    background-color: #e0ffe0;
    padding: 8px;
    text-align: center;
}

td#left_slash {
    text-align: right;
}

td#right_slash {
    text-align: left;
}

input, textarea {
    background-color: #ffffff;
    border: 1px solid #555555;
    font-size: 14px;
    font-family: Helvetica, arial, freesans, clean, sans-serif;
    padding: 5px;
    color: #666666;
}

span.slash {
    display: inline;
    font-size: 42px;
    font-weight: bold;
    color: #666666;
    line-height: 58%;
}

span.match {
    padding: 1px 0px 1px 0px;
    background-color: #aaffaa;
    color: #227722;
}

td.slash {
    vertical-align: top;
    padding: 27px 5px 0 5px;
}

ul, ol, li {
    margin: 0;
    padding: 0;
}

#captures table {
    width: auto !important;
}

#captures td {
    white-space: nowrap;
}

#captures h1 {
    display: block;
    font-weight: bold;
    margin: 0 0 0.1em 0;
    font-size: 1.3em;
}

#captures h2 {
    display: block;
    font-weight: bold;
    margin: 0 0 0.2em 0;
    font-size: 1.1em;
}

#captures span.namedgroup_span {
    padding: 1px 5px 1px 5px;
    background-color: #ffffe0;
    font-family: monospace;
}

#captures table.indented {
    margin-left: 1em;
}

#namedgroups_table {
    margin: 0 0 0.6em 0;
}

div.matchcapture + div.matchcapture {
    margin-top: 1em;
}

div.matchcapturecontent {
    padding-left: 1em;
}

div.matchcapturecontent table {
    line-height: 1.5em;
}

.key_td {
    padding-right: 0.5em;
}

#flag_buttons {
    margin: 1em 0 1em 0;
}

#python-regex-cheatsheet-credit {
    clear: both;
    float: right;
    font-size: 12px;
}
