
/* Layout */

#header h1, #content, body > footer {
    width: 500px;
}

#header h1 {
    position: relative;
}

body > footer {
    font-size: .8em;
}
    body > footer div {
        margin-top: 1em;
        position: static;
    }

#content .pagination a {
    text-decoration: none;
}

/* Search */

.form-search, .credentials {
    position: absolute;
    right: 0;
    top: .3em;
}
    .form-search .btn, .credentials .btn {
        vertical-align: middle;
    }

    .form-search button.disabled .icon-search {
        background: url("../img/loading.gif") no-repeat center center;
    }

.credentials {
    top: .1em;
}
    #header .credentials .btn-info {
        color: #fff;
    }
    #header .credentials .btn,
    #header .dropdown-menu a {
        font-family: "Source Sans Pro", "Helvetica Neue", "Helvetica", "Arial CE", "Arial", sans;
        font-weight: normal;
    }

#staff {
    right: -3em;
}

#header .btn-inverse {
    color: #fff;
}
#header .dropdown-menu {
    line-height: 1.1em;
    top: 2em;
}
    #header .dropdown-menu a {
        font-size: .8em;
        padding: .1em .5em;
    }
    #header .dropdown-menu a:hover {
        color: #fff;
    }

    #header .dropdown-menu .divider {
        margin: 2px 1px;
    }

.highlight {
    background: #ff0;
}


/* Events */

.event {
    margin-bottom: 3em;
    position: relative;
}
    #content .event div.quote,
    #content .event a {
        color: #000;
        text-decoration: none;
    }
/*
        #content .event div.quote:after,
        #content .event a:after {
            clear: both;
            content: " ";
            display: inline-block;
        }
*/
        #content .event .author,
        #content .event .author a {
             color: #08c;
        }
        #content .event .quote {
            background: #fff;
            display: block;
            padding: 1em;
            position: relative;
        }
            #content .event a.quote:hover {
                background: #eaeaea;
            }

            #content .event .quote.image {
                padding: 1px 0 0;
                text-align: center;
            }
                #content .event .quote.image h3 {
                    margin: 1em;
                }
                #content .event .quote.image .tags,
                #content .event .quote.image a.domain {
                    margin: 0 1em;
                }
                #content .event .quote.image .img-container {
                    width: 500px;
                    margin-top: -1px;
                    text-align:center;
                    overflow: hidden;
                }
                #content .event .quote.image img {
                    width: 100%;
                    width: 506px;
                    max-width: 506px;
                    margin-left: -3px;
                    margin-bottom: -3px;
                }

                #content .event .quote.image.error {
                    color: #744;
                    padding: 6px;
                }

            .quote-triangle {
                border-bottom: 10px solid #eee;
                border-left: 10px solid transparent;
                border-right: 10px solid transparent;
                height: 0px;
                left: 20px;
                position: absolute;
                top: -10px;
                width: 0px;
            }
            .quote .icon-globe,
            .quote .icon-lock {
                cursor: pointer;
                opacity: 0.6;
                position: absolute;
                right: .3em;
                top: .3em;
                background-color: white;
            }

            .quote .icon-globe:hover,
            .quote .icon-lock:hover {
                opacity: 1.0;
            }

            .quote .icon-globe.hidden,
            .quote .icon-lock.hidden {
                display: none;
            }

            .event-footer .domain,
            .quote .domain {
                position: relative;
                display: block;
                color: #08c !important;
                font-size: .9em;
                text-align: right;
                margin-bottom: -1.5em;
                float: right;
            }

            .event-footer .domain:hover,
            .quote .domain:hover {
                text-decoration: underline !important;
            }

        #content .event .tags,
        #content .event .clicks,
        #content .event .comments {
            margin-top: 1em;
            font-size: .9em;
            float: left;
        }
        #content .event-footer .tags {
            margin-top: 0;
            font-size: .9em;
            float: left;
        }
            #content .event-footer .tags a.file,
            #content .event .tags a.file {
                color: #08c;
            }
        #content .event .comments {
            float: right;
        }
            #content .event .comments a {
                text-decoration: none;
                color: #08c;
            }
                #content .event .comments a:hover {
                    text-decoration: underline;
                }

        #content .event .control {
            display: none;
            padding: .3em .5em;
            position: absolute;
            right: -2em;
            top: 0;
        }
            #content .event:hover .control,
            #content .event.loading .control,
            #content .event.success .control {
                display: block;
            }
                #content .event .control a {
                    clear: left;
                    float: left;
                    opacity: .5;
                    padding: 1px 3px;
                }
                    #content .event .control a:hover {
                        opacity: 1;
                    }

            #content .event.loading .control a,
            #content .event.success .control a {
                cursor: default;
                opacity: 1;
            }
                #content .event.loading .control a i {
                    background: url("../img/loading.gif") no-repeat center center;
                }
                #content .event.success .control a i {
                    background-color: #468847;
                    border-radius: 16px;
                }


