@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
:root {
    --MAIN-COLOR-ONE: #b8e0d2;
    --MAIN-COLOR-TWO: #d2e8dc;
    --MAIN-COLOR-TREE: #95b8d1;
    --MAIN-COLOR-FORE: #e6faef;
    --MAIN-COLOR-COLOR-ONE: #ffcfd2;
    --MAIN-COLOR-COLOR-TWO: #cfbaf0;

    --TEXT-ONE: #06184e;
    --TEXT-TWO: #233a80;
    --WHITE-ONE: #ebebeb;
    --WHITE-TWO: #f5f5f5;
    --WHITE-TREE: #dfdede;
    --BUTTON-SIZE: 30px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat",sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    color: var(--TEXT-ONE);
}
/* main */
main {
    max-width: 1200px;
    background-color: var(--WHITE-ONE);
    margin: auto;
    overflow: hidden;
}
body {
    background-color: var(--WHITE-ONE);
}
/* styling hero */
.hero {
    min-height: calc(100vh - 50px);
    width: 100%;
    position: relative;
}
.hero h1 {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%,-50%);
    pointer-events: none;
    font-family: "Bebas Neue", sans-serif;
    font-weight: 800;
    font-size: 3rem;
    font-style: normal;
    letter-spacing: 0.4rem;
    line-height: 4.5rem;
    color: var(--TEXT-ONE);
}


/* header */
.header-position {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--WHITE-TWO);
    z-index: 1000; 
}
.header {
    width: 100%;
    padding: 1rem;
    height: 50px;
    background-color: var(--WHITE-TWO);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.header nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
.header nav ul li a {
    text-decoration: none;
    color: var(--TEXT-ONE);
}
.header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--WHITE-TWO);
    padding-bottom: 1rem;
    z-index: 1;
    
}
.header .login-button {
    margin-left: 1rem;
}
.hamburger-menu:checked ~ nav {
    display: block;
}
.hamburger-menu {
    width: 0;
    height: 0;
    opacity: 0;
}
.hamburger-menu-label {
    width: var(--BUTTON-SIZE);
    height: var(--BUTTON-SIZE);
    background-image: url('/svg/bars-solid-full.svg');
    background-position: center;
    background-size: contain;
}
.logout-button,.login-button {
    background-color: var(--TEXT-TWO);
    text-decoration: none;
    color: var(--WHITE-TWO);
    padding: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border: none;
    outline: none;
    border-radius: 15px;
}


/* style text section 3 */
#text-section-1 {
    min-height: 60vh;
    display: grid;
    place-items: center;
}

.text-container-3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
    gap: 2rem;
    text-align: center;
}
.text-container-3 h2 {
    line-height: 22px;
    letter-spacing: 0.7%;
}
.text-container-3 > * {
    flex: 1;
}


/* style text section 1 */
.text-container-1 {
    text-align: center;
    padding: 5rem 1rem 2rem 1rem;
}
.text-container-1 h2 {
    font-size: 4rem;
    line-height: 3.5rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}


/* styling flip cards */
#resent-prayer-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.card-holder {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    flex-direction: column;
}
.flip-card {
    flex: 1 1 200px;
    box-shadow: var(--TEXT-ONE) 5px 1px 1px 1px;
    border-radius: 15px;
    padding: 1rem;
    min-height: 25vh;
    position: relative;
    background-color: var(--WHITE-TWO);
}
.flip-card h3 {
    margin-bottom: 1rem;
}
.hide-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85%;
    background-color: var(--WHITE-TWO);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    padding-bottom: 1rem;
    background: linear-gradient(to top,var(--WHITE-TWO) 60%, transparent 75% );
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
}
.read-more-button {
    background-color: var(--TEXT-ONE);
    padding: 1rem;
    border-radius: 15px;
    color: var(--WHITE-TWO);
    text-decoration: none;
}


/* styling the text section 2 */
.text-container-2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
    padding: 1rem;
}
.text-container-2-article:nth-child(1) {
    height: auto;
    background-color: var(--MAIN-COLOR-COLOR-ONE);
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}
.text-container-2-article:nth-child(2) {
    background-color: var(--MAIN-COLOR-COLOR-TWO);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    height: auto;
}
.text-container-2-article {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;

}
.text-container-2-article h3 {
    margin-bottom: 1rem;
}


/* login page */
.form-container {
    width: 100%;
    height: calc(100vh - 50px);
    display: grid;
    place-items: center;
}
.form-container form {
    border: solid red 2px;
    padding: 3rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 90%;
    max-width: 800px;
}
.form-field {
    display: flex;
    flex-direction: column;
}
.form-field input {
    padding: 1rem;
    width: 100%;
}
.password-field {
    position: relative;
}
#password-toggle {
    position: absolute;
    right: 5px;
    top: calc(50% - 7px);
    height: 14px;
    width: 14px;
}

