/*!
 * bisp.css - CSS for BISP Lab website
 * by Vick Lau, BISP Lab 2019
 */

.material-icons {
    position: relative;
    top: 5px;
}

.body-wrapper {
    margin-left: 50px;
    margin-right: 50px;
}

.anchor:target {
    padding-top: 50px;
    margin-top: -50px;
}

/* Navbar animation */
@media (min-width: 768px) {
    .nav-animate {
        animation-duration: 0.3s;
        -webkit-animation-duration: 0.3s;
        animation-fill-mode: both;
        -webkit-animation-fill-mode: both;
    }
}

@keyframes navSlideOut {
    0% {
        transform: translateY(-0.15rem);
        transform: translateZ(0);
        opacity: 0;
    }
    100% {
        transform: translateY(0rem);
        transform: translateZ(0);
        opacity: 1;
    }
    0% {
        transform: translateY(-0.15rem);
        transform: translateZ(0);
        opacity: 0;
    }
}

@-webkit-keyframes navSlideOut {
    0% {
        -webkit-transform: translateY(-0.15rem);
        -webkit-transform: translateZ(0);
        -webkit-opacity: 0;
    }
    100% {
        -webkit-transform: translateY(0rem);
        -webkit-transform: translateZ(0);
        -webkit-opacity: 1;
    }
    0% {
        -webkit-transform: translateY(-0.15rem);
        -webkit-transform: translateZ(0);
        -webkit-opacity: 0;
    }
}

.navSlideOut {
    -webkit-animation-name: navSlideOut;
    animation-name: navSlideOut;
}

.navbar {
    transition: all 0.3s;
}

.navbar.shrinked {
    padding: 2px 16px;
}

#nav-name {
    display: none;
}


/* Index intro animation */
@keyframes introSlideIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
    0% {
        opacity: 0;
    }
}

@-webkit-keyframes introSlideIn {
    0% {
        -webkit-opacity: 0;
    }
    100% {
        -webkit-opacity: 1;
    }
    0% {
        -webkit-opacity: 0;
    }
}

.introSlideIn {
    animation-name: introSlideIn;
    -webkit-animation-name: introSlideIn;
    animation-duration: 0.7s;
    -webkit-animation-duration: 0.7s;
    animation-fill-mode: both;
    -webkit-animation-fill-mode: both;
}

.introSlideIn+.delay1 {
    animation-delay: 0.3s;
    -webkit-animation-delay: 0.3s;
}

.introSlideIn+.delay2 {
    animation-delay: 0.5s;
    -webkit-animation-delay: 0.5s;
}

/* Bootstrap 4 Callouts, modified */
.bd-callout {
    padding: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid #eee;
    border-left-width: .6rem;
    border-radius: .6rem
}

.bd-callout h4 {
    margin-top: 0;
    margin-bottom: .25rem
}

.bd-callout p:last-child {
    margin-bottom: 0
}

.bd-callout code {
    border-radius: .25rem
}

.bd-callout+.bd-callout {
    margin-top: -.25rem
}

.bd-callout-info {
    border-left-color: #5bc0de
}

.bd-callout-info h4 {
    color: #5bc0de
}

.bd-callout-warning {
    border-left-color: #f0ad4e
}

.bd-callout-warning h4 {
    color: #f0ad4e
}

.bd-callout-danger {
    border-left-color: #d9534f
}

.bd-callout-danger h4 {
    color: #d9534f
}

#sttBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    color: white; /* Text color */
    padding: 15px; /* Some padding */
    border-radius: 10px; /* Rounded corners */
    text-align: center;
    background-color: rgb(168, 168, 168)
}

#sttBtn:hover {
    background-color: rgb(80, 80, 80); /* Add a dark-grey background on hover */
}

.idx-research-block:hover {
    text-decoration: none;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.2);
    transition: 0.2s ease;
}

.idx-research-block .image {
    width: 100%;
    max-height: 15rem;
    object-fit: cover;
    transition: 0.3s ease;
}

.idx-research-block:hover .image {
    filter: brightness(115%);
    -webkit-filter: brightness(115%);
    transition: 0.2s ease;
}

.idx-research-block .block-body {
    color: #212529;
    transition: 0.3s ease;
}

.idx-research-block:hover .block-body {
    color: #008CBA;
    transition: 0.2s ease;
}

.card .research-card-img {
    width: 100%; height: 200px; object-fit: cover;
    transition: 0.3s ease;
    -webkit-filter: brightness(50%);
    filter: brightness(50%);
}

.card:hover .research-card-img{
    -webkit-filter: brightness(100%);
    filter: brightness(100%);
}

.text-shadow-black {
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6);
}

#people-head {
    height: 400px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    background-image: url("../images_webp/group/group-2019-1.webp");
    background-color: white;
}

/* Profile card */
.pf-card {
    width: 14.5rem;
    height: 22.5rem;
    transition: 0.3s ease;
}