/* Member page menu */

#sourcemenu {
    border-bottom: 3px solid #00c3ee;
    height: 4em;
    list-style: none;
    padding: 0;
    margin-bottom: 2em;
}
    #sourcemenu li {
        display: block;
        float: left;
        margin-right: 5%;
        position: relative;
        width: 30%;
    }
        #sourcemenu li:last-child {
            float: right;
            margin-right: 0;
        }

        #sourcemenu li a {
            background-color: #e3e3e3;
            display: block;
            font-size: 1.75em;
            line-height: 2.3em;
            text-align: center;
            width: 100%;
        }
            #content #sourcemenu a {
                text-decoration: none;
            }

            #sourcemenu li a:hover {
                background-color: #f2f2f2;
            }
            #sourcemenu li.active a {
                background-color: #00c3ee;
                color: #fff;
            }
                #sourcemenu li.active a:not(.btn):hover {
                    cursor: default;
                    color: #fff;
                }

.referer #sourcemenu {
    margin-bottom: 3em;
}
    .referer #sourcemenu li.active:after {
        border-top: 15px solid #00c3ee;
        border-left: 40px solid transparent;
        border-right: 40px solid transparent;
        bottom: -20px;
        content: " ";
        display: block;
        height: 0;
        left: 50%;
        margin-left: -40px;
        position: absolute;
        width: 0;
    }

    .referer #sourcemenu li.active a:not(.btn):hover {
        cursor: pointer;
        opacity: .8;
    }


/* Member pages */

.stats {
    margin-bottom: 3em;
    text-align: center;
}
    .stats * {
        display: inline-block;
        font-size: 1.3em;
        line-height: 2em;
    }
    .stats div + div {
        margin-left: 1.5em;
    }
        .stats div span {
            border-radius: 2em;
            color: #fff;
            margin-right: .3em;
            min-width: 1em;
            padding: 0 .5em;
            text-align: center;
        }
        .stats #clicks {
            background-color: #00b8e4;
        }
        .stats #comments {
            background-color: #f88828;
        }

        #content .clicks .new {
            color: #00b8e4;
        }
        #content .comments .new {
            color: #f88828;
        }


/* Browser install buttons */

#empty {
    margin-top: 3.5em;
    text-align: center;
}
    #empty p {
        font-size: 1.7em;
    }
    #empty ol, #empty img {
        display: block;
        margin: 0 auto 3em;
        text-align: left;
        width: 60%;
    }
        #empty li {
            font-size: 1.1em;
            line-height: 1.5em;
        }

    #empty img {
        border: 1em solid rgba(0, 0, 0, .05);
        border-radius: 1em;
        width: 400px;
    }


/* Public member page, suggestions */

#content .member {
    font-size: 1em;
    margin-bottom: 1em;
    padding: 10px 22px;
    position: relative;
    overflow: hidden;
}
    .member .name, .member .screen_name {
        margin-right: .5em;
    }
    .member .user_icon {
        float: left;
        height: 73px;
        margin: 0 4px 0 0;
        width: 73px;
        border: 1px solid #08c;
    }

    .member .name, .member .screen_name {
        margin: 0 .3em 0 .1em;
    }
    #content .member a.screen_name {
        text-decoration: none;
    }

    .member .description {
        font-size: .85em;
        margin: 0 0 0 73px;
        padding-left: .5em;
    }

    #suggestions .checkbox {
        line-height: 1.75em;
    }
        #suggestions .checkbox:hover {
            background: rgba(0, 0, 0, .025);
        }
        #suggestions .checkbox input {
            font-size: .65em;
            margin-top: 9px;
            margin-left: -15px;
        }

    #suggestions label span {
        opacity: .3;
    }
    #suggestions .btn-primary,
    #suggestions .alert {
        margin-top: 1em;
    }

    #suggestions.loading .checkbox:hover {
        background: transparent;
        cursor: default;
    }
        #suggestions.loading .checkbox a:hover {
            cursor: default;
            text-decoration: underline;
        }
    #suggestions label.disabled {
        color: #ccc;
    }
    #suggestions.loading .btn-primary {
        overflow: hidden;
        text-indent: -9999px;
    }
        #suggestions.loading .btn-primary:after {
            background: url("../img/loading.gif") center center;
            content: " ";
            display: block;
            float: left;
            height: 16px;
            margin: 2px 0 0 12px;
            width: 16px;
        }
    #suggestions .alert {
        padding: .2em .6em .2em .4em;
    }

