/* ad-banner.css */

/* Ensure the parent container is positioned relatively */
.retrodiv {
  position: relative;
  width: 100%;
  height: 618px; /* Match your existing height */
}

/* Ad Banner Container */
#ad-banner {
  position: absolute; /* Overlay within the parent */
  top: 50%; /* Center vertically within #game */
  left: 50%; /* Center horizontally within #game */
  transform: translate(-50%, -50%); /* Adjust for perfect centering */
  z-index: 9999; /* Increased z-index to ensure it appears above other elements */
  background: rgba(255, 255, 255, 0); /* Slightly opaque background for better visibility */
  width: 302px; /* Exact width */
  height: 252px; /* Exact height */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.5s ease-out;
  pointer-events: auto; /* Ensure the ad is clickable */
  border-radius: 8px; /* Optional: Rounded corners for better aesthetics */
}

/* Close Button Styling */
#close-ad {
  position: absolute;
top: -21px; /* Position above the ad banner */
  left: 0px; /* Position to the left of the ad banner */
  width: 15px;
  height: 15px;
  background: #ff5f5f;
  border: none;
  border-radius: 5%; /* Make it circular */
  color: white;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  transition: background 0.3s;
}

#close-ad:hover {
  background: #ff3b3b;
}
