#gif-frame {
    display: flex;
    width: auto;
    max-height: 0;
    flex-direction: column;
    overflow-y: auto;
    opacity: 0;
    background-color: var(--gif-frame-bg-color);
    margin: 0;
    border-radius: 14px 14px 0 0;
    padding: 0;
    max-width: 100%;
    transition: max-height .5s ease, opacity .5s ease;
}
#gif-frame.show {
    opacity: 1;
    max-height: 70vh;
}
#gif-frame.hide {
    opacity: 0;
    max-height: 0;
}
#gif-results {
    overflow-y: overlay;
    /* padding: 8px; */
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(100px,1fr));
    gap: 2px;
    width: 100%;
    opacity: 0;
    transition: opacity .5s ease;
    scrollbar-color: var(--scrollbar-thumb-bg);
}
#gif-results.show {
    opacity: 1;
}
#gif-results.hide {
    opacity: 0;
}
#gif-results::-webkit-scrollbar {
  width: 4px;
}
#gif-results::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb-bg);
  border-radius: var(--scrollbar-radius);
}
#gif-results::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-bg-hover);
}
#gif-results::-webkit-scrollbar-track {
  background: transparent;
}
#gif-results img {
  width: 100%;
  border-radius: 2px;
  cursor: pointer;
}
#gif-btn {
  width: 3rem;
  background: #dca2ff;
  color: #fff;
}
#gif-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  -webkit-user-select: none;
}

.gif-header-main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    width: 100%;
    cursor: grab;
    background: var(--card-bg);
}
.gif-header-main-drag {
    min-width: 3rem;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 4px;
    background: var(--drag-color);
    border-radius: 2px;
    opacity: 0.9;
    margin: 0 auto;
}


.gif-header-secondary {
  width: 100%;
  height: 100%;
  /* padding: 0 12px 0 12px; */
}

#gif-header span {
  margin-top: 4px;
}

#gif-header:active {
  cursor: grabbing;
}


#gif-search {
  width: 100%;
  padding: 12px;
  background: var(--gif-search-bg-color);
  color: var(--gif-search-color);
  /* border-radius: 7px 7px 0 0; */
  border: 3px solid var(--input-border-color);
  border-radius: 0;
}
#gif-search:empty::before {
    content: "Search Giphy";
    color: var(--color-placeholder);
    pointer-events: none;
}

#gif-search::before {
    background: var(--gif-search-bg-color);
    border: none;
}
#gif-search::after {
    background: var(--gif-search-bg-color);
    border: none;
}


#gif-results img:hover {
  transform: scale(1.05);
}
