#parentContainer {
  display: flex;
  justify-content: center;
}
#container {
  width: 1330px;
  height: 610px;
  flex-direction: column;
  background: URL("../images/background.jpg") no-repeat;
  justify-content: center;
}
#header {
  width: 100%;
  height: 80px;
  text-align: center;
}
#simulation {
  display: flex;
}
#leftPane {
  width: 20%;
  margin-left: 15px;
}
#rightPane {
  width: 15%;
}
#middlePane {
  width: 65%;
}

#initialMassValue1 {
  margin-left: 20%;
}
#initialRadiusValue1 {
  margin-left: 20%;
}
#initialAngVel {
  margin-left: 20%;
}

.initial_ObjectMass{
  margin-left: 0%;

}
#currentObj{
  margin-bottom: 2%;

}
/* #massText{
  margin-left: 2%;

	background-color: transparent;
	width: 30px;
	border-radius: 4px;
} */
.hidden {
  display: none;
}
input[type="text"] {
  margin-left: 2%;

	background-color: transparent;
	width: 30px;
	border-radius: 4px;
  margin-bottom: 2%;

}



/* right pane */
.control_heading {
  font-size: 18px;
  margin-bottom: 2%;
}
.play, .reset, .drop {
  font-size: 18px;
  margin-bottom: 10%;
}
#playButton {
  border: none;
  cursor: pointer;
  appearance: none;
  background-color: inherit;
  margin-left: 25%;
  margin-top: 0%;
}


#resetButton {
  position: absolute;
  border: none;
  cursor: pointer;
  appearance: none;
  background-color: inherit;
  margin-left: 4.9%;
  margin-top: -1%;
  margin-bottom: 10%;

}

#dropButton {
  position: absolute;
  border: none;
  cursor: pointer;
  appearance: none;
  background-color: inherit;
  margin-left: 1.5%;
  margin-top: -0.5%;
}

.button-table1 {
  font-size: 0.85em;
  padding: 8px;
  position: absolute;
  color: #000;
  border: 2px solid #000;
  border-radius: 20px/50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease-out;
}
.button-table1:hover {
  background: #78b5e3;
}

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
}
.overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  width: 70%;
  position: relative;
  transition: all 5s ease-in-out;
}

.popup h2 {
  margin-top: 0;
  color: #333;
  font-family: Tahoma, Arial, sans-serif;
}
.popup .close {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}
.popup .close:hover {
  color: #78b5e3;
}
.popup .content {
  max-height: 30%;
  overflow: auto;
}
table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

td,th {
  border: 1px solid #000;
  text-align: center;
  font-size: medium;
  padding: 8px;
}

tr:nth-child(even) {
  background-color: #dddddd;
}
#copyright {
  position: absolute;
  left: 280px;
  top: 600px;
  height: 10px;
  width: 2300px;
  text-align: center;
  font-size: 12px;
  font-family: sans-serif;
}

#observation-button{
  margin-top: 20px;
  
}

#stopwatch {

  font-size: 20px;
  font-weight: bold;
 
}



  
/* 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;
  }
}



/* Styling for the observations button */
#download-graph,
#showObservationsBtn {
  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: 14px; /* 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 */
    width: auto;
    font-family: 'Times New Roman', Times, serif;

}

/* Hover effect for both buttons */
#download-graph:hover{
  
  transform: translateY(-3px); /* Slight upward movement */

}
#formula-button:hover, #showObservationsBtn:hover {
  background-color: #45a049; /* Darker green for formula button */
  background-color: #0056b3; /* Darker blue for observations button */
  transform: translateY(-3px); /* Slight upward movement */
}

/* Focus effect for both buttons */
#formula-button:focus, #showObservationsBtn:focus {
  outline: none; /* Remove default focus outline */
  box-shadow: 0 0 5px 2px rgba(0, 123, 255, 0.5); /* Add blue outline for focus */
}

/* Active effect for both buttons */
#formula-button:active, #showObservationsBtn:active {
  transform: translateY(1px); /* Slight downward movement when clicked */
}

#button-container{
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin-top: 2px;
  gap : 5px
}



#inputDataContainer {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 16px 24px;
  background-color: #fff;
  color: #333;
  text-align: left;         /* Ensure everything is left-aligned */
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.6;
}

/* Headings */
#inputDataContainer h3 {
  font-size: 16px;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #003366;
  border-bottom: 1px solid #ccc;
  padding-bottom: 4px;
  font-weight: 600;
  text-align: left;
}

/* Paragraphs for each field */
#inputDataContainer p {
  margin: 4px 0 8px;
  padding: 0;
}

/* Bold labels */
#inputDataContainer strong {
  display: inline-block;
  min-width: 220px;
  font-weight: 600;
  color: #222;
  text-align: left;
}



#warning {
  font-family:'Times New Roman', Times, serif;
  color: red;
  font-size: large;
  animation: smoothBlink 1.5s ease-in-out infinite;
}

@keyframes smoothBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.control-group {
    display: flex;
    flex-direction: column;   /* Forces two rows */
    gap: 2px;
    width: 280px;
  }

  .control-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }

input[type="range"] {
  width: 100px;   /* Adjust as needed */
}

[hidden] {
  display: none !important;
}
