/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  background: #ffffff;
  color: #333;
}

/* Emoji Container */
.emoji-container {
  padding: 10px;
  max-width: 1200px;
  margin: 0 auto;
  /* make it scrollable if content is large */
}

/* Emoji Grid */
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 8px;
  padding-bottom: 100px; /* to ensure bottom bar doesn't overlap emojis */
}

.emoji-item {
  background: #ffffff;
    text-align: center;
    font-size: 39px;
    cursor: pointer;
    padding: 0px;
  transition: background 0.2s, transform 0.2s;
}

.emoji-item:hover {
  background: #e9e9e9;
  transform: scale(1.1);
}

/* Sticky Bottom Bar */
.sticky-bar {
  position: fixed; /* or position: sticky; but sticky needs parent constraints */
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* Make slot-group & result-group vertical columns */
.slot-group,
.result-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 10px; /* spacing between groups */
}

/* Add a small gap above copy/download buttons */
.result-buttons {
  margin-top: 6px;
}


.emoji-slot {
  display: inline-block;
  min-width: 40px;
  min-height: 40px;
  font-size: 28px;
  text-align: center;
  border: 2px dashed #bbb;
  border-radius: 6px;
  padding: 5px;
}

.shuffle-btn {
  font-size: 16px;
  padding: 5px 8px;
  cursor: pointer;
  border: none;
  background: #ffffff;
  border-radius: 4px;
  transition: background 0.2s;
}

.shuffle-btn:hover {
  background: #ffffff;
}

.plus-sign, .equal-sign {
  font-size: 24px;
  margin: 0 10px;
}

.result-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

.emoji-result {
  display: inline-block;
  min-width: 40px;
  min-height: 40px;
  font-size: 28px;
  text-align: center;
  border: 2px dashed #bbb;
  border-radius: 6px;
  padding: 5px;
}

.action-btn {
  font-size: 16px;
  padding: -8px 8px;
  border: none;
  background: #ffffff;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.action-btn:hover {
  background: #ffffff;
}
