body {
    font-family: Arial, sans-serif;
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    color: #ffffff;
    position: relative; /* Ensure body is positioned relative for absolute positioning within it */
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none; /* Ensure the canvas does not capture mouse events */
    z-index: 1000; /* Ensure canvas is above other content */
    opacity: 1; /* Initially set to 1 */
}

.container {
    text-align: center;
    padding: 20px;
    margin: 20px;
    position: relative; /* Ensure container is positioned relative */
    z-index: 2; /* Ensure container is above the canvas */
    /* Remove background color to avoid overlay */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Example box shadow */
}

.overlay {
  background: url('banner.jpg') no-repeat center top/cover;
  opacity: 0.8; /* Adjust opacity as needed */
  padding: 20px;
  border-radius: 15px;
  background-position: center center; /* Center the image horizontally and move it to the top */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); /* Add a subtle shadow */
  opacity: 1;
  animation: fadeInUp 1s ease-out forwards; /* Keep fadeInUp animation */
  text-align: center; /* Center content within overlay */
  word-wrap: break-word; /* Ensure long words break and wrap */
  max-width: 90%; /* Limit width to avoid overflowing on smaller screens */
  margin: 0 auto; /* Center the overlay horizontally */
}

h1 {
    font-size: 30px;
    margin-bottom: 20px;
    color: #ffd700; /* Gold text for title */
    text-shadow: 2px 2px 4px #000000;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards; /* Fade-in animation */
}

.thank-you-message {
    font-size: 24px; /* Larger font size for thank you message */
    margin-bottom: 20px; /* Adjust this value for spacing */
    color: #ffffff; /* White text for thank you message */
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards; /* Fade-in animation */
    font-family: "Gotham";
    font-weight: bold;
}

.thank-you-message1 {
    font-size: 24px; /* Larger font size for thank you message */
    margin-bottom: 20px; /* Adjust this value for spacing */
    color: #ffffff; /* White text for thank you message */
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards; /* Fade-in animation */
    font-family: "Gotham";
    font-weight: bold;
    background: rgba(0, 36, 107, 0.5); /* Semi-transparent #00246B background */
    padding: 15px; /* Padding around the text */
    border-radius: 10px; /* Rounded corners */
    display: inline-block; /* Inline block to apply padding and background correctly */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.box-container {
    display: flex;
    justify-content: center;
    gap: 20px; /* Adjust gap between boxes as needed */
    flex-wrap: wrap; /* Allow boxes to wrap if screen width is limited */
    margin-top: 20px; /* Add space above the boxes */
}


.box {
  width: 220px;
  height: 220px;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5);
}

.box:nth-child(1) {
    background-image: url('img/day1.png'); /* Replace with your image URL */
}

.box:nth-child(2) {
    background-image: url('img/day2.png'); /* Replace with your image URL */
}

.box:nth-child(3) {
    background-image: url('img/day3.png'); /* Replace with your image URL */
}

.box:nth-child(4) {
    background-image: url('img/day4.png'); /* Replace with your image URL */
}

.box:nth-child(5) {
    background-image: url('img/day5.png'); /* Replace with your image URL */
}

.box:nth-child(6) {
    background-image: url('img/raw.png'); /* Replace with your image URL */
}

.box:nth-child(7) {
    background-image: url('img/promo.png'); /* Replace with your image URL */
}

.box:nth-child(8) {
    background-image: url('img/intro.png'); /* Replace with your image URL */
}

.box:nth-child(9) {
    background-image: url('img/gratitude.png'); /* Replace with your image URL */
}

.box:nth-child(10) {
    background-image: url('img/highlights.png'); /* Replace with your image URL */
}

.announcement {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  margin: 20px 0;
  background-color: #FF4500;
  border: 2px solid #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 69, 0, 0.6);
  font-family: 'Trebuchet MS', sans-serif;
}

.announcement p {
  font-size: 1.6em;
  color: #FFFFFF;
  text-align: center;
  margin: 0;
  padding: 0;
}

.announcement i {
  margin-right: 10px;
  color: #FFFFFF;
  font-size: 1.2em;
}

/* Updated CSS for mobile centering */

@media (max-width: 1200px) {
    .box-container {
        grid-template-columns: repeat(4, 220px); /* 4 columns per row for smaller screens */
        justify-content: center; /* Center the grid */
    }
}

@media (max-width: 992px) {
    .box-container {
        grid-template-columns: repeat(3, 220px); /* 3 columns per row for smaller screens */
        justify-content: center; /* Center the grid */
    }
}

@media (max-width: 768px) {
    .box-container {
        grid-template-columns: repeat(2, 220px); /* 2 columns per row for smaller screens */
        justify-content: center; /* Center the grid */
    }
}

