:root {
  --space: 1rem;
  --bg: #09090b;
  --fg: #e3e3e3;
  --surface-1: #101012;
  --surface-2: #27272a;
  --surface-3: #52525b;
  --ease-out: cubic-bezier(0.5, 1, 0.89, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: grid;
  color: var(--fg);
  background: var(--bg);
  padding: var(--space);
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

#main-ui {
  position: fixed !important;
  top: 60px !important;
  left: 30px !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
  z-index: 1000 !important;
  transition: opacity 0.5s ease, transform 0.5s ease !important;
}

.card {
  position: relative !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-areas: "card" !important;
  place-items: center !important;
  aspect-ratio: 4/5 !important;
  border: 1px solid var(--surface-2) !important;
  isolation: isolate !important;
  transition: border-color 200ms var(--ease-out), transform 0.3s ease !important;
  user-select: none !important;
  width: 120px !important;
  height: 150px !important;
  border-radius: 12px !important;
  margin: 0 !important;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at bottom left,
    transparent 55%,
    var(--surface-1)
  );
  pointer-events: none;
  box-shadow: var(--bg) -0.5cqi 0.5cqi 2.5cqi inset;
  transition: opacity 900ms var(--ease-out);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--bg), transparent 65%);
  opacity: 0;
  transition: opacity 800ms var(--ease-out);
}

.card > * {
  grid-area: card;
}

.card svg {
  position: relative;
  z-index: 1;
  width: 30%;
  height: auto;
  color: var(--surface-3);
  transition: 300ms var(--ease-out);
  transition-property: color, scale;
}

.card img {
  position: relative;
  z-index: 1;
  width: 70%; /* Larger image for bigger buttons */
  height: auto;
  transition: 300ms var(--ease-out);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  object-fit: contain;
}

.card button {
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1rem; /* Larger font size */
  font-weight: bold;
  position: absolute;
  bottom: 15px;
  padding: 0;
  margin: 0;
  opacity: 0.7;
  transition: opacity 300ms var(--ease-out);
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.card:focus-within {
  outline: 5px auto Highlight;
  outline: 5px auto -webkit-focus-ring-color;
}

.card:where(:hover, :focus-within) {
  border-color: var(--active-color, var(--fg));
  transition: border-color 800ms var(--ease-in-out);
}

.card:where(:hover, :focus-within) svg {
  color: var(--active-color, var(--fg));
  scale: 1.1;
  transition: 300ms var(--ease-in-out);
}

.card:where(:hover, :focus-within) img {
  transform: scale(1.1);
  transition: transform 300ms var(--ease-in-out);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.7));
}

.card:where(:hover, :focus-within) button {
  opacity: 1;
}

.card:where(:hover, :focus-within)::before {
  opacity: 0;
}

.card:where(:hover, :focus-within)::after {
  opacity: 1;
}

.card:hover {
  transform: translateX(5px) !important;
}

/* Nav styles */
#header {
  display: none !important;
}

.nav-link {
  display: none;
}

/* Detail panel styles */
#info-panel {
  display: none !important;
}

#info {
  display: none !important;
}

#detail-panel {
  display: none !important;
}

#container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

h1 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: white;
}

p {
    margin: 0;
    font-size: 14px;
    color: #cccccc;
}

#error-message {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: red;
    color: white;
    padding: 10px;
    z-index: 1000;
    display: none;
}

#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 10px;
    display: none;
    z-index: 1000;
    border: 1px solid #333;
}

/* Add styles for the intro loading screen */
#intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
  text-align: center;
}

.intro-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.intro-logo {
  width: 180px;
  height: 180px;
  margin: 0 auto 2rem;
  position: relative;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(76, 175, 80, 0.4) 0%, transparent 70%);
  animation: pulse 3s infinite ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.intro-logo img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(76, 175, 80, 0.7));
  max-width: 120px;
  margin: 0 auto;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
  70% { box-shadow: 0 0 0 30px rgba(76, 175, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.intro-title {
  color: var(--fg);
  font-size: 3rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 0.5s;
  text-align: center;
  width: 100%;
}

.intro-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 0.8s;
  text-align: center;
  width: 100%;
}

.progress-container {
  width: 300px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 1.1s;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 1.4s;
  text-align: center;
  width: 100%;
}

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

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(76, 175, 80, 0.5);
  border-radius: 50%;
}

