/* Custom CSS */
:root {
  --vibrant-yellow: #ffcc00; /* Bright yellow */
  --fiery-red: #e63946; /* Bold red */
  --ocean-blue: #457b9d; /* Deep blue */
  --sunny-orange: #fca311; /* Warm orange */
  --mint-green: #a8dadc; /* Soft green */
  --dark-purple: #2c3e50; /* Rich purple */
}

body {
  background: linear-gradient(
    135deg,
    var(--vibrant-yellow),
    var(--sunny-orange)
  ); /* Gradient background */
  font-family: "Comic Neue", cursive; /* Fun, casual font for body text */
  color: var(--dark-purple); /* Dark text for contrast */
  margin: 0;
  padding: 0;
  position: relative; /* Required for pseudo-elements */
  overflow-x: hidden; /* Prevent horizontal scrolling caused by decorations */
}

/* Add decorative balloons (First Set) */
body::before,
body::after {
  content: "";
  position: absolute;
  top: 9%; /* Adjust vertical position */
  width: 200px; /* Width of the balloon image */
  height: 700px; /* Height of the balloon image */
  background-image: url("assets/images/balloons.webp"); /* Path to the balloon image */
  background-size: 200px; /* Ensure the image scales properly */
  background-repeat: no-repeat; /* Prevent repetition */
  z-index: -1; /* Place balloons behind the content */
  opacity: 0.8; /* Slightly transparent for subtlety */
}

/* Left Balloon (First Set) */
body::before {
  left: 0; /* Offset from the left edge */
}

/* Right Balloon (First Set) */
body::after {
  right: 0; /* Offset from the right edge */
  transform: rotate(1deg) scaleX(-1); /* Rotate and flip horizontally */
}

/* Add decorative balloons (Second Set) */
.second-set::before,
.second-set::after {
  content: "";
  position: absolute;
  top: 37%; /* Adjust vertical position for the second set */
  width: 200px; /* Width of the balloon image */
  height: 700px; /* Height of the balloon image */
  background-image: url("assets/images/balloons.webp"); /* Path to the balloon image */
  background-size: 200px; /* Ensure the image scales properly */
  background-repeat: no-repeat; /* Prevent repetition */
  z-index: -1; /* Place balloons behind the content */
  opacity: 0.8; /* Slightly transparent for subtlety */
}

/* Left Balloon (Second Set) */
.second-set::before {
  left: 0; /* Offset from the left edge */
}

/* Right Balloon (Second Set) */
.second-set::after {
  right: 0; /* Offset from the right edge */
  transform: rotate(1deg) scaleX(-1); /* Rotate and flip horizontally */
}

/* Add decorative balloons (Third Set) */
.third-set::before,
.third-set::after {
  content: "";
  position: absolute;
  top: 65%; /* Adjust vertical position for the second set */
  width: 200px; /* Width of the balloon image */
  height: 600px; /* Height of the balloon image */
  background-image: url("assets/images/balloons.webp"); /* Path to the balloon image */
  background-size: 200px; /* Ensure the image scales properly */
  background-repeat: no-repeat; /* Prevent repetition */
  z-index: -2; /* Place balloons behind the content */
  opacity: 0.8; /* Slightly transparent for subtlety */
}

/* Left Balloon (Third Set) */
.third-set::before {
  left: 0; /* Offset from the left edge */
}

/* Right Balloon (Third Set) */
.third-set::after {
  right: 0; /* Offset from the right edge */
  transform: rotate(1deg) scaleX(-1); /* Rotate and flip horizontally */
}

/* Rest of the CSS remains unchanged */

header {
  background: linear-gradient(
    135deg,
    var(--fiery-red),
    var(--ocean-blue)
  ); /* Dynamic gradient */
  color: white;
  text-align: center;
  padding: 20px;
  font-family: "Fredoka One", cursive; /* Bold, playful font for headers */
  font-size: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Shadow for depth */
  margin: 0 0 20px;
}

h1,
h2,
h3 {
  font-family: "Fredoka One", cursive; /* Fun font for titles */
  text-align: center;
  text-transform: uppercase; /* Make headers stand out */
  letter-spacing: 2px; /* Add spacing for emphasis */
}

.custom-card {
  background: linear-gradient(
    135deg,
    var(--mint-green),
    var(--sunny-orange)
  ); /* Gradient for cards */
  border-radius: 20px; /* Rounded corners for a modern look */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Enhanced shadow for depth */
  padding: 20px;
  margin: 20px auto;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.custom-card:hover {
  transform: scale(1.03); /* Slight zoom effect on hover */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3); /* Stronger shadow */
}

.form-label {

  font-weight: 600;
  
}

