/* You CSS goes in here */
*{
  padding: 0%;
  margin: 0%; 
  box-sizing: border-box;
}
.sidepanel  {
  width: 0;
  position: fixed;
  z-index: 1;
  height: 250px;
  top: 25px;
  right: 0;
  background-color: #d5a45e;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 35px;
}
#lists{
  margin-left: 20px;
  padding: 8px 8px 8px 32px;
  color:white;
}
.sidepanel a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #fff7f7;
  display: block;
  transition: 0.3s;
}

.sidepanel a:hover {
  color: #6b6969;
}

.sidepanel .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
}

.openbtn {
  font-size: 20px;
  cursor: pointer;
  background-color: #d21b7a;
  color: white;
  padding: 10px 15px;
  border: none;
}

.openbtn:hover {
  background-color:#444;
}
li{
  margin:20px;
}


.m{
  color: rgb(35, 33, 33);
}
      
.button {
border: none;
color: white;
padding: 5px 10px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
transition-duration: 0.4s;
cursor: pointer;

}

.button1 {
background-color: white; 
color: black; 
border: 2px solid #4CAF50;
}

.button1:hover {
background-color: #4CAF50;
color: white;
}

.allbox{
  border:4px solid rgb(25, 78, 134);
  height: 1610px;
  border-radius: 25px;
  margin:40px;
  margin-bottom: 20px;
  padding: 30px;
  box-shadow: 2px 2px 5px 4px black ;
}
.container{
  display: flex;
}

.main-section {
  display: flex;
  flex-direction: column;
  /* background-color: rgba(252, 234, 153, 0.651); */
  background-color:  bisque;
  height: 1310px;
  border-radius: 25px;
  width: 60%;

  margin: 2px;
  margin-left: 0px;
  border: 2px solid black;
}

.main-section2 {
  display: flex;
  flex-direction: column;
  background-color:  bisque;
  min-height: 1310px;
  height: auto;
  border-radius: 25px;
  width: 150%;
  margin: 2px;
  margin-left: 0px;
  margin-right:0px;
  border: 2px solid black;
}

.main-section3 {
  display: flex;
  flex-direction: column;
  background-color:bisque;
  height: 260px;
  border-radius: 25px;
  width: 100%;
  margin: 2px;
  margin-left: 0px;
  border: 2px solid black;
}

.control-container{
  display: flex;
  flex-direction: column;
  margin: 20px 0;
  /* align-items: center; */
  padding: 20px;
}



.moveable {
width: 170px;
height: 129px;
/* background-color: blue; */
position: absolute;
transition: transform 1s ease;
}


.target {
width: 257px;
height: 129px;
/* background-color: red; */
position: absolute;
/* left: 100px; /* Adjust the target position as needed */
/* top: 50px; */ 
}

.moveable3 {
width: 40px;
height: 200px;
/* background-color: blue; */
position: absolute;
transition: transform 1s ease;
}


.target3 {
width: 124px;
height: 512px;
/* background-color: red; */
position: absolute;
/* left: 100px; /* Adjust the target position as needed */
/* top: 50px; */ 
}

.moveable5{
width: 124px;
height: 512px;
/* background-color: blue; */
position: absolute;
transition: transform 1s ease;
}

.target5 {
width: 55px;
height: 220px;
/* background-color: red; */
position: absolute;
/* left: 100px; /* Adjust the target position as needed */
/* top: 50px; */ 
}

.moveable6{
width: 170px;
height: 129px;
/* background-color: blue; */
position: absolute;
transition: transform 1s ease;
}

.B[disabled]{
background-color: gray;
cursor: not-allowed;
}

.hidden{
display: none;
}



#elementName {
position: absolute;
background-color: rgba(0, 0, 0, 0.7);
color: white;
padding: 20px;
text-align: center;
display: none;
margin-inline:800px ;
margin-top: 300px;
}


/* frame css */

/* Add CSS styles for image container */
#image-container {
width: 200px; /* Adjust the width and height as needed */
height: 100px;
position: relative;
}

/* Add CSS styles for each SVG image */
.svg-image {
position: absolute;
width: 100%;
height: 100%;
display: none;
/* transform:translate(1000px, 100px); */
}


/* material image show */

/* Hide the result container and material photos by default */
/* #resultContainer1,
#resultContainer2 {
  display: none;
  margin-left: 30px;
  margin-bottom: 20px;
  width: fit-content;
  text-align: center;
}

.material1Photo,
.material2Photo {
  display: none;
  border: 5px solid rgba(0, 0, 0, 0.974);
  max-width: 700px;
  height: auto;
  object-fit: contain;
}

.nav-buttons {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.nav-buttons button {
  padding: 8px 16px;
  font-size: 16px;
  cursor: pointer;
} */



/* Help! video */
/* .video-player {
display: none;
position: relative;
}

video {
width: 800px;
height: 800px;
align-items: center;
margin-left: 30px;
} */