/* Add styles for the toggle button */
#toggle-ui {
  position: fixed !important;
  top: 65px !important;
  left: 10px !important;
  transform: none !important;
  width: 30px !important;
  height: 30px !important;
  background-color: rgba(20, 20, 20, 0.7) !important;
  border: 1px solid var(--surface-2) !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  z-index: 1001 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.5) !important;
  transition: all 0.3s ease !important;
}

#toggle-ui:hover {
  background-color: rgba(30, 30, 30, 0.9);
  transform: scale(1.1);
}

#toggle-ui::before,
#toggle-ui::after {
  content: "";
  position: absolute;
  background-color: var(--fg);
  transition: all 0.3s ease;
}

#toggle-ui::before {
  width: 20px;
  height: 2px;
}

#toggle-ui::after {
  width: 2px;
  height: 20px;
}

#toggle-ui.collapsed::after {
  transform: rotate(90deg);
}

/* Learn More Button Animation Styles */
.learn-more-btn {
  display: none;
}

/* Learn More modal overlay */
.learn-more-modal {
  display: none;
}

/* Falling Leaves Animation */
#leaves {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

#leaves i {
  display: inline-block;
  width: 200px;
  height: 150px;
  background: linear-gradient(to bottom right, #309900, #005600);
  transform: skew(20deg);
  border-radius: 5% 40% 70%;
  box-shadow: inset 0px 0px 1px #222;
  border: 1px solid #333;
  z-index: 1;
  animation: falling 10s 0s infinite linear;
  position: absolute;
  opacity: 0.7;
  top: -100px;
}

#leaves i:nth-of-type(2n) { animation-name: falling2; }
#leaves i:nth-of-type(3n) { animation-name: falling3; }

#leaves i:before {
  position: absolute;
  content: '';
  top: 117px;
  right: 9px;
  height: 27px;
  width: 32px;
  transform: rotate(49deg);
  border-radius: 0% 15% 15% 0%;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  border-left: 0px solid #222;
  border-right: 1px solid #222;
  background: linear-gradient(to right, rgba(0,100,0,1), #005600);
  z-index: 1;
}

#leaves i:after {
  content: '';
  height: 125px;
  width: 10px;
  background: linear-gradient(to right, rgba(0,0,0,.15), rgba(0,0,0,0));
  display: block;
  transform: rotate(125deg);
  position: absolute;
  left: 85px;
  border-radius: 50%;
}

/* Smaller leaves */
#leaves i:nth-of-type(n)    { height: 23px; width: 30px; }
#leaves i:nth-of-type(n):before { width: 7px; height: 5px; top: 17px; right: 1px; }
#leaves i:nth-of-type(n):after { width: 2px; height: 17px; left: 12px; top: 0px; }

#leaves i:nth-of-type(2n+1)    { height: 11px; width: 16px; }
#leaves i:nth-of-type(2n+1):before { width: 4px; height: 3px; top: 7px; right: 0px; }
#leaves i:nth-of-type(2n+1):after { width: 2px; height: 6px; left: 5px; top: 1px; }

#leaves i:nth-of-type(3n+2)  { height: 17px; width: 23px; }
#leaves i:nth-of-type(3n+2):before  { height: 4px; width: 4px; top: 12px; right: 1px; }
#leaves i:nth-of-type(3n+2):after  { height: 10px; width: 2px; top: 1px; left: 8px; }

/* Tree-themed leaf colors */
#leaves i:nth-of-type(n)    { background: linear-gradient(to bottom right, #309900, #005600); }
#leaves i:nth-of-type(2n+2)  { background: linear-gradient(to bottom right, #5e9900, #2b5600); }
#leaves i:nth-of-type(4n+1)  { background: linear-gradient(to bottom right, #990, #564500); }
#leaves i:nth-of-type(3n+3)  { background: linear-gradient(to bottom right, #d17d00, #805000); }
#leaves i:nth-of-type(5n+4)  { background: linear-gradient(to bottom right, #cc5500, #803300); }

/* Varying opacity for depth effect */
#leaves i:nth-of-type(n)    { opacity: .7;}
#leaves i:nth-of-type(3n+1)  { opacity: .5;}
#leaves i:nth-of-type(3n+2)  { opacity: .3;}

/* Initial rotation */
#leaves i:nth-of-type(n)    {transform: rotate(180deg);}

/* Animation keyframes */
@keyframes falling {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.9);
  }
  
  100% {
    transform: translate3d(-200px, 110vh, 0) rotate(90deg) scale(0.9);
    opacity: 0;
  }
}