form input[type="number"] {
  background-color: var(--mint-green);
  border: 2px solid var(--dark-purple);
  border-radius: 10px; /* Rounded inputs */
  font-family: "Comic Neue", cursive; /* Match body font */
  font-size: 1rem;
  padding: 10px;
  color: var(--dark-purple);
  transition: transform 0.2s ease-in-out;
}
form input[type="number"]:focus {
  transform: scale(1.05); /* Zoom effect when focused */
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.btn-custom {
  background: linear-gradient(
    135deg,
    var(--fiery-red),
    var(--ocean-blue)
  ); /* Gradient buttons */
  border: none;
  font-family: "Fredoka One", cursive; /* Bold font for buttons */
  font-size: 1.2rem;
  padding: 12px 24px;
  color: white;
  text-transform: uppercase; /* All caps for emphasis */
  letter-spacing: 1px; /* Spacing for a bold look */
  border-radius: 15px; /* Rounded corners */
  transition: transform 0.3s ease-in-out;
}
.btn-custom:hover {
  transform: scale(1.1); /* Zoom effect on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Results Table Styling */
table {
  margin-top: 20px;
  border-collapse: collapse;
  width: 100%;
}

.row {
  margin-right: 20px;
}

th {
  background: linear-gradient(
    135deg,
    var(--fiery-red),
    var(--ocean-blue)
  ); /* Gradient headers */
  color: white;
  font-family: "Fredoka One", cursive; /* Bold font for table headers */
  font-size: 1.4rem; /* Larger font size for headers */
  padding: 15px;
  text-transform: uppercase; /* All caps for emphasis */
  letter-spacing: 2px; /* Spacing for a festive look */
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-break: break-word; /* Break long words if necessary */
}

td {
  background: linear-gradient(
    135deg,
    var(--mint-green),
    var(--sunny-orange)
  ); /* Gradient rows */
  font-family: "Fredoka One", cursive; /* Fun font for results */
  font-size: 1.6rem; /* Large font size for results */
  padding: 15px;
  color: var(--dark-purple); /* Dark text for contrast */
  text-align: center;
  border: 2px solid var(--dark-purple); /* Add borders for clarity */
  transition: transform 0.2s ease-in-out; /* Hover effect */
}
td:hover {
  transform: scale(1.05); /* Slight zoom effect on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Shadow for depth */
}

tbody tr:nth-child(even) td {
  background: linear-gradient(
    135deg,
    var(--sunny-orange),
    var(--mint-green)
  ); /* Alternate row gradient */
}

tbody tr:nth-child(odd) td {
  background: linear-gradient(
    135deg,
    var(--mint-green),
    var(--sunny-orange)
  ); /* Alternate row gradient */
}

#ad1-header,
#ad2-footer {
  background: linear-gradient(
    135deg,
    var(--sunny-orange),
    var(--fiery-red)
  ); /* Gradient ads */
  color: white;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  margin: 20px auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .col-md-8 {
    width: 95% !important;
    margin: 0 auto !important;
  }
  .custom-card {
    padding: 15px;
    margin: 15px auto;
  }
  .btn-custom {
    font-size: 1rem;
    padding: 8px 16px;
  }
  th,
  td {
    font-size: 1.2rem; /* Adjust font size for smaller screens */
    padding: 10px;
  }
}

/* Footer Styling */
footer {
  background-color: var(--dark-purple);
  color: white;
  font-family: "Comic Neue", cursive;
  font-size: 0.9rem;
  text-align: center;
  padding: 15px 0;
}

footer a {
  color: var(--vibrant-yellow);
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

footer a:hover {
  color: var(--sunny-orange);
}

/* Styling for Google Ads */
#ad2-middle {
  text-align: center;
  background: linear-gradient(135deg, var(--mint-green), var(--sunny-orange));
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sticky-ad {
  position: -webkit-sticky; /* For Safari compatibility */
  position: sticky;
  top: 0; /* Stick to the top of the viewport */
  z-index: 1000; /* Ensure it stays above other content */
}

#ad2-middle ins {
  display: inline-block;
  margin: 0 auto;
}

/* Ad Container */
#ad1-header {
  background: linear-gradient(135deg, var(--sunny-orange), var(--fiery-red));
  padding: 20px;
  text-align: center;
  margin: 20px auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.ad-container {
  display: flex;
  justify-content: space-around; /* Distribute items evenly */
  align-items: stretch; /* Ensure all items stretch to the same height */
  gap: 15px; /* Space between items */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.ad-item {
  display: flex; /* Use flexbox for alignment */
  flex-direction: column; /* Stack image and title vertically */
  align-items: center; /* Center items horizontally */
  text-align: center;
  width: calc(25% - 20px); /* Four items per row with spacing */
  transition: transform 0.3s ease-in-out;
}

.ad-item:hover {
  transform: scale(1.05); /* Slight zoom effect on hover */
}

.ad-link {
  text-decoration: none; /* Remove underline from links */
  color: var(--dark-purple); /* Dark text for contrast */
  display: flex; /* Use flexbox to align content */
  flex-direction: column; /* Stack image and title vertically */
  align-items: center; /* Center items horizontally */
  justify-content: space-between; /* Ensure spacing between image and title */
  height: 100%; /* Full height of the container */
}

.ad-image {
  width: 100%; /* Ensure images are responsive */
  height: auto; /* Maintain aspect ratio */
  border-radius: 10px; /* Rounded corners for images */
  transition: transform 0.3s ease-in-out;
}

.ad-image:hover {
  transform: scale(1.1); /* Zoom effect on image hover */
}

.ad-section-title {

  font-family: 'Arial'; /* Bold font for titles */
  font-weight: 600;
  font-size: 0.9rem;
  color: black; /* Dark text for contrast */
  line-height: 1.4; /* Consistent line height */
  height: 15px; /* Fixed height for titles to ensure alignment */
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Center text vertically */
  justify-content: center; /* Center text horizontally */
}


.ad-title {
  font-family: 'Fredoka One', cursive; /* Bold font for titles */
  font-size: 1rem;
  margin-top: 10px; /* Space between image and title */
  color: var(--dark-purple); /* Dark text for contrast */
  transition: color 0.3s ease-in-out;
  line-height: 1.4; /* Consistent line height */
  height: 40px; /* Fixed height for titles to ensure alignment */
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Center text vertically */
  justify-content: center; /* Center text horizontally */
}

.ad-title:hover {
  color: var(--vibrant-yellow); /* Change color on hover */
}

#result-people {

  font-size: 1.2rem; /* Match the input label size */

}

/* Responsive Design */
@media (max-width: 768px) {
  .ad-item {
    width: calc(50% - 20px); /* Two items per row on smaller screens */
  }
}

@media (max-width: 480px) {
  .ad-item {
    width: 100%; /* One item per row on very small screens */
  }
}