:root {
    --text-color: #000000;
    --secondary-text-color: #ffffff;
    --button-boarder-color: rgba(255, 255, 255, 0.7);
    --button-hover-color: #161839;
    --button-text-color: #161839;
    --list-background-color: #ffffff;
    --transition-duration: 0.4s;
    --transition-ease: ease-in-out;
}

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

body {
    margin: 0;
    padding: 0;
    background-size: cover;
    background-attachment: fixed;
    height: 100svh;
    width: 100%;
    font-family: 'Lato', sans-serif;
    transition: all var(--transition-duration) var(--transition-ease);
}

.index {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all var(--transition-duration) var(--transition-ease);
}

/* header menu section */

.index>.header-menu-wrapper {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    max-width: 60%;
    margin-top: 5%;
    margin-bottom: 5px;
    transition: all var(--transition-duration) var(--transition-ease);
}

/* ------- section for header ------- */

.index>.header-menu-wrapper>.header-section {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
}

.index>.header-menu-wrapper>.header-section>a>img {
    height: auto;
    width: 100%;
    transition: width var(--transition-duration) var(--transition-ease), height var(--transition-duration) var(--transition-ease);
}

.index>.header-menu-wrapper>.header-section>.scripture>p {
    border-radius: 10px;
    padding: 10px;
    font-weight: normal;
    font-size: 13px;
    color: var(--secondary-text-color);
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.index>.header-menu-wrapper>.header-section>.reverence>p {
    border-radius: 10px;
    padding: 5px 10px;
    font-weight: normal;
    font-size: 11px;
    color: var(--secondary-text-color);
    text-align: center;
    width: 360px;
}

/* ------- section for menu ------- */

.index>.header-menu-wrapper>.menu-section {
    position: relative;
    width: 40%;
}

.index>.header-menu-wrapper>.menu-section>.navigation>.topnav>li {
    list-style-type: none;
}

.index>.header-menu-wrapper>.menu-section>.navigation>.topnav>li>a {

    font-weight: bold;
    border-style: solid;
    border-radius: 10px;
    border-width: 3px;
    text-align: center;
    padding: 8px 16px;
    text-decoration: none;
    float: right;
    font-size: 12px;
    color: var(--button-text-color);
    border-color: var(--button-boarder-color);
}

.index>.header-menu-wrapper>.menu-section>.navigation>.topnav>li>a:hover {
    border-color: var(--button-hover-color);
}


/* ------- end of navigation section ------- */


/* ------- section for section ------- */
.index>.section-miracles {
    width: 80%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    transition: margin-top 0.5s ease, top 0.5s ease;
}

.input>.login {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    transition: margin-top 0.5s ease, top 0.5s ease;
}

.index>.miracles {
    top: 25px;
    width: 80%;
    position: relative;
    display: flex;
    flex-wrap: wrap-reverse;
    gap: 20px;
    transition: top 0.5s ease, top 0.5s ease;
    padding-top: 50px;
    padding-bottom: 50px;
    overflow-y: auto;
    height: auto;
}

.card-default {
    background-color: transparent;
    /* or a very low-quality background image */
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.card-Praise {
    background-color: transparent;
    /* or a very low-quality background image */
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.index>.miracles>.card {
    margin: auto;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 2px;
    position: relative;
    box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.9),
        0 3px 10px 0 rgba(0, 0, 0, 0.9);
    padding: 0;
    height: 215px;
    width: 350px;
    transition: all 0.5s ease;
}

.index>.miracles>.card>p {
    position: absolute;
    top: 10px;
    left: 10px;
    font-weight: 400;
    font-style: normal;

    color: var(--text-color);

}

.index>.miracles>.card>.text-Praise {
    color: #ffffff;
}

.index>.miracles>.card>.content {
    background-color: transparent;
    padding-right: 30px;
    padding-left: 30px;
    height: 100%;
    display: flex;
    align-items: center;
    text-align: center;
}

.index>.miracles>.card>.content p {
    font-weight: normal;
    color: var(--button-text-color);
    background-color: transparent;
    font-size: 16px;
    margin: 0;
    max-height: 100px; 
    overflow-y: auto; 
    overflow-x: hidden;
    white-space: normal;
}

.index>.miracles>.card>.content>.text {
    line-height: 1.4;
}

.index>.miracles>.card>.content>.emoji-container {

    position: absolute;
    bottom: -12px;
    left: calc(100% - 70px);
    background-color: white;
    border-radius: 10px;
    padding: 5px 7px;
    font-weight: bold;
    font-size: 12px;
    color: var(--button-text-color);
    border: 1px solid #161839;

}

.index>.miracles>.card>.content>.emoji-container:hover {
    cursor: pointer;
    border-color: var(--button-hover-color);
}

.index>section>.location-prayer-container {
    display: flex;
    justify-content: space-between;
    width: 40%;
    /* Adjust the width as needed */
    padding: 10px;
    position: relative;
    gap: 20px;
    max-width: 360px;
    transition: width 0.5s ease;
}

.index>.location2-prayer-container {
    align-items: center;
    width: 65%;
    /* Adjust the width as needed */
    padding: 10px;
    position: relative;
    transition: width 0.5s ease;

}

.index>section>.location-prayer-container>.location-container,
.index>section>.location-prayer-container>.prayer-container {
    flex-grow: 1;
    flex-basis: calc(15% - 5px);
    /* Adjust the spacing between the containers */
    position: relative;
    margin: auto;
}

.index>section>.location-prayer-container>.location-container>select,
.index>section>.location-prayer-container>.prayer-container>select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 10px;
    border-style: solid;
    color: var(--button-text-color);
    text-align: center;
    width: 100%;
    text-decoration: none;
    border-width: 3px;
    font-size: 12px;
    font-weight: normal;
    border-color: var(--button-boarder-color);
    background-color: white;

}

.index>section>.location-prayer-container>.location-container>select:hover {
    border-color: var(--button-hover-color);
}


/* Additional styles for select (if needed) */
.index>section>.location-prayer-container>.location-container>select,
.index>section>.location-prayer-container>.prayer-container>select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 8px;
    float: right;
    background-color: var(--list-background-color);
    font-weight: normal;
    color: var(--button-text-color);
    font-size: 12px;
    font-weight: 700;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%204%205%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M2%205L0%203h4L2%205zM2%200L0%202h4L2%200z%22/%3E%3C/svg%3E');
    /* Arrow icon */
    background-repeat: no-repeat;
    background-position: right 10px center;
    /* Adjust position */
    background-size: 8px 10px;
    /* Adjust size */
    padding-right: 20px;
    /* Add space for the arrow */
}

