/* Pekosoft Metronome */
/* pekosoft.net/css/metronome.css */

.pendulum-spacer {
  max-width: var(--maxwidth);
  height: 442px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 16px;
  margin: 8px auto 8px;
}

.pendulum-wrapper {
  width: 100%;
  height: 402px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border: none;
}

#tool-container.module-maximized .pendulum-spacer {
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}

#tool-container.module-maximized .pendulum-wrapper {
  width: 330px;
  height: 402px;
  transform-origin: center center;
  transform: scale(1.35);
}

@media (min-width: 900px) and (min-height: 760px) {
  #tool-container.module-maximized .pendulum-wrapper {
    transform: scale(1.7);
  }
}

@media (min-width: 1200px) and (min-height: 860px) {
  #tool-container.module-maximized .pendulum-wrapper {
    transform: scale(2);
  }
}

.pendulum {
  width: 4px;
  height: 324px;
  background-color: var(--white);
  position: absolute;
  transform-origin: bottom;
  transform: rotate(-30deg);
  transition: transform 0.3s ease-in-out;
  z-index: 3;
  bottom: 60px;
}

.metronome-body {
  width: 300px;
  height: 320px;
  background-color: var(--grey1);
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  clip-path: polygon(0% 100%, 49% 100%, 49% 5%, 51% 5%, 51% 100%, 100% 100%, 80% 0%, 20% 0%);
}

.metronome-base {
  width: 330px;
  height: 75px;
  background-color: var(--grey1);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  clip-path: polygon(0% 100%, 100% 100%, 96% 0%, 4% 0%);
  z-index: 3;
}

/* END OF FILE */