/* File list on member pages */

.files  {
    margin-bottom: 2em;
}
    .files .file {
        display: inline-block;
        margin: 0 0 .3em .4em;
        padding: .1em .3em;
    }
        #content .files a {
            text-decoration: none;
        }

    #root {
        color: #999;
        font-size: 1.1em;
        margin-bottom: .5em;
    }
        #root .file {
            margin: 0 .2em;
        }
            .files .file:first-child {
                margin-left: 0;
            }
            #root .file:first-child {
                margin-left: -.3em;
            }
            #friends .file:first-child {
                margin-left: .4em;
            }

    #root .file {
        background: transparent;
    }
    .files .file, #root .file:hover {
        background: #f9f9f9;
        border-radius: 2px;
    }
        .files .file span {
            color: #999;
        }
        .files .file:hover {
            background: #f2f2f2;
        }


#subsopts.closed,
.files.closed {
    margin-bottom: 1.5em;
    height: 5em;
    overflow: hidden;
    position: relative;
}
#subsopts.closed {
    height: 12em;
}
    .files.closed:before {
        background: -webkit-linear-gradient(bottom, rgba(239,239,244,1) 0%, rgba(239,239,244,0) 100%);
        bottom: 0;
        content: " ";
        display: block;
        height: 1.5em;
        position: absolute;
        width: 100%;
    }
    #subsopts.closed:before {
        background: -webkit-linear-gradient(bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
        bottom: 0;
        content: " ";
        display: block;
        height: 1.5em;
        position: absolute;
        width: 100%;
    }

#subsopts + a.more,
.files + a.more {
    display: block;
    font-size: .85em;
    margin-bottom: 2em;
    opacity: .4;
    text-align: center;
}
    #subsopts:not(.closed) + a.more,
    .files:not(.closed) + a.more {
        opacity: .7;
    }

    #subsopts + a.more:hover,
    .files + a.more:hover {
        opacity: .9;
    }

#friends .files {
    display: none;
    margin-bottom: 0;
}
    #friends .friend {
        line-height: 1.5em;
        margin-bottom: .3em;
    }

    #friends .details {
        margin-left: .5em;
    }

        #friends .details:hover {
            cursor: pointer;
        }

        #friends .details:after {
            content: " ";
            display: inline-block;
            border-bottom: 4px solid transparent;
            border-top: 4px solid transparent;
            border-left: 6px solid #000;
            height: 0px;
            margin: .2em;
            vertical-align: middle;
            width: 0px;
        }

#friends .friend.open .files {
    display: block;
    margin-left: 1em;
}
    #friends .friend.open .details:after {
        -webkit-transform: rotate(90deg);
    }


.btn-follow {
    font-size: 1em;
    padding: .1em .5em;
    margin-left: 1em;
    vertical-align: baseline;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}
    .btn-follow .icon {
        margin-right: 1px;
        opacity: .9;
        position: relative;
        top: 1px;
        vertical-align: baseline;
    }

    .btn-follow.loading,
    .btn-follow.btn-success,
    .btn-follow.bnt-error {
        cursor: default;
    }

    .btn-follow.loading {
        background: #ffd7b6;
    }
    .btn-follow.btn-info.loading {
        background: #9fc4ce;
    }
        .btn-follow.loading .icon {
            background: url("/static/img/loading.gif");
            height: 16px;
            margin: -1px 0 0 -1px;
            width: 16px;
            top: 2px;
        }

    .btn-follow.btn-success:hover {
        background-position: 0 0;
    }

.quote + .files {
    margin-top: .3em;
    font-size: .8em;
}

#root + .event {
    margin-top: 2em;
}


/* Member meta data */

.meta header {
    border-bottom: 1px solid #ddd;
    color: #888;
    font-size: 1.1em;
    line-height: 1.7em;
    margin-bottom: .5em;
}

