/* prayer-shimmer Container */
.prayer-shimmer-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 20px;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}
/* prayer-shimmer Placeholder */
.prayer-shimmer {
  background: #f0f0f0;
  border-radius: 8px;
  height: 40px;
  position: relative;
  overflow: hidden;
  margin: 10px 0;
}
/* prayer-shimmer Animation */
.prayer-shimmer::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: -o-linear-gradient(
    left,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  background: -webkit-gradient(
    linear,
    left top,
    right top,
    from(transparent),
    color-stop(rgba(255, 255, 255, 0.5)),
    to(transparent)
  );
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  -webkit-animation: prayer-shimmer 1.5s infinite;
  animation: prayer-shimmer 1.5s infinite;
}
@-webkit-keyframes prayer-shimmer {
  100% {
    left: 100%;
  }
}
@keyframes prayer-shimmer {
  100% {
    left: 100%;
  }
}
.prayer-container {
  width: 95%;
  margin: 0 auto;
}
div#prayersContainer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  width:100%;
  justify-content: center;
  gap: 20px;
  align-items: flex-start;
}
/* ✅ Smooth Card-Based Layout for Prayer Requests */
.prayer-item {
position: relative;
  background: #ffffff;
  padding: 15px;
  border-radius: 12px;
  -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  -webkit-transition: -webkit-transform 0.2s ease, -webkit-box-shadow 0.2s ease;
  transition: -webkit-transform 0.2s ease, -webkit-box-shadow 0.2s ease;
  -o-transition: transform 0.2s ease, box-shadow 0.2s ease;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    -webkit-transform 0.2s ease, -webkit-box-shadow 0.2s ease;
  text-align: left;
  width: 100%;
  max-width: 494px;
  margin-bottom: 23px;
  transition:0.3s;
}
.prayer-item:hover {
  -webkit-transform: scale(1.02);
  -ms-transform: scale(1.02);
  transform: scale(1.02);
  -webkit-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  outline: 0.1rem solid var(--primary-color);
}

/* ✅ Prayer Menu Icon */
.prayer_menu {
    position: absolute;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
    color: #667;
}
/* ✅ Improved Prayer Text */
.prayer-text {
  font-size: 18px;
  color: #333;
  line-height: 1.6;
}
/* ✅ Name Styling */
.prayer-item strong {
  font-size: 17px;
  color: var(--primary-color);
}
.prayer_count {
    top: -8px;
    position: relative;
}
/* ✅ Centering Prayer Requests */
.prayer-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 10px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 20px;background: #f8f9fa;
}
/* ✅ Dropdown Menu Styling */
.prayer-dropdown {
    display: none;
    position: absolute;
    top: 30px;
    right: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    width: 120px;
    padding:5px;
}

.prayer-dropdown button {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 8px;
    text-align: left;
    cursor: pointer;
}

.prayer-dropdown button:hover {
    background: #f5f5f5;
}

/* ✅ Hide dropdown when clicking outside */
body:not(.prayer-dropdown):not(.prayer_menu) {
    cursor: default;
}
form#prayerForm {
  max-width: 500px;
  margin: auto;
}
/* ✅ Improve Form Container */
.prayer-form {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  /*max-width: 500px;*/
  margin: auto;
}
.prayer-form input {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.prayer-form textarea {
display: block;
margin: 15px auto;
  width: 100%;
  max-width:500px;
  min-width: 300px;
 max-height:270px;
  min-height:92px; 
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.prayer-item button {
box-sizing:border-box;
position: relative;
  color: #000;
  cursor: pointer;
  -webkit-transition: 0.3s ease-in-out;
  -o-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: 600;
  margin-top: 10px;  
  margin-right: 5px;
  background:none;
  border:1px solid #fff;
}
.prayer-item button:hover,.prayer-item button:focus-visible {
  background: #f0f0f0;
  color: #2f2f2f;
  border: 1px solid #e7e7e7;
}
.edit-textarea {
  width: 100%;
  padding: 10px;
  margin: 32px 0 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  height:99px;
  min-width: 300px;
  max-width: 494px;
  max-height:270px;
  min-height:92px;
}


/* ✅ Special Button for "I Prayed" */
.pray-btn {
  color: #000;
  border-radius: 30px;
  font-size: 14px;
  padding: 8px 12px;
}
.pray-btn:hover {
  background: -o-linear-gradient(left, #218838, #2da44e);
  background: -webkit-gradient(
    linear,
    left top,
    right top,
    from(#218838),
    to(#2da44e)
  );
  background: linear-gradient(to right, #218838, #2da44e);
}
.prayer-status {
position: relative;
    top: 5px;
    font-size: 1.5em;
    margin-right: 5px;
    cursor: default;
    float: right;
    max-width: 46px;
    text-align: center;
}
small.prayer-icon__text {
    font-size: xx-small;
    font-weight: 400;
    line-height: 0.8rem;
}
/* ✅ Mobile Responsive Design */
@media (max-width: 1165px) {
.prayer-item {
  max-width: 100%;
}
}

@media (max-width: 600px) {
  .prayer-list {
    padding: 10px;
  }
  .prayer-item {
    width: 100%;
    padding: 12px;
  }

}
@media (max-width: 345px) {
.prayer-form {
    padding: 8px;
}
.prayer-form textarea {
    min-width: auto;
}
}