.hidden {
    display: none;
}

/* --- General Styles --- */
body {
    font-family: system-ui, sans-serif;
    background: #f4f4f4;
    color: #222;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Main content --- */
.main-content {
    padding-top: 80px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

/* --- Headers --- */
/* --- Page Header --- */
.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.mainheader {
    margin: 5%;
    color: #ffffff; /* White */
    font-size: 3rem
}

.subtitle {
    margin-top: 5%;
    margin-bottom: 5%;
    font-size: 1.5rem;
    color: #cccccc; /* Lighter grey */
}


/* --- Generator Section --- */
.generator-section {
    display: flex;
    flex-direction: column; /* stack elements vertically */
    align-items: center; /* center horizontally */
    gap: 12px; /* space between input and button */
    margin-top: 20px; /* space from the image above */
}

.generator-input {
    width: 300px;
    padding: 10px 12px;
    font-size: 1rem;
}
.generator-button {
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    position: relative; /* for spinner positioning */
    background-color: #007bff; /* blue background */
    color: white;            /* white text */
    border: none;            /* remove default border */
    border-radius: 6px;      /* slightly rounded corners */
    transition: background-color 0.3s;
}


.generator-button:hover:not(:disabled) {
    background-color: #0056b3; /* darker blue on hover */
}

.generator-button:disabled {
    background-color: #3a76c0; /* slightly muted blue when disabled */
    cursor: not-allowed;
}

/* --- Result Section --- */
.result-section {
    text-align: center;
}

/* --- Result Image --- */
.result-image {
    height: 60vh;
    width: auto;      /* responsive */
    margin: 20px auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}



/* --- About / Tips / Socials --- */
.about-section, .socials-section, .examples-grid {
    margin-top: 20px;
}

.section-title {
    font-weight: bold;
    margin-top: 20px;
}

.usage-list, .tips-list, .socials-list {
    list-style: disc;
    padding-left: 20px;
}

.socials-list {
    display: flex;
    gap: 20px;
    padding-left: 0;
}

.social-item a {
    color: #6c63ff;
    font-weight: bold;
    transition: color 0.2s ease;
}

.social-item a:hover {
    color: #333;
}

/* --- Examples grid --- */
.examples-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.example-card {
    flex: 1 1 300px;
    text-align: center;
}

.example-caption {
    margin-top: 8px;
    font-style: italic;
    color: #555;
}


/* Spinner inside button */
button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Spinner element */
button .spinner {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* make sure it fills viewport height */
    z-index: -1; /* behind content */
    background-color: #121212; /* dark background */
}

.social-footer {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 40px 0 24px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 10px 18px;
    border-radius: 999px;

    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* Social footer stuff */
.social-link img {
    height: 18px;
    width: auto;
}

/* X (Twitter) */
.x-link {
    background-color: #000000;
    color: #ffffff;
}

.x-link img {
    filter: invert(1);
}

/* Buy Me a Coffee */
.coffee-link {
    background-color: #FFDD00;
    color: #000000;
}

/* Hover effect */
.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* Ad stuff */
.result-layout {
    display: flex;
    justify-content: center; /* horizontal alignment */
    align-items: center;     /* vertical alignment */
    gap: 24px;

    max-width: 1200px;
    margin: 40px auto;
}

/* Image column */
.image-center {
    display: flex;
    justify-content: center;
    align-items: center;  /* ensures vertical centering relative to ads */
}

/* Ads */
.ad-container {
    min-width: 160px;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
}


/* Hide empty ads safely */
.ad-container:empty {
    visibility: hidden;
}

@media (max-width: 900px) {
    .result-layout {
        grid-template-columns: 1fr;
    }

    .ad-container {
        display: none;
    }
}
