@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700&display=swap');

body {
  background: #0A121C;
  color: ivory;
  font-family: 'Inter Tight', sans-serif;
  display: flex;
  margin: 0;
  padding-top: 50px; /* Push content down to avoid overlap */
  height: 100vh;
  overflow: hidden;

  /* Slide-up entrance animation */
  animation: slideUpIn 0.9s forwards;
  transform: translateY(100%);
  opacity: 0;
}



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




/* Left panel fixed to left */
#controls {
  width: 300px;
  padding: 50px 30px;
  background: #0A121C;
  border-right: 0.2px solid #5A5A5A80;
 

  height: 100vh;
  overflow-y: auto; /* allow vertical scroll */
  box-sizing: border-box;
  flex-shrink: 0;
  font-weight: 500;
  letter-spacing: 0.02em;

  position: fixed;
  top: 50px; /* below body padding */
    height: calc(100vh - 30px); /* Subtract the new top offset to prevent cutoff */
  overflow-y: auto; /* Ensure scroll works if content exceeds new height */
  left: 0;
  bottom: 0;
  z-index: 10;
}

/* h2 {
  margin-top: 0;
  margin-bottom: 25px;
  font-weight: 700;
  font-size: 1.1rem;
  font-weight: 500;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.08em;
} */


/* Facts container fixed next to left panel */
#fact-container {
  position: fixed;
  top: 80px;
  left: 350px; /* right of fixed left panel */
  width: 200px;
  max-width: 200px;
  min-height: 60px;
  font-size: 1rem;
  line-height: 1.3;
  color: #ffffff;
  text-align: left;

  pointer-events: none;
  z-index: 12;
}

/* Facts fade animations */
.fact1, .fact2, .fact3 {
  position: absolute;
  top: 0;
  left: -20px;
  width: 100%;
  opacity: 0;
  animation-name: fadeInOut;
  animation-duration: 9s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-fill-mode: forwards;
}

.fact1 {
  animation-delay: 0s;
}

.fact2 {
  animation-delay: 3s;
}

.fact3 {
  animation-delay: 6s;
}

@keyframes fadeInOut {
  0%   {opacity: 0;}
  10%  {opacity: 1;}
  30%  {opacity: 1;}
  40%  {opacity: 0;}
  100% {opacity: 0;}
}

.action-buttons {
  display: flex;
  gap: 10px;                 /* consistent spacing */
  justify-content: center;   /* center horizontally */
  position: fixed;           /* anchor container at bottom */
  bottom: 80px;              /* distance from bottom */
  left: 50%;                 /* center horizontally */
  transform: translateX(-50%);
  z-index: 13;
  flex-wrap: wrap;           /* wrap on smaller screens */
}

/* Buttons inside container */
.action-buttons button {
  padding: 12px 24px;
  font-size: 0.9rem;
  border: 1px solid white;
  border-radius: 999px;

  background-color: transparent;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover effect for buttons */
.action-buttons button:hover {
  background-color: white;
  color: #000000;
}




/* Labels */
label {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1.3;
  font-weight: 400; /* Thin weight */
  
 /* text-transform: uppercase; */
}


/* Inputs styles */
select, input[type=number] {
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
       padding: 12px 19px;
  font-size: 0.9rem;
  background: #0A121C;
  color: rgb(255, 255, 255);
  border: 1px solid #ffffff80;
  border-radius: 99px;
  transition: background-color 0.3s ease;
}

select:focus, input[type=number]:focus {
  outline: none;
  background-color: #ffffff;
  color: #000000;
}

/* Radio buttons container */
.radio-group {
  margin-bottom: 18px;
  display: flex;
  gap: 20px;
}

/* Radio labels styling */
.radio-group label {
  background-color: #0e1620;
  border-radius: 4px;
  padding: 8px 16px;
  user-select: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  color: #aaa;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  position: relative;
}

/* Hide default radios */
.radio-group label input[type=radio] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #aaa;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  margin-right: 10px;
  vertical-align: middle;
  background-color: transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* Checked radio */
.radio-group label input[type=radio]:checked {
  border-color: #ffffff;
  background-color: #ffffff;
}

/* Inner dot for checked */
.radio-group label input[type=radio]:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
}

/* Change label text & background when yes is checked */
.radio-group label input[type=radio][value="yes"]:checked {
  background-color: #ffffff;
  border-color: #ffffff;
}
.radio-group label input[type=radio][value="yes"]:checked + * {
  color: #0A121C;
  font-weight: 600;
}
.radio-group label input[type=radio][value="yes"]:checked {
  color: #0A121C;
  font-weight: 600;
}

/* Hover states */
.radio-group label:hover {
  color: #ffffff;
}
.radio-group label:hover input[type=radio] {
  border-color: #ffffff;
}

/* Canvas container pushed right of fixed panel */
#canvas-container {
  flex-grow: 1;
  margin-left: 320px; /* offset from fixed left panel */
  background: #0A121C;
  position: relative;
  height: calc(100vh - 60px); /* full height minus top padding */
  overflow: auto; /* allow scroll inside canvas container if needed */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Canvas styling */
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