.pf-card-1 {
    width: 14.5rem;
    height: 20rem;
    transition: 0.3s ease;
}

.pf-container {
    position: relative;
    width: 80%;
    margin-top: 10px;
    margin-right: auto;
    margin-left: auto;
  }

.pf-img {
    display: block;
    width: 100%;
    height: auto;
}

.pf-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .3s ease;
    background-color: #008CBA;
}

.pf-card:hover, .pf-card-1:hover {
    transition: 0.3s ease;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16);
}

.pf-card:hover .card-img-top, .pf-card-1:hover .card-img-top {
    opacity: 0.2;
    transition: 0.4s ease;
}

.pf-card:hover .pf-overlay, .pf-card-1:hover .pf-overlay {
    opacity: 0.8;
}

.pf-text {
    color: white;
    font-size: 14px;
    position: relative;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
}

.gallery-block{
    padding-top: 60px;
}

.gallery-block .heading{
    margin-bottom: 50px;
    text-align: center;
}

.gallery-block .heading h2{
    font-weight: bold;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.gallery-block.compact-gallery .item{
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 0;
    background: black;
    opacity: 1;
}

.gallery-block.compact-gallery .item .image{
    transition: 0.8s ease;
}

.gallery-block.compact-gallery .item .info{
    position: relative;
    display: inline-block;
}

.gallery-block.compact-gallery .item .description{
    display: grid;
    position: absolute;
    bottom: 0;
    left: 0;
    color: #fff;
    padding: 10px;
    font-size: 17px;
    line-height: 18px;
    width: 100%;
    padding-top: 15px;
    padding-bottom: 15px;
    opacity: 1;
    color: #fff;
    transition: 0.8s ease;
    text-align: center;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.39));
}

.gallery-block.compact-gallery .item .description .description-heading{
    font-size: 1em;
    font-weight: bold;
}

.gallery-block.compact-gallery .item .description .description-body{
    font-size: 0.8em;
    margin-top: 10px;
    font-weight: 300;
}

@media (min-width: 576px) {
    .gallery-block.compact-gallery .item .description {
        opacity: 0;
    }

    .gallery-block.compact-gallery .item a:hover .description {
        opacity: 1;
    }

    .gallery-block .zoom-on-hover:hover .image {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.carousel-control-next,
.carousel-control-prev,
.carousel-indicators {
    filter: invert(100%);
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity ease-out .7s;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-left,
.carousel-fade .carousel-item-prev.carousel-item-right {
    opacity: 1;
}

.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-right {
    opacity: 0;
}

#parallax-idx {
    position: relative;
    height: 580px;
}

.jumbotron .parallax-head-el1,
.jumbotron .parallax-head-el2 {
    z-index: 2;
    position: absolute;
    /* Set a specific height */
    height: 580px;
    width: 100%;
    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: inline-block;
    box-shadow: inset 0 0 40px black;
}

.jumbotron .parallax-head-el1 {
    animation: xfade 12s 6s infinite;
    background-image: url("../images_webp/lb.webp");
}

.jumbotron .parallax-head-el2 {
    animation: xfade 12s 0s infinite;
    background-image: url("../images_webp/cb_cyc.webp");
}

.jumbotron .intro-background1,
.jumbotron .intro-background2 {
    z-index: 1;
    position: absolute;
    /* Set a specific height */
    min-height: 580px;
    width: 100%;
    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(10px);
    -webkit-filter: blur(5px);
}

.jumbotron .intro-background1 {
    animation: xfade 12s 6s infinite;
    background-image: url("../images_webp/lb.webp");
}

.jumbotron .intro-background2 {
    animation: xfade 12s 0s infinite;
    background-image: url("../images_webp/cb_cyc.webp");
}


@keyframes xfade {
    2% {
        opacity: 1;
    }
    48% {
        opacity: 1;
    }
    52% {
        opacity: 0;
    }
    98% {
        opacity: 0;
    }
}

.parallax-idx-overlay {
    z-index: 3;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0,0,0,0.6);
    background-size: cover;
}

.jumbotron .parallax-head-text {
    z-index: 4;
    color: #f8f9fa;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 95%;
    transform: translate(-50%, -50%);
}

.pub-name {
    color: #212529;
    transition: 0.3s ease;
}

.pub-name:hover {
    text-decoration: none;
    color: #008CBA;
    transition: 0.2s ease;
}

.join-img {
    height: 400px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    background-image: url('../images_webp/group/group-2019-2.webp');
    background-color: white;
}
@media screen and (max-width: 320px) {
    .join-img {
        background-size: 230%;
    }
}
@media screen and (min-width: 321px) and (max-width: 480px) {
    .join-img {
        background-size: 200%;
    }
}
@media screen and (min-width: 481px) and (max-width: 720px) {
    .join-img {
        background-size: 150%;
    }
}
