/* Parallelogram Angle Explorer Styles */
body {
  background: #f9f9f9;
  color: var(--text-main);
  font-family: 'Segoe UI', 'Arial', sans-serif !important;
  margin: 0;
  padding: 0;
}
.parallelogram-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
}
#svg-wrapper {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border: 2px solid #ccc;
  padding: 2rem 2rem 2rem 2rem;
  margin-bottom: 1.2rem;
  width: 600px;
  min-height: 520px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
#angle-equations {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border: 2px solid #ccc;
  padding: 1rem;
  margin-bottom: 1.2rem;
  width: 600px;
  box-sizing: border-box;
}
.instructions {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.controls {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
  border: 2px solid #ccc;
}
.control-group {
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.control-group label {
  font-weight: bold;
  min-width: 180px;
  text-align: right;
}
.control-group button {
  background: var(--primary-green);
  color: var(--text-light);
  border: none;
  border-radius: 4px;
  width: 40px;
  height: 30px;
  font-size: 1.2rem;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.control-group button:hover {
  background: var(--primary-blue);
}
.reset-button {
  background: #d32f2f;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1rem;
}
.reset-button:hover {
  background: #c62828;
}
.eq-row {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: #333;
  background: #e3f2fd;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  display: inline-block;
}
 #svg-wrapper {
   margin-bottom: 1.5rem;
   width: 700px;
   height: 500px;
   display: flex;
   align-items: center;
   justify-content: center;
 }
@media (max-width: 600px) {
  .instructions {
    padding: 1rem;
    font-size: 1rem;
  }
  #svg-wrapper svg {
    width: 100% !important;
    height: auto !important;
  }
}

/* Visual indicator when shape is clamped at bounds */
.clamped {
  box-shadow: 0 0 18px rgba(211,47,47,0.25), 0 2px 8px rgba(0,0,0,0.08) !important;
  border-color: #d32f2f !important;
}

/* Visual hint for the anchored side during trapezium drag */
.anchored {
  opacity: 0.45 !important;
  transition: opacity 0.12s;
}

/* Arrow markers to indicate parallel sides in trapezium mode */
.parallel-arrow {
  fill: rgba(25,118,210,0.95);
  stroke: rgba(25,118,210,0.95);
  stroke-width: 0.5px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.12));
  pointer-events: none;
}
