html, body {
  margin: 0;
  padding: 0;
  overflow-y: auto; /* Enable vertical scrolling */
  overflow-y: scroll;
  height: 100%; /* Ensure full height for scrolling */
}

body {
  margin: 0;
  padding: 0;
  background-color: #ffff;
  font-family: 'Arial', sans-serif;
  color: white;
  overflow-y: auto;
  overflow-y: scroll;
}

#canvas {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

button {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Project display container */
.project-container {
  position: relative;
  left: 72vw;
  width: 25vw;
  height: 20vh;
  z-index: 10;
  transition: all 0.5s;
  border-radius: 10px;
  /* overflow: hidden; */
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
  margin-bottom: 20px;
  transform-origin: center;
}

/* Rubber animation keyframes */
@keyframes rubberBand {
  0% { transform: scale(1); }
  30% { transform: scale(1.25, 0.75); }
  40% { transform: scale(0.75, 1.25); }
  50% { transform: scale(1.15, 0.85); }
  65% { transform: scale(0.95, 1.05); }
  75% { transform: scale(1.05, 0.95); }
  100% { transform: scale(1); }
}

@keyframes bounce {
  0%, 30% { transform: translateY(0); }
  30% { transform: translateY(-2px); }
}

/* Hover effects */
/* .project-container:hover {
  animation: rubberBand 1.2s;
} */

.project-container:hover .project-image {
  animation: bounce 0.8s ease-in-out infinite;
  
}

/* Position each project container from top to bottom */
.project-container.project-0 { top: 20px; }
.project-container.project-1 { top: 220px; }
.project-container.project-2 { top: 420px; }
.project-container.project-3 { top: 620px; }
.project-container.project-4 { top: 820px; }
.project-container.project-5 { top: 1020px; }

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  position: relative;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: scale(0.8);
  border-radius: 10px;
}

.project-image.active {
  opacity: 1;
  transform: scale(1);
}

.project-label {
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  border-radius: 0 0 10px 10px;
}

.project-container:hover .project-label {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 10px 12px;
}

/* World-specific glows for character container */
.project-container.project-0 {
  box-shadow: 0 0 30px rgba(0, 100, 255, 0.7);
}

.project-container.project-1 {
  box-shadow: 0 0 30px rgba(255, 100, 255, 0.7);
}

.project-container.project-2 {
  box-shadow: 0 0 30px rgba(255, 150, 0, 0.7);
}

.project-container.project-3 {
  box-shadow: 0 0 30px rgba(0, 255, 100, 0.7);
}

.project-container.project-4 {
  box-shadow: 0 0 30px rgba(255, 0, 50, 0.7);
}

.project-container.project-5 {
  box-shadow: 0 0 30px rgba(200, 200, 200, 0.7);
}

/* Project selection buttons */
.project-buttons {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.project-button {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  overflow: visible;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
  margin: 0;
  text-decoration: none;
  display: block;
}

.project-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 10px;
}

.project-button:hover {
  transform: translateX(18px) scale(1.2);
  transition: all 0.3s ease;
  z-index: 2;
}

.project-button.active {
  transform: translateY(-5px) scale(1.1);
  z-index: 11;
}

/* Project button labels */
.project-button .button-label {
  position: absolute;
  bottom: -32px;
  left: 0;
  transform: none;
  color: #fff;
  padding: 6px 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.5px;
  white-space: nowrap;
  /* overflow: hidden; */
  text-overflow: ellipsis;
  /* background-color: rgba(255, 255, 255, 0.9); */
  border-radius: 4px;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
  text-shadow: none;
  min-width: 80px;
  text-decoration: none;
  display: block;
}

.project-button:hover .button-label {
  color: #000;
  /* transform: translateY(-2px); */
  /* background-color: rgba(255, 255, 255, 1); */
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); */
  /* transition: all 0.3s ease; */
}

/* .project-button.project-0 {
  box-shadow: 0 0 5px rgba(0, 100, 255, 0.7);
}

.project-button.project-1 {
  box-shadow: 0 0 5px rgba(200, 200, 200, 0.7);
}

.project-button.project-2 {
  box-shadow: 0 0 5px rgba(255, 150, 0, 0.7);
}

.project-button.project-3 {
  box-shadow: 0 0 5px rgba(0, 255, 100, 0.7);
}

.project-button.project-4 {
  box-shadow: 0 0 5px rgba(255, 0, 50, 0.7);
}

.project-button.project-5 {
  box-shadow: 0 0 5px rgba(200, 200, 200, 0.7);
} */

/* .sci6483 video{
  position: relative;
  top: 20px;
  left: 20px;
  z-index: 0;
} */

.sci6483{
  position: fixed;
  width: 10vw;
  height: 10vh;
  z-index: 0;
}

/* SCI 6483 Link */
.sci6483-link {
  position: fixed;
  bottom: 20px; /* Adjusted to ensure visibility */
  right: 0.5vw;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  z-index: 10;
}

.sci6483-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sci6483-link b{
  color: blue gray;
}

video {
  position: fixed;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  top: 0;
  left: 0;
}

.share-header {
  /* Add overlay styles if needed */
  position: absolute;
  top: 0;
  width: 100%;
  text-align: center;
  background: rgba(0,0,0,0.5); /* semi-transparent background */
  color: #fff;
  z-index: 2;
  padding: 1em 0;
}

.desktop {
  position: relative;
}