/* Root height context */
html {
  height: 100%;
}

/* Body layout update */
body {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  background: url("media/images/background.jpg") no-repeat center center fixed;
  background-size: cover; /* makes the image fill the screen */
  color: #f0f0f0;
  min-height: 100vh;        /* fallback for older browsers */
  min-height: 100dvh;       /* dynamic viewport height for stable footer */
  display: flex;
  flex-direction: column;   /* stack main + footer */
  text-align: center;
}

/* Header */
header {
  font-size: 3em;   /* larger header */
  font-weight: bold;
  margin-bottom: 40px;
}

/* Navigation */
nav {
  display: flex;              /* lay links out horizontally */
  justify-content: center;    /* center them across the page */
  gap: 50px;                  /* more spacing between links */
  margin-top: 30px;
}

nav a {
  text-decoration: none;
  color: #f0f0f0;
  font-size: 1.6em;              /* larger links */
  opacity: 0;                    /* start invisible */
  transform: translateY(20px);   /* slight slide-up effect */
  animation: fadeInUp 1s forwards;
}

nav a:nth-child(1) { animation-delay: 0.5s; }
nav a:nth-child(2) { animation-delay: 1s; }
nav a:nth-child(3) { animation-delay: 1.5s; }
nav a:nth-child(4) { animation-delay: 2s; }

nav a:hover {
  color: #ff66cc; /* highlight color on hover */
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Font helpers */
.orbitron-futurefont {
  font-family: "Orbitron", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.source-code-pro-aboutme {
  font-family: "Source Code Pro", monospace;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.7);
}

.modal-content {
  background: #121212;
  color: #f0f0f0;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 60%;
  font-size: 1.2em;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
  font-family: "Source Code Pro", monospace;
}

.close {
  color: #ff66cc;
  float: right;
  font-size: 1.5em;
  font-weight: bold;
  cursor: pointer;
  text-align: right;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Splash screen */
#splash {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url("background.gif") no-repeat center center fixed;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4em;
  font-weight: bold;
  animation: fadeOut 2s ease-in-out forwards;
  animation-delay: 2s;
  z-index: 10;
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

/* Main content centered */
#main {
  flex: 1; /* take remaining space */
  display: flex;
  flex-direction: column;
  justify-content: center;  /* vertical centering */
  align-items: center;      /* horizontal centering */
  opacity: 0;
  transition: opacity 1s ease-in-out;
  padding: 40px;
}

/* Footer pinned to bottom */
footer {
  margin-top: auto; /* pushes footer to bottom */
  text-align: center;
  font-size: 0.9em;
  padding: 20px 0;
}

footer a {
  color: hotpink;
  text-decoration: none;
}

/* Glumbsup image */
#glumbsup-full {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  background: black;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 9999;
  pointer-events: none;
}

/* Console popup */
#cs-console {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  max-width: 90%;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid hotpink;
  border-radius: 8px;
  font-family: "Source Code Pro", monospace;
  color: hotpink;
  display: none;
  flex-direction: column;
  z-index: 9999;
  box-shadow: 0 0 15px hotpink, 0 0 30px hotpink;
}

#console-header {
  background: #111;
  padding: 8px;
  font-weight: bold;
  border-bottom: 1px solid hotpink;
  color: hotpink;
  text-shadow: 0 0 10px white, 0 0 20px hotpink;
}

#console-output {
  padding: 10px;
  height: 200px;
  overflow-y: auto;
  font-size: 0.9em;
  color: hotpink;
}

#console-input {
  background: #111;
  border: none;
  border-top: 1px solid hotpink;
  color: hotpink;
  padding: 8px;
  font-family: inherit;
  outline: none;
  text-shadow: 0 0 5px hotpink;
}

/* Easter egg image */
#jesus-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  display: none;
  z-index: 9998;
}