.canvas-container {
  margin: 20px auto;
  width: 800px;
  height: 800px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  position: relative;
}

#canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.emoji-grid {
  border: 1px solid #ddd;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #fff;
}

.emoji-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 0.5rem;
  padding: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
}

.emoji-item {
  font-size: 1.5rem;
  cursor: pointer;
  text-align: center;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background-color 0.2s;
  user-select: none;
}

.emoji-item:hover {
  background-color: #f5f5f5;
}

.emoji-item.active {
  background-color: #3273dc;
  color: white;
}

.tabs {
  margin-bottom: 0.5rem;
}

.tabs ul {
  border-bottom-color: #dbdbdb;
  padding-left: 0;
}

.tabs li {
  display: inline-block;
}

.tabs a {
  color: #4a4a4a;
  border-bottom-color: #dbdbdb;
  min-width: 3rem;
  text-align: center;
  padding: 0.5rem 1rem;
  display: block;
  text-decoration: none;
}

.tabs a:hover {
  border-bottom-color: #3273dc;
  color: #3273dc;
}

.tabs li.is-active a {
  border-bottom-color: #3273dc;
  color: #3273dc;
}

#notifications-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  max-width: 300px;
}

.notification {
  margin-bottom: 0.5rem;
}

#result-text {
  display: none;
}

.field-label {
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: 8rem;
}

.field.is-horizontal {
  margin-bottom: 1.5rem;
}

.field.is-horizontal .field-body {
  display: flex;
  gap: 1rem;
}

.field.is-horizontal .field {
  flex: 1;
}

@media screen and (max-width: 768px) {
  .canvas-container {
    width: 95%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .emoji-container {
    max-height: 150px;
  }

  .field.is-horizontal .field-body {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.button.is-active {
  background-color: #ffdd57;
  border-color: transparent;
  color: rgba(0, 0, 0, 0.7);
}

#eraser-button.is-warning.is-active {
  background-color: #ffae19; /* Немного темнее стандартного warning */
  border-color: transparent;
  color: rgba(0, 0, 0, 0.8);
}

.is-hidden {
  display: none;
} 