.design-content {
  flex-direction: column;
}

#emoji-title-bar {
  display: flex; align-items: center;
}
#emoji-search {
  background-color: rgba(210, 60, 130, .1);
  border-radius: .25em;
  margin-left: auto;
  width: max(30%, 10em);
}
#emoji-search > input {
  border: 0.1em solid rgba(210, 60, 130, 0);
  border-radius: .25em;
  line-height: 1.5em;
  box-sizing: border-box;
  outline: none;
  background: none;
  font: inherit;
  width: 100%; height: 100%;
  padding: .25em .5em;
  transition: all ease-in-out .25s;
}
#emoji-search > input:hover {
  border-bottom: 0.1em solid rgba(210, 60, 130, .5);
}
#emoji-search > input:focus {
  border: 0.1em solid rgba(210, 60, 130, 1);
  transition-duration: .05s;
}
#emoji-list {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
}
.icon-list {
  display: flex; flex-wrap: wrap; align-content: start;
  height: 100%;
  overflow: auto;
}
.icon-list.noDisplay {
  display: none;
}
.icon-list > header {
  opacity: .75;
  font-size: 1.25em;
  margin-bottom: .25em;
  width: 100%;
}
.icon-list > header:not(:first-child) {
  margin-top: .5em;
}
.icon-list > button {
  padding: .15em; flex-shrink: 0;
  background-color: transparent;
  transition: all ease-in-out .25s;
  border-radius: .25em;
}
.icon-list > button > img {
  pointer-events: none;
  width: var(--emoji-size);
  height: var(--emoji-size);
  transition: all ease-in-out .25s;
  display: block;
}
.icon-list > button:hover {
  background-color: hsla(0, 0%, 50%, 0.2);
}
.icon-list > button:active {
  background-color: hsl(332, 62%, 65%);
  transition-duration: 0.03s;
}
body.dark .icon-list > button:active {
  background-color: hsl(332, 62%, 40%);
}
.icon-list > button:hover > img {
  pointer-events: none;
  width: var(--emoji-size);
  height: var(--emoji-size);
  transform: scale(1.15);
}
body.dark #emoji-list:not(.color) button > img {
  filter: invert(1);
}

#emoji-details {
  position: absolute;
  bottom: 1em; left: 50%;
  width: min(calc(100% - 1em), 35em);
  transform: translateX(-50%);
  height: 12em;
  box-sizing: border-box;
  padding: 0;
  border-radius: .5em; overflow: clip;
  background-color: rgba(228,228,228,.75);
  backdrop-filter: blur(25px);
  box-shadow: 0 0 .2em rgba(210, 60, 130, .75), 0 0 .4em rgba(210, 60, 130, .5), 0 0 .75em rgba(210, 60, 130, .5);
  display: flex; flex-direction: column;
  transition: all ease-in-out .25s;
}
body.dark #emoji-details {
  background-color: rgba(28,28,28,.75);
}
#emoji-details.noDisplay {
  display: none;
}
#emoji-details.hidden {
  transform: translateY(1em) translateX(-50%);
  opacity: 0;
  pointer-events: none;
}
#emoji-details.afterClose {
  transition-duration: .15s;
  opacity: 0;
  pointer-events: none;
}
.popup-title {
  height: 2em; width: 100%; flex-shrink: 0;
  display: flex; align-items: center;
}
.popup-title header {
  font-weight: bold; flex-grow: 1; margin: 0 .5em;
}
.popup-title button {
  width: 3.5em; height: 2em; font: inherit;
  flex-shrink: 0;
  display: flex; justify-content: center; align-items: center;
  background-color: transparent;
  transition: all ease-in-out .25s;
}
.popup-title button:hover {
  background-color: hsl(0, 70%, 50%);
}
.popup-title button:active {
  background-color: hsl(0, 70%, 35%);
  transition-duration: .03s;
}
.popup-title button > img {
  pointer-events: none; width: 1.5em; height: 1.5em;
  transition: transform ease-in-out .25s;
}
.popup-title button:is(:hover, :active) > img {
  filter: invert(1) contrast(2.5);
}
.popup-title button:active > img {
  transform: scale(.9);
  transition-duration: .03s;
}
.popup-content {
  flex-grow: 1;
  display: flex; gap: .5em;
  margin: .5em;
}

#emoji-details-image {
  width: 9em; height: 9em;
  display: flex; justify-content: center; align-items: center;
  flex-shrink: 0;
}
#emoji-details-image > img {
  width: 8em; height: 8em; pointer-events: none;
}
#emoji-detail-data {
  flex-grow: 1;
  display: flex; flex-direction: column; gap: .5em; justify-content: center;
}
#emoji-detail-name {
  height: 3.5em; display: flex; align-items: center;
}
#emoji-detail-name > span {
  font-size: 1.35em;
}
#emoji-detail-code {
  display: flex; gap: .5em; align-items: center;
}
#emoji-detail-code > input {
  border: 0; font: inherit;
  min-width: 0; width: 0; flex-grow: 1;
  outline: none; background: none;
  border-bottom: .1em solid hsla(0, 0%, 50%, 0.25);
}
#emoji-detail-code > input::selection {
  background-color: rgba(210, 60, 130, 1);
  color: white;
}
#emoji-detail-code > input::-moz-selection {
  background-color: rgba(210, 60, 130, 1);
  color: white;
}

