/* Basic Reset & Body Style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    line-height: 1.6;
    padding: 20px;
    background-color: #f4f4f4;
    color: #333;
}

h1, p {
    text-align: center;
    margin-bottom: 20px;
}

/* Ad Container - using Flexbox for layout */
.ad-container {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    justify-content: center; /* Center items horizontally */
    align-items: flex-start; /* Align items to the top */
    gap: 25px; /* Space between ad slots */
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 1200px; /* Limit overall width */
    margin: 0 auto; /* Center the container */
}

/* General Ad Slot Styling */
.ad-slot {
    border: 1px dashed #ccc;
    background-color: #e9e9e9;
    overflow: hidden; /* Hide anything that might overflow */
    display: flex; /* Use flex to center placeholder text */
    justify-content: center;
    align-items: center;
    text-align: center;

    /* Styles for when image is loaded */
    background-size: cover; /* Cover the entire slot */
    background-position: center;
    background-repeat: no-repeat;
    color: transparent; /* Hide text when background image is set */
}

/* Placeholder text styling */
.ad-slot .placeholder-text {
    color: #888;
    font-size: 0.9em;
    font-style: italic;
    padding: 10px; /* Add padding so text isn't right at edges */
}


/* --- Standard Ad Sizes --- */
.leaderboard {
    width: 728px;
    height: 90px;
    /* Ensure it takes full width on smaller screens if needed */
    max-width: 100%;
}

.medium-rectangle {
    width: 300px;
    height: 250px;
    max-width: 100%;
}

.skyscraper {
    width: 160px;
    height: 600px;
    max-width: 100%;
}

.banner {
    width: 468px;
    height: 60px;
    max-width: 100%;
}

.mobile-banner {
     width: 320px;
     height: 50px;
     max-width: 100%;
}

/* --- Optional: Media Queries for better responsiveness --- */
@media (max-width: 768px) {
    .ad-container {
        justify-content: space-around; /* Adjust spacing */
    }
    .leaderboard, .banner {
        /* Allow them to shrink if needed, though fixed size is typical */
    }
}

@media (max-width: 480px) {
    .ad-container {
       flex-direction: column; /* Stack ads vertically */
       align-items: center; /* Center stacked items */
    }
    /* Make sure ads don't exceed screen width */
    .ad-slot {
       max-width: 95%;
       /* Adjust height proportionally or keep fixed? Decide based on design */
    }
     .leaderboard { width: 320px; height: 50px; } /* Example: resize leaderboard */
     .banner { width: 300px; height: 50px;} /* Example: resize banner */
     .skyscraper { width: 120px; height: 240px; } /* Example: resize skyscraper */
}