* {
    font-family: 'Sukhumvit Set', 'Thai Sans Neue', 'Kanit', sans-serif;
}

body.fixed-nav {
    display: grid;
    grid-template-rows: var(--nav-height) auto;
}

/* NAV */
nav {
    z-index: 990;
}

nav .wrap {
    margin: 0 1em;
}

nav .logoLink {
    margin-left: 1em;
}

nav .logo {
    height: 40px;
    margin-right: 0.5em;
    margin: 0.75em;
}

nav .churchTitle {
    font-weight: bold;
    font-size: 1.5em;
    color: var(--pri-color);
    transform: translateY(3px);
}

nav img.logo,
nav img.logo-mobile {
    height: calc(var(--nav-height) - 20px);
    margin: 10px 0;
}

nav img.logo {
    display: block;
}

nav img.logo-mobile {
    display: none;
}

@media only screen and (max-width: 994px) {
    nav .logoLink {
        margin-left: 0em;
    }
}

@media only screen and (max-width: 601px) {
    /* nav img.logo { display: none; } */
    /* nav img.logo-mobile { display: block; } */
}

/* The dropdown container */
.nav-dropdown {
    float: left;
    overflow: hidden;
    /* cursor: pointer; */
}

/* Dropdown button */
.nav-dropdown .dropbtn {
    color: var(--accent-color);
    font-size: 16px;
    border: none;
    outline: none;
    padding: 14px 12px;
    background-color: inherit;
    font-family: inherit;
    /* Important for vertical align on mobile phones */
    margin: 0;
    /* Important for vertical align on mobile phones */
}

/* Add a red background color to navbar links on hover */
.nav-dropdown a:hover,
.nav-dropdown:hover .dropbtn {
    background-color: var(--dark-10);
}

/* Dropdown content (hidden by default) */
.nav-dropdown-content {
    display: none;
    position: absolute;
    background: var(--card-bg);
    color: var(--dark-text);
    /* margin-top: 50px;  */
    min-width: 160px;
    box-shadow: 0px 2px 4px 0px var(--dark-30);
    z-index: 1;
}

/* Links inside the dropdown */
.nav-dropdown-content a {
    float: none;
    /* color: rgba(255,255,255,0.8); */
    height: auto;
    /* background-color: rgba(0,0,0,0.1); */
    padding: 1em;
    text-decoration: none;
    display: block;
    text-align: left;
    cursor: pointer;
    line-height: 1.5;
}

/* Add a grey background color to dropdown links on hover */
.nav-dropdown-content a:hover {
    background-color: var(--dark-10);
    color: var(--accent-color);
}

/* Show the dropdown menu on hover */
/* .nav-dropdown:hover .nav-dropdown-content .nav-dropdown-content { display: block; } */
.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

/* End NAV */

/* main */

main {
    margin: 0;
    padding: 0;
    position: fixed;
    width: 100%;
    height: calc(100% - var(--nav-height));
    overflow: scroll;
}

main .scroll {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
}

.badge {
    font-weight: bold;
    display: inline-block;
    font-size: 0.65em;
    color: white;
    width: auto;
    padding: 0 0.5em;
    line-height: 1.75;
    border-radius: 0.35em;
    margin-bottom: 0.35em;
    background: #00A1EB;
    margin-right: 0.5em;
}

.floatBtnBox {
    position: fixed;
    bottom: 1em;
    right: 1em;
}

#memberRecheck {
    width: 100px;
    border: 1px solid var(--gray);
    background: var(--success-color-lite);
    margin: 1em auto;
}

#memberCheckBg {
    height: 5px;
    background-color: var(--success-color);
    width: 0%;
}

.nodata {
    padding: 2em;
    font-weight: bold;
    color: var(--gray);
    width: max-content;
}

.nodata.inline {
    display: grid;
    grid-template-columns: auto auto;
}

.nodata.inline div {
    width: max-content;
}


