.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ensure it appears above everything */
  overflow: hidden; /* Prevent scrolling */
}

.overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('./images/December Discount.jpg') no-repeat center center;
  background-size: cover;
  filter: blur(10px); /* Apply blur effect to the background */
  z-index: -1; /* Place it behind the content */
}

.overlay-content {
  text-align: center;
  font-family: Arial, sans-serif;
  padding: 2rem; 
  border-radius: 10px; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
}

.overlay img {
  width: auto; /* Set the image width to 80% of the viewport */
  height: 75vh; /* Maintain the aspect ratio */
  margin: 0 auto; /* Center the image horizontally */
  display: block; /* Add space below the image */
}

.p_overlay {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #fff;
}

.btn-overlay {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background: #ff5722;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.btn-overlay:hover {
  background: #e64a19;
} 
@media only screen and (max-width: 600px){
    .p_overlay {
        font-size: 15px !important;
    }
    .btn-overlay{
        margin-top: 0;
    }
   .overlay img {
      width: 99% !important; 
      height: 99% !important;
    }
}