body, html {
  height: 100%;
  margin: 0;
  font-family: 'Arial';
    background-color: #323232;
    overflow-x: hidden;
    font-weight: lighter;
}

.hero-image {
  background-image: linear-gradient(rgba(255, 255, 255, 0), #262726), url("IMG_Hero_Image.jpg");
  height: 400px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

#weather {
  width: 300px;
  height: 20px;
  background-color: #222;
  color: #FFFFFF;
}

#weather h2 {
  font-size: 20px;
  text-align: center;
}

#weather p {
  font-size: 20px;
  font-weight: bold;
  margin-top: 5px;
}


.hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  border-color: white;
  padding: 10px 10px;
  font-weight: 100;
}

@keyframes swipe {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
    }
    
}
.hero-text h1 {
    font-size: 50px;
    animation: swipe 0.6s;
}

.hero-text p {
  animation: swipe 0.6s;
}

.opening {
    width: 95%;
    font-size: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-top: 3%;
    color: white;
}

@media (max-width: 1000px) {
    .opening {
        width: 90%;
        font-size: 14px;
    }   

    .hero-image {
      height: 500px;
    }

    .hero-text h1 {
      font-size: 30px;
    }

    #weather {
      width: 300px;
      height: 10px;
      background-color: #222;
      color: #FFFFFF;
    }
    
}

@media (max-width: 900px) {  
    .hero-text h1 {
        font-size: 30px;
    }
}

@media (max-width: 500px) {  
    .hero-text h1 {
        font-size: 24px;
    }
}

@media (max-width: 400px) {  
    .hero-text h1 {
        font-size: 20px;
    }
}


















.quick-news {
  max-width: 95%;
  margin: 0 auto;
  padding: 20px;
  background-color: #2c2c2c; /* Darker background for the container */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex; /* Use Flexbox for layout */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: space-between; /* Space between items */
  border-radius: 8px; /* Rounded corners for the container */
}

.quick-news > div {
  flex: 1; /* Allow each section to grow */
  width: 100; /* Minimum width for each section */
  margin-right: 20px; /* Space between sections */
  
  border-radius: 8px; /* Rounded corners */
  padding: 15px; /* Padding inside each section */
  transition: transform 0.2s; /* Add transition for hover effect */
}

.quick-news > div:last-child {
  margin-right: 0; /* Remove right margin from the last section */
}

h2 {
  color: #fff;
  border-bottom: 2px solid white;
  padding-bottom: 10px;
}

h3 {
  color: #fff; /* White color for h3 headings */
  font-size: 1.5em; /* Font size for h3 */
  margin: 10px 0; /* Margin for spacing */
  text-align: left; /* Align text to the left */
}

p {
  color: white;
}

strong {
  color: white;
}

.news-item, .event {
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 8px; /* Slightly larger border radius for a softer look */
  background-color: #3a3a3a; /* Slightly lighter background for items */
  transition: transform 0.2s; /* Add transition for hover effect */
}

.news-item h2, .new-item h1, .event-info h2 {
  margin: 0;
  font-size: 1.5em;
  color: #fff; /* White color for headings */
}

.news-item p, .event .date, .event .time, .event .location, .event .welcome {
  margin: 5px 0;
  color: #fff; /* White for text */
}

.news-item img, .event img {
  width: 100%; /* Full width for images */
  max-width: 400px; /* Limit max width for images */
  height: auto; /* Maintain aspect ratio */
  border-radius: 5px;
  display: block;
  margin: 10px auto;
}

.event .details {
  font-style: italic; /* Italicize event details */
}

.title {
  margin-bottom: 15px;
}

.title h1, .title h2 {
  font-size: 2em;
  color: #fff;
}

.title p {
  color: #777; /* Lighter gray for subtitle */
}

.container-link {
  display: block; /* Make the anchor tag a block element */
  width: 100%; /* Full width of the parent */
  height: 100%; /* Full height of the parent */
  text-decoration: none; /* Remove underline from links */
  color: inherit; /* Inherit text color from parent */
  padding: 10px; /* Optional padding */
  box-sizing: border-box; /* Include padding in width/height */
}

.news-item a {
  display: block;
  margin: 10px 0;
  width: 100%;
  padding: 10px 0;
  border: 2px solid white;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
  text-align: center;
}

.news-item a:hover {
  background-color: #383838; /* Change background on hover */
}

/* Button Styles */
.container-link button {
  display: block; /* Make the button a block element */
  width: 100%; /* Full width of the parent */
  padding: 10px; /* Padding for the button */
  margin-top: 10px; /* Space between content and button */
  background-color: #323232; /* Button background color */
  color: white; /* Button text color */
  border: none; /* Remove border */
  border-radius: 5px; /* Rounded corners */
  cursor : pointer; /* Pointer cursor on hover */
  transition: background-color 0.3s; /* Transition for hover effect */
}

.container-link button:hover {
  background-color: #383838; /* Darker background on hover */
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .quick-news {
    flex-direction: column; /* Stack items on smaller screens */
    padding: 15px; /* Reduce padding on smaller screens */
  }

  h2 {
    font-size: 1.5em; /* Smaller heading size */
  }

  h3 {
    font-size: 1.2em; /* Smaller heading size for h3 */
  }

  .news-item h2, .event-info h2 {
    font-size: 1.2em; /* Smaller heading size for news and events */
  }

  .news-item p, .event .date, .event .time, .event .location, .event .welcome {
    font-size: 0.9em; /* Smaller text size */
  }

  .title h2 {
    font-size: 1.5em; /* Smaller title size */
  }

  .title p {
    font-size: 0.9em; /* Smaller subtitle size */
  }
}