#emoji-detail-buttons {
  display: flex; gap: .5em;
}
#emoji-detail-buttons.noDisplay {
  display: none;
}
#emoji-detail-buttons > button {
  height: 2.5em; box-sizing: border-box;
  border-radius: .25em;
  border: .15em solid hsla(0, 0%, 50%, 0.25);
  background-color: hsla(0, 0%, 50%, 0.08);
  padding: .25em .5em;
  font-size: inherit; font-family: inherit; color: inherit;
  display: flex; justify-content: center; align-items: center;
  transition: all ease-in-out .25s;
  position: relative;
}
#emoji-detail-buttons > button.noDisplay {
  display: none;
}
#emoji-detail-buttons > button:not(:disabled):hover {
  border: .15em solid rgba(210, 60, 130, .5);
  background-color: hsla(0, 0%, 50%, 0.2);
}
#emoji-detail-buttons > button:not(:disabled):active {
  border: .15em solid rgba(210, 60, 130, 1);
  background-color: hsla(0, 0%, 50%, 0.26);
  transition-duration: .03s;
}
#emoji-detail-buttons > button:not(:disabled):active > .text {
  transform: scale(.9);
}
#emoji-detail-buttons > button > .text.noDisplay {
  opacity: 0;
}
#emoji-detail-buttons > button > .copied {
  position: absolute; width: 100%; text-align: center; left: 0;
}
#emoji-detail-buttons > button > .copied.noDisplay {
  opacity: 0;
}

#emoji-options {
  display: flex; width: 100%;
}

#emoji-style {
  display: flex; gap: .5em; align-items: center;
}

.zoom-control {
  display: flex; align-items: center; gap: .25em;
  margin-left: auto;
}
.zoom-control > img {
  width: 1.75em; height: 1.75em;
  pointer-events: none;
}
body.dark .zoom-control img {
  filter: invert(1);
}
.zoom-control > button {
  width: 2.5em; height: 2.5em;
  border-radius: .25em;
  border: .15em solid hsla(0, 0%, 50%, 0.25);
  background-color: hsla(0, 0%, 50%, 0.08);
  padding: 0;
  font-size: inherit; font-family: inherit; color: inherit;
  display: flex; justify-content: center; align-items: center;
  transition: all ease-in-out .25s;
}
.zoom-control > button:not(:disabled):hover {
  border: .15em solid rgba(210, 60, 130, .5);
  background-color: hsla(0, 0%, 50%, 0.2);
}
.zoom-control > button:not(:disabled):active {
  border: .15em solid rgba(210, 60, 130, 1);
  background-color: hsla(0, 0%, 50%, 0.26);
  transition-duration: .03s;
}
.zoom-control > button > img {
  width: 1.75em; height: 1.75em;
  pointer-events: none;
  transition: all ease-in-out .25s;
}
.zoom-control > button:disabled {
  background-color: transparent;
}
.zoom-control > button:disabled > img {
  opacity: .35;
}
.zoom-control > button:active > img {
  transform: scale(.9);
  transition-duration: .03s;
}

@media (max-width: 55em) {
  #emoji-details-image {
    width: 6em; height: 9em;
  }
  #emoji-details-image > img {
    width: 6em; height: 6em;
  }
  #emoji-detail-buttons {
    gap: .15em;
  }
  #emoji-detail-buttons > button > * {
    font-size: .85em;
  }
  #emoji-detail-name > span {
    font-size: 1.2em;
  }
}
@media (max-width: 35em) {
  #emoji-details {
    position: fixed; z-index: 1;
  }
  #emoji-list {
    order: 3;
  }
  #emoji-options {
    order: 1;
    padding: .5em 0; height: 2em;
    position: sticky; top: -.5em;
    background-color: rgba(228, 228, 228, 1);
    z-index: 1;
  }
  #emoji-title-bar {
    order: 2;
    padding-bottom: .5em;
    position: sticky; top: 2.5em;
    background-image: linear-gradient(to bottom, rgba(228, 228, 228, 1), rgba(228, 228, 228, .75));
    backdrop-filter: blur(25px);
    z-index: 1;
  }
  
  body.dark #emoji-options {
    background-color: rgba(28, 28, 28, 1);
  }
  body.dark #emoji-title-bar {
    background-image: linear-gradient(to bottom, rgba(28, 28, 28, 1), rgba(28, 28, 28, .75));
  }
  .zoom-control > button {
    width: 2em; height: 2em;
  }
  .zoom-control > button > img {
    width: 1.7em; height: 1.7em;
  }
  .design-content {
    gap: 0;
  }
}