@keyframes falling2 {
  0% {
    transform: translate3d(0, 0, 0) rotate(90deg) scale(0.8);
  }
  
  100% {
    transform: translate3d(200px, 110vh, 0) rotate(0deg) scale(0.8);
    opacity: 0;
  }
}

@keyframes falling3 {
  0% {
    transform: translate3d(0, 0, 0) rotate(-20deg) scale(1);
  }
  
  100% {
    transform: translate3d(-100px, 110vh, 0) rotate(-70deg) scale(1);
    opacity: 0;
  }
}

/* Highlight effect for leaf toggle button in disabled sections */
#toggle-leaves.disabled {
  color: #999 !important;
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
  transform: translate3d(0, 0, 0);
}

@keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }
  
  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-3px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(3px, 0, 0);
  }
}

/* Footer styling for documentation and research links */
#footer {
  position: fixed;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 1000;
  pointer-events: none;
  padding: 10px;
}

#footer-links {
  display: inline-flex;
  gap: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 30px;
  padding: 10px 20px;
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
  border: 1px solid #333;
  pointer-events: auto;
}

.footer-link {
  color: white;
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  padding: 5px 15px;
  border-radius: 20px;
  transition: all 0.3s ease;
  background: rgba(50, 50, 50, 0.4);
}