/* Style the select dropdown arrow */
.index>section>.location-prayer-container>.prayer-container>select::after,
.index>section>.location-prayer-container>.location-container>select::after {
    content: '\25BC';
    /* Unicode for downward arrow */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    border-color: transparent;
}

.index>section>.location-prayer-container>.location-container>select>option,
.index>section>.location-prayer-container>.prayer-container>select>option {
    background-color: var(--list-background-color);
    font-weight: normal;
    color: var(--button-text-color);
    font-size: 12px;

    font-weight: 700;
}

/* ------- section for menu ------- */

.index>.location2-prayer-container>.menu-section,
.index>section>.location-prayer-container>.menu-section {
    position: relative;
    flex-grow: 1;
    flex-basis: calc(15% - 5px);
}


.index>.location2-prayer-container>.menu-section>.navigation>.topnav>li,
.index>section>.location-prayer-container>.menu-section>.navigation>.topnav>li {
    list-style-type: none;
}

.index>.location2-prayer-container>.menu-section>.navigation>.topnav>li>a {
    position: relative;
    border-radius: 10px;
    border-style: solid;
    color: var(--button-text-color);
    text-align: center;
    padding: 9px;
    text-decoration: none;
    border-width: 3px;
    margin-left: 5%;
    border-color: var(--button-boarder-color);
    font-size: 12px;
    font-weight: bold;

    background-color: white;
}

.index>section>.location-prayer-container>.menu-section>.navigation>.topnav>li>a {
    border-radius: 10px;
    border-style: solid;
    color: var(--button-text-color);
    text-align: center;
    padding: 10px;
    width: 100%;
    text-decoration: none;
    border-width: 3px;
    float: right;
    border-color: var(--button-boarder-color);
    font-size: 10px;
    font-weight: bold;
    background-color: white;
}

