/* Basic styling for the ColorCode demo */
body {
  margin: 0;
  padding: 1rem;
  font-family: sans-serif;
  background-color: #0f131a;
  color: #e0f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
}

h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #71d3db;
  text-align: center;
}

.description {
  max-width: 700px;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.description ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0.5rem 0;
}

.controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  justify-content: center;
}

.controls button {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background-color: #1c2433;
  color: #e0f5f5;
  border: 1px solid #29364f;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.controls button:hover {
  background-color: #29364f;
}

.phone-frame {
  width: 360px;
  height: 720px;
  border: 4px solid #25313e;
  border-radius: 30px;
  background-color: #0c111b;
  position: relative;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(0, 168, 181, 0.2);
}

/* Responsive phone frame: shrink on narrow screens */
@media (max-width: 500px) {
  .phone-frame {
    width: 280px;
    height: 560px;
  }
}

/* Orb canvas maintains a square aspect ratio */
#orbCanvas {
  width: 80%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: #0c111b;
  box-shadow: 0 0 20px rgba(0, 168, 181, 0.4);
}

.results {
  margin-bottom: 1rem;
  text-align: center;
}

/* Scan button styles */
.scan-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.scan-btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: bold;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  color: #ffffff;
  transition: transform 0.2s;
  min-width: 110px;
}

.scan-btn:hover {
  transform: translateY(-2px);
}

/* Gradient backgrounds for each scan category */
.scan-btn.vivid {
  background: linear-gradient(to right, #EA44FF, #7C58F6);
}

.scan-btn.pulse {
  background: linear-gradient(to right, #46F1FF, #5729FF);
}

.scan-btn.shadow-red {
  background: linear-gradient(to right, #7C58F6, #560808);
}

.scan-btn.pride {
  background: linear-gradient(to right,
    #F05553 0%,
    #F37F4C 14%,
    #EBB64C 31%,
    #A4D470 47%,
    #78B0EB 66%,
    #6883EC 82%,
    #A653E7 98%
  );
}
}