@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

.webgl-content * {border: 0; margin: 0; padding: 0}
.webgl-content .logo, .progress {position: absolute; left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);}
.webgl-content .logo {background: url('progressLogo.Light.png') no-repeat center / contain; width: 154px; height: 130px;}
.webgl-content .progress {height: 18px; width: 141px; margin-top: 90px;}
.webgl-content .progress .empty {background: url('progressEmpty.Light.png') no-repeat right / cover; float: right; width: 100%; height: 100%; display: inline-block;}
.webgl-content .progress .full {background: url('progressFull.Light.png') no-repeat left / cover; float: left; width: 0%; height: 100%; display: inline-block;}

.webgl-content .logo.Dark {background-image: url('progressLogo.Dark.png');}
.webgl-content .progress.Dark .empty {background-image: url('progressEmpty.Dark.png');}
.webgl-content .progress.Dark .full {background-image: url('progressFull.Dark.png');}

.webgl-content .footer {margin-top: 5px; height: 38px; line-height: 38px; font-family: Helvetica, Verdana, Arial, sans-serif; font-size: 18px;}
.webgl-content .footer .webgl-logo, .title, .fullscreen {height: 100%; display: inline-block; background: transparent center no-repeat;}
.webgl-content .footer .webgl-logo {background-image: url('webgl-logo.png'); width: 204px; float: left;}
.webgl-content .footer .title {margin-right: 10px; float: right;}
.webgl-content .footer .fullscreen {background-image: url('fullscreen.png'); width: 38px; float: right;}

:root {
  --bg: #0e0e17;
  --text-primary: #ececec;
  --text-secondary: #a3a3a3;
  --text-muted: #6b7280;
  --border: #333;
  --hover-bg: #1a1a2e;
  --cursor-color: #ececec;
  --max-width: 42rem;

  /* aliases for earlier styles */
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --border-subtle: rgba(148, 163, 184, 0.35);
  --radius-lg: 18px;
  --shadow-soft: 0 24px 80px rgba(15, 23, 42, 0.85);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
  overflow-x: hidden;
}

/* portfolio site base styles (from index.css) */
a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

::selection {
  background: rgba(236, 236, 236, 0.15);
  color: var(--text-primary);
}

/* app layout + typewriter aesthetics (from App.css) */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  padding: 1.5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.clock {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.header-name {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text-primary);
  text-transform: lowercase;
}

.header-subtitle {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

.main {
  padding: 0 2rem;
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
  flex-grow: 1;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1rem;
  line-height: 1.625;
  max-width: 100%;
}

.line {
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(2px);
  animation: fadeInLine 0.3s ease-out forwards;
}

.line.muted {
  color: var(--text-secondary);
}

.line a {
  text-decoration: underline;
  text-decoration-color: var(--text-primary);
  text-underline-offset: 3px;
}

.line a:hover {
  color: #fff;
}

.line-spacer {
  height: 0.5rem;
}

.line-section {
  margin-top: 1rem;
}

.cursor {
  display: inline-block;
  width: 0.5rem;
  height: 1.25rem;
  background-color: var(--cursor-color);
  transform: translateY(0.25rem);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

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

.footer {
  margin-top: auto;
  padding-bottom: 2rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #9ca3af;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-links svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (max-width: 640px) {
  .header,
  .main {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* game container styled like portfolio items */
.game-shell {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: calc(0.5rem - 2px);
  background-color: transparent;
}

.game-shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.game-shell-label {
  text-transform: lowercase;
}

.game-shell-fullscreen {
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: transparent;
  color: var(--text-secondary);
  padding: 0.15rem 0.7rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.game-shell-fullscreen:hover {
  background-color: var(--hover-bg);
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.game-shell-body {
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  width: 100%;
  overflow-x: auto;
  display: flex;
  justify-content: center;
}

.webgl-content {
  padding: 0.5rem;
  position: relative;
}

#unityContainer {
  max-width: 940px;
  margin: 0 auto;
  display: block;
}

.webgl-content .footer {
  margin-top: 0.5rem;
  height: auto;
  line-height: 1.4;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.webgl-content .footer .webgl-logo {
  display: none;
}

.webgl-content .footer .title {
  margin-right: 0;
  float: none;
  text-transform: lowercase;
}

.webgl-content .footer .fullscreen {
  display: none;
}

.webgl-content .footer .instructions {
  text-align: right;
  max-width: 60%;
}
