*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:
    Inter,
    system-ui,
    sans-serif;

    background:#f8fafc;
    color:#111827;
}

/* HERO */

.hero{

    text-align:center;

    padding:70px 20px 40px;

    background:
    linear-gradient(
        135deg,
        #4f46e5,
        #7c3aed
    );

    color:white;
}

.hero h1{

    font-size:50px;

    margin-bottom:15px;
}

.hero p{

    font-size:18px;

    opacity:.9;

    max-width:600px;

    margin:auto;
}

/* SEARCH */

.search-box{

    margin-top:30px;
}

.search-box input{

    width:100%;

    max-width:700px;

    padding:16px 20px;

    border:none;

    border-radius:16px;

    font-size:16px;

    outline:none;

    box-shadow:
    0 10px 30px rgba(0,0,0,.15);
}

/* CATEGORY */

.category-wrapper{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:10px;

    padding:25px;
}

.category-wrapper button{

    border:none;

    background:white;

    padding:12px 18px;

    border-radius:999px;

    cursor:pointer;

    font-weight:600;

    box-shadow:
    0 2px 10px rgba(0,0,0,.08);

    transition:.2s;
}

.category-wrapper button:hover{

    transform:translateY(-2px);

    background:#4f46e5;

    color:white;
}

/* SECTION */

.emoji-section{

    max-width:1400px;

    margin:auto;

    padding:20px;
}

.emoji-section h2{

    margin-bottom:20px;

    font-size:28px;
}

/* GRID */

#emojiGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
    gap: 10px;
}

/* CARD */

.card{

    background:white;

    border-radius:20px;

    padding:0px;

    text-align:center;

    cursor:pointer;

    transition:.2s;

    box-shadow:
    0 4px 14px rgba(0,0,0,.06);
}

.card:hover{

    transform:
    translateY(-5px);

    box-shadow:
    0 12px 30px rgba(0,0,0,.12);
}

.emoji{

    font-size:35px;

    margin-bottom:5px;
}

.name{

    font-size:13px;

    color:#6b7280;
}

/* DARK MODE */

.dark{

    background:#0f172a;

    color:white;
}

.dark .card{

    background:#1e293b;
}

.dark .category-wrapper button{

    background:#1e293b;

    color:white;
}

.dark .search-box input{

    background:#1e293b;

    color:white;
}
.toast{
    position:fixed;
    bottom:20px;
    right:20px;
    background:#222;
    color:#fff;
    padding:12px 18px;
    border-radius:10px;
    font-size:14px;
    z-index:9999;
    animation:fadeIn .25s ease;
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(15px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}