@font-face {
    font-family: 'JetBrains Mono';
    src: url('JetBrainsMono-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('JetBrainsMono-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

body {
  font-family: 'JetBrains Mono', monospace;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

h1 {
  font-size: 3rem;
  color: #333;
  margin-bottom: 1rem;
}

.color-picker {
  margin-bottom: 2rem;
}

.schemes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 2rem;
}

.scheme {
  background-color: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.scheme-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  margin-bottom: 1rem;
}

.scheme h2 {
  font-size: 1.5rem;
  margin: 0;
}

.scheme-buttons {
  display: flex;
  gap: 0.2rem;
}

.icon-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #333;
  position: relative;
}

.icon-button:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.color-display {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.color-swatch {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

.color-swatch::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.color-swatch:hover::after {
  opacity: 1;
}

#waves-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.controls-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.color-picker-container,
.color-format-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#colorPicker {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#colorFormat {
    height: 50px;
  padding: 0.5rem;
  border-radius: 4px;
    border: 1px solid #ccc;
    background-color: white;
    font-size: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

/* You can remove or comment out the old .color-picker-container and .color-format-container styles if they're no longer needed */

footer {
    text-align: center;
    padding: 20px 0;
    font-size: 0.8em;
    margin-top: 40px;
}

footer p {
    margin: 0;
}

footer img {
    vertical-align: middle;
    margin-left: 5px;
}

.color-format-container {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

#colorFormat {
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: white;
    font-size: 1rem;
}