.index>.location2-prayer-container>.menu-section>.navigation>.topnav>li>a:hover,
.index>section>.location-prayer-container>.menu-section>.navigation>.topnav>li>a:hover {
    border-color: var(--button-hover-color);
}

/* ------- end of navigation section ------- */

/* createmiracal page */

.index>.create-miracal {
    display: flex;
    flex-direction: column;
    /* Stack children vertically */
    align-items: center;
    /* Center horizontally */
    position: relative;
    padding-bottom: 25px;
}

.index>.create-miracal>.form-container {
    position: relative;
    /* Change to relative */
    margin-left: 15%;
    margin-right: 15%;
    width: 400px;
    text-align: left;
    padding-right: 25px;
    padding-left: 25px;
    padding-bottom: 25px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 3px solid var(--button-boarder-color);
    border-top-width: 0px;
    transition: margin-top 0.3s, height 0.3s;
}

.index>.create-miracal>.form-container>.radio-campus-container {
    display: flex;
    justify-content: space-around;

    color: var(--secondary-text-color);
    padding-bottom: 20px;
    padding-left: 10px;
}

.index>.create-miracal>.form-container>.radio-campus-container {
    padding: 10px;
}

.index>.create-miracal>.form-container>.title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--secondary-text-color);
    margin-top: 10px;
}

.index>.create-miracal>.form-container>.inputleft {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;

    font-weight: normal;
    margin-bottom: 10px;
}

.index>.create-miracal>.form-container>.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    padding: 10px;
    padding-left: 0px;
    border-radius: 5px;
    color: var(--secondary-text-color);
    flex-direction: column;
}

.index>.create-miracal>.form-container>.contact-details>.contact-item {
    display: flex;
    align-items: center;
    /* Aligns label and input vertically */
    width: 100%;
}

.index>.create-miracal>.form-container>.contact-details>.contact-item>.contact-label {

    font-weight: bold;
    font-size: 16px;
    color: var(--secondary-text-color);
    padding-right: 10px;
    text-align: right;
}

.index>.create-miracal>.form-container>.contact-details>.contact-item>.inputleft {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 0;
    margin-left: 10px;
    max-width: 300px;
    margin-bottom: 10px;
}

.index>.create-miracal>.form-container>.checkbox-container {
    display: flex;
    flex-direction: column;
    grid-gap: 6px;
    margin-bottom: 10px;
    margin-top: 10px;
    color: var(--secondary-text-color);
}

.index>.create-miracal>.form-container>.checkbox-container>section>.label-input {

    font-weight: bold;
    font-size: 16px;
    color: var(--secondary-text-color);
}

.index>.create-miracal>.form-container>.radio-campus-container>.radio-container,
.index>.create-miracal>.form-container>.radio-campus-container>.campus-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.index>.create-miracal>.form-container>.radio-campus-container>.form-container {
    margin-left: 20px;
}

.index>.create-miracal>.form-container>.radio-campus-container>.campus-container {
    margin-left: 20px;
}

.index>.create-miracal>.form-container>.radio-campus-container>.radio-container>section {
    align-items: center;
    margin-bottom: 10px;
}

.index>.create-miracal>.form-container>.radio-campus-container>.radio-container>section>.inputleftdod,
.index>.create-miracal>.form-container>.radio-campus-container>.campus-container>section>.inputleftdod,
.index>.create-miracal>.form-container>.checkbox-container>section>.inputleftdod {
    margin-right: 10px;
}

.index>.create-miracal>.form-container>.radio-campus-container>.radio-container>section>.label-input,
.index>.create-miracal>.form-container>.radio-campus-container>.campus-container>section>.label-input {

    font-weight: normal;
    font-size: 16px;
    color: var(--secondary-text-color);
}