@media (max-width: 480px) {
  .quick-news {
    padding: 10px; /* Further reduce padding on very small screens */
  }

  h2 {
    font-size: 1.2em; /* Even smaller heading size */
  }

  h3 {
    font-size: 1em; /* Even smaller heading size for h3 */
  }

  .news-item h2, .event-info h2 {
    font-size: 1em; /* Even smaller heading size for news and events */
  }

  .news-item p, .event .date, .event .time, .event .location, .event .welcome {
    font-size: 0.8em; /* Even smaller text size */
  }

  .title h1 {
    font-size: 1.2em; /* Smaller title size */
  }

  .title p {
    font-size: 0.8em; /* Smaller subtitle size */
  }
}






 
  .homepage-container {
    background: #262726;
    width:90%;
    margin: 0 auto;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .slideshow {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    margin-bottom: 18px;
  }
  .slides {
    display: flex;
    height: 100%;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    transition: transform 0.7s ease-in-out;
  }
  .slide {
    min-width: 100%;
    height: 100%;
    user-select: none;
    pointer-events: none;
  }
  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }
  .dots-container {
    position: absolute;
    bottom: 13px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 9px;
  }
  .dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  .dot.active {
    background: #3f51b5;
    box-shadow: 0 0 8px #3f51b5;
  }
  .news-box {
    width: 100%;
    background: #262726;
    color: white;
    padding: 16px 22px;
    border-radius: 10px;
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 25px;
    user-select: text;
  }
  .show-earnings-btn {
    background-color: #202020;
    color: white;
    border: none;
    padding: 15px 28px;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    width: 100%;
    max-width: 300px;
  }
  .show-earnings-btn:hover {
    background-color: #202020;
    color: white;
    box-shadow: 0 2px 5px rgba(255,255,255,0.5);
  }












  .footer p {
    text-align: center;
    font-size: 20px;
    margin-top: 25px;
    height: auto;
    color: white;
  }

  @media only screen and (max-width: 1700px) {
    .footer {
      font-size: 18px;
    }
  }
  
  @media only screen and (max-width: 768px) {
    .footer {
      font-size: 16px;
    }
  }
  
  @media only screen and (max-width: 480px) {
    .footer {
      font-size: 14px;
    }
  }
  
  @media only screen and (max-width: 320px) {
    .footer {
      font-size: 12px;
    }
  }
  




@media only screen and (max-width: 1400px) {
  .suggestions {
    flex-direction: column;
    width: 95%;
    margin: 0 auto;
    border-radius: 0;
  }

  .suggestion {
    width: 100%;
  }

  .suggestion img {
    border-radius: 0;
  }
}



.popup {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
}

.popup-content {
  background-color: #262726;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 10px solid;
  border-image: url(IMG_FuneralBorder.png) ;
  border-image-width: 20px;
  border-image-repeat: repeat;
  width: 80%; /* Could be more or less, depending on screen size */
  max-width: 600px; /* Max width */
  color: white;
}

.close-btn {
  color: red;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}










#home-schedule-container {
    margin: 40px auto;
    padding: 20px;
    max-width: 600px;
    color: white;
    background-color: #262726;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Title Styles */
#home-schedule-container h2 {
    text-align: center;
    text-decoration: underline;
    margin: 20px 0;
    font-size: 28px;
    color: #ffffff;
}

/* Date Section Styles */
#home-schedule-container .date {
    margin-bottom: 20px;
    padding: 10px;
    text-align: center;
    background-color: #3a3a3a;
    border-radius: 5px;
}

/* Date Text Styles */
#home-schedule-container .date strong {
    font-size: 1.5em;
    color: #ffffff;
}

/* Service Entry Styles */
#home-schedule-container .service {
    margin: 10px auto;
    padding: 10px;
    background-color: #3a3a3a;
    border-radius: 5px;
    max-width: 90%;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

/* Service Details Styles */
#home-schedule-container .location,
#home-schedule-container .time,
#home-schedule-container .typeofservice,
#home-schedule-container .contact {
    margin: 5px 0;
    padding: 3px;
    color: #ffffff;
}








/* Overlay for the popup */
        .popup-overlay {
            display: none; /* Hidden by default, shown by JS */
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(38, 39, 38, 0.8); /* Semi-transparent version of #262726 for overlay */
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        /* Popup content with modern dark theme and continuous flashing red animation */
        .popup-content {
            background-color: #262726; /* Primary dark color */
            color: #ffffff; /* White text for contrast */
            padding: 20px; /* Reduced padding for smaller size */
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); /* Deeper shadow for modern look */
            max-width: 300px; /* Smaller max-width */
            width: 90%;
            text-align: center;
            position: relative;
            border: 1px solid #404040; /* Subtle border for definition */
            animation: flashRed 1s ease-in-out infinite; /* Continuous flashing */
        }
        /* Keyframe animation for continuous flashing red */
        @keyframes flashRed {
            0% { background-color: #262726; } /* Start with original color */
            50% { background-color: #ff0000; } /* Flash to red */
            100% { background-color: #262726; } /* Back to original */
        }
