@font-face {
  font-family: 'Luckiest Guy';
  font-display: swap;
  src: url('luckiest-guy.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

body {
  text-align: center;
  max-width: 50rem;
  margin: 0 auto;
  background-color: #f9f4e6;
  background-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.5) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.5) 75%,
    transparent 75%,
    transparent
  );
  background-size: 40px 40px;
  color: #333;
}

body * {
  border-radius: 8px;
}

h1 {
  font-family: 'Luckiest Guy', cursive;
  color: #ff2d2d;
  font-size: 2.8rem;
  text-shadow: 3px 3px 0 #ffd800, 6px 6px 0 #333;
  letter-spacing: 2px;
  line-height: 1.2;
  transform: rotate(-5deg);
}

a {
  color: #ff2d2d;
  text-decoration: none;
}

h2 {
  font-family: 'Luckiest Guy', cursive;
  color: #ff2d2d;
  font-size: 2rem;
}

button {
  border: 5px solid #ff2d2d;
  cursor: pointer;
  background: #fff;
  font-size: 4rem;
  box-shadow: 0 8px 0 #fff, 0 15px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
  position: relative;
  width: 5rem;
  height: 5rem;
}

button:active {
  transform: translateY(4px);
  box-shadow: none;
}

form button {
  width: 3rem;
  height: 3rem;
  border: 3px solid #ff2d2d;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

form button:active {
  transform: translateY(2px);
}

#play-icon,
#stop-icon {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  scale: 2;
}

#play-icon svg.play-svg,
#stop-icon svg.stop-svg {
  display: block;
}

#play-icon svg.stop-svg,
#stop-icon svg.play-svg {
  display: none;
}

select {
  padding: 12px;
  border: 5px solid #ff2d2d;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  text-align: center;
  position: relative;
  margin: 1rem auto;
  text-align-last: center;
  width: 250px;
  -webkit-text-align-last: center;
  -moz-text-align-last: center;
  font-size: 1rem;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23ff2d2d' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

li {
  list-style: none;
  padding: 15px;
  border: 3px dashed #ffd800;
  margin-bottom: 10px;
  cursor: pointer;
  background-color: #fff;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

li:hover {
  transform: scale(1.02);
  border: 3px dashed #ff2d2d;
  background-color: #fffaed;
}

li span {
  flex: 1;
  font-weight: bold;
}

#progress-container {
  width: 90%;
  background-color: #fff;
  position: relative;
  margin: 4rem auto;
  height: 30px;
  border: 5px solid #ff2d2d;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

#progress-bar {
  height: 30px;
  background: linear-gradient(
    135deg,
    #ff2d2d 25%,
    #ffd800 25%,
    #ffd800 50%,
    #ff2d2d 50%,
    #ff2d2d 75%,
    #ffd800 75%
  );
  background-size: 30px 30px;
  width: 0%;
  transition: width 1s linear;
  animation: circus-stripes 2s linear infinite;
  border-radius: 3px 0 0 3px;
}

@keyframes circus-stripes {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 60px 0;
  }
}

#progress-label {
  background-color: #fff;
  border: 5px solid #ff2d2d;
  min-width: 6.5rem;
  margin: 0 0 3rem 0;
  padding: 1rem 0 0.4rem 0;
  display: inline-block;
  color: #ff2d2d;
}

.cymbal {
  position: absolute;
  bottom: 0;
  transform: translate(-50%, -50%);
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  cursor: pointer;
}

.cymbal-49 {
  left: 50%;
}

.cymbal-66 {
  left: 66.5%;
}

.cymbal-82 {
  left: 83.5%;
}

.cymbal-100 {
  left: 100%;
}

aside,
form {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 0.7rem;
  border: 3px dashed #ff2d2d;
  width: 80%;
  margin: 1.5rem auto 30px;
}

#error {
  background-color: #ff2d2d;
  color: white;
  width: 80%;
  margin: auto;
  padding: 1rem;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
}

.search-container {
  display: flex;
  gap: 1rem;
  position: relative;
  margin: 0.7rem;
}

input {
  border: none;
  background: transparent;
  text-align: center;
  flex: 1;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-size: 1rem;
  border-bottom: 2px solid #ff2d2d;
  border-radius: 0;
}