.page-fixed-bar-toolsbar {
    /* width: calc(100% - var(--sidenav-width)); */
    width: 100%;
    position: fixed;
    padding-top: 0.5em;
    /* border-bottom: 1px solid var(--gray-lite) ; */
    z-index: 10;
}

.page-fixed-bar-toolsbar .bar {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-lite);
}

.page-fixed-bar-toolsbar .wrap {
    margin: 0 2em;
}

.page-fixed-bar .pageBody {
    margin-top: calc(var(--nav-height) + 3em);
}

/* Home */

.homeSectionTitle {
    color:var(--gray); font-size:1.25em; display:block; font-weight: bold;
}

#churchhome {
    margin: 1em auto;
    max-width: 600px;
}

.homeServiceCard {
    width:100%; cursor:pointer; 
}
/* .homeServiceCard .hover {} */
.homeServiceCard .icon {
    color:#ffffff; width:100%; border-radius:50%; aspect-ratio: 1 / 1;
}
.homeServiceCard .icon i {
    font-size: 7vh;
}
.homeServiceCard .title {
    font-size:1.15em; padding:0.5em 0;
}

.homeCard {
    border-radius: 1em;
    color: white;
    margin: 1em;
    text-align: left;
    background-color: var(--hl-color);
    cursor: pointer;
}

.homeCard .wrap {
    background: var(--card-bg);
    padding: 1em 1.5em;
    border-radius: 1em;
    text-shadow: 0px 0px 2px var(--dark-5);
}

.homeCard .wrap:hover {
    background: var(--card-bg-hover);
    text-shadow: 0px 0px 4px var(--dark-5);
}

.homeCard:hover {
    box-shadow: var(--shadow-lite-3);
}

.homeCard .title {
    font-size: 1.75em;
    font-weight: bold;
}

.homeCard .tag {
    font-size: 1em;
}

.homeCard i {
    font-size: 4em;
    margin: 0.25em 0;
}

/* GIVE */

#giveFloaBtn {
    position: fixed;
    background-color: var(--pri-color);
    bottom: 1em;
    right: 1em;
}


.giveBody {
    padding: 100px 0 0 0;
}

#giveList {
    margin: 1em 1em 2em 1em;
    /* min-height:20px; */
}

@media screen and (max-width: 415px) {
    .giveBody {
        padding: 180px 0 0 0;
    }
}





/* FEED */

#feedList {
    max-width: 600px;
    margin: 1em auto;
    ;
}

#feedList li {
    background: var(--card-bg);
    margin: 1em;
    text-align: left;
    box-shadow: var(--shadow-lite-1);
    border-radius: 0.5em;
    overflow: hidden;
}

#feedList li:hover {
    box-shadow: var(--shadow-lite-3);
}

#feedList li .img {
    background: var(--dark-40);
    padding-top: 56%;
    background-position: center center;
    background-size: cover;
}

#feedList li .profile-img {
    width: 35px;
    height: 35px;
    box-shadow: var(--shadow-lite-1);
}

#feedList li .profile-text {
    margin: 1em;
}

/* #feedList li  */
#feedList li .feed-btn, #feedList li .feed-btn button {
    background: var(--card-bg);
    width: 100%;
    padding: 0.5em;
    text-align: center;
}

.feedListCard {
    line-height: 1.5;
}

.feedListCard .text {
    margin: 1em;
    display: none;
}

.feedListCard .text.less {
    overflow: hidden;
}

.feedListCard .text.more {
    height: auto;
}

.feedListCard .showBtn {
    margin: 1em;
    display: none;
    cursor: pointer;
}

.feedListCard .showBtn:hover {
    text-decoration: underline;
}

.feed-imgBox {
    border-top: 1px solid var(--dark-10);
    border-bottom: 1px solid var(--dark-10);
    overflow: hidden;
    background: var(--card-bg);
}

.feed-img {
    width: 100%;
}

#feedList .imgPost .feed-img {
    /* aspect-ratio: 4/3; */
    background-size: contain;
}

