/* Above fold */
@media only screen and (min-width: 0px) {
    .main {
        background-color: #efefef;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
    }
    h1 {
        font-size: 1.5rem;
        font-weight: 600;
        margin: .5rem 0rem 0rem 0rem;
    }
    .home {
        position: relative;
        height: auto;
        width: 100%;
        padding: 1rem 0rem;
        background: #efefef;
        color: black;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }
    .home>.container {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .home>.container {
        width: 100%;
        max-width: 1200px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        margin: 0rem;
        margin-top: 3rem;
    }
    .announcement-banner {
        height: 5rem;
        width: 98%;
        max-width: 67.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 1rem 1.5rem;
        color: white;
        -webkit-box-shadow: 0px 1px 8px 0px rgba(0, 0, 0, 0.3);
        box-shadow: 0px 1px 8px 0px rgba(0, 0, 0, 0.3);
        background: linear-gradient(180deg, #e80050 0%, #8a226a 100%) !important;
        margin: auto;
        margin-top: 1rem;
        border-radius: 1rem;
        font-weight: bolder;
        text-align: center;
        line-height: 1.5rem;
    }
    .sermon-container {
        position: relative;
        margin: auto;
        margin-top: 1rem;
        border-radius: .5rem;
        background-color: #222020;
        background-position: center center;
        background-size: cover;
        height: 72vh;
        width: 98%;
        max-width: 80rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
        padding: 1rem 1.5rem;
        color: white;
        -webkit-box-shadow: 0px 1px 8px 0px rgba(0,0,0,0.3); 
        box-shadow: 0px 1px 8px 0px rgba(0,0,0,0.3);
    }
    #caption {
        min-width: 73px;
        min-height: 28px;
    }
    .sermon-container h2, h3, a, .text-danger {
        z-index: 2;
    }
    .sermon-container h2 {
        font-size: .75rem;
        background-color: rgba(170, 170, 170, 0.75);
        padding: .5rem;
        border-radius: 1rem;
    }
    .sermon-container > div > h2, .text-danger {
        position: relative;
    }
    .sermon-container > .live-box {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .sermon-container .text-danger {
        margin-left: .5rem;
        color: #bb0e4b;
    }
    .Blink {
        animation: blinker 1.5s cubic-bezier(.5, 0, 1, 1) infinite alternate;  
    }
    .blink-off {
        display: none;
    }
    @keyframes blinker {  
      from { opacity: 1; }
      to { opacity: 0; }
    }
    .sermon-container h3 {
        font-size: 2rem;
        width: 100%;
        min-height: 32px;
        margin: .75rem 0rem 1rem 0rem;
        text-shadow: 0px 0px 17px rgba(0,0,0,0.7);
    }
    .sermon-links-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
    .sermon-link {
        color: white;
        font-weight: bold;
        font-size: 1rem;
        background: linear-gradient(180deg,#bb0e4b 0%,#8a226a 100%);
        padding: 1rem;
        border-radius: .5rem;
        margin-bottom: .5rem;
        padding: 1.15rem;
        min-width: 142px;
        min-height: 52px;
    }
    .more-sermons-link {
        min-width: 171px;
        min-height: 52px;
        color: white;
        font-weight: bold;
        font-size: 1rem;
        border: solid .15rem white;
        padding: 1rem;
        border-radius: .5rem;
    }
    .sermon-container video {
        object-fit: cover;
        height: 100%;
        width: 100%;
        position: absolute;
        right: 0;
        bottom: 0;
        z-index: 1;
        border-radius: .5rem;
        display: none;
    }
    .sermon-container img {
        object-fit: cover;
        height: 100%;
        width: 100%;
        position: absolute;
        right: 0;
        bottom: 0;
        z-index: 1;
        border-radius: .5rem;
        pointer-events: none;
    }
    /* FIGURE OUT SAFARI ANIMATIONS */
    #sermon-img {
        opacity: 0;
        z-index: 1;
        display: block;
        transition: 5s opacity ease-in-out;
        border-radius: .5rem;
        pointer-events: none;
    }
    .live-loaded {
        opacity: 100% !important;
        z-index: 2 !important;
    }
    #welcome {
        width: 98%;
        max-width: 1080px;
        margin: 0rem 1rem;
        display: flex;
        justify-content: space-between;
    }
    .welcome-message {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .quick-links {
        background-color: #efefef;
    }
    .quick-links a {
        display: flex;
        flex-direction: row;
        align-items: center;
        font-weight: bold;
        width: 100%;
        height: 100%;
    }
    .quick-links .container {
        background: white;
        padding: 1rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        border-radius: .5rem;
        width: auto;
        -webkit-box-shadow: 0px 1px 8px 0px rgba(0,0,0,0.1); 
        box-shadow: 0px 1px 8px 0px rgba(0,0,0,0.1);
    }
    .quick-links p{
        margin: 0rem 0rem 0rem .25rem;
        width: 4rem;
    }
    .quick-links img {
        margin-right: .5rem;
    }
}

@media only screen and (min-width: 768px) {
    #welcome {
        width: 99%;
        margin-left: auto;
        margin-right: auto;
        padding: .5rem 1rem;
    }
}

@media only screen and (min-width: 1024px) {
    #welcome {
        width: 99%;
        padding: .5rem 1rem;
    }
    .group-item {
        margin-right: 1.8rem;
        position: relative;
        z-index: 2;
    }
}

@media only screen and (min-width: 1180px) {
    #welcome {
        width: 100%;
        padding: .5rem 0rem;
    }
    #group-list {
        padding: 0rem 0rem;
    }
}