.index>.create-miracal>.form-container>.radio-campus-container>.radio-container>.title,
.index>.create-miracal>.form-container>.radio-campus-container>.campus-container>.title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.index>.create-miracal>.form-container>input {
    border-radius: 10px;
    border-style: solid;
    color: var(--button-text-color);
    text-align: center;
    padding: 9px;
    width: 100%;
    max-width: 100px;
    min-width: 50px;
    text-decoration: none;
    border-width: 3px;
    float: left;
    border-color: var(--button-boarder-color);
    font-size: 12px;
    font-weight: bold;
    left: 50%;
    background-color: white;
}

.index>.create-miracal>.form-container>input:after {
    content: "";
    background: #fd6000;
    display: block;
    position: absolute;
    padding-top: 30%;
    padding-left: 350%;
    margin-left: -20px !important;
    margin-top: -120%;
    opacity: 0;
    transition: all 0.5s
}

.index>.create-miracal>.form-container>input:active:after {
    padding: 0;
    margin: 0;
    opacity: 1;
    transition: 0.5s
}

.index>.create-miracal>.form-container>.playerinfront {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    margin: 10px;
    width: 50%;
}
.index>.create-miracal>.form-container>.playerinfront p {
    font-size: 14px;
    font-weight: bold;
    color:white;
}

