/*Canopy - The next generation of stoner streaming software
Copyright (C) 2024-2026 Rainbownapkin and the TTN Community

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.*/
.title-span{
    display: flex;
    flex-direction: row;
    text-wrap: nowrap;
    user-select: none;
}

.title-filler-span{
    flex: 1;
    height: 1px;
    margin: auto 0.5em;
}

.emote-panel-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9em, 1fr));
    flex-direction: column;
    padding: 1em;
    justify-items: center;
}


div.emote-panel-list-emote{
    position: relative;
    margin: 0.5em;
}

span.emote-panel-list-emote{
    width: 9em;
    /*It wanted to be a cunt about the padding, and I didn't want to fight it... Theres probably a better way.*/
    height: calc(100% - 1em);
    display: flex;
    flex-direction:  column;
    padding: 0.5em 0;
    margin: 0;
    cursor: pointer;
}

span.emote-panel-list-big-emote{
    width: 100%;
    margin: 0.5em auto;
}

p.emote-list-title{
    margin: 0;
    text-align: center;
}

.emote-list-media{
    max-height: 8em;
    max-width: 8em;
    margin: auto;
    object-fit: contain;
}

.emote-list-big-media{
    max-height: 30VH;
    max-width: 100%;
    margin: 0.5em;
}

div.panel-control-prompt{
    margin: 0.5em;
    flex: 1;
}

#emote-panel-personal-prompts{
    display: flex;
}

#new-emote-button{
    margin-left: 0.3em;
}

span.emote-list-trash-icon{
    position: absolute;
    display: flex;
    width: 1.5em;
    height: 1.5em;
    border-radius: 1em;
    top: -0.5em;
    right: -0.5em;
    z-index: 1;
    align-items: center;
    justify-content: center;
}

i.emote-list-trash-icon{
    text-align: center;
}