body{

    font-family:'Inter', sans-serif;

    background:linear-gradient(
        135deg,
        #fff5fa,
        #f5f8ff
    );

    display:flex;

    flex-direction:column;

    align-items:center;

    padding:20px;

}

textarea {
    overflow-y: auto;
    max-height: 800px;
    resize: none;
    field-sizing: content;
}




.container{

    background:white;

    width:650px;

    max-width:100%;

    box-sizing:border-box;

    padding:25px;

    border-radius:15px;

    box-shadow:0 5px 20px rgba(0,0,0,.15);

}



h1{

    text-align:center;
    font-size:24px;
}



/* Toolbar */

.toolbar{

    display:flex;

    gap:8px;

    flex-wrap:nowrap;

    align-items:center;
margin-top:15px;
    margin-bottom:15px;

    width:100%;

    max-width:100%;

    overflow:hidden;

    box-sizing:border-box;

}



.toolbar select,
.toolbar input{

    padding:10px;

    border:1px solid #ccc;

    border-radius:10px;

}



.toolbar select {
    flex: 0 0 auto;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: white;

    background-image:
        linear-gradient(45deg, transparent 50%, #555 50%),
        linear-gradient(135deg, #555 50%, transparent 50%);

    background-position:
        calc(100% - 15px) 50%,
        calc(100% - 10px) 50%;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;

    border:1px solid #e5e5e5;
    border-radius:12px;

    padding:10px 36px 10px 12px;

    font-size:14px;
    cursor:pointer;
}


#search{

    width:100%;

    min-width:0;

    flex:1;

    box-sizing:border-box;

}

.search-box input:focus{

    outline:none;

    border-color:#ff5c9a;

    box-shadow:0 0 0 3px rgba(255,92,154,.15);

}


.search-box{

    display:flex;

    position:relative;

    flex:1;

    min-width:0;

    max-width:100%;

    overflow:hidden;

}


.search-box input{

    width:100%;

    min-width:0;

    max-width:100%;

    box-sizing:border-box;

    padding:10px 35px 10px 12px;

}



#clearSearch{

    display:none;

    position:absolute;

    right:5px;

    top:50%;

    transform:translateY(-50%);

    border:none;

    background:transparent;

    font-size:20px;

    cursor:pointer;

    color:#777;

}



/* Emoji picker */

.emoji-picker{

    display:flex;

    flex-wrap:wrap;

    gap:3px;

    height:204px;

    overflow-y:auto;

    padding:8px;

    border:1px solid #ddd;

    border-radius:10px;

    background:#fafafa;

    align-content:flex-start;

    -webkit-overflow-scrolling:touch;

}



.emoji-picker::-webkit-scrollbar{

    width:7px;

}


.emoji-picker::-webkit-scrollbar-thumb{

    background:#999;

    border-radius:10px;

}



/* Emoji buttons */

.emoji-item{

    border:none;

    background:transparent;

    flex:0 0 auto;

    width:auto;

    min-width:32px;

    height:32px;

    padding:0;

    display:flex;

    flex-direction:row;

    align-items:center;

    justify-content:center;

    font-size:24px;

    cursor:pointer;

    border-radius:8px;

    white-space:nowrap;

    writing-mode:horizontal-tb;

    transition:.15s;

}


.emoji-item{
    min-height:32px;
}


.emoji-item:hover{

    background:#e8f2ff;

    transform:translateY(-2px);

}



/* Large text items */

.large-item{

    min-width:170px;

    min-height:65px;

    padding:15px;

    font-size:18px;

    display:flex;

    align-items:center;

    justify-content:center;

    text-align:center;

    white-space:nowrap;

}



/* Text editor */

textarea{

    width:100%;

    min-height:110px;

    margin-top:15px;

    font-size:24px;

    padding:10px;

    border-radius:10px;

    border:1px solid #ccc;

    box-sizing:border-box;

    resize:vertical;

}



/* Preview */

.preview{

    margin-top:15px;

    padding:15px;

    min-height:50px;

    font-size:28px;

    background:#fafafa;

    border:1px solid #ddd;

    border-radius:10px;

    word-wrap:break-word;

    white-space:pre-wrap;

}



/* Buttons */

.buttons{

    display:flex;

    gap:10px;

    margin-top:15px;

}



button,
select,
input{

    min-height:44px;

}



