*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.start-card{
    height: 500px;
    width: 800px;
      z-index: 2000;
            transition: opacity 0.5s ease;
    border-radius: 10px;
    background: hsla(206, 91%, 66%, 1);
    background: linear-gradient(90deg, hsla(206, 91%, 66%, 1) 0%, hsla(190, 90%, 51%, 1) 100%);
    background: -moz-linear-gradient(90deg, hsla(206, 91%, 66%, 1) 0%, hsla(190, 90%, 51%, 1) 100%);
    background: -webkit-linear-gradient(90deg, hsla(206, 91%, 66%, 1) 0%, hsla(190, 90%, 51%, 1) 100%);
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#5AB2F7", endColorstr="#12CFF3", GradientType=1 );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 30px;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.start-card h1{
    position: absolute;
    top: 5%;
    font-size: 2.2rem;
    color: white;
    padding: 10px;
    border-radius: 15px;
    margin-bottom: 40px;
}
.start-card h2{
    font-size: 1.7rem;
    color: #fff;
    margin-bottom: 20px;
}
.start-card ul{
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
    list-style: none;
}
.start-card .start-btn {
  align-items: center;
  appearance: none;
  background-color: #EEF2FF;
  border-radius: 8px;
  border-width: 2px;
  border-color: #536DFE;
  box-shadow: rgba(83, 109, 254, 0.2) 0 2px 4px, rgba(83, 109, 254, 0.15) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
  box-sizing: border-box;
  color: #536DFE;
  cursor: pointer;
  display: inline-flex;
  font-family: "JetBrains Mono", monospace;
  height: 56px;
  justify-content: center;
  line-height: 1;
  list-style: none;
  overflow: hidden;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  will-change: box-shadow, transform;
  font-size: 20px;
}

.start-btn:focus {
  outline: none;
  box-shadow: #D6D6E7 0 0 0 1.5px inset, rgba(83, 109, 254, 0.4) 0 2px 4px, rgba(83, 109, 254, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
}

.start-btn:hover {
  box-shadow: rgba(83, 109, 254, 0.3) 0 4px 8px, rgba(83, 109, 254, 0.2) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
  transform: translateY(-2px);
}

.start-btn:active {
  box-shadow: #D6D6E7 0 3px 7px inset;
  transform: translateY(2px);
}

/* ............................EXPERIMENT PERFORM STYLING........................................................... */

.main{
    height: 100vh;
    width: 100%;
    position: relative
}
#Instructions {
    height: 70px;
    width: 100%;
    background-color:#2c7873;
    position: absolute;
    display: flex;
    align-items: center;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Results Overlay and Card Styles */
