body {
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #f0f0f0;
    font-family: 'Cyberdyne';
    overflow: hidden;
    user-select: none;
}

#container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.thought {
    position: absolute;
    cursor: none;
    transition: transform 0.3s ease, color 0.3s ease;
    transform-origin: center;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.thought:hover {
    transform: scale(1.2);
    z-index: 100;
    cursor: pointer;
}

#info {
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-size: 14px;
    width: 300px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    z-index: 200;
}

@keyframes thoughtPulse {
    0% { opacity: 0.9; }
    50% { opacity: 1; }
    100% { opacity: 0.9; }
}

#player {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 400px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    z-index: 200;
    display: none;
}

#thought-content {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.4;
    max-height: 200px;
    overflow-y: auto;
}

#controls {
    position: fixed;
    top: 20px;
    left: 100px;
    z-index: 200;
}

button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
}

button:hover {
    background-color: #555;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 300;
}

#intro-box {
    background-color: #222;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    text-align: center;
}

h1 {
    margin-top: 0;
    color: #9d65ff;
}

#start-button {
    background-color: #9d65ff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

#start-button:hover {
    background-color: #8a4dff;
}

#add-thought {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #9d65ff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

#add-thought-form {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    z-index: 200;
    display: none;
    width: 300px;
}

#add-thought-form input,
#add-thought-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    background-color: #222;
    border: 1px solid #444;
    color: white;
    border-radius: 4px;
}

#add-thought-form textarea {
    min-height: 100px;
    resize: vertical;
}

#submit-thought {
    background-color: #9d65ff;
    width: 100%;
}


/* 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); }
}

/* Add this inside your existing <style> tags in the head section */
#genre-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    z-index: 1000;
    text-align: center;
    transition: opacity 0.5s;
    max-width: 250px; /* Limit width */
    overflow: hidden;
}

#genre-notification div:first-child {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 16px;
}

#genre-notification div:last-child {
    font-size: 12px;
    opacity: 0.8;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
}


/* 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;
}


/* 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; }
}