* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



html,
body {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

main {
    margin: 40px 0px;
    flex-grow: 1;
}

.tablebodytext {
    display: none;
}

.container {
    padding: 0 !important;
}

.row {
    margin: 0 !important;
}

body {
    color: #000000 !important;
    background-color: #FFF;
    font-family: "Montserrat";

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

footer {
    background-color:rgba(0, 0, 0, 0.8);
    padding: 25px;
    display: flex;
    justify-content: center;
    box-shadow: 0 0 47px 4px rgba(44, 30, 27, 0.16);

    flex-shrink: 0;
}

footer p {
    margin-bottom: 0 !important;
    color: #FFF !important;
}

.header-main {
    height: 50vh;
    width: 100%;
    background-image: url("img/background.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    display: flex;
    justify-content: center;
}

.header-main-content {
    height: 100%;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}



.header-block {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 25px;
}

.header-block p {
    margin-bottom: 0 !important;
}

.header-main-content p {
    margin-bottom: 0 !important;
    color: #FFF !important;
    font-size: 30px;
    text-shadow: 3px 3px #000000;
    text-transform: uppercase;
}

.header-heading {
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 3px 3px #000000;
    margin: 0 !important;
    font-size: 72px;
    text-align: center;
}

.header-heading a {
    text-decoration: none !important;
    color: #FFF !important;
}

div.modern-page-navigation {
    padding: 20px !important;
}


.nav-link {
    color: #FFF !important;
    display: flex;
    align-items: center;
}

.navbar-collapse {
    justify-content: center;
}

.navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding: 10px 0px !important;
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 47px 4px rgba(44, 30, 27, 0.16);
}

.dropdown-menu a {
    color: #000 !important;
    text-decoration: none !important;
    width: 100%;
  display: block;
}

.dropdown-menu {
    padding: 0 !important;
    width: max-content;
}

.dropdown-item {
    padding: 0 !important;
    transition: 0.2s;
    white-space: normal !important;
}

.dropdown-item a {
    padding: 10px !important;
}

.dropdown-menu .dropdown-item:hover {
    background: rgba(0, 0, 0, 0.15);
    transition: 0.2s;
}

.main-block {
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.main-block-search {
    border-radius: 5px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;

}

.main-block-location {
    display: flex;
    border-radius: 5px;

}

.main-block-search h2 {
    margin-bottom: 20px;
}

.main-block-search-block {
    display: flex;
    justify-content: center;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

.main-block-search-element {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.main-block-search-element p {
    margin-bottom: 0 !important;
    font-size: 18px;
}

.main-block-search input {
    border: 1px solid #ced4da;
    border-radius: 5px;
    width: 100%;
    height: 40px;
    padding: 10px;
    outline: none !important;
}

.find-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    font-size: 18px;
    background-color: transparent;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    cursor: pointer;
    text-decoration: none !important;
    color: unset !important;
    transition: 0.3s;
}

.find-button:hover {
    background-color: #eeeeee;
    transition: 0.3s;
}

.find-button img {
    max-height: 20px;
}

.find-button p {
    margin-bottom: 0 !important;
}

.search-find .main-block-search-element {
    align-items: end;
    justify-content: end;
}

.search-buttons button, .search-buttons a {
    width: 100% !important;
}


.main-block-burials p {
    margin-bottom: 0 !important;
    font-size: 18px;
    text-align: center;
}

.main-block-burials-element-wrapper {
    padding: 20px !important;
    height: 200px;
    height: auto;
}

.main-block-burials-element {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 20px;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

h2 {
    margin-bottom: 10px !important;
    text-align: center;
}

.main-block-burials-element img {
    max-height: 250px;
    width: 100%;
    object-fit: cover;
}

.main-block-burials-element p {
    margin-bottom: 0 !important;
    font-size: 20px;
    text-align: center;
    height: 60px !important;
}

.burials-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 5px;
}

.burials-nav a {
    padding: 5px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    font-size: 18px;
}

.burials-nav p {
    margin-bottom: 0 !important;
    padding: 5px;
}

.detail-img {
    display: flex;
    justify-content: center;
}

.detail-img img {
    max-height: 600px;
}

.detail-desc {
    padding-left: 30px !important;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
}


.detail-block p {
    margin-bottom: 0 !important;
    font-size: 20px;
    font-weight: 300;
}

.detail-name {
    font-size: 30px !important;
    font-weight: 700;
    margin-bottom: 30px !important;
}

.detail-desc-item {
    padding: 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.admin-main {
    display: flex;
    flex-direction: column;
}

.admin-bio-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-bio-element {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(0, 0, 0, 0.075);
    padding: 10px;
}

.red-text {
    color: red;
}

.about-loading {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-bio-element p {
    margin-bottom: 0 !important;
}

.admin-buttons-info {
    padding-top: 10px;
}

.admin-buttons-info:not(:first-child) {
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.admin-block {
    gap: 20px;
    display: flex;
    padding: 0px 50px 50px 50px;
}

.admin-block:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.bio-necr {
    flex-direction: column;
}


.admin-block-element {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px;
    font-size: 18px;
}

.admin-block p {
    margin-bottom: 0 !important;
}

.admin-block-suc {
    color: rgb(0, 120, 0);
    font-weight: 500;
}

.admin-block-err {
    color: rgb(120, 0, 0);
    font-weight: 500;
}

.admin-button {
    border: 0 !important;
    padding: 10px;
}

.small-text {
    font-size: 12px;
    font-weight: 500;
}

.main-block-search-element input {
    transition: 0.4s;
}

.main-block-search-element input:hover, .main-block-search-element input:focus {
    -webkit-box-shadow: 6px 6px 10px 0px rgba(34, 60, 80, 0.15);
    -moz-box-shadow: 6px 6px 10px 0px rgba(34, 60, 80, 0.15);
    box-shadow: 6px 6px 10px 0px rgba(34, 60, 80, 0.15);

    transition: 0.4s;
}

.page-cont {
    box-shadow: 0 0 47px 4px rgba(44, 30, 27, 0.16);
    padding: 25px !important;
}

.org-element {
    width: 100%;
    display: flex;
    flex-direction: row;
    margin: 0 !important;
    padding: 30px !important;
}

.org-element:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.dropdown-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.org-element-text {
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
}

.org-element-img {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.org-element-img img {
    max-height: 250px;
}

.org-heading {
    margin: 25px 0px 0px 0px !important;
    padding: 0px 27px !important;
    width: 100%;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
}

.element-date-add {
    margin: 0px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 15px;

}

.element-date-add:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    padding-bottom: 10px;
}

.org-element p {
    margin-bottom: 10px !important;
}

.not-found {
    padding: 25px;
    margin-bottom: 0 !important;
    width: 100%;
    text-align: center;
}

.cem-row img {
    max-height: 200px !important;
}

.cem-row .org-element, .cem-row .org-element-text, .cem-row .org-element-img {
    padding: 15px !important;
}

.cem-row .find-button {
    bottom: 0;
    position: absolute;
    right: 0;
}

.bx-breadcrumb {
    display: flex;
}

.bx-breadcrumb-item {
    padding: 3px;
    font-weight: 500 !important;
}

.bx-breadcrumb {
    text-decoration: none;
    color: #000 !important;
    transition: 0.2s;
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
    cursor: default !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.mfeedback input, .mfeedback textarea {
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    margin: 5px 0px 10px 0px;
    border-radius: 5px;
    outline: none;
}

.mf-name, .mf-email {
    width: 100% !important;
    max-width: 500px;
    margin: 5px 0px;
}

.mf-message {
    width: 100% !important;
    margin: 5px 0px;
}

.mf-text {
    margin: 5px 0px;
}

.mf-name input, .mf-email input {
    width: 100% !important;
}

.mf-message textarea {
    width: 100% !important;
}

.mf-req {
    color: red;
}

.mfeedback image {
    margin: 5px 0px;
}

h5, h4, h3 {
    width: 100%;
    text-align: center;
    margin: 30px 0px;
}

.document-element {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    transition: 0.2s;
}

.document-element:not(:first-child) {
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.document-element a {
    font-size: 20px;
    text-decoration: none;
    color: #000 !important;
    transition: 0.2s;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.document-element a:hover {
    color: rgba(0, 0, 0, 0.50) !important;
}

.document-element:hover {
    transition: 0.2s;
    background: rgba(0, 0, 0, 0.075);
}

.document-element-img {
    display: flex;
    justify-content: center;
    width: 45px;
}

.document-element img {
    max-width: 40px !important;
    max-height: 35px;
    object-fit: cover;
}

.document-elements-block {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

.navbar-toggler {
    background: white;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.fa-align-justify::before {
    content: none !important;
}

.detail-memory-book {
    padding-top: 30px;
}

.detail-memory-book h5 {
    background: rgba(0, 0, 0, 0.075);
    padding: 10px;
}

.detail-memory-book-bio-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0px;
}

.detail-memory-book-bio p, .detail-memory-book-necrolog p {
    margin-bottom: 0 !important;
}

.detail-memory-book-bio-element:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    padding: 0px 0px 20px 0px;
}

.detail-memory-book-bio-element {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-memory-book-info-text {
    font-size: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    padding-bottom: 20px;
    font-style: italic;
}

.detail-memory-book-button {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.add-page-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.add-page-block {
    font-size: 18px;
}

.add-page-err {
    color: red;
}

.add-page-suc {
    color: green;
}

.memory-book-form {
    width: 100%;

    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: start;
    padding: 30px 0px;
    display: flex;
}

.memory-book-form textarea {
    width: 100%;
    height: 150px;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    outline: none !important;
}

.memory-book-form input {
    border: 1px solid rgba(0, 0, 0, 0.15);
    outline: none !important;
    padding: 5px;
    min-width: 500px;
    max-width: 700px;
}

.memory-book-form p {
    margin-bottom: 0 !important;
}

.bio-page-block {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
}

.bio-page-block-element-heading-fio {
    font-weight: 700;
    font-size: 16px;
    width: 100%;
    text-align: center;
}

.bio-page-block p {
    margin-bottom: 0 !important;
}

.bio-page-block-element {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.bio-page-block-element-info {
    padding: 15px;
}

.bio-page-block-element-heading {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.075);
}

.bio-page-block-element-heading-info {
    display: flex;
    justify-content: space-between;
}

.bio-page-block-element-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bio-page-block-element-info a {
    text-align: center;
}

.search-input {
    border: 1px solid rgba(0, 0, 0, 0.15);
    outline: none !important;
    padding: 5px;
    width: 100%;
}

.search-form {
    display: flex;
    gap: 20px;
    padding: 20px 0px;
    justify-content: space-between;
}

.search-element {
    padding: 10px 0px;
    width: fit-content;
    text-decoration: none;
}

.search-element:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.search-results {
    display: flex;
    flex-direction: column;
}

.alphavite-block {
    display: flex;
    gap: 7px;
    padding: 25px 0px;
    justify-content: center;
    margin: 20px 0px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    flex-wrap: wrap;
}

.alphavite-block a {
    text-decoration: none;
}


@media (max-width: 1366px) { 
    .header-heading {
        font-size: 56px;
    }

    .header-main-content p {
        font-size: 26px;
    }

    .main-block-search-element p, .find-button {
        font-size: 16px;
    }

    .main-block-burials-element p, .detail-block p {
        font-size: 18px;
    }

    .detail-name {
        font-size: 26px;
        margin-bottom: 20px !important;
    }

    
}

@media (max-width: 768px) { 
    .bx-breadcrumb {
        display: flex;
        flex-direction: column;
        margin-bottom: 10px !important;
    }
    
    .dropdown-menu {
        width: fit-content;
    }

    .alphavite-block {
        padding: 10px 0px;
    }

    .navbar {
        display: flex;
        justify-content: center;
    }

    .navbar-nav {
        padding: 10px !important;
    }

    .main-block-search-block {
        width: 50% !important;
    }

    .main-block-burials-element-wrapper {
        width: 100% !important;
    }

    .header-heading {
        font-size: 36px;
        text-shadow: 2px 2px #000;
    }

    .header-main-content p {
        font-size: 22px;
        text-shadow: 2px 2px #000;
    }

    .search-find {
        width: 100% !important;
    }

    .search-form {
        flex-direction: column;
    }
    
    .search-form input {
        max-width: 100% !important;
    }

    .document-element a {
        font-size: 18px !important;
    }

    .document-element img {
        max-width: 35px !important;
        max-height: 30px;
    }

    .search-buttons {
        justify-content: center !important;
        align-items: center !important;
    }

    .header-main {
        height: 30vh;
    }

    .main-block-search {
        padding: 10px !important;
    }

    .main-block-burials-element-wrapper {
        padding: 10px !important;
    }

    .main-block-burials-element img {
        max-height: 200px !important;
    }

    .main-block-burials-element {
        gap: 15px !important;
    }

    .main-block-burials-element p {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .find-button {
        width: 100%;
        padding: 5px !important;
    }

    .find-button img {
        display: none !important;
    }

    .main-block-search-element {
        gap: 5px !important;
    }

    .search-find .main-block-search-element {
        gap: 15px !important;
    }

    .detail-block .row {
        flex-direction: column;
    }

    .detail-block {
        padding: 15px !important;
    }

    .detail-img, .detail-desc {
        width: 100%;
        padding: 10px !important;
    }

    .find-button {
        max-width: 250px !important;
    }

    .main-block {
        align-items: center;
        gap: 15px !important;
    };

    .admin-block {
        flex-direction: column;
        padding: 0 !important;
    }
}