/* 
    small css styling targeting elements on the homepage
*/

/* temp body padding-top and styling to make room for NIH banner */

body {
    padding-top: 70px !important;
}

.nih-alert-top-banner {
    width: 100%;
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9998;
    background-color: #ffc629;
    text-align: center;
}
.nih-alert-top-banner p a {
    text-decoration: none !important; 
    color: black;
    font-weight: bolder;
    /* font-size: 1.1rem; */
}
.nih-alert-top-banner p a:hover {
    text-decoration: underline !important; 
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 91px !important;
    }
    .nih-alert-top-banner {
        height: auto;
        top: 50px;
    }
    .nih-alert-top-banner .block.html-block {
        margin: 0 !important;
    }
}

/* end temp body padding-top and styling to make room for NIH banner */

.back-to-top {
    border-radius: 3px;
}

/* BTN */

.bttn.open.white {
    border: 2px solid white;
    background: transparent;
    color: white;
    position: absolute;
    bottom: 20px;
    left: 10px;
}
.bttn.open.white:hover {
    background: white;
    color: black;
}

a.bttn.blue:hover {
    border: none !important;
    opacity: 1 !important;
    background: #0071CE !important;
    background-color: #0071CE !important;
}

a.bttn.blue {
    padding: 15px 10px;
    border: none !important;
}


.horizfullwidthblock ul.grid-list>li>.card-wrapper>article>div.teaser p, .grid-list>li>.card-wrapper>article>div.teaser p {
    font-size: inherit;
}

.explore-grid .block.generic {
    min-height: 474px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.explore-grid .block.generic .img-header img {
    border-radius: 8px 8px 0 0;
}

.block.search-taxonomy ul.list.grid-list h3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5rem;
}

/*
    Rare diseases, real stories
*/

.rare-diseases .span12 {
    margin: 50px auto;
    padding: 20px 0px;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 0 60px -60px black;
}

.rare-diseases .outer-bx {
    padding-bottom: 0 !important;
}

/*
    News Cards
*/

.horizfullwidthblock ul.grid-list>li>a, 
.horizfullwidthblock ul.grid-list>li>.card-wrapper, 
.grid-list>li>a, .grid-list>li>.card-wrapper {
    /* border: none; */
    transition: all .4s;
    border-radius: 8px;
}

.horizfullwidthblock ul.grid-list>li>.card-wrapper>header img, .grid-list>li>.card-wrapper>header img {
    transition: transform .4s;
}

.horizfullwidthblock ul.grid-list>li>.card-wrapper>header, .grid-list>li>.card-wrapper>header {
    border-radius: 8px 8px 0 0;
}

.horizfullwidthblock ul.grid-list>li>.card-wrapper>article, .grid-list>li>.card-wrapper>article {
    padding: 1rem;
    border-radius: 0 0 8px 8px;
}

.horizfullwidthblock ul.grid-list>li>.card-wrapper:hover, .grid-list>li>.card-wrapper:hover {
    box-shadow: 0 10px 20px 0 #00000033;
    transform: translateY(-5px);
}

.horizfullwidthblock ul.grid-list>li>.card-wrapper:hover header, .grid-list>li>.card-wrapper:hover header {
    background-color: transparent;
}

.horizfullwidthblock ul.grid-list>li>.card-wrapper:hover img, .grid-list>li>.card-wrapper:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.horizfullwidthblock ul.grid-list>li>.card-wrapper:hover article, .grid-list>li>.card-wrapper:hover article {
    background-color: #ffffff;
}

/* Smaller viewports */

@media screen and (max-width: 768px) {
    .rare-diseases .span12 {
        width: 95%;
        margin: 40px auto;
        padding: 20px 0px;
    }
    a.bttn.blue {
        display: block; /* buttons full width on mobile */ 
    }
    .comm25 {
        border: none !important;
    }
}