body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px;
    background-color: #f8f7f8;
    max-width: 100%;
    margin: 0 auto;
}
.main {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    padding: 0 0 32px 0;
    gap: 8px;
    width: 100%;
    align-content: flex-start;
}
.main h1 {
    font-size: 8rem;
    font-weight: 700;
    margin: 0;
    color: transparent; /* Rende il testo invisibile */
    line-height: 1;
    background: linear-gradient(45deg, #e91e63, #9c27b0, #2196f3, #00bcd4);
    -webkit-background-clip: text; /* Applica il gradiente al testo */
    background-clip: text;
    animation: gradientText 5s infinite alternate; /* Anima il gradiente (opzionale) */
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
.main h2 {
    text-align: left;
    margin: 0;
}
.categorie-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    gap: 16px;
}
#emoji-categories a.active {
    font-weight: bold;
    color:red;
}
.tab {
    width: 33%;
    height: fit-content;
    position: sticky;
    top: 16px;
}
#emoji-categories {
    padding: 0;
    margin: 0;
    list-style: none;
}
#emoji-categories li:not(:last-child) {
    margin-bottom: 12px;
}
#emoji-categories a {
    text-decoration: none;
    font-weight: 600;
    color:inherit;
}
#emoji-categories a:hover {
    color:red;
}
#emoji-categories li span {
    margin-right: 8px;
}
.categorie {
    width: -webkit-fill-available;
    gap: 32px;
    display: flex;
    flex-direction: column;
}
.categoria, .tab {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.categoria h2 {
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 16px;
    color: #222222;
    text-align: left;
    font-weight: 600;
}

.emoticon-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 8px;
    padding: 10px;
}

.emoticon {
    font-size: 2.2rem;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    padding: 8px;
}

.emoticon:hover {
    background-color: #f0f0f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

#message {
    margin-top: 30px;
    font-weight: 500;
    color: #4CAF50;
    text-align: center;
}

#visit-counter {
    margin-top: 20px;
    font-size: 0.9em;
    color: #777;
    text-align: center;
}

#subscription-request {
    margin-top: 30px;
    padding: 20px;
    background-color: #e0f7fa;
    border-radius: 8px;
    border: 1px solid #b2ebf2;
    text-align: center;
}

#subscription-request h3 {
    margin-top: 0;
}

#subscription-request button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
}
@media screen and (min-width:960px) and (max-width:1140px) {
    .main h1 {
        font-size: 6rem;
    }
}
@media screen and (min-width:768px) and (max-width:959px) {
    .categorie-container {
        grid-template-columns: repeat(auto-fit, minmax(48%, 1fr));
    }
    .main h1 {
        font-size: 4rem;
    }
    
}
@media screen and (max-width:767px) {
    body {
        padding: 32px 16px;
    }
    .categorie-container {
        display: flex;
        gap: 16px;
        margin-bottom: 16px;
        width: 100%;
        flex-direction: column;
        flex-wrap: nowrap;
    }
    .tab {
        width: auto;
        z-index: 9999;
    }
    #emoji-categories {
        display: flex;
        flex-direction: row;
        overflow: auto;
        flex-wrap: nowrap;
        align-items: center;
    }
    #emoji-categories li {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        min-width: max-content;
        margin-bottom: 0!important;
        margin-right: 16px;
    }
    .main h1 {
        font-size: 2.8rem;
    }
    .main h2 {
        text-align: left;
        font-size: 1rem;
    }
    .categoria h2 {
        font-size: 1rem;
    }
}