button{

    flex:1;

    padding:12px 18px;

    border:none;

    border-radius:14px;

    cursor:pointer;

    font-size:16px;

    font-weight:600;

    transition:.2s;

}



button:hover{

    transform:translateY(-2px);

}



.copy{

    background:linear-gradient(135deg,#4facfe,#007bff);

    color:white;

}



.clear{

    background:linear-gradient(135deg,#8ec5fc,#5b86e5);

    color:white;

}



/* Logo */

.logo{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:10px;

    margin-bottom:-12px;

}



.logo-icon{

    font-size:32px;



    border-radius:14px;

    padding:6px 10px;

}



.logo-name{

    font-family:'Poppins',sans-serif;

    font-size:34px;

    font-weight:700;
    margin-left:-15px;
    letter-spacing:-1.5px;

}



.logo-name span{

    color:#ff5c9a;

}



/* Dropdown style */





/* Footer */

.footer{

    width:100%;

    max-width:650px;

    margin:10px auto;

    text-align:center;

    color:#777;

    font-size:13px;

}


.footer-links{

    display:flex;

    justify-content:center;

    gap:10px;

    margin-bottom:10px;

}



.footer a{

    color:#666;

    text-decoration:none;

}

.footer p{

margin-top:-5px;

}

.footer a:hover{

    color:#ff5c9a;

}



/* Tablet */

@media(max-width:768px){

    body{

        padding:20px;

    }


    .toolbar{

        flex-wrap:wrap;

    }


    .toolbar select{

        flex:1;

        min-width:120px;

    }


    .search-box{

        flex-basis:100%;

    }


    textarea{
        min-height:110px;
max-height: 800px;
field-sizing: content;

        font-size:22px;

    }


    .preview{

        font-size:24px;

    }

}



/* Mobile */

@media(max-width:480px){


    body{

        padding:10px;

    }


    .container{

        padding:15px;

        border-radius:12px;

    }


    #clearSearch{

        min-height:0;

        height:28px;

        width:28px;

        padding:0;

        line-height:1;

        display:none;

        align-items:center;

        justify-content:center;

        font-size:18px;

    }




    h1{

        font-size:24px;

    }


    .toolbar{

        flex-direction:row;

        flex-wrap:wrap;

        align-items:center;

    }


    .toolbar select{

        width:auto;

        flex:1 1 30%;

        min-width:100px;

    }


    .search-box{

        flex-basis:100%;

        width:100%;

    }



 


    .emoji-item{

        flex:0 0 auto;

        width:34px;

        height:34px;

        font-size:22px;
        

    }



    textarea{

        min-height:110px;
max-height: 800px;
field-sizing: content;

        font-size:20px;

    }


    .preview{

        font-size:22px;

        padding:12px;

    }


    .buttons{

        flex-direction:column;

    }


    button{

        width:100%;

    }


    .footer-links{

        flex-wrap:wrap;

        gap:12px;

    }

}

/* Remove default blue focus outlines */
input:focus,
textarea:focus,
button:focus,
select:focus{

    outline:none;

}


/* Reduce dropdown widths on desktop */
#category{
    width:120px;
}

#font{
    width:110px;
}

#comboSelect{
    width:150px;
}


.share{

    background:linear-gradient(
        135deg,
        #ff8fba,
        #ff5c9a
    );

    color:white;

    box-shadow:
    0 4px 12px rgba(255,92,154,.25);

}

.share.copied{

    background:linear-gradient(135deg,#00c6ff,#0072ff);

}


/* Dark Mode */

body.dark{

    background:#111827;

    color:#f3f4f6;

}

body.dark .container{

    background:#1f2937;

}

body.dark textarea,
body.dark input,
body.dark select,
body.dark .preview,
body.dark .emoji-picker{

    background:#111827;

    color:#fff;

    border-color:#374151;

}

body.dark .footer a{

    color:#ddd;

}

body.dark .logo-name{

    color:#fff;

}

body.dark .emoji-item:hover{

    background:#374151;

}

body.dark .emoji-item{

    color:#ffffff;

}

.container{
    position:relative;
}


.dark-toggle{

    position:absolute;

    top:12px;

    right:12px;

    width:34px;

    height:34px;

    padding:0;

    min-height:34px;

    border-radius:50%;

    background:#222;

    color:white;

    font-size:16px;

    display:flex;

    align-items:center;

    justify-content:center;

}


.dark-toggle:hover{

    transform:none;

    opacity:.85;

}



.intro{

text-align: center;
}


