body {
  margin: 0;
  background: #fafafa;
  font-family: Arial, sans-serif;
}

.topbar {
  padding: 12px;
  font-weight: bold;
  background: white;
  border-bottom: 1px solid #ddd;
}

main {
  max-width: 1200px;
  margin: 20px auto;
}

#adContainer {
  display: block;
}

/* Ad Network Cards (outer layer) */
.ad-network-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ad-network-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.ad-network-header h2 {
  font-size: 1.4rem;
  margin: 0;
  color: #0b76ef;
}

/* Ad Format Subcards */
.ad-format-card {
  background: #f7f7f7;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.ad-format-card:last-of-type {
  margin-bottom: 0;
}

.ad-format-title {
  margin-top: 0;
  border-bottom: 2px solid #0b76ef;
  padding-bottom: 6px;
}

/* Ad Slots */
.ad-slots-wrapper {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ad-slot {
  flex: 1 1 calc(33% - 12px);
  border: 2px dashed #ccc;
  border-radius: 6px;
  background: #fff;
  padding: 10px;
  min-width: 200px;
}

.ad-slot:hover {
  border-color: #0b76ef;
  background-color: #f9f9f9;
  box-shadow: 0 2px 8px rgba(11, 118, 239, 0.15);
}

.notice {
  font-size: 14px;
  color: #666;
  text-align: center;
}

.adsbygoogle {
  display: block;
}

/* Responsive design */
@media (max-width: 768px) {
  .ad-network-card {
    margin-bottom: 24px;
    padding: 12px;
  }

  .ad-format-card {
    margin-bottom: 16px;
    padding: 12px;
  }

  .ad-slots-wrapper {
    gap: 12px;
  }

  .ad-slot {
    flex: 1 1 calc(50% - 12px);
    min-width: 100px;
    padding: 12px;
  }

  /* Disclaimer Box */
.disclaimer-box {
  position: fixed;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  font-size: 14px;
  max-width: 260px;
  z-index: 9999;
}

.disclaimer-box strong {
  font-size: 15px;
  color: #0b76ef;
}

.disclaimer-subtitle {
  margin-top: 8px;
  font-size: 13px;
  font-weight: bold;
  color: #444;
}
}
