/* Custom styles for the Simple Harmonic Motion simulator */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Global styles */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #e0f7fa 0%, #ffffff 100%);
  margin: 0;
  padding: 0;
}

/* Control panel styling */
#animationPanel {
  background: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 15px !important;
  margin: 20px auto !important;
  max-width: 90%;
  transition: all 0.3s ease;
}

#animationPanel button, 
#animationPanel fieldset,
#animationPanel label,
#animationPanel input {
  font-family: 'Poppins', sans-serif;
}

#animationPanel fieldset {
  margin: 0 8px;
  padding: 8px 15px;
  border-radius: 8px;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#animationPanel fieldset:hover {
  background-color: #e3f2fd;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#animationPanel input[type="radio"] {
  margin-right: 5px;
  cursor: pointer;
}

#animationPanel label {
  cursor: pointer;
  font-weight: 500;
  transition: color 0.3s ease;
}

#animationPanel label:hover {
  color: #00897b;
}

#dampingLabel {
  font-weight: 600;
  color: #00695c;
  margin-right: 10px;
}

/* Graph colors */
#plottingPanel path.trace {
  stroke: #00897b !important; /* Teal color for position */
  stroke-width: 2px !important;
}

#plottingPanel path.trace:nth-child(2) {
  stroke: #ff8f00 !important; /* Orange color for velocity */
  stroke-width: 2px !important;
}

/* Add animation for traces */
@keyframes dash {
  to {
    stroke-dashoffset: 1000;
  }
}

#plottingPanel path.trace {
  animation: dash 20s linear infinite;
}

/* Plotting panel */
#plots {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: white;
  margin: 20px auto !important;
  transition: all 0.3s ease;
}

#plots:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

#plottingPanel {
  background: white;
}

/* Experiment info section */
.experiment-info {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  margin: 30px auto;
  max-width: 90%;
  text-align: left;
}

.experiment-info h2 {
  color: #00695c;
  border-bottom: 2px solid #00897b;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.experiment-info p {
  line-height: 1.6;
  color: #333;
}

.experiment-info .formula {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  margin: 15px 0;
  font-size: 1.1em;
}

.experiment-info ul {
  padding-left: 20px;
}

.experiment-info li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 15px;
}

.experiment-info li:before {
  content: "•";
  color: #00897b;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Custom footer */
.custom-footer {
  background: #263238;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
  font-size: 0.9em;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* Title styling */
#titlePanel button {
  font-family: 'Poppins', sans-serif !important;
  font-size: 1.8em !important;
  font-weight: 600 !important;
  color: #00695c !important;
  margin: 20px 0 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Improve equation display */
.formula {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

/* Add smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Improve buttons */
button {
  font-family: 'Poppins', sans-serif !important;
  transition: all 0.3s ease !important;
}

button:hover {
  transform: translateY(-2px) !important;
}

/* Improve the equation display in the sidebar */
div[style*="position:absolute; right:50px"] {
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  background: #f9f9f9 !important;
  padding: 15px !important;
  height: auto !important;
  max-height: 600px !important;
  overflow-y: auto !important;
}

div[style*="position:absolute; right:50px"] h3 {
  color: #00695c !important;
  font-family: 'Poppins', sans-serif !important;
  border-bottom: 2px solid #00897b !important;
  padding-bottom: 8px !important;
}

div[style*="position:absolute; right:50px"] ul {
  font-family: 'Poppins', sans-serif !important;
  line-height: 1.6 !important;
}