#feedList .linkPost .feed-img {
    /* aspect-ratio: 16/9;  */
    background-size: contain;
    background-repeat: no-repeat;
}


/* FEED VOTE */

/* #feedVoteBox {} */
/* #feedVoteBox ul {} */

#feedVoteBox ul li {
    padding: 0.5em;
    margin: 0.25em 0.5em;
    font-size: 1.25em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 10px;
    border: 1px var(--accent-color) solid;
}

/* #feedVoteBox ul li:hover {} */
/* .feedVoteSelect {} */

.feedVoteSelect.selected {
    background-color: var(--pri-color);
    color: white;
}


/* EVENT */

#eventFloatBtn {
    background-color: var(--pri-color); 
    display: none;
}

#eventList {
    max-width: 600px;
    margin: 1em auto;
}

#eventList li {
    background: var(--card-bg);
    margin: 1em 0;
    text-align: left;
    box-shadow: var(--shadow-lite-1);
    border-radius: 0.5em;
    overflow: hidden;
}

#eventList li:hover {
    box-shadow: var(--shadow-lite-3);
}

#eventList li .img {
    background: var(--dark-40);
    padding-top: 56%;
    background-position: center center;
    background-size: cover;
}

#eventList li .info {
    padding: 1em;
    display: block;
    height: auto;
}

#eventList li .info .material-icons {
    font-size: 2em;
    color: var(--pri-color);
}

#eventList li .info .title {
    font-size: 1.25em;
    margin: 0em;
    text-align: left;
    font-weight: bold;
    color: var(--pri-color);
}

#eventList li .info .date {
    font-size: 1em;
}

#eventList li .info .desc {
    font-size: 1em;
    padding: 1em 0.5em 0 0.5em;
}

#eventView {
    max-width: 600px;
    margin: 1em auto;
    background: var(--card-bg);
    border-radius: 0.5em;
    box-shadow: var(--shadow-lite-1);
    overflow: hidden;
}

#eventView #eventEmbed {
    border-radius: 0.5em;
    overflow: hidden;
}

#eventView .img {
    padding-top: 56%;
    background-position: center center;
    background-size: cover;
}

#eventView .livestatus {
    padding: 0.75em 1em;
    color: var(--white);
    font-size: 1.25em;
    text-align: center;
    font-weight: bold;
    text-shadow: var(--shadow-lite-3);
}

#eventView .info {
    border-bottom: 1px solid var(--gray-lite);
    padding: 1em;
    display: block;
    height: auto;
    text-align: left;
}

#eventView .info .icon {
    padding: 0.75em 0;
    color: var(--hl-color);
}

#eventView .info .title {
    font-size: 1.25em;
    margin: 0em;
    text-align: left;
    font-weight: bold;
    color: var(--hl-color);
}

#eventView .info .date {
    font-size: 1em;
}

#eventView .info .evstatus {
    padding: 0.75em 0;
    font-weight: bold;
}

#eventView .info .desc {
    padding: 0.75em 0;
    text-align: left;
    font-weight: bold;
}

#eventView .link {
    border-bottom: 1px solid var(--gray-lite);
}

#eventView .link button {
    font-size: 1em;
    width: 75%;
    margin: 1em;
}

#eventView .checkin {
    border-bottom: 1px solid var(--gray-lite);
}

#eventView .checkin label {
    margin: 1em 0;
}

#eventView .checkin button {
    font-size: 1em;
    width: 80%;
    margin: 0.5em;
}

#eventView .detail {
    text-align: left;
}

#eventView #eventEmbed {
    background: black;
}

#eventView #eventEmbed .player {
    background: black;
}


#eventView #eventGiveBox {
    border-bottom: 1px solid var(--gray-lite);
    display: block;
    height: auto;
}

#eventView #eventGiveBox button {
    font-size: 1em;
    width: 75%;
    margin: 1em;
}

