/* Circle of Fifths page-specific styles */

.nonnav-body {
  margin-top: 12%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(1.5);
}

.circle-container {
  position: relative;
  width: 300px;
  height: 300px;
  border: 2px solid #282c34;
  border-radius: 50%;
  z-index: 0;
}

.circle-border {
  position: absolute;
  width: 298px;
  height: 298px;
  border: 4px solid #539d12;
  border-radius: 50%;
  z-index: 1;
}

.minor {
  transform: scale(0.6);
  margin: 0;
  margin-left: -2px;
  margin-top: -2px;
}

.minor-ring {
  border: 8px solid #539d12;
  transform: scale(0.6);
  margin: 0;
  margin-left: -2.5%;
  margin-top: -7px;
}

.petal {
  position: absolute;
  background: #fd900c;
  left: 50%;
  top: 42%;
  width: 70px;
  height: 35px;
  border: none;
  border-top-left-radius: 60%;
  border-top-right-radius: 60%;
  transition: background 0.3s;
  margin-left: -35px;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  line-height: 30px;
}

.note {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 70px;
  background: #ffa008;
  border: none;
  clip-path: polygon(
      /* top line segment of wedge */
      0% 12.75%, 10% 10.5%, 20% 9%, 30% 8%, 40% 7%,
      50% 7%,
      60% 7%, 70% 8%, 80% 9%, 90% 10.5%, 100% 12.75%,
      /* bottom line segment of wedge */
      80.5% 92%, 70% 90.1%, 60% 89%, 57% 88.75%,
      50% 88.5%,
      43% 88.75%, 40% 89%, 30% 90.1%, 19.5% 92%);
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  line-height: 35px;
  transition: background 0.3s;
  /* Offset the button by half its width/height to truly center it */
  margin: -35px;
}

.note:hover {
  background: #21a1f1;
}

/* Arrange buttons in a circle (clockwise order of the circle of fifths) */
.note-1 {
  transform: rotate(0deg) translate(0, -120px) rotate(0deg);
}

.note-2 {
  transform: rotate(30deg) translate(0, -120px) rotate(0deg);
}

.note-3 {
  transform: rotate(60deg) translate(0, -120px) rotate(0deg);
}

.note-4 {
  transform: rotate(90deg) translate(0, -120px) rotate(0deg);
}

.note-5 {
  transform: rotate(120deg) translate(0, -120px) rotate(0deg);
}

.note-6 {
  transform: rotate(150deg) translate(0, -120px) rotate(0deg);
}

.note-7 {
  transform: rotate(180deg) translate(0, -120px) rotate(0deg);
}

.note-8 {
  transform: rotate(210deg) translate(0, -120px) rotate(0deg);
}

.note-9 {
  transform: rotate(240deg) translate(0, -120px) rotate(0deg);
}

.note-10 {
  transform: rotate(270deg) translate(0, -120px) rotate(0deg);
}

.note-11 {
  transform: rotate(300deg) translate(0, -120px) rotate(0deg);
}

.note-12 {
  transform: rotate(330deg) translate(0, -120px) rotate(0deg);
}

/* Petal transformations */
.petal-1 {
  transform: rotate(0deg) translate(0, -157px) rotate(0deg);
}

.petal-2 {
  margin-top: 0px;
  transform: rotate(30deg) translate(0, -155px) rotate(0deg);
  margin-left: -31px;
}

.petal-3 {
  margin-top: -15px;
  margin-left: 3px;
  transform: rotate(60deg) translate(0, -120px) rotate(0deg);
}

.petal-4 {
  margin: 0px;
  margin-top: 7px;
  margin-left: 8px;
  transform: rotate(90deg) translate(0, -120px) rotate(0deg);
}

.petal-5 {
  margin: 0px;
  margin-top: 27px;
  margin-left: 0px;
  transform: rotate(120deg) translate(0, -123px) rotate(0deg);
}

.petal-6 {
  margin: 0px;
  margin-top: 18px;
  margin-left: -28px;
  transform: rotate(150deg) translate(0, -150px) rotate(0deg);
}

.petal-7 {
  transform: rotate(180deg) translate(0, -120px) rotate(0deg);
}

.petal-8 {
  transform: rotate(210deg) translate(0, -120px) rotate(0deg);
}

.petal-9 {
  transform: rotate(240deg) translate(0, -120px) rotate(0deg);
}

.petal-10 {
  transform: rotate(270deg) translate(0, -120px) rotate(0deg);
}

.petal-11 {
  transform: rotate(300deg) translate(0, -120px) rotate(0deg);
}

.petal-12 {
  margin-top: 0px;
  margin-left: -39px;
  transform: rotate(330deg) translate(0, -155px) rotate(0deg);
}

.flipped {
  transform: rotate(180deg);
}