/* CSS Reset */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

:root {
  --main-color: #000; /* Main background color */
  --secondary-color: #0f0; /* Neon green for text and accents */
  --default-font: monospace; /* Retro font for UFO theme */
}

/* Default styles */
body {
  font-family: var(--default-font);
  background-color: var(--main-color);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--secondary-color);
  overflow: hidden;
}

header {
  text-align: center;
  margin-bottom: 1rem;
}

header a {
  color: var(--secondary-color);
  text-decoration: none;
}

header a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  font-weight: bold;
  color: var(--secondary-color);
}

h1 {
  font-size: 2em;
  text-align: center;
  text-shadow: 0 0 10px var(--secondary-color);
  animation: pulse 2s infinite;
}

h2 {
  font-size: 1.5em;
  text-align: center;
}

h3 {
  font-size: 1.2em;
  text-align: center;
}

.logo {
  font-size: 1.5rem;
  margin-top: 0.5rem;
  text-shadow: 0 0 5px var(--secondary-color);
}

img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.portal-img {
  max-width: 80%;
  max-height: 60vh;
  object-fit: contain;
  border: 2px solid var(--secondary-color);
  border-radius: 10px;
  transition: opacity 0.5s ease-in-out;
}

.portal-img:hover {
  opacity: 0.8;
  cursor: pointer;
}

figure {
  margin: 0;
  text-align: center;
}

figure figcaption {
  text-align: center;
  color: var(--secondary-color);
  margin-top: 0.5rem;
  font-size: 1rem;
}

a {
  text-decoration: none;
}

@keyframes pulse {
  0% { text-shadow: 0 0 10px var(--secondary-color); }
  50% { text-shadow: 0 0 20px var(--secondary-color); }
  100% { text-shadow: 0 0 10px var(--secondary-color); }
}

/* Media Queries */
@media (min-width: 600px) {
  /* Styles for screens 600px and wider */
  /* Use Grid Layout */
  .grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
  }

  h1 { font-size: 2.5em; }
  .logo { font-size: 1.8rem; }
  .portal-img { max-width: 70%; }
}

@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  .logo { font-size: 1.2rem; }
  .portal-img { max-width: 90%; }
}