:root {
  --accent-color: #3a8ddf;
  --text-color: #cce6ff;
  --accent-hover: #5aaaff;
  --bg-gradient-start: #0a1a2f;
  --bg-gradient-end: #1a2f4f;
  --header-bg: rgba(58, 141, 223, 0.8);
  --content-bg: rgba(58, 141, 223, 0.2);
}
html {
  background-color: var(--bg-gradient-start);
}

body {
  background-color: var(--bg-gradient-start);
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: constant(safe-area-inset-top, 20px); /* legacy iOS */
  height: env(safe-area-inset-top, 20px);      /* modern iOS */
  background-color: var(--header-bg);
  z-index: 1000;
}



body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to bottom, var(--bg-gradient-start), var(--bg-gradient-end));
  color: #cce6ff;
  transition: background 1s ease;
}
canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
}
.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(to bottom, var(--bg-gradient-start), var(--bg-gradient-end));
}
.crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 1000%;
  height: 1000%;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 2px,
    transparent 2px,
    transparent 4px
  );
}
header {
  position: fixed;
  top: constant(safe-area-inset-top, 20px);
  top: env(safe-area-inset-top, 20px); /* pushes header below the top bar */
  
  width: 100%;
  padding: 1rem;
  text-align: center;
  z-index: 999;
  background-color: var(--header-bg);
  box-shadow: 0 2px 8px var(--accent-color);
}


.logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-color);
  text-shadow: none;
}

main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content {
  margin-top: 100px;
  text-align: center;
  color: var(--text-color);
  background-color: var(--header-bg);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px var(--accent-color);
  max-width: 90%;
  width: 600px;
  margin-bottom: 4rem; /* or more */
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: none;
}

p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: none;
}

button {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-color);
}

button:hover {
  background-color: var(--accent-hover);
}

#themeToggle {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 3;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  padding: 0.6rem;
  font-size: 1.2rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background-color 0.3s ease;
}

#themeToggle:hover {
  background-color: rgba(255, 255, 255, 0.2);
}




