/* Make sure body fills the screen */
html,
body {
  height: 100%;
  margin: 0;
  background-color: #f0f0f0;
  transition: background-color 0.5s ease;
}

/* Flex wrapper handles centering */
.wrapper {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Container */
.container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Element A */
.element-a {
  font-family: "Roboto", sans-serif;
  font-size: 24px;
  transition: transform 0.5s ease, color 0.5s ease;
  z-index: 2;
  white-space: nowrap;
  color: black;
}

/* Element B (SVG) */
.element-b {
  width: 60px;
  height: auto;
  opacity: 0;
  position: absolute;
  left: 50%;
  margin-top: 9px;
  transform: translateX(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 1;
}

.guitar {
  width: 150px; /* Adjust the size as needed */
  height: auto;
  position: fixed; /* Use fixed positioning to anchor it to the viewport */
  bottom: 0px; /* Distance from the bottom of the viewport */
  left: 50%; /* Center horizontally */
  transform: translateX(-50%); /* Adjust for centering */
  opacity: 0; /* Initially hidden */
  transition: opacity 0.5s ease; /* Smooth fade-in effect */
  z-index: 1;
}

@media (max-width: 768px) {
  .element-a {
    font-size: 18px; /* Smaller font size for mobile */
  }

  .element-b {
    width: 40px; /* Smaller SVG size for mobile */
  }
}

body.hovering-a .element-a {
  transform: translateX(-25px);
  color: white;
}

body.hovering-a .element-b {
  opacity: 1;
  transform: translateX(25px);
}
/* JS-driven background change */
body.hovering-a {
  background-color: black;
}

.fade-in {
  opacity: 1; /* Make the element visible */
}

.element-b,
.guitar {
  pointer-events: none;
}