* {
    position; relative;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}


html {
    overflow-y: scroll;
}

body {
    font: 12px/16px 'Helvetica Neue', Arial, sans-serif;
    background-color: #333;
    color: #fff;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: Georgia, 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
}

a {
    text-decoration: none;
    color: #f99;
}

p {
    margin: 0 0 16px;
}

dl {
    margin: 0 0 16px;
}

dt {
    font-weight: bold;
}

dd {
    margin-left: 16px;
}

dd + dt {
    margin: 16px 0 0;
}

ul {
    margin: 0 16px 16px;
}

input {
    font-size: 16px;
    padding: 8px;
    width: 60px;
}

.container {
    width: 950px;
    margin: 0 auto;
}

.header {
    height: 50px;
    margin-bottom: 32px;
}

h1 {
    float: left;
    width: 500px;
    background-color: #fff;
    background-image: -moz-linear-gradient(top, #fff 0%, #ccc 100%);
    background-image: -webkit-linear-gradient(top, #fff 0%, #ccc 100%);
    background-image: -o-linear-gradient(top, #fff 0%, #ccc 100%);
    background-image: -ie-linear-gradient(top, #fff 0%, #ccc 100%);
    background-image: linear-gradient(top, #fff 0%, #ccc 100%);
    height: 50px;
    color: #000;
    line-height: 48px;
    font-size: 16px;
    text-align: center;
    text-shadow: rgba(255,255,255,.5) 0 1px 0;
    border-bottom: 2px solid #2c2c2c;
}

h1 a {
    color: #000;
}

.subtitle {
    font: normal italic 12px/48px Georgia, 'Helvetica Neue', Arial, sans-serif;
    color: #666;
}

.menu {
    float: left;
    width: 450px;
    height: 50px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-item {
    float: left;
    width: 150px;
    padding-left: 10px;
    height: 50px;
}

.menu-item-link {
    -webkit-transition: background-color .2s;
    text-decoration: none;
    display: block;
    background-color: #111;
    background-image: -moz-linear-gradient(top, rgba(255,255,255,.1) 0%, rgba(255,255,255,0) 100%);
    background-image: -webkit-linear-gradient(top, rgba(255,255,255,.1) 0%, rgba(255,255,255,0) 100%);
    background-image: -o-linear-gradient(top, rgba(255,255,255,.1) 0%, rgba(255,255,255,0) 100%);
    background-image: -ie-linear-gradient(top, rgba(255,255,255,.1) 0%, rgba(255,255,255,0) 100%);
    background-image: linear-gradient(top, rgba(255,255,255,.1) 0%, rgba(255,255,255,0) 100%);
    color: #ccc;
    font: italic 16px/48px Georgia, 'Helvetica Neue', Arial, sans-serif;
    text-align: center;
    border-bottom: 2px solid #2c2c2c;
    height: 50px;
    text-shadow: #000 0 1px 2px;
}

.menu-item-link:hover {
    background-color: #000;
    color: #fff;
}

.current .menu-item-link,
.current .menu-item-link:hover {
    background-color: #622;
    color: #fff;
}

.pages {
    height: 550px;
}

.page {
    height: 550px;
}

.hide {
    display: none;
}

.column {
    float: left;
    width: 310px;
    margin-right: 10px;
}

.column:last-child {
    margin-right: 0;
}

.even {
    background-color: rgba(0, 0, 0, .05);
}
    
h3 {
    font-size: 14px;
    font-style: italic;
    font-weight: normal;
    color: #777;
    margin-bottom: 16px;
    text-shadow: #000 0 1px 0;
}

.conversion-column {
    height: 502px;
    background-color: #fff;
    background-image: -moz-linear-gradient(top, #fff 0%, #eee 100%);
    background-image: -webkit-linear-gradient(top, #fff 0%, #eee 100%);
    background-image: -o-linear-gradient(top, #fff 0%, #eee 100%);
    background-image: -ie-linear-gradient(top, #fff 0%, #eee 100%);
    background-image: linear-gradient(top, #fff 0%, #eee 100%);
    color: #222;
    border-bottom: 2px solid #000;
}

.conversion-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    border: none;
}

.conversion-table td,
.conversion-table th {
    width: 25%;
    padding: 4px 8px;
}

.conversion-table td {
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.conversion-table th {
    background-color: #ccc;
    background-image: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    background-image: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    background-image: -o-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    background-image: -ie-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    background-image: linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    border-bottom: 1px solid #999;
    border-left: 1px solid #ccc;
}

.base {
    background-color: rgba(0, 0, 0, .2);
}

.base-table tbody tr:hover,
.base-table .selected,
.base-table .base.selected {
    cursor: pointer;
    background-color: #0099cc;
    color: #fff;
    text-shadow: rgba(0,0,0,.7) 0 1px 0;
    background-image: -moz-linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(255,255,255,0) 100%);
    background-image: -webkit-linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(255,255,255,0) 100%);
    background-image: -o-linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(255,255,255,0) 100%);
    background-image: -ie-linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(255,255,255,0) 100%);
    background-image: linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(255,255,255,0) 100%);
}

.conversion-column h4 {
    text-align:center;
    padding: 4px;
    background-color: #ccc;
    background-image: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    background-image: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    background-image: -o-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    background-image: -ie-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    background-image: linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    border-bottom: 1px solid #999;
}

.conversion-column div + h4 {
    border-top: 1px solid #ddd;
}

.conversion-column h5 {
    padding: 4px;
    background-color: rgba(0, 0, 0, .1);
    border-bottom: 1px solid #ccc;
    margin-bottom: 16px;
    border-left: 1px solid #ccc;
}

.custom-base-size,
.custom-px-to-em,
.custom-em-to-px,
.custom-result {
    padding: 16px;
    text-align: center;
    font-size: 16px;
}

.custom-px-to-em,
.custom-em-to-px {
    padding: 0 0 16px;
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    line-height: 16px;
    border-left: 1px solid rgba(0, 0, 0, .1);
}

.custom-em-to-px {
    left: 50%;
}

.custom-wrap {
    width: 100%;
    position: relative;
    height: 143px;
    line-height: 120px;
    text-align: center;
}

.or {
    padding: 4px;
    position: relative;
    z-index: 10;
    background-color: #f9f9f9;
}

.convert-button {
    text-align:center;
    padding: 4px;
    cursor: pointer;
    background-color: #999;
    border: 1px solid #777;
    font-weight: bold;
    color: #fff;
    text-shadow: rgba(0,0,0,.7) 0 1px 0;
    background-image: -moz-linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(255,255,255,0) 100%);
    background-image: -webkit-linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(255,255,255,0) 100%);
    background-image: -o-linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(255,255,255,0) 100%);
    background-image: -ie-linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(255,255,255,0) 100%);
    background-image: linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(255,255,255,0) 100%);
    display: block;
    position: absolute;
    top: 95px;
    left: 50%;
    margin-left: -50px;
    width: 100px;
    height: 32px;
    line-height: 22px;
    -mox-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, .6);
    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, .6);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

