/* Ad Styling - Non-disruptive placements */
.ad-container {
    margin: 20px 0;
    text-align: center;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px;
    position: relative;
}

/* Top banner ads removed for cleaner interface */

.ad-container::before {
    content: "Advertisement";
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 10px;
    color: #6c757d;
    text-transform: uppercase;
}

.ad-banner-bottom {
    margin: 20px 0 10px 0;
    max-height: 120px;
    overflow: hidden;
}

/* Content with sidebar layout */
.content-with-sidebar {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.sidebar-ads {
    width: 160px;
    flex-shrink: 0;
}

.ad-sidebar {
    position: sticky;
    top: 20px;
    margin-bottom: 20px;
}

.sidebar-content {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-content h3 {
    margin-top: 0;
    font-size: 14px;
    color: #495057;
}

.sidebar-content p {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 0;
}

/* Between games interstitial ad */
.ad-between-games {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-wrapper {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    position: relative;
}

.ad-label {
    margin-bottom: 15px;
    color: #6c757d;
    font-size: 12px;
    text-transform: uppercase;
}

.close-ad-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.close-ad-btn:hover {
    background-color: #0056b3;
}

/* Ensure main content takes remaining space */
#main-content {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

/* Adsterra specific banner tweaks */
.adsterra-banner iframe {
    max-width: 100%;
    margin: 0 auto;
    display: block;
}