/* ---------------------- *\
  Reset
\* ---------------------- */

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}


/* HTML5 display-role reset for older browsers */

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
    content: '';
    content: none;
}

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


/* ---------------------- *\
  Common
\* ---------------------- */

BODY {
    background: #FFF;
    font: 16px/1.4 'Trebuchet Ms', sans-serif;
}

::-moz-selection {
    background: darkorange;
    color: #FFF;
}

::selection {
    background: darkorange;
    color: #FFF;
}

A {
    color: steelblue;
}

A:hover {
    text-decoration: none;
}


/* ---------------------- *\
  Headers
\* ---------------------- */

H1 {
    font-size: 50px;
}

@media ( max-width: 565px) {
    H1 {
        font-size: 40px;
    }
}

@media ( max-width: 480px) {
    H1 {
        font-size: 30px;
    }
}

@media ( max-width: 390px) {
    H1 {
        font-size: 25px;
    }
}

H2 {
    font-size: 40px;
}

H3 {
    font-size: 35px;
}

@media ( max-width: 950px) {
    H3 {
        font-size: 30px;
    }
}

@media ( max-width: 720px) {
    H3 {
        font-size: 25px;
    }
}

@media ( max-width: 565px) {
    H3 {
        font-size: 20px;
    }
}

H4 {
    font-size: 25px;
}


/* ---------------------- *\
  Parts
\* ---------------------- */

.example {
    font-size: 30px;
}

P {
    margin: 20px 0;
}

P:first-child {
    margin-top: 0;
}

/* ---------------------- *\
  Fonts
\* ---------------------- */

.f-arial {
    font-family: Arial, sans-serif;
}

.f-courier-new {
    font-family: "Courier New", monospace;
    ;
}

.f-georgia {
    font-family: Georgia, serif;
}

.f-tahoma {
    font-family: Tahoma, sans-serif;
}

.f-times {
    font-family: Times, serif;
}

.f-trebuchet {
    font-family: "Trebuchet MS";
}

.f-verdana {
    font-family: Verdana, sans-serif;
}


/* ---------------------- *\
  Layout
\* ---------------------- */

.page-wrapper {
    min-width: 300px;
    max-width: 1160px;
    margin: 50px auto;
    padding: 0 20px;
}

.page-header {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #DDD;
    text-align: center;
}

.page-main {
    width: 100%;
    float: left;
}

.content {
    margin-right: 340px;
}

.page-aside {
    width: 310px;
    float: left;
    margin-left: -310px;
}

@media (max-width: 950px) {
    .content {
        margin-right: 0;
    }
    .page-aside {
        width: 100%;
        margin-left: 0;
    }
}

.section:after,
.header--symbols:after,
.list--entities:after {
    content: "";
    display: table;
    width: 100%;
    clear: both;
}

/* ---------------------- *\
  Entities List Header
\* ---------------------- */

.desc {
    margin-bottom: 30px;
}

.content__header {
    border-top: 1px solid #DDD;
    padding-top: 30px;
}

.content__select {
    float: right;
    max-width: 100%;
    margin-top: 20px;
    min-height: 1em;
}

option[disabled] {
    margin: 3px 0;
    padding: 5px 3px;
    background: #DDD;
    text-align: center;
    line-height: 2em;
    font-weight: bold;
    color: #000
}

.content__title {
    margin-right: 300px;
}

.content__title SPAN {
    margin-left: 10px;
    font-size: 14px;
    color: #999;
}

@media (max-width: 1150px) {
    .content__select {
        margin-bottom: 20px;
        float: none;
    }
    .content__title {
        margin-right: 0;
    }
}

/* ---------------------- *\
  Entities List
\* ---------------------- */

.entities {
    display: flex;
    flex-wrap: wrap;
    margin: 30px 0;
    padding: 2px;
    border: 1px solid #DDD;
    font-family: "Arial Unicode MS", Arial, sans-serif;
    font-size: 32px;
    line-height: 1;
}

.entities__item {
    display: block;
    position: relative;
    flex-basis: 80px;
    flex-grow: 1;
    max-width: 100px;
    height: 90px;
    margin: 2px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border: 1px solid #DDD;
}

.entities__item--wide {
    flex-basis: 100%;
    max-width: 100%;
    height: 130px;
    margin: 15px 2px;
    border-width: 5px 0;
    border-top-color: hsl(100, 59%, 80%);
    border-bottom-color: powderblue;
}

.show-case {
    display: inline-block;
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 100%;
    text-align: center;
    cursor: pointer;
}

.entities__item--wide .show-case {
    cursor: default;
    /*bottom: 4px;*/
}

.font-item {
    display: inline-block;
    position: relative;
    width: auto;
    height: 50px;
    margin: 0 2px;
    padding: 0 5px;
    border: 1px solid #DDD;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
}

.font-name {
    content: attr(data-name);
    display: block;
    position: relative;
    margin-top: -15px;
    font: 13px/1 Arial, sans-serif;
    color: #999;
}

.font-demo:before {
    content: "";
    display: inline-block;
    height: 60px;
    width: 0;
    vertical-align: middle;
}

.entities CODE {
    position: absolute;
    z-index: 10;
    top: 2px;
    right: 2px;
    font-size: 12px;
    color: #555;
}

.entities__item--wide CODE {
    left: 2px;
    right: auto;
}

.num, .hex {
    padding: 2px;
}

LI .num, LI .hex {
    display: block;
    margin: 0 0 2px 0;
}

.num {
    background: hsl(100, 59%, 80%);
}

.hex {
    background: powderblue;
}

.close {
    display: none;
    position: absolute;
    right: 2px;
    top: 5px;
    z-index: 100;
    width: 1.6em;
    height: 1.6em;
    background: #999;
    border-radius: 50%;
    cursor: pointer;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
    color: #FFF;
    transition: all .3s;
}

.close:hover {
    background: tomato;
}

.close:before {
    content: "\2715";
}

.entities__item--wide .close {
    display: block;
}

/* ---------------------- *\
  Ranges List
\* ---------------------- */

.page-aside H4 {
    margin-bottom: 15px;
}

.widget {
    margin-bottom: 30px;
}

@media (max-width: 950px) {
    .widget {
        float: left;
        width: 48%;
    }
    .widget:nth-child(2) {
        float: right;
    }
}

@media ( max-width: 640px) {
    .widget {
        float: none;
        width: 100%;
    }
}

.page-aside LI {
    margin: 0 0 3px 20px;
    font-size: 14px;
}

.list--blocks SPAN {
    border-bottom: 1px dashed steelblue;
    cursor: pointer;
    color: steelblue;
}

.current SPAN {
    border-bottom: 0;
    color: #000;
}

.current SPAN:before {
    content: "\2192";
    margin-right: 5px;
    color: #AAA;
}
