/* page styling */
#pnlSearchCriteria .filter-badge {
    border: 2px solid #dddea2;
    background-color: #fbfdf0;
    Padding: 3px 15px;
    color: #777;
}
#pnlSearchCriteria i {
    color: #777;
}

.groups-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hide-card {
    display: none !important;
}

#pnlGroupsGrid {
    max-width: 1280px;
    margin: 0 auto;
}

#pnlLoading, #pnlGroupsMap, #pnlGroupsGrid {
    min-height: 700px;
}

div.group-filters {
    position: absolute;
    max-width: 300px;
}

.groups {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.group-card {
    position: relative;
    width: 30%;
    height: 357px;
    border-radius: 3px;
    margin: 15px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 6px, rgba(0, 0, 0, 0.12) 0px 1px 4px;
    display:flex;
    flex-direction:row;
}



.group-side-content {
        min-width: 120px;
        width:120px;
}

.group-content {
        padding:20px;
        position:relative;
        overflow:hidden;
}

.group-content h3 {
    color:#999;
}

.group-topics {
    padding-bottom:20px;
}
.group-topic {
    color: #999;
    border: 2px solid;
    border-color: #777;
    border-radius: 25px;
    padding: 3px 10px;
    margin-right: 5px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 33px;
}
.learn-more {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 70px;
    padding: 40px 10px;
    display: flex;
    justify-content: flex-end;
    color: #649fd9;
    font-weight: 700;
    background-image: linear-gradient(to top, rgba(255,255,255,1)50%, rgba(255,255,255,0));
}

.learn-more:hover {
    cursor: pointer;
}

.side-top {
    height:40%;
    padding:15px;
    color:#fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.side-bottom {
    height:60%;
    background-color:#f1f1f3;
    padding:15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.header-featured {
    position: absolute;
    top: 0;
    right: 0;
    color: white;
    background-color: #ce2f1c;
    padding: 4px;
    padding-left: 5px;
    padding-right: 5px;
    border-bottom-left-radius: 4px;
    font-size: 16px;
}

.group-header {
    display: flex;
    align-items: center;
    height: 100px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.header-image, #leaderPicture {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FFFFFF;
    border-radius: 50%;
}

.mdi-account-group {
    padding-left: 2px;
}

.header-image {
    width: 57px;
    height: 57px;
    margin: 0 10px 0 25px;
}

#leaderPicture {
    width: 100px;
    margin-top: 40px;
}

#familyPicture {
    height: 160px;
    overflow: hidden;
}

.header-image i, #leaderPicture i {
    color: #bcbdc1;
    font-size: 40px;
}

.header-text {
    display: flex;
    flex-direction: column;
    color: #FFFFFF;
}

.group-name {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #f1f1f3;
    padding: 12px 0;
    font-weight: bold;
}

.meeting-time {
    margin-right: 10px;
}

.group-details {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 150px;
    background-color: #FFFFFF;
}

.description-footer {
    display: flex;
    justify-content: space-between;
}

.group-alert {
    min-height: 30px;
    font-weight: 600;
    padding: 0 20px 10px 20px;
    background-color: #FFFFFF;
}

.leader-images {
    top: -40px;
    position: relative;
    width: 50%;
}

.leader-images img {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 3px;
    border: 3px solid white;
    border-radius: 70px;
    -webkit-border-radius: 70px;
    -moz-border-radius: 70px;
    /* make resized images look good in IE */
    -ms-interpolation-mode: bicubic;
}

/* Mobile and Tablet Styling */
@media screen and (max-width: 1200px) {

    .group-card {
        margin: 10px 15px;
        width:45%;
    }

 }

 /* Mobile Styling */
 @media screen and (max-width: 768px) {

    .group-card {
        margin: 10px 20px;
        width:90%;
    }

 }


/**** loading spinner ****/
/* cheatsheet html to use for spinner
    <div class="loading">
        <div class="lds-spinner"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>
    </div>
*/
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.button-loading {
    justify-content: flex-start;
    align-items: flex-start;
    height: 50px;
}

.lds-spinner {
    display: inline-block;
    position: relative;
    width: 64px;
    height: 64px;
}

.button-lds-spinner {
    width: 32px;
    height: 32px;
}

.lds-spinner div {
    transform-origin: 32px 32px;
    animation: lds-spinner 1.2s linear infinite;
}

.button-lds-spinner div {
    transform-origin: 16px 16px;
}

.lds-spinner div:after {
    content: " ";
    display: block;
    position: absolute;
    top: 3px;
    left: 29px;
    width: 5px;
    height: 14px;
    border-radius: 20%;
    background: #ce2f1c;
}

.button-lds-spinner div:after {
    content: " ";
    display: block;
    position: absolute;
    top: 1.5px;
    left: 14.5px;
    width: 2.5px;
    height: 7px;
    border-radius: 20%;
    background: #ce2f1c;
}

.lds-spinner.spinner-light div::after {
    background: #FFFFFF;
}

.lds-spinner div:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -1.1s;
}

.lds-spinner div:nth-child(2) {
    transform: rotate(30deg);
    animation-delay: -1s;
}

.lds-spinner div:nth-child(3) {
    transform: rotate(60deg);
    animation-delay: -0.9s;
}

.lds-spinner div:nth-child(4) {
    transform: rotate(90deg);
    animation-delay: -0.8s;
}

.lds-spinner div:nth-child(5) {
    transform: rotate(120deg);
    animation-delay: -0.7s;
}

.lds-spinner div:nth-child(6) {
    transform: rotate(150deg);
    animation-delay: -0.6s;
}

.lds-spinner div:nth-child(7) {
    transform: rotate(180deg);
    animation-delay: -0.5s;
}

.lds-spinner div:nth-child(8) {
    transform: rotate(210deg);
    animation-delay: -0.4s;
}

.lds-spinner div:nth-child(9) {
    transform: rotate(240deg);
    animation-delay: -0.3s;
}

.lds-spinner div:nth-child(10) {
    transform: rotate(270deg);
    animation-delay: -0.2s;
}

.lds-spinner div:nth-child(11) {
    transform: rotate(300deg);
    animation-delay: -0.1s;
}

.lds-spinner div:nth-child(12) {
    transform: rotate(330deg);
    animation-delay: 0s;
}

@keyframes lds-spinner {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}
/**** end loading spinner ****/

.group-card {
    opacity: 1;
    animation-name: fadeInOpacity;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: .50s;
}

@keyframes fadeInOpacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.group-card {
    -webkit-transition: all .25s ease; /* Safari and Chrome */
    -moz-transition: all .25s ease; /* Firefox */
    -ms-transition: all .25s ease; /* IE 9 */
    -o-transition: all .25s ease; /* Opera */
    transition: all .25s ease;
}

.group-card:hover {
    -webkit-transform: scale(1.03); /* Safari and Chrome */
    -moz-transform: scale(1.03); /* Firefox */
    -ms-transform: scale(1.03); /* IE 9 */
    -o-transform: scale(1.03); /* Opera */
    transform: scale(1.03);
}