.results-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.results-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.results-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.results-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.results-header h2 {
    color: #fff;
    font-size: 2rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.results-content {
    padding: 30px;
    background: #fff;
    border-radius: 0 0 20px 20px;
}

.results-content h3 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.result-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.result-section h4 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.results-table thead {
    background: #667eea;
    color: #fff;
}

.results-table th,
.results-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.results-table tbody tr:hover {
    background: #e9ecef;
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.steps-list li {
    padding: 10px 15px;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 5px;
    color: #28a745;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.result-section p {
    color: #555;
    line-height: 1.6;
    margin: 10px 0;
}

.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.restart-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.download-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(245, 87, 108, 0.4);
}

/* Scrollbar styling for results card */
.results-card::-webkit-scrollbar {
    width: 8px;
}

.results-card::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.results-card::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.results-card::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

#Instructions p{
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: #fff;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
#Instructions h1{
    font-size: 1.4rem;
    font-weight: 400;
    padding-left: 10px;
    letter-spacing: 1px;
    color: #fff;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.pharmacy-lab{
    height: 100vh;
    width: 100%;
    background-image: url("Pharmacy\ lab.png");
    background-size: cover;
}
.weight_machine{
    height: 140px;
    width: 260px;
    background-image: url("weight\ machine.png");
    background-size: cover;
    position: absolute;
    top: 79%;
    left: 18%;
}
.weight_machine h4{
    position: absolute;
    color: white;
    font-size: 1.5rem;
    top:30%;
    left: 55%;
    transform: translate(-50%,-50%);
    opacity: 0;
    transition: all 0.2s ease-in;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.weight_machine h4:hover{
    opacity: 1;
    cursor: pointer;
}

.weight_machine #On-button{
    height: 29px;
    width: 45px;
    background-color: red;
    border: none;
    border-radius: 8px;
    position: absolute;
    top: 75%;
    left: 4%;
    transition: background-color 0.3s ease;
}
.weight_machine #On-button:active{
    scale: 0.9;
}
.weight_machine #Tare-button{
    height: 30px;
    width: 44px;
    border: none;
    position: absolute;
    top: 75%;
    right: 18%;
    border-radius: 8px;
    background-color: yellow;
}
.weight_machine #Tare-button:active{
    scale: 0.9;
}
.weight_machine input{
    height: 33px;
    width: 110px;
    position: absolute;
    top: 75%;
    left: 22%;
    font-family: digital;
    border-radius: 15%;
    background-color: black;
    text-align: center;
    color: yellow;
    font-weight: 200;
    font-size: 2vw;
    transition: all 2s ease;

}
.Sieve-shaker-machine_basic{
    height: 360px;
    width: 260px;
    background-image: url("Sieve\ shaker\ machine\ basic.png");
    background-size: cover;
    position: absolute;
    top: 48%;
    right: 14%;
}
.Sieve-shaker-machine_basic .shakerbtn{
    height: 30px;
    width: 20px;
    background-color: darkred;
    position: absolute;
    top: 289px;
    left: 160px;
}
.Sieve-shaker-machine_basic #Shakerlight{
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background-color: black;
    position: absolute;
    top: 84%;
    left: 54%;
}
.Sieves{
    height: 180px;
    width: 130px;
   background-image: url("sieves2.png");
   background-size: cover;
     position: absolute;
    top: 50%;
    right: 19.5%;
    transform: translate(0%,0%);
    transition: all 3s ease;  
}
.Sieves h4{
    position: absolute;
    color: white;
    font-size: 1.5rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    opacity: 0;
    transition: all 0.3s ease-in;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.Sieves h4:hover{
    opacity: 1;
    cursor: pointer;
}

.Lid{
    height: 30px;
    width: 140px;
    background-image: url("lid\ sieve\ shaker.png");
    background-size: cover;
    position: absolute;
    top: 94%;
    right: 6%;
    transition: all 2s ease;
    /* transform:translate(-110%,-1014%); */
}
.Lid h4{
    position: absolute;
    color: white;
    font-size: 1.5rem;
    left: 50%;
    transform: translate(-50%,-50%);
    opacity: 0;
    transition: all 0.3s ease-in;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.Lid h4:hover{
    opacity: 1;
    cursor: pointer;
}
.sample-container{
    height: 160px;
    width: 150px;
    background-image: url("calcium\ carbonate\ box\ final.png");
    background-size: cover;
    position: absolute;
    top: 73%;
    left: 59%;
}
.sample-container h4{
    position: absolute;
    color: rgb(255, 255, 255);
    font-size: 1.3rem;
    top:50%;
    left: 35%;
    transform: translate(-50%,-50%);
    opacity: 0;
    transition: all 0.2s ease-in;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.sample-container h4:hover{
    opacity: 1;
    cursor: pointer;
}

.sample-powder-cap{
    height: 30px;
    width: 84px;
    background-image: url("chemical\ powder\ cap.png");
    background-size: cover;
    position: absolute;
    top: 73%;
    left: 59.5%;
    transition: all  1s ease;
}
.sample-powder-cap h4{
    position: absolute;
    color: white;
    font-size: 1.5rem;
    top: 20%;
    left: 50%;
    transform: translate(-50%,-50%);
    opacity: 0;
    transition: all 0.3s ease-in;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.sample-powder-cap h4:hover{
    opacity: 1;
    cursor: pointer;
}

.tilted-samplepowder{
    height: 70px;
    width: 104px;
    background-image: url("sample\ tilt.png");
    background-size: cover;
    position: absolute;
    top: 59%;
    left: 19%;
    opacity: 0;
    transition: all 5s ease-out;
}
.chemical-container{
    height: 300px;
    width: 400px;
}
.spatulla{
    height: 20px;
    width: 190px;
    background-image: url("spatulla.png");
    background-size: cover;
    position: absolute;
    top: 96%;
    left: 40%;
    transition: all 3s ease;
}
.spatulla h4{
    position: absolute;
    color: white;
    font-size: 1.5rem;
    left: 50%;
    transform: translate(-50%,-50%);
    opacity: 0;
    transition: all 0.3s ease-in;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.spatulla h4:hover{
    opacity: 1;
    cursor: pointer;
}
#chemical-in-spatulla{
    height: 40px;
    width: 40px;
    background-image: url("chemical\ powder\ in\ spatualla.png");
    background-size: cover;
    position: absolute;
    top: 73%;
    left: 62%;
   opacity: 0;
   transition: all 3s ease;
}
.petridish{
    height: 50px;
    width: 145px;
    position: absolute;
    top: 87%;
    left: 40%;
    background-image: url("petrisdish.png");
    background-size: cover;
    transition: all 2s ease;
    /* transform: translate(-100%,-630%) rotate(70deg); */
}
.petridish h4{
    position: absolute;
    color: white;
    font-size: 1.5rem;
    left: 50%;
    transform: translate(-50%,-50%);
    opacity: 0;
    transition: all 0.3s ease-in;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.petridish h4:hover{
    opacity: 1;
    cursor: pointer;
}
#sample-to-petridish{
    height: 35px;
    width: 85px;
    background-image: url("sample\ powder\ 2.png");
    background-size: cover;
    position: absolute;
    top: 82%;
    left: 23.5%;
    opacity: 0;
    transition: all 2s ease;
}
.language-selector {
    position: absolute;
    margin-right: 10px;
    left: 90%;
    top: 1%;
}

.language-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}


.dropdown-icon {
    margin-left: 8px;
    font-size: 10px;
    transition: transform 0.3s ease;
}



.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    width: 150px;
    display: none;
    overflow: hidden;
     min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}



.language-option {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.language-option:hover {
    background-color: #f5f5f5;
}

.language-option.active {
    background-color: #e6f7f2;
    color: #2c7873;
    font-weight: bold;
}
.Results{
    height: 100vh;
    display: none;
    width: 100%;
    background-color: #2c7873;
    position: relative;
    top: 20%;
}
.Results .graph{
    height: 660px;
    width: 40%;
    text-align: center;
    position: absolute;
    top: 5%;
    left: 5%;
    border: 2px solid white;
}
.Results .calculations{
    height: 660px;
    width: 40%;
    position: absolute;
    top: 5%;
    right: 5%;
    text-align: center;
    border: 2px solid white;
}