.convert-button:hover {
    background-image: -moz-linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(255,255,255,.2) 100%);
    background-image: -webkit-linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(255,255,255,.2) 100%);
    background-image: -o-linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(255,255,255,.2) 100%);
    background-image: -ie-linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(255,255,255,.2) 100%);
    background-image: linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(255,255,255,.2) 100%);
}

.content {
    padding: 10px;
    width: 100%;
    height: 502px;
    background-color: #fff;
    background-image: -moz-linear-gradient(top, #fff 0%, #eee 100%);
    background-image: -webkit-linear-gradient(top, #fff 0%, #eee 100%);
    background-image: -o-linear-gradient(top, #fff 0%, #eee 100%);
    background-image: -ie-linear-gradient(top, #fff 0%, #eee 100%);
    background-image: linear-gradient(top, #fff 0%, #eee 100%);
    color: #222;
    border-bottom: 2px solid #000;
    overflow-y: scroll;
}

.content h4 {
    font-size: 16px;
    margin: 0 0 16px;
}

.footer {
    margin: 32px 0;
    text-align: center;
}

/* syntax */
pre.sh_sourceCode {
  font-style: normal;
  font-weight: normal;
}

pre.sh_sourceCode .sh_keyword { color: blue; font-weight: bold; }           /* language keywords */
pre.sh_sourceCode .sh_type { color: darkgreen; }                            /* basic types */
pre.sh_sourceCode .sh_usertype { color: teal; }                             /* user defined types */
pre.sh_sourceCode .sh_string { color: red; font-family: monospace; }        /* strings and chars */
pre.sh_sourceCode .sh_regexp { color: orange; font-family: monospace; }     /* regular expressions */
pre.sh_sourceCode .sh_specialchar { color: pink; font-family: monospace; }  /* e.g., \n, \t, \\ */
pre.sh_sourceCode .sh_comment { color: #999; font-style: italic; }         /* comments */
pre.sh_sourceCode .sh_number { color: purple; }                             /* literal numbers */
pre.sh_sourceCode .sh_preproc { color: darkblue; font-weight: bold; }       /* e.g., #include, import */
pre.sh_sourceCode .sh_symbol { color: darkred; }                            /* e.g., <, >, + */
pre.sh_sourceCode .sh_function { color: black; font-weight: bold; }         /* function calls and declarations */
pre.sh_sourceCode .sh_cbracket { color: red; }                              /* block brackets (e.g., {, }) */
pre.sh_sourceCode .sh_todo { font-weight: bold; background-color: cyan; }   /* TODO and FIXME */

/* for css */
pre.sh_sourceCode .sh_selector { color: purple; }
pre.sh_sourceCode .sh_property { color: blue; }
pre.sh_sourceCode .sh_value { color: darkgreen; font-style: italic; }
