body { padding-top: 56px; }
.left-aligned { margin-left: auto; }
.bg-dark { background-color: #990B7F !important; }
.bg-hero { background-color: #c6e3f7; }

/* CALLOUT */
.bd-callout { padding:1.25rem; margin-top:1.25rem; margin-bottom:1.25rem; border:1px solid #e9ecef; border-left-width:.25rem; border-radius:.25rem }
.bd-callout h4 { margin-bottom: 1.25rem }
.bd-callout p:last-child { margin-bottom:0 }
.bd-callout code { border-radius:.25rem }
.bd-callout+.bd-callout { margin-top:-.25rem }
.bd-callout-info { border-left-color:#5bc0de }
.bd-callout-warning { border-left-color:#f0ad4e }
.bd-callout-danger { border-left-color:#d9534f }

.dropdown-menu.show { 
    background-color: #7EC4E4; }

/* footer */
footer a { color: white; font-weight: bold; text-decoration: none; }
footer a:hover { color: white; text-decoration: underline; }

/* sidenav */
.sidenav {
  width: 150px;
  position: fixed;
  z-index: 1;
  bottom: 15px; /* Place the side menu at the bottom of the page */
  left: 10px;
  background: #c6e3f7;
  overflow-x: hidden;
  padding: 8px 0;
  border-radius: 10px;
  opacity: 0;               /* hidden by default */
  pointer-events: none;     /* prevent interaction while hidden */
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(20px); /* slide effect */
}

/* visible state */
.sidenav.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* sidenav links */
.sidenav a {
  padding: 6px 8px 6px 16px;
  text-decoration: none;
  font-size: 1rem;
  color: #990B7F;
  display: block;
}

/* sidenav hover */
.sidenav a:hover {
  color: #6fb9eb;
}

/* sidenav media */
@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}


  #UpTop {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 15px; /* Place the button at the bottom of the page */
    right: 15px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: #c6e3f7; /* Set a background color */
    color: #990B7F; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 10px; /* Some padding */
    height: 50px;
    width: 50px;
    border-radius: 50%; /* Rounded shape */
    font-size: 18px; /* Increase font size */
  }
  
  #UpTop:hover {
    color: #6fb9eb; /* Change color on hover */
  }


 /* Cassette lateral flow test*/
.lft {
  width: 340px;
  height: 100px;
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding-right: 60px;
}

/* Window */
.window {
  width: 180px;
  height: 40px;
  background: #eee;
  border: 2px inset #bbb;
  border-radius: 6px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  position: relative;
}


/* Lines */
.line {
  width: 4px;
  height: 90%;
  background: transparent;
  opacity: 0;
  transform: translateX(80px); /* start from right side */
}

.line.show {
  background: red;
  animation: flow 2s forwards;
  animation-delay: 0.5s;
}

@keyframes flow {
  0% {
    transform: translateX(80px);
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Labels aligned with lanes, rotated */
.labels {
  position: absolute;
  bottom: 4px;
  left: 42%;
  transform: translateX(-50%);
  width: 180px; 
  display: flex;
  justify-content: space-evenly;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.labels span {
  width: 4px; 
  text-align: center;
  transform: rotate(-90deg);
  transform-origin: center;
}

/* "S" label near sample well, rotated */
.sample-label {
  position: absolute;
  right: 43px; 
  bottom: 8px; 
  font-size: 16px;
  font-weight: bold;
  color: #333;
  transform: rotate(-90deg);
  transform-origin: center;
}

/* Sample well (hole) */
.sample-hole {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eee;
  border: 2px inset #ddd;
  position: absolute;
  right: 38px;
  top: 38px;
}

/* Sample well frame (outer ring) */
.sample-hole-frame {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #bbb;
  position: absolute;
  right: 33px;
  top: 33px;
  background: transparent;
  pointer-events: none;
}

/* Pipette icon (wide top, narrow bottom) */
.pipette {
  width: 14px;  
  height: 60px;
  background: linear-gradient(to bottom, #e0e0e0, #c1c1c1);
  position: absolute;
  right: 44px;
  top: -60px;
  opacity: 0;

  /* tapering effect */
  clip-path: polygon(0 0, 100% 0, 70% 100%, 30% 100%);
  border-radius: 2px;
}


/* Pipette animation */
.pipette.animate {
  animation: pipette-move 2s forwards;
}

@keyframes pipette-move {
  0% {
    top: -60px;
    opacity: 1;
  }
  40% {
    top: -10px;
    opacity: 1;
  }
  70% {
    top: -10px;
    opacity: 1;
  }
  100% {
    top: -60px;
    opacity: 0;
  }
}

/* Drop animation */
.drop {
  width: 12px;
  height: 12px;
  background: red;
  border-radius: 50%;
  position: absolute;
  right: 45px;
  top: -5px;
  opacity: 0;
  z-index: 2;
}

.drop.animate {
  animation: fall 1s forwards;
  animation-delay: 0.5s;
}

@keyframes fall {
  0% {
    top: -10px;
    opacity: 1;
  }
  70% {
    top: 40px;
    opacity: 1;
  }
  100% {
    top: 45px;
    opacity: 0;
  }
}

/* Buttons */
.controls {
  display: flex;
  gap: 10px;
}

button {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: #007bff;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #0056b3;
}