@media (max-width: 576px) {
    .box-container {
        grid-template-columns: repeat(1, 220px); /* 1 column per row for smaller screens */
        justify-content: center; /* Center the grid */
    }
}

.audio-player {
  text-align: center;
  margin-top: 20px;
}

.audio-control {
  padding: 10px 20px;
  margin: 5px;
  border: 1px solid #00246B;
  border-radius: 30px;
  background-color: #FFD700; /* Yellow */
  color: #00246B; /* Dark blue */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: 'Trebuchet MS';
  font-size: 23px;
}

.audio-control:hover {
  background-color: #f0f8ff; /* Light blue */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.audio-control.active {
  background-color: #00246B; /* Dark blue */
  color: #fff; /* White */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  font-weight: bold;
}

#audio-player {
  display: none; /* Hide the audio player initially */
}

/* CSS for quote popup */
.quote-popup {
  display: none;
  position: absolute;
  bottom: calc(10%); /* Position just above the button with a slight offset */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 20px;
  width: 80%;
  max-width: 400px;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
  z-index: 1000;
}

.quote-popup p {
  font-size: 1.2em;
  color: #00246B;
  font-family: 'Gotham';
}

/* Devotional background for quote popup */
#quote-popup {
  background-image: url('devotional_background.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#quote-popup p {
  font-size: 1.2em;
  color: white; /* Ensure text color is white */
  font-family: 'Gotham';
  padding: 10px;
  border-radius: 10px; /* Rounded corners */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); /* Add text shadow for better contrast */
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white background */
  backdrop-filter: blur(2px); /* Blur effect for background */
}

#close-quote-popup {
  margin-top: 20px;
  padding: 10px 20px;
  border: 1px solid #00246B;
  border-radius: 30px;
  background-color: #FFD700; /* Yellow */
  color: #00246B; /* Dark blue */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#close-quote-popup:hover {
  background-color: #f0f8ff; /* Light blue */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

#ask-sai-button {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  margin: 5px;
  border: 1px solid #00246B;
  border-radius: 30px;
  background-color: #FFD700;
  color: #00246B;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  font-family: 'Trebuchet MS';
  position: relative;
  overflow: hidden;
  font-size: 23px;
}

#ask-sai-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 13px; /* Adjusted left spacing for the icon */
  transform: translateY(-50%);
  width: 25px;
  height: 35px;
  background-image: url('swami.gif');
  background-size: contain;
  background-repeat: no-repeat;
}

#ask-sai-button span {
  padding-left: 10px; /* Adjusted padding-left to create gap before text */
  white-space: nowrap;
}

#ask-sai-button:hover {
  background-color: #f0f8ff; /* Light blue */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.date-intro-divider {
  height: 2px; /* Height of the divider */
  width: 100%; /* Full width */
  background-image: linear-gradient(to right, #00246B, #0052A5); /* Gradient background */
  margin: 20px 0; /* Margin for spacing */
}

h4 {
  font-size: 24px; /* Larger font size for thank you message */
  margin-bottom: 20px; /* Adjust this value for spacing */
  color: #ffffff; /* White text for thank you message */
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards; /* Fade-in animation */
  font-family: "Lucida Sans";
  font-weight: bold;
  background: rgba(10, 0, 118, 0.5); /* Semi-transparent #00246B background */
  padding: 15px; /* Padding around the text */
  border-radius: 10px; /* Rounded corners */
  display: inline-block; /* Inline block to apply padding and background correctly */
}

.youtube-section {
  text-align: center;
  padding: 20px;
  margin: 0 auto;
}

.youtube-logo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Shadow effect */
  transition: transform 0.3s ease;
}

.youtube-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.youtube-logo:hover {
  transform: scale(1.1); /* Slight zoom effect on hover */
}

.youtube-channel-name {
  font-size: 1.5em;
  margin: 15px 0 10px;
  color: darkblue;
}

.subscribe-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #ff3b3b;
  color: #FFF;
  font-size: 1.2em;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Elevated shadow effect */
  animation: pulse 1.5s infinite ease-in-out; /* Added animation */
}

.subscribe-button:hover {
  background-color: #e60000; /* Darker red on hover */
  transform: translateY(-3px); /* Slight lift effect on hover */
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: scale(1.05); /* Slight scale increase */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3); /* Enhance shadow during pulse */
  }
  100% {
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Return to normal */
  }
}

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}

.grand-button {
  background: linear-gradient(45deg, #6A0DAD, #FFD700);
  color: white;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-align: center;
}

.grand-button:hover {
  background: linear-gradient(45deg, #FFD700, #6A0DAD);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transform: scale(1.05);
}

.grand-button:active {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transform: scale(0.98);
}