.index>.create-miracal>.under-form {
    position: relative;
    /* Change to relative */
    margin-left: 15%;
    margin-right: 15%;
    margin-top: 25px;
    width: 400px;
    top: 0;
    text-align: center;
    padding: 25px 25px 20px;
    border: 3px solid var(--button-boarder-color);
    border-bottom-width: 0px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.index>.create-miracal>.under-form>.first-text {

    font-weight: 1000;
    font-style: normal;
    color: var(--secondary-text-color);
    text-align: center;
    font-size: 30px;
    font-variant-caps: all-petite-caps;
}

.index>.create-miracal>.under-form>.second-text {

    font-weight: 400;
    font-style: normal;
    color: var(--secondary-text-color);
    text-align: center;
    font-size: 14px;
    margin: auto;
}

/* end of createmiracal page */

/* begin checkmiracal page */

.index>section>.location {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap-reverse;
    gap: 20px;
    padding: 10px;
    width: 90%;
    margin-top: -30px;
}

.index>section>.check-location {
    position: relative;
    display: flex;
    flex-wrap: wrap-reverse;
    gap: 20px;
    padding: 10px;
    width: 90%;
}

.index>.section-miracles>.miracles-check {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    background: white;
    min-width: 450px;
    min-height: 150px;
}

.index>.section-miracles>.miracles-check>h2 {
    height: auto;
}

.index>.section-miracles>.miracles-check>ul {
    width: 48%;
    /* 50% minus some gap */
    list-style-type: none;
    padding: 0;
    margin: 0;
    border: 2px solid #4a4949;
    overflow-y: auto;
    max-height: 400px;
    /* Adjust this height as needed */
}

.index>.section-miracles>.miracles-check>ul>li {
    padding: 8px 16px;
    border-bottom: 2px solid #4a4949;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.index>.section-miracles>.miracles-check>ul>li.selected {
    background-color: #4a4949;
    /* Highlight selected item */
}

.index>.section-miracles>.miracles-check>ul>li:last-child {
    border-bottom: none;
}

.index>.section-miracles>.miracles-check>.details {
    width: 48%;
    /* 50% minus some gap */
    background-color: white;
    border: 2px solid #4a4949;
    padding: 10px;
    border-radius: 5px;
}

.index>.section-miracles>.miracles-check>.details>section>textarea {
    width: 100%;
    height: 100px;
    /* Initial height */
    resize: none;
    /* Disable manual resizing */
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
}

.index>.section-miracles>.miracles-check>.details>section>.button-container {
    display: flex;
    flex-direction: row;
    /* Stack buttons vertically */
    margin-top: 10px;
    /* Adjust as needed */
}

.index>.section-miracles>.miracles-check>.details>section>.button-container>button {
    width: 48%;
    /* Adjust button width to align properly */
    padding: 10px;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.index>.section-miracles>.miracles-check>.details>section>.button-container>button:hover {
    background-color: #0056b3;
}

/* ------- section for footer ------- */

footer {
    position: relative;
    height: auto;
    margin: auto;
    top: 75px;
}

footer>.footer-bottom {
    color: white;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
}


/* ------- end of main section ------- */

@media(max-width: 456px) {

    .index>section>.location-prayer-container>.location-container>select,
    .index>section>.location-prayer-container>.prayer-container>select {
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

@media (min-width: 900px) and (min-height: 900px) {
    .index>.header-menu-wrapper {
        margin-top: 50px;
        width: 540px;
    }

    .index>.header-menu-wrapper>.header-section>a>img {
        height: 303px;
        width: 540px;
    }

    .index>.location2-prayer-container,
    .index>section>.location-prayer-container {
        padding-top: 10px;
    }

    .index>.create-miracal>.form-container {
        width: 80%;
    }

    .index>.create-miracal>.under-form {
        width: 80%;
    }

}

@media (min-width: 999px),
(min-height: 100px) {
    .index>.header-menu-wrapper {
        margin-top: 50px;
        width: 360px;
    }

    .index>.header-menu-wrapper>.header-section>a>img {
        height: 202px;
        width: 360px;
    }

    .index>.miracles {
        padding-top: 20px;
    }

    .index>.create-miracal>.form-container {
        width: 80%;
    }

    .index>.create-miracal>.under-form {
        width: 80%;
    }

    .index>section>.location-prayer-container {
        width: 60%;
    }

    .index>.header-menu-wrapper>.header-section>.reverence>p,
    .index>.header-menu-wrapper>.header-section>.scripture>p {
        width: 360px;
    }
}

@media (min-height: 999px) {
    .index>.header-menu-wrapper {
        margin-top: 50px;
        width: 360px;
    }
}

@media (min-width: 2201px) {
    .index>.miracles {
        display: flex;
        flex-wrap: wrap-reverse;
    }
}

@media (max-width: 500px) {
    .index>.header-menu-wrapper {
        justify-content: space-evenly;
        width: 80%;
    }

    .index>.header-menu-wrapper>.header-section>a>img {
        height: auto;
        width: 100%;
    }

    .index>.location2-prayer-container,
    .index>section>.location-prayer-container {
        margin: auto;
    }

}

/* ------- phone sizes ------- */

/* ------- iPhone 14 Pro Max 430px x 932px ------- */
@media (max-width: 430px) and (max-height: 932px) {
    .index>.header-menu-wrapper {
        margin-top: 20px;
    }

    .index>.miracles {
        width: 100%;
        padding-top: 20px;
        padding-bottom: 20px;

    }

    .index>.create-miracal>.form-container {
        width: 90%;
        margin-left: 5%;
        margin-right: 5%;
    }

    .index>.create-miracal>.under-form {
        width: 90%;
        margin-left: 5%;
        margin-right: 5%;
    }

    .index>.location2-prayer-container,
    .index>section>.location-prayer-container {
        width: 100%;
        margin: auto;
    }

    .index>.header-menu-wrapper>.header-section>.scripture>p {
        font-size: 11px;
    }

    .index>.header-menu-wrapper>.header-section>.reverence>p {
        font-size: 9px;
    }

}

/* ------- iPhone SE 375px x 667px ------- */
@media (max-width: 375px) and (max-height: 667px) {
    .index>.header-menu-wrapper {
        margin-top: 15px;
    }

    .index>.miracles {
        width: 100svw;
        padding-top: 15px;
        padding-bottom: 15px;
        flex-direction: column;
    }

    .index>.create-miracal>.form-container {
        width: 95%;
        margin-left: 2.5%;
        margin-right: 2.5%;
    }

    .index>.create-miracal>.under-form {
        width: 95%;
        margin-left: 2.5%;
        margin-right: 2.5%;
    }

    .index>.location2-prayer-container,
    .index>section>.location-prayer-container {
        width: 100%;
        margin: auto;
    }

    .index>.header-menu-wrapper>.header-section>.scripture>p {
        font-size: 10px;
    }

    .index>.header-menu-wrapper>.header-section>.reverence>p {
        font-size: 8px;
    }
}

@media (orientation: portrait) {
    .index>.header-menu-wrapper {
        width: 80%;
        /* Adjust width for portrait mode */
        margin-top: 10px;
        /* Reduce top margin */
    }
}