@import url("https://fonts.googleapis.com/css2?family=Pacifico&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Gaegu&display=swap");

html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;

  font-size: 16px;
}

body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;

  font-family: sans-serif;
}

.app {
  --color-brown: #ba8e4a;
  --color-darkbrown: #754f32;
  --color-black: #000000;
  --color-gray: #c0c0c0;

  overflow: auto;
  display: flex;
  flex-direction: column;

  width: 100%;
  height: 100%;

  background-color: #ffffff;
}

.content {
  margin: auto;
}

.guitar {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;

  margin-bottom: 1rem;
}

@media (max-width: 470px) {
  .content {
    transform: scale(0.8);
  }
}

@media (max-width: 350px) {
  .content {
    transform: scale(0.7);
  }
}

@media (max-width: 300px) {
  .content {
    transform: scale(0.6);
  }
}

.body {
  background-color: var(--color-brown);
}

.body.large {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
}

.body.small {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  transform: translateX(-5.5rem);
}

.neck {
  width: 12rem;
  height: 2.5rem;
  transform: translateX(-7rem);

  background-color: var(--color-darkbrown);
}

.head {
  position: relative;
  z-index: 2;

  width: 6rem;
  height: 3rem;
  transform: translateX(-8rem) perspective(100px) rotateY(-15deg);
}

.head::after {
  box-sizing: border-box;

  position: absolute;
  content: "";
  z-index: 3;

  top: 0;
  left: 0;
  width: 85%;
  height: 100%;
  border-left: 5px solid var(--color-darkbrown);

  background-color: var(--color-brown);
}

.tuner-area {
  position: absolute;
  display: flex;
  flex-direction: row;
  gap: 1rem;

  top: 50%;
  left: 1.2rem;
  transform: translateY(-50%);
}

.tuner {
  height: 4rem;
  border-left: 5px solid var(--color-black);
}

@keyframes logo-animation {
  100% {
    opacity: 1;
  }
}

.logo {
  position: absolute;
  z-index: 5;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translate(-0.2rem, -0.2rem);
  opacity: 0;

  font-size: 1.1rem;
  font-family: "Pacifico", serif;

  animation: 3s 3.5s logo-animation forwards;
}

@keyframes hole-animation {
  100% {
    opacity: 1;
  }
}

.hole {
  position: absolute;

  top: 50%;
  left: 6rem;
  transform: translateY(-50%);

  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--color-black);
  opacity: 0;

  animation: 3s hole-animation forwards;
}

.string-area {
  cursor: pointer;
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;

  top: 50%;
  left: 3rem;
  transform: translateY(-50%);

  -webkit-tap-highlight-color: transparent;
}

.bridge {
  position: absolute;

  top: 50%;
  left: 0rem;
  width: 0.5rem;
  height: 3rem;
  transform: translateY(-50%);

  background-color: var(--color-black);
}

@keyframes string-animation {
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

.string {
  width: 20rem;
  border-top: 2px solid var(--color-black);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: border-top-color 0.5s;

  animation: 3s ease-in-out 1s string-animation forwards;
}

.string-area.active .string {
  border-top-color: var(--color-gray);
}

@keyframes description-animation {
  100% {
    opacity: 1;
  }
}

.description {
  text-align: center;

  width: 100%;
  margin-bottom: auto;
  transform: translateX(-3.5rem);
  opacity: 0;

  font-size: 1.5rem;
  font-weight: bold;
  font-family: "Gaegu", sans-serif;

  animation: 3s 4.5s description-animation forwards;
}
