* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-decoration: none;
}

:root {
    --primary: #5865F2;
    --secondary: #9C84EF;
    --accent: #57F287;
    --purple: #EB459E;
    --pink: #FF73FA;
    --blue: #2D87D0;
    --dark: #2C2F33;
    --darker: #23272A;
    --text: #FFFFFF;
    --card-bg: rgba(255, 255, 255, 0.08);
}

/* Thin gradient scrollbar for WebKit browsers */
::-webkit-scrollbar {
    width: 6px;
    /* Thin scrollbar */
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
}

/* For Firefox */
.container {
    scrollbar-width: thin;
    scrollbar-color: #da1b60 rgba(0, 0, 0, 0.1);
}

body {
    background: linear-gradient(135deg, #1a1c2f, #2d1b33, #1c2b3a);
    color: var(--text);
    min-height: 100vh;
    padding: 5px;
    background-attachment: fixed;
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

a {
    color: #8afcfc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
    animation: fadeIn 1s ease;
}

.logo {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.logo::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
}

.tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    margin: 25px auto;
    max-width: 700px;
    line-height: 1.5;
    animation: fadeIn 1.2s ease;
}

.input-container {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: slideUp 0.8s ease;
}



.input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
}

#text-input {
    width: 100%;
    min-height: 150px;
    background: rgba(30, 31, 35, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 25px;
    font-size: 1.4rem;
    color: var(--text);
    resize: vertical;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

#text-input:hover {
    outline: none;
    border-color: var(--accent);
/*    box-shadow: 0 0 0 4px rgba(87, 242, 135, 0.3);*/
}

/* Tabs styling */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0 20px;
}

.tab {
    padding: 12px 25px;
    background: rgba(50, 53, 59, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
}

.tab.active {
    background: linear-gradient(45deg, var(--purple), var(--pink));
    color: white;
    box-shadow: 0 5px 15px rgba(235, 69, 158, 0.3);
}

.tab:hover:not(.active) {
    background: rgba(87, 242, 135, 0.2);
    color: var(--accent);
}

.fonts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.font-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.8s ease;
}

.font-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--purple), var(--pink), var(--blue));
    opacity: 0.8;
}



.font-title {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.font-content {
    font-size: 1.7rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    word-break: break-word;
    padding: 15px 0;
    line-height: 1.4;
    font-weight: 500;
}

.copy-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(45deg, var(--purple), var(--pink));
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(235, 69, 158, 0.3);
    font-size: 1.2rem;
}

.font-card:hover .copy-btn {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 8px 20px rgba(235, 69, 158, 0.5);

}


.section-title {
    font-size: 2.3rem;
    margin: 50px 0 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent);
    color: white;
    position: relative;
    display: inline-block;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeIn 0.8s ease;
}

.copied-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: var(--darker);
    padding: 18px 30px;
    border-radius: 15px;
    display: none;
    animation: fadeInOut 3s;
    z-index: 1000;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}


footer {
    text-align: center;
    padding: 40px 0 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-top: 50px;
    animation: fadeIn 1.2s ease;
}

/* Footer links */
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin: 20px 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    padding: 8px 15px;
    border-radius: 8px;
}

.footer-links a:hover {
    color: var(--accent);
    background: rgba(87, 242, 135, 0.1);
}



.info-box {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s ease;
}

.info-box h1,
h2,
h3 {
    color: var(--accent);
    margin-bottom: 10px;
}

.info-box strong {
    color: #67b7fc;
}

.info-box p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.art-img {
    display: block;
    width: 60%;
    margin: 10px auto;
}

.floating-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
    font-size: 1.5rem;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.floating-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-btn:hover {
    transform: scale(1.1) rotate(15deg);
}

@media (max-width: 768px) {
    .fonts-container {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.1rem;
        margin: 10px;
    }


    header {
        text-align: center;
        padding: 05px 0;
        margin-bottom: 0px;
    }

    .section-title {
        text-align: center;
        display: block;
        font-size: 2.3rem;
        margin: 10px 0 10px;
        padding-bottom: 5px;
    }

    .tabs {
        margin: 15px 0 10px;
        justify-content: center;
    }

    .tab {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .input-container {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--card-bg);
        padding: 15px;
        margin: 0px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transition: all 0.3s ease;
        backdrop-filter: blur(1000px);
    }

    #text-input {
        width: 100%;
        min-height: 60px;
        padding: 12px;
        border: 2px solid #ddd;
        border-radius: 8px;
        resize: vertical;
        font-size: 16px;
        box-sizing: border-box;
    }

    .fonts-container {
        gap: 15px;
        margin-bottom: 40px;
    }

    .font-card {
        padding: 10px;
        min-height: 180px;
    }


    .font-content {
        font-size: 1.4rem;
    }

    .art-img {
        width: 100%;
    }
    
    .floating-btn {
    position: fixed;
    bottom: 110px;
    left: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
}

    footer {
        padding-bottom: 120px;
    }
}