/* .close-button {
position: absolute;
top: 10px;
right: 10px;
font-size: 24px;
cursor: pointer;
color: #fff;
background-color: #000;
padding: 5px 10px;
border-radius: 50%;
margin-right: 400px;
margin-top: 70px;
} */















/* Center the entire result box */
/* Center the entire result box */
#resultContainer {
  display: none;
  margin: 20px auto;
  width: 800px; /* fixed width */
  height: 600px; /* fixed height */
  text-align: center;
  border: 5px solid rgba(0, 0, 0, 0.974);
  padding: 20px;
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  position: relative;
  top: -50px;
  box-sizing: border-box;
}

/* Image wrapper */
#imageWrapper {
  position: relative;
}

/* The image itself */
.materialPhoto {
  display: none;
  width: 100%;
  max-height: 350px; /* fixed height */
  object-fit: contain;
  border: 3px solid black;
  border-radius: 6px;
}

/* Label at top of image */
#imageLabel {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Description below the image */
#imageDescription {
  margin-top: 10px;
  font-size: 16px;
  color: #333;
  line-height: 1.4;
  height: 90px; /* fixed height */
  overflow: auto; /* scroll if content overflows */
  white-space: pre-line;
}


/* Nav buttons */
.nav-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.nav-buttons button {
  padding: 8px 16px;
  font-size: 16px;
  cursor: pointer;
}













#moveButton8 ,#moveButton4, #out {
display: none; /* Initially hide the button */
}

.left{
display: flex;
  flex-direction: column;
  height: 215px;
  width: 150%;
  margin: 2px;
  margin-left: 0px;
  margin-right: 0px;
}

.left-right{
display: flex;

}

.img1{
  height: 170px;
  border-radius: 25px;
  width: 390px;
  margin-top: -15px;
  margin-left: 10px;
  /* margin-top: 5px; */
  border: 3px solid black;
}

@media only screen and (max-width: 1200px){


.img1{
  height: 190px;
  border-radius: 25px;
  width: 350px;
  margin-left: 10px;
  margin-top: 5px;
  border: 3px solid black;
}
}
/* .img2{
height: 190px;
  border-radius: 25px;
  width: 350px;
  margin-top: 5px;
  border: 3px solid black;
} */


.img1:hover{
  box-shadow: 0 0 20px 0px rgba(4,9,30,0.7);
}  

/* .img2:hover{
  box-shadow: 0 0 20px 0px rgba(4,9,30,0.7);
}   */

@media only screen and (max-width: 1700px){
#material1Photo,
#material2Photo {
  display: none;
  max-width: 100%;
  height: auto;
  border: 5px solid rgba(0, 0, 0, 0.974);
  object-fit: contain;
}

}


















/* 

.result-box {
  position: relative;
  width: fit-content;
  padding: 10px;
  border: 2px solid #444;
  background: #fff;
  margin-top: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.result-box img.main-image {
  width: 300px;
  display: block;
  margin: 0 auto;
}

.arrow-label {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.arrow-img {
  width: 150px;
}

.arrow-text {
  font-weight: bold;
  color: #000;
  margin-top: 4px;
}

.hidden {
  display: none;
} */
.result-box {
  position: relative;
  width: fit-content;
  padding: 10px;
  border: 2px solid #444;
  background: #fff;
  margin-top: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.result-box img.main-image {
  width: 300px;
  display: block;
  margin: 0 auto;
}

.arrow-label {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.arrow-img {
  width: 150px;
}

.arrow-text {
  font-weight: bold;
  color: #000;
  margin-top: 4px;
}

.hidden {
  display: none;
}













 #calculationContainer table {
  border: 2px solid #333;
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  text-align: left;
}

#calculationContainer th, #calculationContainer td {
  padding: 8px 12px;
}




















body {
  font-family: 'Segoe UI', sans-serif;
  padding: 20px;
  background-color: #fff;
  color: #000;
}

h2 {
  color: red;
  font-size: 24px;
}

ul {
  font-size: 17px;
  margin-left: 20px;
  line-height: 1.6;
}

.formula-box {
  background: #f0f0f0;
  border-left: 5px solid #007bff;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
}

/* Popup Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}
.modal-content {
  background: white;
  margin: 8% auto;
  padding: 25px;
  border-radius: 10px;
  width: 80%;
  max-width: 700px;
  position: relative;
  color: #000;

  /* ✅ Scroll settings */
  max-height: 80vh;         /* Limit height to 80% of viewport */
  overflow-y: auto;         /* Add vertical scrollbar if needed */
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: red;
  cursor: pointer;
}
.close:hover {
  color: black;
}

/* Button */
/* .next-slide-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007bff;
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
} */
















.tick {
  display: none;
  margin-left: 8px;
  color: green;
  font-size: 18px;
}

.button.clicked .tick {
  display: inline;
}







#resetBtn{
    background-color:#e74c3c;
    color:white;
    border:none;
    padding:4px 8px;
    font-size:12px;
    border-radius:4px;
    cursor:pointer;
    width:fit-content;      /* button width = text width */
    display:inline-block;
}

#resetBtn:hover{
    background-color:#c0392b;
}