/* prayer library */

.search-results {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 50px);
    background-color: var(--WHITE-TREE);
    padding: 1rem;
    gap: 1rem;
    max-width: 800px;
    margin: auto;
    border-radius: 10px;
}
.search-outer-container {
    padding: 1rem;
}
/* prayer search bar */
.search-container {
    display: flex; 
    justify-content: center;
    border: solid var(--TEXT-TWO) 2px;
    border-radius: 35px;
    width: 80%;
    height: 40px;
    margin: auto;
    align-items: center;
    background-color: var(--WHITE-TWO);
    max-width: 500px;
}
.search-input {
    width: 100%;
    border-top-left-radius: 35px;
    border-bottom-left-radius: 35px;
    height: 100%;
    padding: 1rem;
    background-color: var(--WHITE-TWO);
    outline: none;
    border: none;
}
.order-checkbox {
    display: block;
    height: var(--BUTTON-SIZE);
    width: 50px;
    background-color: transparent;
    background-image: url('/svg/arrow-down-wide-short-solid-full.svg');
    background-position: center;
    background-size: contain;
}

#orderCheckbox {
    width: 0;
    height: 0;
    opacity: 0;
}
.search-search {
    width: 40%;
    height: 40px;
    border-radius: 18px;
    background-color: var(--TEXT-TWO);
    color: var(--WHITE-TWO);
    outline: none;
    border: none;

}


.select-field {
    appearance: none;
    padding: 0.5rem 2rem 0.5rem 0.5rem;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: white;
    cursor: pointer;
    transition: border 0.2s ease, box-shadow 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23233a80'%3E%3Cpath d='M5 7l5 5 5-5H5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}
.select-field:focus {
    outline: none;
    border-color: #233a80;
    box-shadow: 0 0 0 3px rgba(35, 58, 128, 0.15);
}
.save-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}


/* your library */
.user-library-container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 50px);
    background-color: var(--WHITE-ONE);
    padding: 1rem;
    gap: 1rem;
}
.category-container {
    position: relative;
    background-color: var(--WHITE-TREE);
    border-radius: 10px;
    min-height: 50vh;
    display: flex;
    padding: 1rem;
    gap: 1rem;
    flex-direction: column;
    overflow: scroll;
}
.no-saved-prayers {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.prayer-item, .search-item {
    background-color: var(--WHITE-TWO);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--TEXT-TWO) 1px 2px 1px 1px;
}
.prayer-link {
    display: flex;
    text-align: left;
    flex-direction: column;
    color: var(--TEXT-ONE);
    text-decoration: none;
    align-items: start;
    cursor: pointer;
    width: 100%;
    padding-right: 1rem;
    justify-content: left;
}
.prayer-link h3 {
    word-wrap: break-word;
    letter-spacing: 0.7px;
    font-weight: 700;
}
.button {
    height: var(--BUTTON-SIZE);
    width: var(--BUTTON-SIZE);
    min-width: var(--BUTTON-SIZE);
    min-height: var(--BUTTON-SIZE);
    background-color: var(--WHITE-TWO);
    border-radius: 50%;
    border: solid var(--TEXT-TWO) 1px;
    outline: none;
    background-position: center;
    background-size: 70%;
    background-repeat: no-repeat;
    fill: #233a80;
}
.saved {
   background-image: url('/svg/bookmark-solid-full.svg'); 
}
.not-saved {
    background-image: url('/svg/bookmark-regular-full.svg');
}
.description {
    font-size: 0.7rem;
    color: #233a80;
    letter-spacing: 0.1px;
}







@media (min-width: 600px) {
    /* header */
    .hamburger-menu, .hamburger-menu-label {
        display: none;
    }
    .header nav {
        display: block;
        position: relative;
        top: 0%;
        background-color: transparent;
        padding-bottom: 0;
    }
    .header nav ul {
        flex-direction: row;
    }

    /* hero */
    .hero h1 {
        font-size: 5rem;
        letter-spacing: 1rem;
    }
    

    /* style text section 3 */
    .text-container-3 {
        flex-direction: row;
        text-align: left;
    }
    .text-container-3 > * {
        max-width: 250px;
    }

    /* flip card */
    .card-holder {
        flex-direction: row;
    }
    

    /* styling the text section 2 */
    .text-container-2-article:nth-child(1) {
        height: 40ch;
        background-color: var(--MAIN-COLOR-COLOR-ONE);
    }
    .text-container-2-article:nth-child(2) {
        height: 50ch;
        background-color: var(--MAIN-COLOR-COLOR-TWO);
    }
    .text-container-2 {
        flex-direction: row;
    }

    /* your library */
    .user-library-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr; 
    }
    .category-container {
        height: auto;
        min-height: 0;
    }
}
