@media all {
    /* WEIRD! Jekyll doesn't apply the very first CSS rule, so here's a do-nothing rule */
}

/**
 * @group Icons.
 */
.icon {
    float: left;
    width: 18px;
    height: 22px;
    margin-top: 2px;
    margin-right: 3px;
}
.icon--diaspora {
    background: url(//betterangels.github.io/buoy/public/img/icon-diaspora.png) no-repeat 0 2px;
    background-size: contain;
    opacity: .5;
}

/**
 * @group Masthead/header/cover images.
 */
.cover-image {
    background-color: #A589D1;
}
h1.header-image-title {
    position: relative;
    top: -0.5em;
}
h1.header-image-title a:hover {
    text-decoration: underline;
}
h1.header-image-title a {
    color: inherit;
}
h2.header-image-caption {
    visibility: hidden;
}

/**
 * @group Column layout and backgrounds.
 */
#secondary .widget_text:first-of-type::before {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    background: url("//betterangels.github.io/buoy/public/img/buoy-icon-256x256.png") no-repeat center;
    background-size: contain;
    opacity: .05;
    z-index: -1;
}
#secondary .widget_text:first-of-type h2 {
    margin-top: 0;
}

/**
 * @group Screenshots carousel.
 */
#carousel-screenshots.carousel .carousel-control .glyphicon {
    z-index: 20;
}
#carousel-screenshots.carousel {
    box-shadow: -10px 15px 20px #ccc;
    border: 1px solid black;
    border-radius: 10px;
    background: #eee;
    margin-bottom: 2em;
}
#carousel-screenshots.carousel .carousel-inner::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url(//betterangels.github.io/buoy/public/img/buoy-icon-no-fill.svg) no-repeat center;
    background-size: contain;
    opacity: 0.2;
}
#carousel-screenshots.carousel img {
    float: left;
    margin: 0 1em 1em 10%;
}
#carousel-screenshots.carousel .carousel-caption {
    position: static;
    margin: auto 10%;
    padding: 0;
    background: transparent;
    font-size: 1.5rem;
    color: #333;
    text-align: left;
}
#carousel-screenshots.carousel .carousel-caption p {
    text-align: justify;
    font-weight: normal;
}
#carousel-screenshots.carousel .carousel-indicators .active {
    background-color: green;
}

@media screen and (max-width: 480px) {
    #carousel-screenshots.carousel img {
        margin-left: 0;
        margin-right: 0;
    }
    #carousel-screenshots.carousel .carousel-caption {
        margin: auto;
        padding: 0 5px;
    }
}

/**
 * @group Team members list.
 */
.buoy-team-members .media {
    margin-top: 0;
    margin-bottom: 30px;
}

.buoy-team-members [data-organization-id="betterangels"]::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: url(https://avatars.githubusercontent.com/u/18254254) no-repeat right 20px top;
    background-size: 96px;
    opacity: 0.1;
    z-index: -1;
}

.buoy-team-members .col-md-6:nth-child(2n+1) {
    clear: left;
}
.buoy-team-members .media-object {
    max-width: 96px;
    border-radius: 10%;
}
.buoy-team-members .h-card .p-role {
    cursor: pointer; /* Make iOS play nice with :hover and :focus on non-links. */
    max-height: 3.75em;
    transition: max-height 1s ease-in-out;
    overflow-y: hidden;
    box-shadow: 0 2px 2px #ccc;
}
.buoy-team-members .h-card:hover .p-role,
.buoy-team-members .h-card:focus .p-role {
    max-height: 1000em;
    box-shadow: none;
}
.buoy-team-members .h-card .p-role + .glyphicon-chevron-down {
    position: relative;
    top: -0.5em;
    width: 100%;
    text-align: center;
}
.buoy-team-members .h-card:hover .p-role + .glyphicon-chevron-down,
.buoy-team-members .h-card:focus .p-role + .glyphicon-chevron-down {
    display: none;
}
.buoy-team-members .urls .glyphicon {
    opacity: 0.5;
}
