* {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

html {
    height: 100%;
    background-color: #ccc;
}

body {
    min-height: 100%;
    padding: 0 2.5em;
    font-family: Palatino, 'Palatino Linotype', serif;
    box-sizing: border-box;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNiIgaGVpZ2h0PSI2Ij4KPHJlY3Qgd2lkdGg9IjYiIGhlaWdodD0iNiIgZmlsbD0iI2VlZWVlZSI+PC9yZWN0Pgo8ZyBpZD0iYyI+CjxyZWN0IHdpZHRoPSIzIiBoZWlnaHQ9IjMiIGZpbGw9IiNlNmU2ZTYiPjwvcmVjdD4KPHJlY3QgeT0iMSIgd2lkdGg9IjMiIGhlaWdodD0iMiIgZmlsbD0iI2Q4ZDhkOCI+PC9yZWN0Pgo8L2c+Cjx1c2UgeGxpbms6aHJlZj0iI2MiIHg9IjMiIHk9IjMiPjwvdXNlPgo8L3N2Zz4=");
}

h1, h2 {
    padding-top: .2em;
    color: #e50;
    text-shadow: 0 2px white;
}

h1 {
    text-align: center;
    font-size: 500%;
}

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

#patterns  > li p {
    text-decoration: underline;
}

#patterns > li > span {
    text-align: center;
    text-decoration: none;
    border-bottom: 0;
    display: block;
    margin-top: 41%;
    font-size: 2em;
    opacity: 0;
    -webkit-transition: opacity 0.3s ease;
    -moz-transition: opacity 0.3s ease;
    -ms-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

#patterns > li:hover {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

#patterns > li:hover > span {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    opacity: 0.5;
}

.normal {
    color: #222;
}
.contrast {
    text-shadow: .07em .07em .07em rgba(0,0,0,.7);
    color: #fff;
}

.light {
    color: #fff;
}

.red {
    color: #f00;
}

#patterns > li > span:hover {
    opacity: 1;
}

body > p, body > ul {
    margin: 1em 0;
    line-height: 1.5;
}

h2 + p, p + ul {
    margin-top: .3em;
}

body > ul > li > a, body > p > a {
    border-bottom: 2px dotted white;
}

#help {
    text-align: center;
}

#help > li {
    display: inline;
    list-style: none;
}

#help > li + li:before {
    content: '- ';
    opacity: .4;
}

#patterns:after {
    content: "";
    display: block;
    clear: both;
}

#patterns > li {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 40px;
    float: left;
    list-style: none;
}

#patterns > li {
    background-color: gray;
    border-radius: 150px;
    box-shadow: -3px -3px 10px 2px rgba(0,0,0,.3) inset,
                0 0 0 15px rgba(255, 255, 255, .6) inset,
                0 0 0 1px rgba(0,0,0,.5),
                2px 2px 10px rgba(0,0,0,.6);
}

#patterns > li > div {
    position: absolute;
    top: 235px;
    left: 55px;
    width: 250px;
    z-index: 2;
    padding: 3px 10px 5px;
    color: #e50;
    color: hsla(20,100%,50%,.94);
    font-size: 90%;
    background: currentColor;
    box-shadow: 2px 2px 10px rgba(0,0,0,.5);
}

#patterns > li > div:after {
    content: "";
    position: absolute;
    top: -30px;
    left: 30px;
    border: 15px solid transparent;
    border-bottom-color: currentColor;
    border-left-width: 0;
}

#patterns > li h2, #patterns > li p {
    color: white;
    text-shadow: .05em .05em .1em rgba(0,0,0,.4);
}

#patterns > li h2 {
    font-size: 140%;
}

#patterns > li .bytesize {
    font-weight: normal;
    opacity: .7;
}

#patterns > li p {
    font-size: 85%;
    line-height: 1.1;
    opacity: .7;
    text-shadow: none;
    text-align: right;
}

#patterns > li p:hover {
    opacity: 1;
}

#patterns > li:target p {
    float: right;
}

#footer {
    clear: both;
    text-align: center;
    padding: 1em;
}