#giveModal iframe {
    border: none;
    width: 100%;
    height: 100%;
}


.eventJobCard {
    box-shadow: var(--shadow-lite-2);
    margin-bottom: 0.5em;
    padding: 0.5em 1em;
}

.eventJobCard .desc {
    padding: 1em 0;
}

@media screen and (max-width: 415px) {
    #eventList li .info .material-icons {
        font-size: 1.5em;
    }
}

.eventCheckList {
    display: grid;
    grid-template-columns: 100%;
}

.eventCheckList li {
    width: 100%;
    height: auto;

    display: grid;
    grid-template-columns: auto 145px;
}

/* MEDIA ---------------------------------------- */

.mediaCard {
    margin: 0.25em 0;
    background: var(--card-bg);
    cursor: pointer;
    box-shadow: var(--shadow-lite);
    width: auto;
    display: grid;
}

.mediaCard.school {
    grid-template-columns: 170px auto 50px;
}

.mediaCard.video {
    grid-template-columns: auto;
    grid-template-rows: auto 80px;
}

.mediaCard.sound,
.mediaCard.pdf {
    grid-template-columns: 120px auto 50px;
}

.mediaCard .preview {
    width: 100%;
    padding: 0.5em;
}

.mediaCard .preview .img {
    background-size: cover;
    display: block;
    width: 100%;
    background-position: center;
}

.mediaCard.school .preview .mediaImg,
.mediaCard.video .preview .mediaImg {
    padding-top: 56%;
}

.mediaCard.sound .preview .mediaImg,
.mediaCard.pdf .preview .mediaImg {
    padding-top: 100%;
}

.mediaCard .preview .mediaImg {
    background-size: cover;
    display: block;
    width: 100%;
    padding-top: 100%;
    background-position: center;
}

.mediaCard .icon {
    min-width: 40px;
    margin: 10px 10px 5px 10px;
    text-align: center;
    font-size: 40px;
    color: var(--accent-color);
}

.mediaCard .content {
    padding: 0.5em;
}

.mediaCard .content .title {
    font-size: 1.25em;
    font-weight: bold;
    color: var(--hl-color);
}

.mediaCard .content .capiton {
    font-size: 0.85em;
    color: var(--gray-dark);
}

.mediaCard .pdfViewBtn a:link {
    color: var(--hl-color);
}

.mediaCard .pdfViewBtn a:hover {
    text-decoration: underline;
}

.mediaCard .pdfViewBtn a:visited {
    color: var(--hl-color);
}


/* TEAM ---------------------------------------- */

.teamCard {
    margin: 0.25em 0;
    background-color: var(--hl-color);
    cursor: pointer;
    box-shadow: var(--shadow-lite);
    width: auto;
    display: grid;
    grid-template-columns: auto 33px;
    margin: 1em 0;
    text-align: left;
    background: var(--hl-color);
    color: var(--white);
}

.teamCard a:link {
    color: var(--white);
}

.teamCard:hover {
    box-shadow: var(--shadow-lite-3);
}

.teamCard .content {
    padding: 1em;
}

.teamCard.selected {
    background: var(--hl-dark);
}

.teamCard label {
    margin: 0.5em;
    color: var(--gray-lite);
}

.teamCard .title {
    margin: 0.5em;
    font-weight: bold;
    color: var(--white);
    font-size: 1.25em;
}

.teamCard .teamCard-dd-trigger {
    padding-left: 0.5em;
    padding-right: 0.5em;
}

.teamCard.group {
    background: var(--hl-color);
    color: var(--white);
}

.teamCard.group i {
    color: var(--lite-50);
}



#teamList,
#jobList {
    margin: 0 auto;
    max-width: 600px;
    padding: 1em;
    display: block;
}

.teamView {
    display: block;
    background: var(--card-bg);
    box-shadow: var(--shadow-lite-1);
    margin: 1em auto;
    width: 100%;
}