.footer-link:hover {
  background: rgba(76, 175, 80, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

/* X button specific styling */
#x-link {
  background: rgba(29, 155, 240, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

#x-link:hover {
  background: rgba(29, 155, 240, 0.3);
  box-shadow: 0 5px 10px rgba(29, 155, 240, 0.2);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  #footer-links {
    flex-direction: column;
    gap: 10px;
  }
}

/* Animated Button Styles */
.hero-btn {
  position: relative;
  width: 180px;
  margin: 10px auto;
  height: 60px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
  transform: translateY(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-btn[style*="opacity: 1"] {
  transform: translateY(0);
}

.btn {
  background-color: #4CAF50;
  border: none;
  outline: none;
  text-decoration: none;
  text-transform: uppercase;
  color: #fff;
  display: inline-block;
  width: 180px;
  height: 60px;
  text-align: center;
  line-height: 60px;
  font-size: 24px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 6px;
  white-space: nowrap;
  text-overflow: ellipsis;
  user-select: none;
  cursor: pointer;
  box-shadow: 0 15px 40px rgba(76, 175, 80, 0.5);
  transform: perspective(600px) rotateX(0deg) scale(1);
  transition: all 0.2s linear;
}

.btn:hover {
  background-color: #3c8c40;
  box-shadow: 0 20px 40px rgba(76, 175, 80, 0.5);
}

.btn:active {
  transform: perspective(600px) rotateX(15deg) scale(0.9);
  font-size: 21px;
  box-shadow: 0 20px 40px rgba(76, 175, 80, 0.5);
}

.active .btn:active {
  transform: perspective(600px) rotateX(0deg) scale(1);
  font-size: 22px;
  box-shadow: 0 15px 40px rgba(76, 175, 80, 0.5);
}

.particles-circle {
  position: absolute;
  width: 30px;
  height: 30px;
  top: 10px;
  left: 50%;
  margin-left: -15px;
  z-index: -1;
  border-radius: 50%;
  transform: scale(0);
  visibility: hidden;
}

.particles-circle:nth-of-type(odd) {
  border: solid 2px;
  background-color: transparent;
}

@keyframes particles-animation {
  from {
    transform: scale(1);
    visibility: visible;
  }
  to {
    transform: scale(0);
    visibility: hidden;
  }
}

/* Make 35 unique particle animations */
.active .particles-circle {
  animation: particles-animation 1.5s;
}

/* Random positions for particles */
.active .particles-circle:nth-of-type(1) { animation-delay: 0.025s; left: 60%; top: -50px; }
.active .particles-circle:nth-of-type(2) { animation-delay: 0.05s; left: 40%; top: 30px; }
.active .particles-circle:nth-of-type(3) { animation-delay: 0.075s; left: 70%; top: 20px; }
.active .particles-circle:nth-of-type(4) { animation-delay: 0.1s; left: 30%; top: -40px; }
.active .particles-circle:nth-of-type(5) { animation-delay: 0.125s; left: 65%; top: 10px; }
.active .particles-circle:nth-of-type(6) { animation-delay: 0.15s; left: 35%; top: -30px; }
.active .particles-circle:nth-of-type(7) { animation-delay: 0.175s; left: 75%; top: 30px; }
.active .particles-circle:nth-of-type(8) { animation-delay: 0.2s; left: 25%; top: -20px; }
.active .particles-circle:nth-of-type(9) { animation-delay: 0.225s; left: 80%; top: 20px; }
.active .particles-circle:nth-of-type(10) { animation-delay: 0.25s; left: 20%; top: -10px; }
.active .particles-circle:nth-of-type(11) { animation-delay: 0.275s; left: 85%; top: 10px; }
.active .particles-circle:nth-of-type(12) { animation-delay: 0.3s; left: 15%; top: -50px; }
.active .particles-circle:nth-of-type(13) { animation-delay: 0.325s; left: 90%; top: 30px; }
.active .particles-circle:nth-of-type(14) { animation-delay: 0.35s; left: 10%; top: 20px; }
.active .particles-circle:nth-of-type(15) { animation-delay: 0.375s; left: 95%; top: -30px; }
.active .particles-circle:nth-of-type(16) { animation-delay: 0.4s; left: 5%; top: 10px; }
.active .particles-circle:nth-of-type(17) { animation-delay: 0.425s; left: 55%; top: -20px; }
.active .particles-circle:nth-of-type(18) { animation-delay: 0.45s; left: 45%; top: 15px; }
.active .particles-circle:nth-of-type(19) { animation-delay: 0.475s; left: 50%; top: -45px; }
.active .particles-circle:nth-of-type(20) { animation-delay: 0.5s; left: 50%; top: 35px; }
.active .particles-circle:nth-of-type(21) { animation-delay: 0.525s; left: 60%; top: -35px; }
.active .particles-circle:nth-of-type(22) { animation-delay: 0.55s; left: 40%; top: 25px; }
.active .particles-circle:nth-of-type(23) { animation-delay: 0.575s; left: 70%; top: -25px; }
.active .particles-circle:nth-of-type(24) { animation-delay: 0.6s; left: 30%; top: 5px; }
.active .particles-circle:nth-of-type(25) { animation-delay: 0.625s; left: 65%; top: -15px; }
.active .particles-circle:nth-of-type(26) { animation-delay: 0.65s; left: 35%; top: -5px; }
.active .particles-circle:nth-of-type(27) { animation-delay: 0.675s; left: 75%; top: -55px; }
.active .particles-circle:nth-of-type(28) { animation-delay: 0.7s; left: 25%; top: 45px; }
.active .particles-circle:nth-of-type(29) { animation-delay: 0.725s; left: 80%; top: -10px; }
.active .particles-circle:nth-of-type(30) { animation-delay: 0.75s; left: 20%; top: 30px; }
.active .particles-circle:nth-of-type(31) { animation-delay: 0.775s; left: 85%; top: -40px; }
.active .particles-circle:nth-of-type(32) { animation-delay: 0.8s; left: 15%; top: 10px; }
.active .particles-circle:nth-of-type(33) { animation-delay: 0.825s; left: 90%; top: -20px; }
.active .particles-circle:nth-of-type(34) { animation-delay: 0.85s; left: 10%; top: -30px; }
.active .particles-circle:nth-of-type(35) { animation-delay: 0.875s; left: 95%; top: 25px; }

/* Section screens */
.section-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 2500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease, transform 0.7s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 40px;
  overflow-y: auto;
  transform: translateY(20px);
}

.section-screen.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.section-content {
  max-width: 1000px;
  color: white;
  text-align: center;
  padding-bottom: 80px; /* Add padding at the bottom to ensure the back button is not hidden */
  margin-bottom: 20px;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 2rem;
  font-weight: bold;
  font-family: "Montserrat", sans-serif;
}

.section-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.section-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 3rem;
}

.feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  width: 300px;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #4CAF50;
}

.back-button {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: 2px solid white;
  border-radius: 30px;
  padding: 10px 30px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: fixed;
  bottom: 40px;
  font-family: "Montserrat", sans-serif;
  z-index: 2600;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.back-button:hover {
  background-color: white;
  color: black;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

/* Color customizations for each section */
#roots-btn .btn, 
#roots-screen .feature-title {
  color: #8B4513;
}
#roots-btn .btn {
  background-color: #8B4513;
  color: white;
}
#roots-btn .btn:hover {
  background-color: #704012;
  box-shadow: 0 20px 40px rgba(139, 69, 19, 0.5);
}
#roots-btn .particles-circle {
  background-color: #8B4513;
}
#roots-btn .particles-circle:nth-of-type(odd) {
  border-color: #8B4513;
}
#roots-btn .btn {
  box-shadow: 0 15px 40px rgba(139, 69, 19, 0.5);
}

