#mainContainer {
    display: flex;
    justify-content: center;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}

#container{
    width: 1330px;
    height:800px;
    flex-direction: column;
    background: URL("../images/background.jpg") no-repeat;
    justify-content: center;
  
  }

  #header {
    width: 100%;
    text-align: center;
  }
  
  #simulation {
    display: flex;
    
  }

  #leftPane,
#rightPane{
  flex: 1;
  padding: 4px;
  overflow-y: auto;
  background-color: transparent;
  font-size: large;
  /* border-right: 1px solid #ccc; */
}

#middlePane {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  /* border-right: 1px solid #ccc; */
  padding: 2px;
}

canvas {
  background-color: transparent;

 
}


#middlePane{
  position: relative;
}
#water-pump{
  position: absolute;
  height: 130px;
  top:380px;
  left:240px
  
}

#inputs_cor {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

button {
  padding: 5px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  background-color: transparent;
  color: white;
  border-radius: 5px;
  margin-top: 5px;
}

button img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 5px;
}

button:hover {
  border: 1px solid black;
}


table,
th,
td {
  border: 1px solid black;
  border-collapse: collapse;
  padding: 5px;
  margin-top: 20px;
}

th,
td {
  background-color: #96c5e3;
}

#formula {
  overflow: hidden;
  height: 50px;
  width: 100px;
}

td {
  width: 200px;
}
#showResultsButton {
  color: white; /* Text color */
  background-color: #007bff; /* Primary blue color */
  border: none; /* Remove border */
  padding: 5px 10px; /* Adjust padding for a better size */
  margin-top: 15px;
  font-size: 16px; /* Professional font size */
  font-weight: 500; /* Slightly bold text */
  border-radius: 5px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor for interactivity */
  transition: background-color 0.3s, transform 0.2s; /* Smooth transitions */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

#showResultsButton:hover {
  background-color: #0056b3; /* Darker blue on hover */
  transform: translateY(-2px); /* Slight lift on hover */
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.15); /* Enhanced shadow */
}

#showResultsButton:active {
  background-color: #003d82; /* Even darker blue on click */
  transform: translateY(0px); /* No lift on click */
  box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Modal Background */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: 3% auto; /* Reduced margin */
  padding: 15px; /* Reduced padding */
  border: 1px solid #ccc; /* Lighter border */
  width: 90%;
  max-width: 600px;
  text-align: center;
  border-radius: 8px;
  max-height: 80vh;
  overflow-y: auto; /* Enable vertical scroll if needed */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Softer shadow */
  position: relative;
}

/* Close Button Styling */
.close-btn {
  color: #666;
  font-size: 18px; /* Slightly smaller font size */
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
}

/* Modal Background - Remove Black Overlay */
#resultsModal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 700px; /* Adjusted max-width */
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-radius: 8px;
  padding: 1rem; /* Adjusted padding */
}

/* Modal Content */
.modal-content {
  position: relative;
  padding: 15px;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: none;
}

/* Close Button Styling */
.close-button {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.close-button:hover {
  color: #000;
}

/* Table Wrapper */
.table-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Table Container */
.table-container {
  overflow-x: auto;
  width: 100%;
}

/* Table Styling */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px; /* Reduced padding */
  text-align: center;
  font-size: 14px; /* Adjusted font size */
}

th {
  background-color: #f4f4f4;
  font-weight: bold;
}

td {
  font-size: 13px;
}

/* Download Button */
.download-button {
  display: block;
  margin: 15px auto 0;
  padding: 10px 20px; /* Adjusted padding */
  background-color: #4CAF50;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.download-button:hover {
  background-color: #45a049;
}

/* Additional Responsive Design */
@media (max-width: 768px) {
  .modal-content {
    padding: 12px;
  }

  table th, table td {
    padding: 8px;
    font-size: 13px;
  }

  .download-button {
    font-size: 13px;
    padding: 8px 16px;
  }

  #resultsModal {
    width: 90%;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 8px;
  }

  table th, table td {
    padding: 6px;
    font-size: 12px;
  }

  .download-button {
    font-size: 12px;
    padding: 6px 14px;
  }
}






#formula-button {
  color: white; /* Text color */
  background-color: #007bff; /* Primary blue color */
  border: none; /* Remove border */
  padding: 5px 10px; /* Adjust padding for a better size */
  margin-top: 8px;
  font-size: 16px; /* Professional font size */
  font-weight: 500; /* Slightly bold text */
  border-radius: 5px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor for interactivity */
  transition: background-color 0.3s, transform 0.2s; /* Smooth transitions */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

#formula-button:hover {
  background-color: #0056b3; /* Darker blue on hover */
  transform: translateY(-2px); /* Slight lift on hover */
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.15); /* Enhanced shadow */
}

#formula-button:active {
  background-color: #003d82; /* Even darker blue on click */
  transform: translateY(0px); /* No lift on click */
  box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

#formulaeContainer {
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
}


#formulaeContainer {
  font-family: Arial, sans-serif;
  margin: 15px;
}

#formulaeContainer h3 {
  margin-bottom: 10px;
}

#formulaeList {
  list-style-type: none;
  padding: 0;
}

#formulaeList li {
  background-color: #f9f9f9;    /* Light gray background */
  border: 1px solid #ccc;      /* Light border */
  border-radius: 5px;          /* Rounded corners */
  padding: 10px;               /* Padding inside each item */
  margin-bottom: 10px;         /* Margin between items */
  text-align: left;            /* Ensures text is left-aligned */
  font-size: 14px; 
}




/* Input Data Container */
.input-data-container {
  margin-bottom: 20px;
}

.input-data-container h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: bold;
}

.input-data-container ul {
  list-style-type: none;
  padding-left: 0;
  text-align: left;  /* Left-align text */
  font-size: 14px;   /* Smaller text size */
  margin: 0;
}

.input-data-container li {
  margin-bottom: 8px;  /* Space between each list item */
}

.input-data-container strong {
  font-weight: bold;  /* Bold the labels */
}

/* Style for the Modal Content */
.modal-content {
  position: relative;
  padding: 20px;
  max-height: 80vh;
  overflow-y: auto;
}

.output {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 20px;
}

.controls{
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 10px;
  flex-direction: column;
}

#update_cor{
  margin-top: 20px;
}
#theoritcal_results {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  gap: 5px;
  padding: 8px;
  border: 1px solid #99ccff;
  border-radius: 8px;
  background-color: #e6f7ff; /* Light blue background */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: 'Arial', sans-serif;
  font-size: 14px; /* Smaller font size */
  color: #333;
}

#theoritcal_results b {
  font-weight: 700; /* Slightly lighter weight for a clean look */
}

#theoritcal_results span {
  display: block;
  margin: 2px 0;
}

#read-btn{
    color: white; /* Text color */
  background-color: #007bff; /* Primary blue color */
  border: none; /* Remove border */
  padding: 5px 10px; /* Adjust padding for a better size */
  margin-top: 15px;
  font-size: 16px; /* Professional font size */
  font-weight: 500; /* Slightly bold text */
  border-radius: 5px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor for interactivity */
  transition: background-color 0.3s, transform 0.2s; /* Smooth transitions */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  margin-left: 40px;

}
