
  /* for desktop screen */
/* @media (min-width:1000px){ */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:Arial, Helvetica, sans-serif
  }

  html, body {
    height: 100%;
    width: 100%;

    color: white;
    overflow: hidden;
  }

  .container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;

    padding: 10px;
    border-radius: 15px;
  }

  .top-panel {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
  }

  .instruction-box {
    flex: 1;
    font-size: 1.2em;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: #4CAF50;
    color: white;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }

  /* Removed hover effect */

  .start-btn-container {
    padding: 5px;
    position: relative;
  }

  .main-content {
    display: flex;
    gap: 10px;
    flex: 1;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .measurements {
    flex: 1;
    border: none;
    border-radius: 10px;
    padding: 15px; /* Reduced from 20px */
    font-size: medium; /* Changed from large to medium */
    color: #333;
    background-color: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }

  /* Removed hover effect */

  .measurements h3 {
    margin-bottom: 12px; /* Reduced from 15px */
    font-size: 1.3em; /* Slightly smaller */
    color: #4CAF50;
    text-align: center;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 8px; /* Reduced from 10px */
  }

  .measurements label {
    display: block;
    margin-top: 12px; /* Reduced from 15px */
    font-size: 0.95em; /* Reduced from 1.1em */
    color: #555;
    font-weight: 600;
  }

  .measurements input {
    width: 100%;
    padding: 8px; /* Reduced from 10px */
    font-size: 14px; /* Reduced from 16px */
    background: white;
    border: 2px solid #ddd;
    color: #2196F3;
    border-radius: 8px;
    margin-top: 4px; /* Reduced from 5px */
    font-weight: bold;
    transition: border-color 0.3s ease;
  }

  .measurements input:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
  }

  .measurements input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
  }

  .simulation-area {
    border: 1px solid #adb0b0;
    border-radius: 4px;
    flex: 3.5;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('Pharmacy_lab_confirm.png') no-repeat center center;
    background-size: cover;
    height: 100%;
    overflow: hidden;
  }

  .bulk-machine {
    position: absolute;
    bottom: -3%;
    left: 67%;  /* Moved 15% right with separation */
    width: 250px;
    height: auto;
    object-fit: contain;
    z-index: 2;
    transform: translateX(-50%);  /* Center the element itself */
  }

  .weighing-scale {
    position: absolute;
    bottom: 5%;
    left: 30%;  /* Moved 15% right with separation */
    z-index: -1;
    width: 150px;
    height: auto;
    object-fit: contain;
    z-index: 2;
  }

  .chemical-powder1 {
    position: absolute;
    bottom: 30%;
    left: 60.3%;  /* Moved 15% right with separation */
    width: 3.4em;
    height: 0em; /* Start with 0 height */
    mix-blend-mode:multiply;
    z-index: 4;
    display:none;
    /* Important: No transition property for bottom to allow GSAP to animate it */
  }
  .chemical-powder2 {
    position: absolute;
    bottom: 30%;
    left: 69.3%;  /* Moved 15% right with separation, then 1.5% left */
    width: 3.4em;
    height: 0em; /* Start with 0 height */
    mix-blend-mode:multiply;
    z-index: 4;
    display: none;
    /* Important: No transition property for bottom to allow GSAP to animate it */
  }


  .tapping-equipment {
    position: absolute;
    bottom: 24%;
    left: 59%;  /* Moved 15% right with separation */
    width: 80px;
    height: auto;
    object-fit: contain;
    z-index: 2;
  }
  #tapping-equipment2 {
    position: absolute;
    bottom: 24%;
    left: 68%;  /* Moved 15% right with separation, then 1.5% left */
    width: 80px;
    height: auto;
    object-fit: contain;
    z-index: 2;
  }

  .test-tube {
    position: absolute;
    bottom: 29.8%;
    left: 60%;  /* Moved 15% right with separation */
    width: 60px;
    height: 150px;
    z-index: 2;
  }
  #test-tube2 {
    position: absolute;
    bottom: 29.8%;
    left: 68.9%;  /* Moved 15% right with separation, then 1.5% left */
    /* width: 60px; */
    height: 150px;
    z-index: 2;
  }

  .chemical-powder-cap {
    position: absolute;
    bottom: 29%;
  left: 18.5%;  /* Moved 15% right with separation */
    width:108px;
    height: auto;
    object-fit: contain;
    z-index: 8;
  }
  .sample-name {
    position: absolute;
    bottom: 12.3%;
    left: 20.1%;  /* Moved 15% right with separation */
    width:4.63em;
    height: 3.5em;
    background:linear-gradient(#fdfcfc, #d9d5d5);
    border: 1px #dadada;
   padding: .3em;
    object-fit: contain;
    z-index: 30;
  }
  .sample-name h1 {

    font-size: .7em;
    color: #333;
    text-align: center;

  }

  .calcium-carbonate-box {
    position: absolute;
    bottom: 5%;
    left: 18%;  /* Moved 15% right with separation */
    width: 120px;
    height: auto;
    object-fit: contain;
    z-index: 7; /* Higher z-index to appear above spatula when it dips in */
  }

  .chemical-powder-in-spatula {
    position: absolute;
    bottom: 5%;
    left: 27%;  /* Moved 15% right with separation */
    width: 18px; /* Medium width */
    height: auto;
    object-fit: contain;
    z-index: 60; /* Much higher than petri dish (z-index 30) */
    display:none;
  }







  .spatchula {
    position: absolute;
    bottom: 0%;
    left: 43%;  /* Moved 15% right with separation */
    width: 120px;
    height: auto;
    object-fit: contain;
    transform: rotate(30deg);
    z-index: 6; /* Higher than background but can go behind the powder box */
    rotate:-10deg
  }

  .petridish {
    position: absolute;
    bottom: 10%;
    left: 45%;  /* Moved 15% right with separation */
    width: 80px;
    height: auto;
    object-fit: contain;
    z-index: 30; /* High z-index but lower than samples (z-index 60) */
    cursor: pointer;
    /* Add a subtle highlight effect to make it more noticeable */
    transition: transform 0.2s ease, filter 0.2s ease;
  }

  /* Add hover effect to make it clear it's clickable */
  .petridish:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
  }

  .petridish,
  .chemical-powder-cap,
  .spatchula,
  .chemical-powder-in-spatula {
    transform-origin: center center;
    will-change: transform;
    cursor: pointer;
  }

  .chemical-powder-in-spatula {
    opacity: 0;
    display: none;
  }

  .bg-text {
    color: #ccc;
    text-align: center;
    margin-top: 20px;
  }

  .machine-img {
    position: absolute;
    width: 80px;
    height: auto;
  }

  .bottom-panel {
    display: flex;
    justify-content: end;
    gap: 20px;
    padding-right: 10%;
  }

  .step-counter {
    background: #4CAF50;
    border: none;
    border-radius: 30px;
    padding: 12px 25px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }

  .step-counter:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
  }

  .start-btn {
    background: #2196F3;
    border: 2px solid #1565C0;
    border-radius: 10px;
    padding: 10px 20px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
  }

  .start-btn:hover {
    background: #1E88E5;
  }

  .start-btn:active {
    background: #1976D2;
  }

  /* Hover Label Styles */
  .hover-label {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .hover-label.show {
    opacity: 1;
  }

  @keyframes typing {
    from { width: 0; }
    to { width: 100%; }
  }
  .step-counter:active, .next-btn:active {
    background: #2ec4b6;
    color: black;

  }


  .weighing-btn {
   padding: 1px;
    bottom: 40px;
    left: 29.7%;  /* Moved 15% right with separation */
    border: 1px solid red;
    background:red;
    color: white;
    cursor: pointer;
    font-size: .55em;

    transition: background 0.3s ease;
  }
  #onButton{
    z-index: 5;
    left: 30.5%;  /* Moved 15% right with separation */
    bottom:49px;
    position:absolute;
  }
  #weightDisplay{
    padding: 0px 4px;
    z-index: 5;
    left: 33%;  /* Moved 15% right with separation */
    bottom:37px;
    background: #000;
    position:absolute;
    width:3.8em
  }
  #tareButton{

    z-index: 5;
    left: 38.5%;  /* Moved 15% right with separation */
    bottom:49px;
    position:absolute;

  }

  /* .weighing-btn:hover {
    background: #238f85;
  } */

  .weighing-btn:active {
    background: #1b6b63;
  }

  .weight-display {
    color: #ff0000;
    font-family: "Digital-7", monospace;
    /* padding: 5px 5px; */
    border-radius: 3px;
    font-size: 16px;
    text-align: right;
    width: 5em;
    margin-bottom: 10px;
    display: none; /* Initially hidden until ON button is clicked */
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5); /* Red glow effect */
    background-color: rgba(0, 0, 0, 0.8); /* Dark background for contrast */
    padding: 2px 5px;
  }

  /* Start Tapping Button */
  .start-tapping-btn {
    position: absolute;
    bottom: 18%;
    left: 63%;  /* Moved 15% right with separation */
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 10;
  }

  #startTappingBtn:hover {
    background-color: #a04545;
  }

  #startTappingBtn:active {
    background-color: #3e8e41;
  }

  #startTappingBtn:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
  }

  /* Bulk Machine Display */
  .bulk-machine-display {
    position: absolute;
    bottom: 17.5%;
    left: 71.5%;  /* Moved 15% right with separation */
    transform: translateX(-50%);
    background-color: #000;
    color: red;
    font-family: "Digital-7", monospace;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 1em;
    text-align: center;
    width: 5.5em;
    height: 2em;
    z-index: 5;
    border: 1px solid #666;
  }

  /* Starting Popup Modal Styles */
  .start-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex; /* Start visible */
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .start-popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    width: 450px;
    max-width: 90%;
    color: #333;
  }

  .start-popup-content h2 {
    margin-top: 0;
    color: #2196F3;
    margin-bottom: 20px;
    text-align: center;
  }

  .popup-item {
    margin: 20px 0;
  }

  .popup-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 16px;
  }

  .popup-item select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f9f9f9;
  }

  .popup-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
  }

  #startOkBtn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  #startOkBtn:hover {
    background-color: #45a049;
  }

  /* Results are now displayed directly in the measurement panel */

/* } */


@media  (max-height: 725px) {
  .chemical-powder-cap{
   bottom:31.5%;
  }
  .test-tube, #test-tube2{
    bottom: 35%;
  }
  .tapping-equipment, #tapping-equipment2{
    bottom: 30%;
  }
}
@media  (max-height: 680px) {
  .chemical-powder-cap{
   bottom:33%;
  }
}