/* Global Styles */
html {
  box-sizing: border-box;
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-family: "Play", sans-serif; /* Default font for landing page */
  margin: 0;
  background-color: #f4f4f4; /* Light grey background */
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
}

/* Header Styles */
.site-header {
  background-color: #031457; /* Dark blue-grey */
  color: white;
  padding: 15px 30px;
  text-align: center;
  width: 100%;
}

/* Styling for the logo image */
.logo-image {
  height: 144px; /* Adjust as needed */
  width: auto; /* This will maintain the aspect ratio */
  /* Add other styles like margin if necessary */
}

/* Main Content Styles */
.site-content {
  flex: 1;
  padding: 20px;
  width: 100%;
  max-width: 1200px; /* Max width for content area */
  margin: 20px auto; /* Centering content */
  box-sizing: border-box;
}

.warning {
  display: block;
}
.warning-box {
  font-size: large;
  background-color: #f8e832;
  color: #031457;
  padding: 12px;
  max-width: 512px;
  margin: 12px auto;
}

.warning-box strong {
  color: #ff0072;
}

/* Game Tiles Section */
.game-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 25px; /* Increased gap */
  justify-content: center;
  padding: 20px 0;
}

.game-tile {
  background-color: white;
  border: 1px solid #ddd;
  padding: 20px;
  width: 320px; /* Slightly wider */
  text-align: center;
  box-shadow: 1px 1px 0 #ff0072, 2px 2px 0 #edd900, 3px 3px 0 #0091ff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-tile:hover {
  box-shadow: 3px 3px 0 #ff0072, 6px 6px 0 #edd900, 9px 9px 0 #0091ff;
}

/* Styling for the game poster image */
.game-poster {
  display: block; /* Ensures consistent block-level behavior */
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}

.game-poster-image-border {
  border: 1px solid #ddd; /* Standard border for game posters */
}


.game-tile h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #031457; /* Bootstrap primary blue */
  font-size: 1.5em; /* Larger game title */
}

.game-tile p {
  font-size: 1.2em; /* Slightly larger description */
  color: #333;
  flex-grow: 1; /* Allows p to take available space */
  margin-bottom: 0;
}

/* Footer Styles */
.site-footer {
  background-color: #031457; /* Matching header */
  color: #bdc3c7; /* Lighter grey for footer text */
  text-align: center;
  padding: 20px 0;
  width: 100%;
  margin-top: auto; /* Pushes footer to bottom */
}

.site-footer p {
  margin: 8px 0; /* Increased margin */
  font-size: 0.9em;
}

.site-footer a {
  color: #3498db; /* Brighter blue for links */
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* General Button Styles (can be overridden by game-specific CSS) */
button {
  padding: 10px 20px; /* More padding */
  font-size: 1em;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px; /* Slightly more rounded */
  margin-top: 10px;
  transition: background-color 0.2s ease-in-out;
}

button:hover {
  background-color: #0056b3; /* Darker blue on hover */
}

button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Content Page Specific Styles (for About, Terms, Privacy) */
.content-page {
  padding: 20px;
  max-width: 800px; /* Slightly wider than original 700px to match overall site feel */
  margin: 20px auto;
  background-color: #fff;
  border-radius: 10px; /* Consistent with game tiles */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Consistent with game tiles */
}

.content-page h2 {
  color: #031457; /* Matching header/game tile h3 color */
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 2em;
}

.content-page h3 {
  color: #031457; /* Matching header/game tile h3 color */
  margin-top: 1.5em;
  margin-bottom: 10px;
  font-size: 1.4em;
}

.content-page p,
.content-page ul {
  line-height: 1.7; /* Slightly more relaxed line height */
  margin-bottom: 1em;
}

.content-page li {
  margin-bottom: 0.6em;
}

.content-page a {
  color: #3498db; /* Matching footer link color */
  text-decoration: none;
}

.content-page a:hover {
  text-decoration: underline;
}

/* Interstitial Ad Overlay Styles (kept from original, if needed globally) */
#interstitialAdOverlay {
  /* display:none; */ /* Handled by JS */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex; /* Use flex for centering, will be set to none by JS initially */
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#interstitialAdOverlay > div {
  /* Style for the ad box itself */
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
#interstitialAdOverlay h2 {
  margin-top: 0;
  color: #333;
}
#interstitialAdOverlay p {
  color: #555;
  margin-bottom: 15px;
}
#interstitialAdOverlay button {
  background-color: #28a745; /* Green for skip button */
}
#interstitialAdOverlay button:hover {
  background-color: #218838;
}

/* Responsive Design */
@media (max-width: 768px) {
  .logo-image {
    height: 72px; /* Adjust for smaller screens */
  }
  .game-tile {
    width: calc(50% - 25px); /* Two tiles per row on medium screens */
  }
}

@media (max-width: 480px) {
  .game-tile {
    width: 90%; /* Single tile per row on small screens */
  }
  .site-header {
    padding: 10px 15px;
  }
  .site-content {
    padding: 15px;
    margin: 10px auto;
  }
  .warning-box {
    font-size: medium;
    line-height: normal;
  }
}
