/* Responsive styles for Flappy Bird */
@media screen and (max-width: 768px) {
  header {
    width: 100%;
    max-width: 431px;
    padding: 0 10px;
    box-sizing: border-box;
  }

  canvas {
    width: 100%;
    max-width: 431px;
    height: auto;
  }

  .score-container {
    width: 100%;
    max-width: 431px;
    margin: 0 auto;
  }
}

/* AdSense-friendly header and footer styles */
.site-header {
  background: #fff;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-menu {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.nav-menu a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  padding: 5px;
}

.site-footer {
  background: #f5f5f5;
  padding: 20px;
  margin-top: 30px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  text-align: left;
}

.footer-section {
  padding: 10px;
}

.footer-section h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #333;
  text-decoration: none;
  font-size: 12px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #ddd;
  font-size: 12px;
}

/* Ad spaces */
.ad-space {
  width: 100%;
  max-width: 728px;
  margin: 20px auto;
  min-height: 90px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media screen and (max-width: 768px) {
  .ad-space {
    max-width: 320px;
    min-height: 50px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}