#trunk-btn .btn, 
#trunk-screen .feature-title {
  color: #A0522D;
}
#trunk-btn .btn {
  background-color: #A0522D;
  color: white;
}
#trunk-btn .btn:hover {
  background-color: #804020;
  box-shadow: 0 20px 40px rgba(160, 82, 45, 0.5);
}
#trunk-btn .particles-circle {
  background-color: #A0522D;
}
#trunk-btn .particles-circle:nth-of-type(odd) {
  border-color: #A0522D;
}
#trunk-btn .btn {
  box-shadow: 0 15px 40px rgba(160, 82, 45, 0.5);
}

#canopy-btn .btn, 
#canopy-screen .feature-title {
  color: #228B22;
}
#canopy-btn .btn {
  background-color: #228B22;
  color: white;
}
#canopy-btn .btn:hover {
  background-color: #1e7a1e;
  box-shadow: 0 20px 40px rgba(34, 139, 34, 0.5);
}
#canopy-btn .particles-circle {
  background-color: #228B22;
}
#canopy-btn .particles-circle:nth-of-type(odd) {
  border-color: #228B22;
}
#canopy-btn .btn {
  box-shadow: 0 15px 40px rgba(34, 139, 34, 0.5);
}

#branches-btn .btn, 
#branches-screen .feature-title {
  color: #2E8B57;
}
#branches-btn .btn {
  background-color: #2E8B57;
  color: white;
}
#branches-btn .btn:hover {
  background-color: #247045;
  box-shadow: 0 20px 40px rgba(46, 139, 87, 0.5);
}
#branches-btn .particles-circle {
  background-color: #2E8B57;
}
#branches-btn .particles-circle:nth-of-type(odd) {
  border-color: #2E8B57;
}
#branches-btn .btn {
  box-shadow: 0 15px 40px rgba(46, 139, 87, 0.5);
}

#section-buttons {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
  width: 300px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  min-height: 280px;
}

/* Make sure only one button is visible at a time by positioning them in the same place */
#section-buttons .hero-btn {
  position: absolute;
  left: 50%;
  top: 55%;  /* Slightly lower than center for visual balance with title */
  transform: translate(-50%, -50%);
  margin: 0;
  width: 220px;
}

.hero-btn img {
  display: block;
  width: 70px;
  height: 70px;
  margin: 25px auto 0;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
  filter: brightness(1.2) contrast(1.1);
}

.hero-btn:hover img {
  opacity: 1;
  transform: scale(1.1);
}

/* Section-specific icon styling */
#roots-btn img {
  filter: brightness(1.2) contrast(1.1) sepia(0.5) hue-rotate(0deg) saturate(1.5);
}

#trunk-btn img {
  filter: brightness(1.2) contrast(1.1) sepia(0.5) hue-rotate(20deg) saturate(1.5);
}

#canopy-btn img {
  filter: brightness(1.2) contrast(1.1) sepia(0.5) hue-rotate(120deg) saturate(1.5);
}

#branches-btn img {
  filter: brightness(1.2) contrast(1.1) sepia(0.5) hue-rotate(150deg) saturate(1.5);
}

@media (max-width: 768px) {
  #section-buttons {
    width: 280px;
    padding: 30px;
  }
  
  #section-buttons h2 {
    font-size: 24px;
    top: 30px;
  }
  
  .hero-btn {
    width: 160px;
  }
  
  .btn {
    width: 160px;
    font-size: 20px;
  }
  
  .hero-btn img {
    width: 60px;
    height: 60px;
    margin: 20px auto 0;
  }
}

/* Section buttons heading */
#section-buttons h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  margin-top: 0;
  margin-bottom: 30px;
  text-align: center;
  color: white;
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
}

/* Audio Controls */
#audio-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 10px;
  border-radius: 30px;
  z-index: 2000;
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
  border: 1px solid #4CAF50;
  transition: all 0.3s ease;
}

#audio-toggle {
  background: none;
  border: none;
  color: #4CAF50;
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
}

#audio-toggle:hover {
  transform: scale(1.1);
  background-color: rgba(76, 175, 80, 0.2);
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.8);
}

#volume-control {
  display: flex;
  align-items: center;
  margin-left: 10px;
  overflow: hidden;
  width: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

#audio-controls:hover #volume-control {
  width: 120px;
  opacity: 1;
}

#volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 6px;
  background: #555;
  outline: none;
  border-radius: 3px;
  cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #4CAF50;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

#volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #4CAF50;
  cursor: pointer;
  border-radius: 50%;
  border: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

#volume-value {
  color: white;
  font-size: 12px;
  margin-left: 8px;
  width: 32px;
}

/* When audio is muted */
#audio-toggle.muted {
  color: #999;
}

/* When play button is visible */
#audio-toggle.play-button {
  width: auto;
  padding: 8px 12px;
  border-radius: 20px;
  background-color: rgba(76, 175, 80, 0.3);
  font-size: 16px;
}

#audio-toggle.play-button:hover {
  background-color: rgba(76, 175, 80, 0.5);
}

@media (max-width: 768px) {
  #audio-controls {
    top: 10px;
    right: 10px;
  }
  
  #audio-toggle {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  
  #audio-controls:hover #volume-control {
    width: 100px;
  }
  
  #volume-slider {
    width: 60px;
  }
}

/* Navigation Arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.7);
  border: 1px solid #4CAF50;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: white;
  font-size: 24px;
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-arrow:hover {
  background-color: rgba(20, 20, 20, 0.9);
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.nav-arrow.prev {
  left: 20px;
}

.nav-arrow.next {
  /* Position it directly next to the section-buttons container */
  position: fixed;
  left: 50%;
  margin-left: 160px; /* Adjusted to be closer to the container */
  top: 50%;
  transform: translateY(-50%);
  /* Add a subtle glow effect to make it more noticeable */
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.5), 0 0 5px rgba(255, 255, 255, 0.3);
  /* Make it slightly larger */
  width: 55px;
  height: 55px;
  font-size: 28px;
}

.nav-arrow.visible {
  opacity: 1;
  visibility: visible;
}

.nav-arrow.next:hover {
  background-color: rgba(20, 20, 20, 0.9);
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.7), 0 0 10px rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
  color: #4CAF50;
}

/* Description Panel Improvements */
#description-panel {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 350px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  border: 1px solid #333;
}

/* Begin Button */
#begin-button {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(20, 20, 20, 0.8);
  color: #4CAF50;
  border: 2px solid #4CAF50;
  border-radius: 50px;
  padding: 15px 40px;
  font-size: 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  z-index: 2000;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
  letter-spacing: 1px;
  opacity: 0;
  visibility: hidden;
}

#begin-button.visible {
  opacity: 1;
  visibility: visible;
  animation: pulse-glow 2s infinite;
}

#begin-button:hover {
  background-color: rgba(76, 175, 80, 0.2);
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 0 30px rgba(76, 175, 80, 0.7);
}

#begin-button:active {
  transform: translate(-50%, -50%) scale(0.95);
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.8);
  }
  100% {
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
  }
}

/* Video section styles */
.video-section {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.video-container {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 25px;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.video-container h2 {
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 10px;
}

.video-container p {
  color: #DDD;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Responsive styles for videos */
@media (max-width: 768px) {
  .section-content {
    max-width: 100%;
    padding: 0 10px 80px;
  }
  
  .video-container {
    padding: 15px;
  }
  
  .video-container h2 {
    font-size: 20px;
  }
  
  .rootshell-details {
    padding: 15px;
  }
}

/* Community Posts Styles */
.community-posts-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 800px;
  margin: 40px auto 0;
}

.community-posts-section h2 {
  color: #228B22;
  margin-bottom: 20px;
  text-align: left;
  align-self: flex-start;
  font-size: 28px;
}

.post-form {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 30px;
  border: 1px solid #228B22;
  box-shadow: 0 0 20px rgba(34, 139, 34, 0.1);
  width: 100%;
}

.post-form input, 
.post-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid #444;
  color: white;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 15px;
}

.post-form input:focus,
.post-form textarea:focus {
  outline: none;
  border-color: #228B22;
  box-shadow: 0 0 10px rgba(34, 139, 34, 0.3);
}

.post-form textarea {
  resize: vertical;
  min-height: 100px;
}

#submit-post {
  background-color: #228B22;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

#submit-post:hover {
  background-color: #1a6b1a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#posts-container {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 15px;
  width: 100%;
  /* Customize scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #228B22 rgba(0, 0, 0, 0.2);
}

#posts-container::-webkit-scrollbar {
  width: 8px;
}

#posts-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

#posts-container::-webkit-scrollbar-thumb {
  background-color: #228B22;
  border-radius: 4px;
}

.community-post {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.community-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.like-button, .delete-button {
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.7;
}

.like-button:hover, .delete-button:hover {
  transform: scale(1.2);
  opacity: 1;
} 