:root {
  --blue: #8AC7E4;
  --green: #C5CE70;
  --darkgreen: #AEBE38;
  --yellow: #FFEC76; 
  --pink: #ECABB3;
  --white: #FFFFFF;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0;
  padding: 20px;
}

h1 {
  text-align: center;
  font-size: 25px;
  margin-bottom: -10px;
}

h2 {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

h3 {
  text-align: center;
  font-size: 20px;
  font-weight: normal;
}

/* Fraction styling */
.fraction {
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  font-size: 0.9em;
  margin: 0 0.15em;
}

.numerator {
  display: block;
  border-bottom: 1px solid currentColor;
  padding: 0 0.3em 0.1em;
  line-height: 1;
}

.denominator {
  display: block;
  padding: 0.1em 0.3em 0;
  line-height: 1;
}

.figures-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.figure-box {
  width: 280px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.figure-container {
  width: 200px;
  height: 200px;
  position: relative;
  margin-bottom: 15px;
}

svg {
  width: 100%;
  height: 100%;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.color-buttons {
  display: flex;
  justify-content: space-around;
  margin-bottom: 10px;
}

.color-button {
  width: 40px;
  height: 30px;
  border: 1px solid #aaa;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

.color-button:hover {
  transform: scale(1.05);
}

.color-button.active {
  box-shadow: 0 0 0 2px #666;
}

.action-buttons {
  display: flex;
  justify-content: space-between;
}

button {
  font-family: 'Roboto', Arial, sans-serif;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  background-color: #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #e0e0e0;
}

.copyright {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: #666;
}

.message {
  margin-top: 10px;
  min-height: 40px;
  text-align: center;
  font-weight: bold;
}

.success {
  color: var(--darkgreen);
}

.error {
  color: #333;
}

/* SVG styles */
.segment {
  /*stroke: #888; /*wird im JS geändert*/
  stroke-width: 0.8;
  stroke-linecap: round;
  stroke-miterlimit: 1.5; /*verhindert spitze Ecken*/
  cursor: pointer;
}