/* Container: centered via margin-auto + text-align */
.jm-wheel-container {
  position: relative;
  width: 90vw;          /* fluid up to 90% of viewport */
  max-width: 500px;
  margin: 20px auto;    /* auto horizontal margins = perfect centering */
  padding: 10px;
  text-align: center;   /* center inline children */
}

/* Pointer arrow */
.jm-wheel-pointer {
  position: absolute;
  top: -10px;           /* just above the wheel */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 25px solid #d12329;
  z-index: 2;
}

/* Wheel canvas: inline-block + fixed aspect ratio */
#jmWheelCanvas {
  display: inline-block;
  width: 100%;
  aspect-ratio: 1;      /* enforce a perfect square */
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  margin-top: 30px;     /* space for the pointer above */
  transition: box-shadow 0.3s ease;
}
#jmWheelCanvas:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* Spin button: gradient, rounded, interactive */
.jm-spin-button {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #f79d00 0%, #64f38c 100%);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.jm-spin-button:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}
.jm-spin-button:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.jm-spin-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Notification popup styling */
.jm-notification {
  position: fixed;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 12px 24px;
  border-radius: 4px;
  opacity: 0;
  transition: top 0.4s ease, opacity 0.4s ease;
  z-index: 9999;
}
.jm-notification.show {
  top: 20px;
  opacity: 1;
}

@media (max-width: 600px) {
  /* container: a bit wider and tighter margins */
  .jm-wheel-container {
	display: flex;
  	justify-content: center;  /* horizontal centering */
  	align-items: center;      /* vertical centering if needed */
    margin: 8px auto;
    padding: 4px;
	flex-direction: column;   /* ← add this */
  }

  /* pointer: smaller and closer */
  .jm-wheel-pointer {
    top: -8px;               /* sit just a bit above */
    border-left: 15px solid transparent;
    border-right:15px solid transparent;
    border-bottom:20px solid #d12329;
  }

  /* canvas: less top-margin */
  #jmWheelCanvas {
    margin-top: 25px;
  }

  /* button: slimmer, rounded */
  .jm-spin-button {
    width: 85%;
    padding: 10px 0;
    font-size: 0.95rem;
    border-radius: 20px;
  }

  /* notification: full-width and smaller text */
  .jm-notification {
    width: 90%;
    font-size: 0.9rem;
    padding: 10px 16px;
  }
}
