/* Base styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0 2rem;
    background-color: #111;
    color: #eee;
    font-family: sans-serif;
    text-align: center;
}

/* Media display */
#meme-wrapper {
    text-align: center;
}

#meme,
#memeVideo {
    display: block;
    margin: 0 auto;
    max-width: 70vw;
    max-height: 60vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 20px #9f9e9e;
}

#loader.spinner {
    width: 64px;
    height: 64px;
    margin: 2rem auto;
    border: 6px solid #444;
    border-top: 6px solid #eee;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Headings */
h1 {
    font-size: 4rem;
    margin: 0 0 2rem;
}

/* Caption (if used) */
.caption {
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Download link */
a {
    display: inline-block;
    margin-top: 1rem;
    color: #00b7ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Button container */
#buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Button styles */
.nav-button {
    background: linear-gradient(145deg, #7f00ff, #6200ee);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    margin: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(98, 0, 238, 0.4), 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(98, 0, 238, 0.5), 0 3px 6px rgba(0, 0, 0, 0.6);
}

.nav-button:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Disclaimer */
footer.disclaimer {
    font-size: 0.85rem;
    color: #888;
    max-width: 600px;
    margin: 1rem auto;
    padding: 1rem;
    text-align: center;
    line-height: 1.4;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    footer.disclaimer {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
}
