html, body, div, span, ul, li, h1, p {
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    height: 100%;
    -webkit-font-smoothing: antialiased;
}

body {
    width: 100%;
    height: 100%;
    font-family: helvetica, sans-serif;
    font-weight: 400;
}

#root {
    position: relative;
}

#loading {
    position: absolute;
    z-index: 99;
    left: 50%;
    top: 50%;
}

.items {
    background-image: url(../images/items.png);
    background-repeat: no-repeat;
}

@media screen and (-webkit-device-pixel-ratio: 2) {
    .items {
        background-image: url(../images/items@2x.png);
        background-repeat: no-repeat;
        background-size: 59px 279px;
    }
}

#detect-height {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 1px;
    height: 1px;
    visibility:hidden;
}

/* list */
#list {
    display: block;
    position: relative;
    list-style: none;
    display: none;
    overflow: hidden;
    width: 100%;
}

#list > li {
    display: block;
    width: 141px;
    height: 103px;
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
}

#list > li > img {
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
}

#list > li > p {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    width: 141px;
    height: 103px;
    background-image: url(../images/thumb_vignetting.png);
    background-repeat: no-repeat;
    background-size: 141px 103px;
}

/* detail */
#detail {
    background-color: #000;
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10;
    display: none;
}

#detail > #zoom {
    width: 141px;
    height: 103px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 12;
    overflow: hidden;
}

#detail > #zoom > img {
    position: absolute;
    left: 0;
    top: 0;
}

#detail > #detail-container {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 11;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: none;
}

#detail > #detail-container > span {
    position: absolute;
    left: 0;
    top: 0;
}

#detail > #detail-container > span > img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* footer */
#footer {
    background: #333333;
    list-style: none;
    width: 100%;
    height: 45px;
    position: fixed;
    left: 0;
    bottom: -45px;
    z-index: 30;
    list-style: none;
    display: none;
}

#footer > li {
    position: absolute;
    top: 0;
    width: 45px;
    height: 45px;
}

#footer > li.plus-one {
    left: 7px;
    background-position: 0 -69px;
}

#footer > li.comment {
    background-position: 0 -124px;
}

#footer > li.add {
    background-position: 0 -179px;
}

#footer > li.share {
    right: 7px;
    background-position: 0 -234px;
}

/* header */
#header {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 20;
    width: 100%;
    height: 59px;
    text-align: center;
    font-size: 20px;
    line-height: 62px;
}

#header > span {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

#header > #header-list {
    background-color: #f5f5f5;
    border-bottom: 1px #e3e3e3 solid;
    color: #4a4a4a;
    z-index: 2;
    top: 0;
    left: 0;
}

#header > #header-detail {
    background-color: #333333;
    color: #ffffff;
    z-index: 1;
    top: 0;
    left: 0;
    overflow: hidden;
    display: none;
}

#header > #header-detail > p {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
}

#header > #header-detail > .close {
    display: block;
    width: 59px;
    height: 59px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 3;
}