@font-face {
font-family: 'Cyberdyne';
src: url('../fonts/cyberdynegrad.ttf') format('truetype');
font-weight: regular;
font-style: regular;
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500&display=swap');

html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'Cyberdyne';
  background-color: #000;
}
canvas {
  display: block;
  position: fixed; /* Fixed position to stay in the background */
  top: 0;
  left: 0;
  z-index: -1; /* Behind other content */
}

#canvas-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 10;
    text-align: center;
    font-weight: bold;
}

/* Bottom Menu Styles */
.menu-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 250px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.8); /* Changed to dark background */
  border-radius: 20px;
  border: 2px solid #00FFFF; /* Added cyan border */
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5); /* Added glow effect */
  backdrop-filter: blur(15px);
}



.menu {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 45px; /* Increased gap between dots */
}

/* Add pulse animation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: transform 0.3s;
  position: relative;
}

/* Remove animation from base .dot class */
.dot:not(:first-child) {
  animation: pulse 2s infinite;
}

.dot:first-child {
  background-color: #73D2DE;
  animation: none;
}

.dot::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: orbit 3s linear infinite;
}

.dot.active {
  background: #9d65ff;
  transform: scale(1.2);
}

.dot.active::before {
  border-color: #9d65ff;
}

.dot:hover {
  transform: scale(1.3);
}

@keyframes orbit {
  0% { transform: rotate(0deg); border-color: rgba(157, 101, 255, 0.2); }
  33% { border-color: rgba(115, 210, 222, 0.5); }
  66% { border-color: rgba(56, 118, 138, 0.5); }
  100% { transform: rotate(360deg); border-color: rgba(157, 101, 255, 0.2); }
}

/* Mobile swipe hint */
@media (max-width: 768px) {
  .menu-container::before {
    content: 'Swipe to navigate';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 10px;
    animation: fadeOut 3s forwards;
    text-shadow: 0 0 10px rgba(115, 210, 222, 0.5);
  }
}

@keyframes fadeOut {
  0% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { opacity: 0; }
}

/* Top left menu */
/* Submenu Styles */

.question-mark-menu {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10001;
    font-family: 'Cyberdyne', Arial, sans-serif;
}

.question-mark {
width: 40px;
height: 40px;
background-color: rgba(0, 0, 0, 0.8);
color: #00FFFF;
border: 2px solid #00FFFF;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
font-size: 24px;
cursor: pointer;
box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
transition: all 0.3s ease;
}

.question-mark:hover {
transform: scale(1.1);
box-shadow: 0 0 20px rgba(0, 255, 255, 0.7);
}

.top-menu-content {
position: absolute;
top: 50px;
left: 0;
width: 250px;
background-color: rgba(0, 0, 0, 0.9);
border: 2px solid #00FFFF;
border-radius: 10px;
padding: 20px;
box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
opacity: 0;
transform: translateY(-10px);
transition: opacity 0.3s ease, transform 0.3s ease;
z-index: 10001;
}

.close-button {
position: absolute;
top: 10px;
right: 15px;
font-size: 24px;
color: #FF00FF;
cursor: pointer;
transition: transform 0.3s ease;
}

.close-button:hover {
transform: scale(1.2);
}

.top-menu-list {
display: flex;
flex-direction: column;
gap: 15px;
margin-top: 10px;
}

.top-menu-item {
color: #9AD2E6;
font-size: 18px;
padding: 10px;
border-radius: 5px;
cursor: pointer;
transition: all 0.3s ease;
text-align: center;
}

.top-menu-item:hover {
background-color: rgba(157, 101, 255, 0.3);
color: #FFFFFF;
}

.submenu-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 50%;
  height: auto;
  max-height: 90vh;
  background-color: rgba(0, 0, 0, 0.95);
  border: 2px solid #9d65ff;
  border-radius: 0 0 15px 0;
  padding: 20px;
  box-shadow: 0 0 30px rgba(157, 101, 255, 0.6);
  overflow-y: auto;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10002;
}

.submenu-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  color: #FF00FF;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 10003;
}

.submenu-close:hover {
  transform: scale(1.2);
}

.submenu-content {
  padding: 20px;
  color: #FFFFFF;
  font-family: 'Cyberdyne', Arial, sans-serif;
}

/* About Project Styles */
.cover-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
  border: 2px solid #73D2DE;
  border-radius: 10px;
}

.mission-statement {
  font-size: 1.3em;
  color: #9AD2E6;
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: left;
}

.description {
  font-size: 1.1em;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #ffffff;
  display: block;
}

/* How to Interact Styles */
.interaction-card {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding: 15px;
  background-color: rgba(8, 65, 92, 0.3);
  border-radius: 10px;
  border-left: 3px solid #9d65ff;
}

.card-image {
  flex: 0 0 120px;
  display: flex;
  align-items: center;
}

.card-image img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  border-left: 2px solid #00FFFF; /* Added cyan border */
}

.card-text {
  flex: 1;
}

.card-text h3 {
  color: #73D2DE;
  margin-top: 0;
  margin-bottom: 10px;
}

.funding-note {
  text-align: center;
  font-style: italic;
  color: #73D2DE;
  margin-top: 30px;
}

/* Contact Us Styles */
.contact-card {
  margin-bottom: 40px;
}

.contact-card h3 {
  color: #9d65ff;
  border-bottom: 1px solid #38768A;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.contact-info {
  display: flex;
  gap: 20px;
}

.contact-image {
  flex: 0 0 150px;
}

.contact-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid #73D2DE;
}

.contact-bio {
  flex: 1;
  font-size: 0.9em;
  line-height: 1.5;
}

.social-links {
  margin-top: 15px;
}

.social-links a {
  display: inline-block;
  margin-right: 15px;
  color: #73D2DE;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #9d65ff;
  text-decoration: underline;
}

.funding-logos, .support-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0 30px;
  cursor: pointer;
}

.funding-logos img, .support-logos img {
  height: 40px;
  width: auto;
  margin-top: 10px;
}

#instructions {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  pointer-events: none;
  z-index: 1000;
}
#palette-indicator {
  position: absolute;
  top: 20px;
  right: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  pointer-events: none;
}