.hidden {
    display: none;
}
.darkened {
    filter: brightness(50%) !important;
}
body {
    color: #E0E0DF;
    font-family: BlinkMacSystemFont, "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
    margin: 0;
    user-select: none;
}
img {
    -webkit-user-drag: none;
    user-select: none;
}
a {
    color: rgb(106, 175, 253);
    text-decoration: none;
    word-break: break-all;
    cursor: default;
}
a.active {
    color: rgb(36, 105, 183);
}
.container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-x: hidden;
    overflow-y: scroll;
}
.pin, .comment-item {
    position: relative;
    padding-top: 13px;
    padding-left: 20px;
    padding-right: 20px;
    filter: brightness(100%);
}

/* ------------------------------------------------------------ */
/* title bar */

.title-bar {
    -webkit-app-region: drag;
    width: 100%;
    background-image: linear-gradient(#44413D, #373431);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25);
}
.title-bar.inactive {
    background-image: none;
    background-color: #373430;
}

/* ------------------------------------------------------------ */
/* pin focus */
.pin.focus {
    background-color: #37332F;
    color: rgb(220, 220, 220);
    border-top: 1px solid rgb(80, 80, 80);
    margin-top: -1px;
    cursor: auto;
}
.pin.focus .content {
    user-select: text;
}
.pin.focus .name {
    color: rgb(220, 220, 220);
}
.pin.focus + .pin {
    border-top: 1px solid rgb(80, 80, 80);
    margin-top: -1px;
}

/* ------------------------------------------------------------ */
/* author */

.author {
    display: inline-block;
    max-width: 300px;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
}
.author .avatar {
    border-radius: 50%;
    height: 42px;
    width: 42px;
    position: absolute;
    transform: translate(0, 2px);
}
.pin .author:hover .avatar,
.profile .author:hover .avatar,
.comment-author:hover .avatar {
    box-shadow: 0 0 7px rgb(180, 180, 180);
    transition: box-shadow 0.1s;
}
.pin .author.active .avatar,
.profile .author.active .avatar,
.comment-author.active .avatar {
    box-shadow: 0 0 12px white;
}
.author .name {
    font-weight: 600;
    font-size: 18px;
    margin-left: 50px;
    color: rgb(204, 204, 204);
    user-select: none;
}
.pin .author:hover .name,
.profile .author:hover .name,
.comment-author:hover .name {
    color: white;
    transition: color 0.1s;
}
.pin .author.active .name,
.profile .author.active .name,
.comment-author.active .name {
    text-shadow: 0 0 5px white;
}

/* ------------------------------------------------------------ */
/* time & statistics */

.time, .statistics {
    cursor: default;
    position: absolute;
    right: 25px;
    font-size: 14px;
    font-weight: 600;
    color: rgb(122, 122, 122);
}
.time {
    top: 15px;
}
.statistics {
    top: 16px;
}
.pin .statistics {
    display: none;
}
.statistics span {
    margin-left: 7px;
}
.statistics i {
    margin-right: 3px;
    color: #595959;
}
.statistics .delete-btn {
    margin-right: 3px;
    color: rgb(220, 80, 60);
}
.statistics .num-likes:hover {
    color: rgb(160, 160, 160);
    background-color: #3F3F3F;
    border-radius: 4px;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-right: 4px;
    margin-right: -4px;
}
.pin .statistics .num-likes:hover {
    padding-left: 1px;
    margin-left: 6px;
}
/* hollow heart */
.statistics .num-likes .far.fa-heart {
    transition: color 0.2s, text-shadow 0.2s;
}
.statistics .num-likes:hover .far.fa-heart {
    color: rgb(220, 80, 60);
    text-shadow: 0 0 8px rgba(220, 80, 60);
}
/* solid heart */
.statistics .num-likes .fas.fa-heart {
    font-size: 13px;
    color: rgb(220, 80, 60);
    text-shadow: 0 0 8px rgba(220, 80, 60);
    transition: text-shadow 0.2s;
}
.statistics .num-likes:hover .fas.fa-heart {
    color: rgb(220, 80, 60);
    text-shadow: none;
}
.pin:hover > .time,
.pin.focus > .time {
    display: none;
}
.pin:hover > .statistics,
.pin.focus > .statistics {
    display: inline-block;
}

/* ------------------------------------------------------------ */
/* pin & comment content */

.content {
    font-size: 17px;
    line-height: 1.6em;
    margin-top: 5px;
    margin-left: 50px;
}
.pin .content {
    transition: max-height 0.3s ease-in;
    overflow: hidden;
}
.content .fa-retweet, .content .fa-image {
    margin-right: 3px;
    margin-left: 3px;
    color: rgb(122, 122, 122);
}
.pin.loading, .origin-pin.loading {
    filter: brightness(70%) !important;
    color: white;
}
.link-title {
    margin-top: 15px;
    line-height: 1.4em;
    color: rgb(122, 122, 122);
    font-weight: 500;
    font-size: 16px;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
    cursor: default;
}
.link {
    font-size: 16px;
    display: block;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
}

.images, .video {
    line-height: 0;
    margin-top: 10px;
    margin-bottom: 9px;
    width: 100%;
    text-align: center;
    border-radius: 6px;
    overflow: hidden;
}
.img, .video {
    filter: brightness(100%);
}
.img + .img {
    margin-left: 3px;
}
.single-img, .video .thumbnail {
    max-width: 100%;
    max-height: 250px;
    border-radius: 8px;
}
.double-img, .img-grid .img {
    display: inline-block;
    background-position: center center;
    background-size: cover;
}
.double-img {
    width: calc(50% - 1.5px);;
    height: 250px;
}
.img-grid .img {
    position: relative;
    width: calc(33.33% - 2px);
    height: auto;
}
.img-grid .img:before{
    content: "";
    display: inline-block;
    padding-top: 100%;
}
.img-grid .row {
    line-height: 0;
    text-align: left;
    margin: 0 auto;
    width: 100%;
}
.img-grid .row + .row {
    margin-top: 3px;
}
.video {
    position: relative;
}
.video div {
    font-size: 23px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);; 
}

.origin-pin {
    font-size: 16px;
    line-height: 1.55em;
    margin-left: 10px;
    margin-top: 10px;
    margin-bottom: 5px;
    padding-left: 10px;
    padding-top: 2px;
    border-left: 1px solid #514F4B;
    filter: brightness(100%);
    transition: background-color 0.1s, box-shadow 0.1s, border-radius 0.1s, filter 0.06s;
}
.origin-pin .name {
    display: inline-block;
    margin-left: 0;
    margin-bottom: 6px;
    font-size: 17px;
}
.origin-pin:hover, .origin-pin.loading {
    margin-left: 11px;
    border-left: none;
    box-shadow: inset 0px 0px 0px 1px #514F4B; /* inside-border */
    border-radius: 6px;
    background-color: #3F3F3F;
}
.origin-pin.loading {
    background-color: #37332F;
}

/* ------------------------------------------------------------ */
/* collapse */

.pin .content.collapse {
    transition: max-height 0.3s ease-out;
    max-height: 110px !important;
}
.collapsed-indicator {
    text-align: center;
    position: absolute;
    left: 60px;
    right: 20px;
    bottom: 1px;
    height: 45px;
    background: linear-gradient(transparent, #2C2924 50%);
}
.collapsed-indicator i {
    color: rgb(106, 175, 253);
    font-size: 12px;
    position: absolute;
    bottom: 5px;
}
.pin.focus .collapsed-indicator {
    background: linear-gradient(transparent, #37332F 50%);
}

