.mhc-embedded-form button#submit-button {
    display: none;
}

.mhc-embedded-form .entry-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 1000px;
    max-width: 100%;
    margin: 20px auto 30px;
}

.mhc-embedded-form .entry-list .candle-container {
    width: 180px;
    min-width: 180px;
    max-width: 100%;
    margin: 10px;
}

.mhc-embedded-form .entry-list .candle-container .candle-image-container {
    width: 120px;
    height: 120px;
    overflow: hidden;
    margin: auto;
    border-radius: 60px;
}

.mhc-embedded-form .entry-list .candle-container .candle-image-container img.candle-image {
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mhc-embedded-form .entry-list .candle-container .candle-text-container {
    background-color: #f3f3f3;
    border: 1px solid lightgray;
    border-radius: 5px;
    height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 40px;
    margin-top: -60px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mhc-embedded-form .entry-list .candle-container .candle-text-container .candle-name {
    font-size: 25px;
    margin-top: 40px;
    font-family: serif;
    line-height: normal;
}

.mhc-embedded-form .entry-list .candle-container .candle-text-container .candle-name.candle-ad {
    margin-top: 60px;
    font-family: serif;
    line-height: normal;
}

.mhc-embedded-form .entry-list .candle-container .candle-text-container .candle-intention {
    font-size: 15px;
    padding: 5px;
    font-family: serif;
    line-height: normal;
    overflow-wrap: break-word;
}

.mhc-embedded-form .entry-list .candle-container .candle-text-container .candle-days-remaining {
    text-align: right;
    font-style: italic;
    font-size: 14px;
    margin: 5px 10px;
    padding-top: 5px;
    border-top: 1px solid gray;
    color: #6a6a6a;
    font-family: serif;
    line-height: normal;
}

.mhc-embedded-form .entry-pager {
    margin-bottom: 15px;
}

.mhc-embedded-form .entry-pager label {
    font-family: Arial;
    font-size: 20px;
    font-weight: normal;
    width: 75px;
    padding: 8px 13px 7px 10px;
    border-radius: 5px;
    background-color: #f3f3f3;
    border: 1px solid lightgray;
    position: relative;
    top: -1px;
    margin: 0 2px;
}

.mhc-embedded-form .entry-pager button[type='button']:not(#colorbox button).paging-button {
    padding: 5px 0;
    margin: 0px 2px;
    width: 25px;
    font-size: 15px;
}

.mhc-embedded-form .entry-search input#entry-search-input {
    height: 38px;
    position: relative;
    top: -1px;
    width: 300px;
}

.mhc-embedded-form .entry-search button[type='button']:not(#colorbox button).search-button {
    padding: 10px;
    width: 100px;
}

.mhc-embedded-form .candle-form-button {
    padding: 10px 25px;
    font-style: italic;
}

@media (max-width: 350px) {
    .mhc-embedded-form .entry-pager label {
        width: 20px;
    }
    .mhc-embedded-form .entry-pager label .page-label-prefix {
        display: none;
    }

    .mhc-embedded-form .entry-search input#entry-search-input {
        width: 244px;
        margin: auto;
        margin-bottom: 5px;
    }

}

body > .candle-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10;
    width: 100%;
    height: 100%;
    justify-content: center;
}

body > .candle-popup-overlay > .candle-popup {
    background: white;
    width: 800px;
    height: 600px;
    align-self: center;
    display: flex;
    flex-direction: row;
    /* justify-content: center;
    align-items: center;
    text-align: center; */
}

body > .candle-popup-overlay > .candle-popup > .candle-popup-image-container > #candle-popup-image {
    width: 400px;
    max-width: fit-content;
}

body > .candle-popup-overlay > .candle-popup > .candle-popup-text-container {
    width: 100%;
    padding: 10px;
}

body > .candle-popup-overlay > .candle-popup > .candle-popup-text-container > hr {
    margin-top: 30px;
    margin-bottom: 30px;
}

body > .candle-popup-overlay > .candle-popup > .candle-popup-text-container .candle-popup-close-container {
    display: flex;
    justify-content: right;
}

body > .candle-popup-overlay > .candle-popup > .candle-popup-text-container .candle-popup-close-container .candle-popup-close {
    cursor: pointer;
    font-size: 20px;
    font-family: serif;
    line-height: normal;
}

body > .candle-popup-overlay > .candle-popup > .candle-popup-text-container #candle-popup-name {
    font-size: 30px;
    text-align: center;
    margin: 10px auto;
    height: 50px;
    font-family: serif;
    line-height: normal;
}

body > .candle-popup-overlay > .candle-popup > .candle-popup-text-container .candle-popup-intention-container {
    display: flex;
    height: 250px;
    justify-content: center;
    padding: 0 25px;
    font-family: serif;
    line-height: normal;
}

body > .candle-popup-overlay > .candle-popup > .candle-popup-text-container #candle-popup-intention {
    align-self: center;
    text-align: center;
    font-size: 20px;
    font-style: italic;
    font-family: serif;
    line-height: normal;
}

body > .candle-popup-overlay > .candle-popup > .candle-popup-text-container #candle-popup-days-remaining {
    font-style: italic;
    text-align: center;
    height: 20px;
    color: #6a6a6a;
    font-family: serif;
    line-height: normal;
}

body > .candle-popup-overlay > .candle-popup > .candle-popup-text-container .candle-popup-link {
    display: flex;
    flex-direction: column;
    height: 170px;
    justify-content: center;
    text-align: center;
    padding: 0 0px;
    margin: 0;
    font-family: serif;
    line-height: normal;
}

body > .candle-popup-overlay > .candle-popup > .candle-popup-text-container .candle-popup-link a {
    align-self: center;
}

/* hover styles */
.mhc-embedded-form .entry-list .candle-container:has(.candle-image:hover) .candle-text-container,
.mhc-embedded-form .entry-list .candle-container:has(.candle-text-container:hover) .candle-text-container {
    background-color: white;
}
.mhc-embedded-form .entry-list .candle-container:has(.candle-image:hover) .candle-image,
.mhc-embedded-form .entry-list .candle-container:has(.candle-text-container:hover) .candle-image {
    filter: sepia(1);
}


/* mobile styles */

@media (max-width: 750px) {

    body > .candle-popup-overlay > .candle-popup {
        flex-direction: column;
        width: 400px;
        height: 800px;
    }

    body > .candle-popup-overlay > .candle-popup > .candle-popup-image-container {    
        display: flex;
        height: 400px;
        justify-content: center;
        position: relative;
        overflow: hidden;
        justify-content: center;
        align-items: center;
    }

    body > .candle-popup-overlay > .candle-popup > .candle-popup-image-container > #candle-popup-image {
        position: absolute;
    }

    body > .candle-popup-overlay > .candle-popup > .candle-popup-text-container {
        width: auto;
    }

    body > .candle-popup-overlay > .candle-popup > .candle-popup-text-container #candle-popup-name {
        margin: 10px auto;
        font-size: 28px;
        height: 35px;
    }

    body > .candle-popup-overlay > .candle-popup > .candle-popup-text-container .candle-popup-intention-container {
        height: 140px;
    }

    body > .candle-popup-overlay > .candle-popup > .candle-popup-text-container #candle-popup-intention {
        font-size: 16px;
    }

    body > .candle-popup-overlay > .candle-popup > .candle-popup-text-container #candle-popup-days-remaining {
        font-size: 14px;
    }

    body > .candle-popup-overlay > .candle-popup > .candle-popup-text-container .candle-popup-link {
        font-size: 14px;
        height: 140px;
    }

}