/*reset*/
html,body,div,p,span,em,i,u,del,strong,a,b,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,iframe,form,label,button,input,textarea,pre,hr,table,tbody,th,td{margin:0;padding:0;}
ol,ul,li{list-style:none}
* {-webkit-tap-highlight-color: transparent}
*[hidden] {display: none !important}
body {user-select: none;font-family:sans-serif;}
a {color: black;text-decoration: none;cursor: pointer;}
html {
    scroll-behavior: smooth;
}
::-webkit-scrollbar {
    width: 0;
}

/*app*/
@keyframes scroll-in {
    from {
        transform: scaleY(0);
    }
}

progress,
input[type=checkbox] {
    filter: hue-rotate(230deg);
    margin-bottom: 2em;
}



.app-background-main{
    background-color: #FAE805;
    color:#222222;   
}

.app-background-gray{
    background-color: #eeeeee;
    color:#333333;   
}


.app-margin-top-10{
    margin-top:10px;
}
.app-margin-top-20{
    margin-top:20px;
}
.app-margin-top-30{
    margin-top:30px;
}
.app-margin-top-40{
    margin-top:40px;
}
.app-margin-top-50{
    margin-top:50px;
}
.app-margin-top-60{
    margin-top:60px;
}

.app-margin-bottom-10{
    margin-bottom:10px;
}
.app-margin-bottom-20{
    margin-bottom:20px;
}
.app-margin-bottom-30{
    margin-bottom:30px;
}
.app-margin-bottom-40{
    margin-bottom:40px;
}
.app-margin-bottom-50{
    margin-bottom:50px;
}
.app-margin-bottom-60{
    margin-bottom:60px;
}



.app-container{
    width:100%;overflow: hidden;
}

.app-header{
    display: flex; 
    justify-content: center;
    align-items: center;
    background-color: #FAE805;
    max-width:1200px;
    margin: 0 auto;
    padding:10px;
    line-height:36px;
    overflow: hidden;
}
.app-header-left{
    flex:1;
}
.app-header .app-header-left h1 {
    font-size: 26px;
}
.app-header .app-header-left h1 a{
    text-decoration: none;
}
.app-header-right{
    width: 100px;
    font-size:16px;
}

.app-footer{
    display: flex; 
    justify-content: center;
    align-items: center;
    max-width:1200px;
    margin: 0 auto;
    padding:10px;
    line-height:36px;
    overflow: hidden;
}

.app-article{
    max-width:1200px;
    margin: 0 auto;
    padding:10px;
    line-height:36px;
    overflow: hidden;
}



.app-main{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width:1200px;
    margin:0 auto;
    overflow: hidden;
}

#emoji-menu-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#emoji-menu-section .app-btn-refresh{
    display: flex;
    align-items: center;
    justify-content: center;
    color:#ffffff;
    background-color: #FF9862;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.1s;
    touch-action: manipulation;
    height:50px;
    width:150px;
    font-size:20px;
}
#emoji-menu-section .app-btn-refresh:active {
    background-color: #F06C29;
}
#emoji-menu-section .app-btn-refresh img{
    vertical-align: middle;
    margin-top:-5px;
    margin-left:5px;
 }
 #emoji-menu-section .app-btn-refresh:active img {
    animation: rotate 0.5s;
}
 @keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}



#main-section {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    transform-origin: top;
    animation: scroll-in 500ms;
}



#sliders {
    font-size: 6em;
    display: flex;
    flex: 2;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding-top:100px;
    padding-bottom:100px;
    border:5px dotted #eeeeee;
    border-radius:10px;
}

#sliders>* {
    margin: 0 0.25em;
}

.slider-background {
    position: absolute;
    margin-top: 1em;
    height: 1em;
    width: 1em;
    background-color: #ffffff;
    box-shadow: 0 0 5px 3px rgba(255, 118, 162, 0.2);

}

.slider {
    display: flex;
    position: relative;
    flex-direction: column;
    overflow-y: scroll;
    height: 3em;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    cursor: grab;
}

.slider>div {
    width: 1em;
    height: 1em;
    scroll-snap-align: start;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.slider>div::before {
    content: "_";
    visibility: hidden;
}

.slider::before,
.slider::after {
    content: "";
    position: sticky;
    width: 100%;
    box-shadow: 0 0 3px 1px;
    top: 0;
}

.slider::after {
    bottom: 0;
}

.slider-text {
    display: flex;
    align-items: center;
    justify-content: center;
    height:2em;
    font-size:16px;
}

.button {
    width: 0.5em;
    height: 0.5em;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: opacity(0.3);
    transition: filter 250ms;
    cursor: pointer;
}

.button:active,
.button.active {
    filter: none;
}

.button.search {
    background-image: url("/assets/img/emojimix/icons/search.svg");
    margin-bottom: 0.2em;
    margin: 0 auto;
}

.slider-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
}
.plus-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
}
.plus-button-text{
    text-shadow: 0 0 9px rgba(255, 118, 162, 0.5);
}
.button.random {
    background-image: url("/assets/img/emojimix/icons/random.svg");
}

.button.blank {
    background-image: url("/assets/img/emojimix/icons/blank.svg");
}

.top-btns {
    width: 100%;
    display: flex;
    justify-content: space-around;
}
.equal-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-size:6em;
}
.equal-btn {
    
}

#emoji-display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 2;
    cursor: pointer;
    padding-top:100px;
    padding-bottom:100px;
    border:5px dotted #eeeeee;
    border-radius:10px;
}
#emoji-display #output {
    width: 50%; 
    max-height: 100%; 
    object-fit: contain;
}
.emoji-download {
    text-align: center;
}

.emoji-download button {
    background-color: #F06C29;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: inline-block;
    align-items: center;
    justify-content: center;
}

.emoji-download button:hover {
    background-color: #E65100;
}

.emoji-download button:active {
    transform: translateY(2px);
    box-shadow: none;
}

.emoji-download button svg {
    width: 20px;
    height: 20px;
    margin-left: 5px;
    margin-right:10px;
}



img {
    height: 100%;
    animation: zoom-in 250ms;
}

img.hiding,
#information.hiding {
    animation: zoom-out 250ms forwards;
}

@keyframes zoom-in {
    from {
        transform: scale(0);
    }

    to {
        transform: none;
    }
}

@keyframes zoom-out {
    from {
        transform: none;
    }

    to {
        transform: scale(0);
    }
}




/*media query for smartphone and pad*/
@media(max-width:980px) {
    #main-section {
        display: flex;
        flex-direction: column;
    }

}