.teamEventListCard {
    display: block;
    background: var(--card-bg);
    border-top: 1px solid var(--dark-10);
    display: grid;
    grid-template-columns: 300px auto;
    grid-template-rows: auto;
}

.teamEventListCard .img {
    padding: 0.5em;
}

.teamEventListCard .img .imgCover {
    width: 100%;
    padding-top: 56%;
}

.teamEventListCard .content {
    margin: 0.5em;
    text-align: left;
}

@media only screen and (max-width: 1200px) {
    .teamEventListCard {
        grid-template-columns: 250px auto;
    }
}

@media only screen and (max-width: 800px) {
    .teamEventListCard {
        grid-template-columns: 200px auto;
    }
}

@media only screen and (max-width: 600px) {

    .teamEventListCard {
        grid-template-columns: auto;
        grid-template-rows: auto auto;
    }

    .teamEventListCard .content {
        margin: 0.5em 1em;
    }

}

/* TEAM JOB ---------------------------------------- */


/* ONE --------------*/

#oneFloatBtn {
    background-color: var(--pri-color);
    display: none;
}

#one {
    max-width: 600px;
    margin: 1em auto;
}

#one .head {
    font-size: 2em;
    text-align: left;
    font-weight: bold;
    color: var(--accent-color);
    padding: 0 1em;
}

#oneList {
    max-width: 600px;
    margin: 1em auto;
}

#oneList li {
    background: var(--card-bg);
    margin: 1em 0;
    text-align: left;
    box-shadow: var(--shadow-lite-1);
    border-radius: 0.5em;
    overflow: hidden;
}

#oneList li:hover {
    box-shadow: var(--shadow-lite-3);
}

#oneList li.weekCard {
    font-weight: bold;
    color: var(--accent-color);
}

#oneList li.weekCard span {
    padding: 0.5em 1em;
    display: block;
}

/* UI ---------------------------------------- */

.modalLoading {
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: var();
    color: var(--gray-lite);
    z-index: 100;
}

footer {
    text-align: center;
}

ul.tabs {
    margin: 0;
}

a {
    text-decoration: none;
}

a:link {
    color: var(--card-link);
}

a:hover {
    color: var(--card-link-hover);
}

a:visited {
    color: var(--card-link);
}

a:link.btn {
    color: var(--white);
}

.btn:hover {
    background: var(--card-link-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
    line-height: 1.5
}

h1 big {
    font-size: 150%;
    line-height: 0;
    text-transform: none;
}

h1 small,
h2 small,
h3 small,
h4 small,
h5 small,
h6 small {
    font-size: 60%;
    line-height: 0;
    text-transform: none;
}

h1 {
    font-weight: 200;
    font-size: 44px;
}

h2 {
    font-weight: 200;
    font-size: 37px;
}

h3 {
    font-weight: 500;
    font-size: 27px;
}

h4 {
    font-weight: 500;
    font-size: 23px;
}

h5 {
    font-weight: 900;
    font-size: 17px;
}

h6 {
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
}

.success,
.warning,
.alert {
    color: var(--white);
    padding: 1em;
}

.success {
    background: var(--success-color);
}

.warning {
    background: var(--warning-color);
}

.alert {
    background: var(--alert-color);
}

.successLite,
.warningLite,
.alertLite {
    color: var(--black);
    padding: 1em;
}

.successLite {
    background: var(--success-color-lite);
}

.warningLite {
    background: var(--warning-color-lite);
}

.alertLite {
    background: var(--alert-color-lite);
}

.flexcenter {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    align-content: stretch;
}

.flexBetween {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: top;
    align-content: center;
}

.flexBetweenCenter {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;
}

.flexLeftCenter,
.leftBox {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    align-content: stretch;
}

.flexRightCenter,
.rightBox {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    align-content: stretch;
}

.flexLeft {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    align-content: stretch;
}

.flexRight {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: stretch;
    align-content: stretch;
}

.displaynone {
    display: none;
}

.flex {
    display: flex;
}