.header{
    border: 2px solid black;
    height: 10vh;
    background-color: rgb(41, 11, 11);
    color: white;
    text-align: center;
}
.container{
    display: flex; 
    border: 2px solid black;
    height: 85vh;

}
.instructions{
    background-color:black;
    width: 20%;
    height: 85vh;
    color: white;
    text-align: center;
    

}

.lab{
    background-color: rgb(2, 29, 29);
    background-image: url(chemistry\ lab.png);
    background-size: cover;
    width: 80%;
    height: 85vh;
    position: relative;
    
    
}
/* Animation for larger screens (default) */
@keyframes rotateAnimation {
  0% {
    transform: translateY(-119px) translateX(180px) translateY(50px) rotate(-32deg);
  }
  25% {
    transform: translateY(-119px) translateX(180px) translateY(50px) rotate(-29deg);
  }
  50% {
    transform: translateY(-119px) translateX(180px) translateY(50px) rotate(-32deg);
  }
  75% {
    transform: translateY(-119px) translateX(180px) translateY(50px) rotate(-29deg);
  }
  100% {
    transform: translateY(-119px) translateX(180px) translateY(50px) rotate(-32deg);
  }
}

/* Animation for smaller screens, like a laptop (max-width: 1440px) */
@media (max-width:1840px) {   
  @keyframes rotateAnimation {
    0% {
      transform: translateY(-119px) translateX(200px) translateY(50px) rotate(-32deg);
    }
    25% {
      transform: translateY(-119px) translateX(200px) translateY(50px) rotate(-29deg);
    }
    50% {
      transform: translateY(-119px) translateX(200px) translateY(50px) rotate(-32deg);
    }
    75% {
      transform: translateY(-119px) translateX(200px) translateY(50px) rotate(-29deg);
    }
    100% {
      transform: translateY(-119px) translateX(200px) translateY(50px) rotate(-32deg);
    }
  }
}
 .transform-stir {
    position: relative;
    transition: transform 4s ease;
    animation: rotateAnimation 3s linear infinite;
    z-index: 10000;
  }
.lab img{
    position: relative;
    top: 366px;
    left: 80px;
    cursor: pointer;
    z-index: 99999;
}
 .img{ 
    height: 18%;
    width: 6%;
    position: relative;
    left: 1200px;
}
.stir{
    height: 18%;
    width: 6%;
    position: fixed;
    /* right: -35px; */
    z-index: 9999999;
    left: 380px;
    top: 78vh;
    cursor: pointer;
    transform: rotate(240deg);
   

}
.beaker{
    height: 21%;
    width: 8%;
    
}
.water{
    height: 22%;
    width: 8%;
    
}
.solution{
    height: 28%;
    width: 13%;
    
}
.hydrogen1{
    height: 30%;
    width: 10%;
}
.stiring{
    height: 18%;
    width: 8%;
    bottom: 80%;
}



.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 999999999;
  }
  
  .popup-content {
    background: #fff;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 999;
  }
  
  .close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    z-index: 999;
  }
  
.stopwatch-container {
  width: 95%;
  max-width: 350px;
  margin: 10px auto;
  padding: 20px 10px 70px; /* bottom padding for buttons */
  border: 2px solid #333;
  border-radius: 10px;
  background-color: #000;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  text-align: center;
  position: relative;
  color: white;
  height: 28%;
}



.stopwatch {
  font-size: 2em;
  color: #00e5ff;
  word-spacing: 5px;
  text-align: center;
}

.btn-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.btn-container button {
  flex: 1 1 40%;
  min-width: 50px;
  max-width: 120px;
  padding: 1px 0;
  font-size: 0.8em;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}


  .btn-container button {
    padding: 8px 16px;
  margin: 10px;
    border: none;
    border-radius: 4px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
  }


  #flask20ml{
    top: 381px;
    /* z-index: 99999999; */
  }

  .permission{
    display: flex;
    justify-content: center;
    flex-direction: row;
  }

  .cursor{
    /* cursor: not-allowed; */
    cursor: pointer;
    pointer-events: none;
   
  }
  
