.rose {
  border: 2px solid #333;
  padding: 1em;
  max-width: 820px;
  margin: 1em auto;
  font-family: sans-serif;
}

.rose h2 {
  margin-top: 0;
  text-align: center;
}

.rose svg {
  display: block;
  margin: 0 auto;
  background: #f9f9f9;
}

.rose .controls {
  text-align: center;
  margin-top: 1em;
}

.rose button {
  margin: 0 0.5em;
  padding: 0.5em 1em;
  font-size: 1em;
}

.rose .result {
  text-align: center;
  margin-top: 1em;
  font-size: 1.3em;
}

.rose .answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  transition:
    max-height 0.6s ease,
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0.6s linear;
}

.rose .answer.revealed {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s;
}

.rose .problem {
  max-height: 1000px;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    max-height 0.25s ease;
  overflow: hidden;
}

.rose .problem.hidden {
  opacity: 0;
  transform: scale(0.95);
  max-height: 0;
  pointer-events: none;
}

