* {
  margin: 0;
  padding: 0;
}

/* 👾 Pixelated, monospaced font */
@font-face {
  font-family: monogram;
  src: url(static/monogram.ttf);
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: url("images/glow.webp"); 
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  background-color: black;
  color: white;
  font-family: monogram, Courier, monospace;
}

/* The main container for the entire screen */
#starfield {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0; /* Keep stars and planet in the background */
}

/* Planetoid container for the video and image */
#planet {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Hide the still image by default */
#planet-image {
  display: none; 
}

/* Show and style the video by default */
#planet-video {
  display: block; 
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  bottom: 0;
  left: 0;
  pointer-events: none;
}

/* Star styles for the animated stars */
.star {
  position: absolute;
  background-color: lightskyblue;
  border-radius: 50%;
}

.main-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2vmin;
    background-color: rgba(0, 0, 0, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 60vmin;
    min-height: 40vmin; 
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
        margin: 0 auto; 
        text-align: left; 
}

.main-content .header-center:nth-child(1) {
    top: 2vmin; 
}

.main-content .header-center:nth-child(2) {
    top: 12vmin;
}

h1, h2 {
    position: relative;
    z-index: 2;
        margin: 0 auto; 
    text-align: left; 
    white-space: nowrap; 
    text-shadow: 0 0 12px #fff;
    margin-bottom: 0;
}

h1 {
  width: 16ch; /* POTATORADIUS.COM (17 chars) */
  font-size: 10vmin;
  line-height: 1.2;
}

h2 {
  width: 30ch; /* SOFTWARE DEVELOPMENT PORTFOLIO (32 chars) */
  font-size: 4vmin;
  line-height: 1.2;
}

/* The key scanline effect */
.mask-text {
  -webkit-mask-image: repeating-linear-gradient(#00000077 2px, black 4px);
  mask-image: repeating-linear-gradient(#00000077 2px, black 4px);
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
}

.link-container {
    position: absolute;
    top: 18vmin;
    left: 50%;
    transform: translateX(-50%);
    width: 90%; 
    max-width: fit-content;
    display: flex;
    flex-direction: column;
    gap: 2vmin;
    margin-top: 0; 
}

.link-item {
  color: #fff;
  text-decoration: none;
  font-size: 3.5vmin;
  padding: 1vmin 2vmin;
  border: 1px solid #fff;
  display: inline-block;
  text-shadow: 0 0 5px #fff;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.link-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px #fff;
}