.meta + .meta {
    margin-top: 2em;
}

    .meta p {
        margin-bottom: .5em;
        padding-left: 2em;
    }
        .meta p i {
            float: left;
            margin: .25em 0 0 -1.5em;
        }

        .meta p .file {
            margin-left: .2em;
        }


#load_more {
    display: block;
    margin: 2em auto 0;
}
    #load_more.loading {
        background: #eee url("../img/loading.gif") no-repeat center center;
        cursor: default;
        transition: none;
        text-indent: -9999px;
    }


/* Member page loaded from extension */


.iframe #header, .iframe > footer, .iframe #sourcemenu, .iframe #moreToolBtn {
    display: none !important;
}

.iframe, .iframe #container {
    background: transparent;
}

.iframe .pagination {
    margin-bottom: 3em;
}


/* Quote page */

.tweet {
    font-size: 1.4em;
    line-height: 1.4em;
    margin-bottom: 1.5em;
    position: relative;
}
    .tweet .name {
        margin-right: .5em;
    }

    .tweet .twitter {
        bottom: 2px;
        height: 24px;
        opacity: .15;
        overflow: hidden;
        position: absolute;
        right: 0;
        width: 24px;
    }
        .tweet .twitter img {
            display: block;
            width: 100%;
        }

        .tweet .twitter:hover {
            opacity: .65;
        }

.event > .name {
    display: block;
    margin-bottom: 1em;
}

#pq-comments {
    margin-top: 2em;
}
    #pq-comments .pq-comment-text {
        font-size: .95em;
    }

#backtofeed {
    background: url("../img/icon-doublearrow.png") no-repeat center left;
    color: #29889d;
    display: inline-block;
    padding-left: 24px;
    line-height: 1.5em;
    margin-bottom: 1em;
}
    #backtofeed:hover {
        opacity: .7;
    }

#content a#backtofeed {
    text-decoration: none;
}


/* Mobile */


@media all and (max-device-width: 640px) {
    #header h1, #content, body > footer {
        width: auto;
    }

    #content {
        padding: 5%;
    }

    #sourcemenu {
        height: 2.5em;
    }
        #sourcemenu li a {
            font-size: 1.1em;
        }

        .referer #sourcemenu li.active:after {
            border-top-width: 10px;
            border-left-width: 20px;
            border-right-width: 20px;
            bottom: -15px;
            margin-left: -20px;
        }

    .stats * {
        font-size: 1.2em;
    }

    .pagination ul > li > a,
    .pagination ul > li > span {
        font-size: 1.15em;
        line-height: 1.5em;
        min-width: .8em;
    }
}

form.subscribe input {
    margin-bottom: 0;
}
form.subscribe .feedback-message {
    margin: 10px 5%;
}
form.subscribe {
    padding: 1em;
}
form.subscribe button[type=submit] {
    height: 50px;
    width: 155px;
    border-radius: 0;
    color: #FFF;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.2em;
    margin-left: -6px;
    box-sizing: border-box;
}
form.subscribe input[type=email] {
    box-sizing: border-box;
    height: 50px;
    line-height: 50px;
    width: 216px;
    padding-left: 12px;
    border: 2px solid #E0E0E0;
    border-left: 1px solid #E0E0E0;
    border-right:none;
    border-radius: 0;
    margin-right: 0;
    font-size: 1.2em;
}
form.subscribe .recommendation {
    float: left;
    width: 50%;
    height: 150px;
    overflow: hidden;
}
form.subscribe .recommendation img {
    width: 100px;
    height: 100px;
    margin-right: 5px;
    border: 1px solid #08c;
}
form.subscribe .recommendation .checkbox {
    margin-left: 105px;
    line-height: 16px;
    min-height: 16px;
}
form.subscribe .recommendation .checkbox a {
    text-decoration: none !important;
    white-space: nowrap;
}

#root form.subscribe {
    text-align: center;
}
#root form.subscribe .file {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}



.hero-unit {
    background-color: transparent;
    padding: 0;
}
    .hero-unit .btn {
        background: #f5f5f5 url() no-repeat .55em center;
        box-shadow: 0 0 0 rgba(0, 30, 100, .45);
        padding-left: 2.5em;
        text-align: left;
        width: 5em;
        transition: all .1s ease-in;
    }
        .hero-unit .btn:hover {
            background-color: #fbfbfb;
            box-shadow: 0 0 6px rgba(0, 30, 100, .15);
            text-shadow: 0 0 1px rgba(255, 255, 255, .15);
        }

        .btn.chrome {
            background-image: url("../img/button-chrome.png");
        }
