/* General Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #1a1a1a;
  color: #eaeaea;
  height: 100vh;
}

header {
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  font-size: 28px;
  font-weight: bold;
  margin: 0;
}

header p {
  font-size: 16px;
  color: #aaa;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

footer {
  margin-top: 20px;
  font-size: 14px;
  color: #555;
}

/* Tabs Styles */
#tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tab {
  background: #333;
  color: #eaeaea;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.tab.active {
  background: #ff007a;
}

.tab:hover {
  background: #555;
}

/* XY Pad Styles */
#xy-pad {
  width: 400px;
  height: 400px;
  background: #2a2a2a;
  border-radius: 16px;
  position: relative;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: linear-gradient(#333 1px, transparent 1px),
    linear-gradient(90deg, #333 1px, transparent 1px);
  background-size: 20px 20px; /* Grid spacing */
}

#marker {
  width: 24px;
  height: 24px;
  background: #ff007a;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  transition: background-color 0.2s linear;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Axis Labels */
.axis-label {
  position: absolute;
  color: #666;
  font-size: 14px;
  font-weight: bold;
}

.x-left {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.x-right {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.y-top {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.y-bottom {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

/* Result Section */
#result {
  text-align: center;
  background: #2a2a2a;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: #eaeaea;
}

#result h2 {
  font-size: 18px;
  margin-bottom: 5px;
}

#result p {
  font-size: 14px;
  color: #aaa;
}
/* Tags Container */
#tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 10px 0;
}

.tag {
  background: #333;
  color: #eaeaea;
  border: none;
  padding: 5px 10px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.tag.active {
  background: #ff007a;
}

.tag:hover {
  background: #555;
}

/* XY Pad: Points */
.point {
  width: 10px;
  height: 10px;
  background: #ff007a;
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(255, 0, 122, 0.8);
}
/* Tooltip Styles */
.tooltip {
  position: absolute;
  background: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  pointer-events: none; /* Para que el tooltip no interfiera con el hover */
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
}
