.guitar {
  /* Main container for the guitar with hover effect */
  min-width: 100%;
  min-height: max-content;
  position: absolute;
  bottom: -30%;
  left: -60%;
  display: flex;
  justify-content: center;
  align-items: center;
  scale: 0.3;
  transform: rotateX(-5deg) rotateY(15deg) translateZ(var(--z-translation));
  transition: transform 2s ease;
}

.guitar:hover {
  transform: rotateX(0deg) translateX(40%) rotateY(0deg) translateZ(0px)
    scale(1.5);
}

.guitar-neck {
  /* Neck of the guitar */
  position: absolute;
  top: -120%;
  width: 120px;
  height: 1200px;
  background-color: var(--darker-gray);
  border-top: 55px solid var(--dark-gray);
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
}

.guitar-neck::before {
  content: "";
  display: block;
  position: relative;
  top: -20%;
  left: -55%;
  width: 150px;
  border-bottom: 180px solid var(--dark-gray);
  border-left: 35px solid transparent;
  border-right: 35px solid transparent;
}

.guitar-upper-bout,
.guitar-lower-bout {
  /* Upper and lower body of the guitar */
  position: absolute;
  border-radius: 50%;
  background-color: var(--primary-brown);
  scale: 0.5;
}

.guitar-upper-bout {
  top: -50%;
  width: 1000px;
  height: 800px;
  border-bottom: 100px solid var(--secondary-brown);
}

.guitar-lower-bout {
  top: -30%;
  width: 1400px;
  height: 1200px;
  border-bottom: 50px solid var(--secondary-brown);
  box-shadow: 0px -80px 55px 5px var(--secondary-brown) inset;
}

.guitar-sound-hole-outer {
  /* Sound hole of the guitar with decorative gradients */
  width: 450px;
  height: 450px;
  border-radius: 50%;
  border: 20px dotted var(--highlight-brown);
  background-color: var(--wood-dark);
  display: flex;
  scale: 0.45;
  z-index: 2;
}

.guitar-sound-hole-inner {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 10px solid var(--medium-brown);
  background: linear-gradient(
    var(--gradient-light) 5%,
    var(--gradient-highlight) 30%,
    var(--gradient-medium) 50%,
    var(--gradient-dark) 100%
  );
  box-shadow: 0 30px 35px 15px var(--wood-dark) inset;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guitar-string {
  /* Strings of the guitar with varying thickness and colors */
  position: relative;
  top: -125%;
  height: 2200px;
}

.guitar-string:nth-of-type(1) {
  margin-left: 20%;
  width: 6px;
  background-color: var(--string-1);
}

.guitar-string:nth-of-type(2) {
  width: 5px;
  background-color: var(--string-2);
}

.guitar-string:nth-of-type(3) {
  width: 4px;
  background-color: var(--string-3);
}

.guitar-string:nth-of-type(4) {
  width: 3px;
  background-color: var(--string-4);
}

.guitar-string:nth-of-type(5) {
  width: 2px;
  background-color: var(--string-5);
}

.guitar-string:nth-of-type(6) {
  margin-right: 20%;
  width: 1px;
  background-color: var(--string-6);
}

.guitar-pick-guard {
  /* Pick guard for the guitar */
  position: absolute;
  top: 25%;
  left: 50%;
  width: 150px;
  height: 300px;
  background-color: var(--neutral-black);
  border-top-right-radius: 200%;
  border-bottom-right-radius: 50%;
  border-bottom-left-radius: 50%;
  z-index: 1;
}

.guitar-sadle {
  /* Saddle of the guitar */
  position: absolute;
  top: 100%;
  width: 250px;
  background-color: var(--neutral-black);
  border: 30px solid var(--neutral-black);
  border-top: 40px solid var(--neutral-gray);
  border-bottom-left-radius: 40% 30%;
  border-bottom-right-radius: 40% 30%;
  z-index: 1;
}

.bridge {
  /* Bridge of the guitar */
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  margin: auto;
  width: 150px;
  height: 8px;
  background-color: var(--neutral-light-gray);
}

.guitar-rings {
  /* Decorative rings on the guitar */
  position: absolute;
  top: 110%;
  display: flex;
}

.guitar-ring {
  margin: 0 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--white);
  z-index: 1;
}
