@import url('https://fonts.googleapis.com/css2?family=Geist+Pixel&display=swap');

@font-face {
  font-family: 'Hawk';
  src: url('skyhawk.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html, body {
  background-color: #111;
  color: #fff;
  margin: 0;
  min-height: 100vh;
  font-family: "Geist Pixel", monospace;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

h1 {
  font-family: 'Hawk', monospace;;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 24px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e0e0e0;
  margin-top: 32px;
  margin-bottom: 16px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: #ccc;
  margin-bottom: 12px;
  text-shadow: none;
}

/* Centered Links Section */
.links-container {
  max-width: 50vw; /* About half the viewport width */
  width: 90%; /* Prevent overflow on very wide screens */
  margin: 0 auto; /* Center horizontally */
  padding: 24px 0 16px 0;
}

#my-search-container {
  text-align: center;
  max-width: 50vw; /* About half the viewport width */
  width: 90%; /* Prevent overflow on very wide screens */
  margin: 0 auto; /* Center horizontally */
  padding: 24px 0 16px 0;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: flex-start;
}

/* Link Styles */
a {
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, text-decoration 0.2s;
  white-space: nowrap; /* Keep link text on one line */
}

a:link {
  background-color: #1a1a1a;
  color: #0d76d8;
  border: none;
}
a:visited {
  color: #7026f6;
}
a:hover,
a:focus {
  background-color: #202020;
  text-decoration: underline;
  outline: none;
}

a:active {
  background-color: #191919;
}

/* Optional: code block styling */
pre, code {
  background: #222;
  color: #eee;
  padding: 10px;
  border-radius: 6px;
  font-family: inherit;
  white-space: pre-wrap;
}

/* Responsive for mobile */
@media (max-width: 600px) {
  .links-container {
    max-width: 95vw;
    width: 100%;
  }
  .links {
    flex-direction: column;
    gap: 12px;
  }
  a {
    font-size: 0.97rem;
    padding: 6px 8px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.1rem; }
  h3 { font-size: 0.98rem; }
}

#game-modal {
  position: fixed;
  top: 10%;
  right: 20px;
  z-index: 1000;
  border-radius: 4px;
  padding: 20px 20px;
  box-shadow: 4px 4px 4px 4px rgba(0,0,0,0.18);
  display: none;
  width: 10%;
  height: 30%;
  border-style: solid;
  border-color: #0e0e0e
}

#game-modal h2 {
  background: #1a1a1a;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  margin-top: 0;
  height: 60%;
  overflow-x: hidden;
  overflow-y: auto;
}

#random-game-btn {
  background: #00b3f5;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

#random-game-btn:hover {
  background: #e2747a;
}

#game-info {
  font-size: 16px;
  overflow-x: auto;
  display: inline-block;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
}

#game-url a {
  color: #1976d2;
  text-decoration: underline;
  font-weight: bold;
}