:root {
    --background-color: #f5f5f5;
    --text-color: #333;
    --primary-color: #ff6b6b;
    --primary-hover: #ff5252;
    --card-bg: #e0e0e0;
    --footer-color: #666;
    --loading-bg: rgba(255, 255, 255, 0.7);
    --meme-shadow: 0 0 10px rgba(255, 107, 107, 0.7);
}

.dark-mode {
    --background-color: #222;
    --text-color: #f5f5f5;
    --primary-color: #ff6b6b;
    --primary-hover: #ff5252;
    --card-bg: #333;
    --footer-color: #aaa;
    --loading-bg: rgba(0, 0, 0, 0.7);
}

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

@font-face {
    font-family: 'Impact';
    src: local('Impact'), local('impact');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M50 25c-4 0-8 4-8 8s4 8 8 8 8-4 8-8-4-8-8-8zm-19 5c-2 0-4 2-4 4s2 4 4 4 4-2 4-4-2-4-4-4zm38 0c-2 0-4 2-4 4s2 4 4 4 4-2 4-4-2-4-4-4zm-38 20c-4 0-8 4-8 8s4 8 8 8 8-4 8-8-4-8-8-8zm38 0c-4 0-8 4-8 8s4 8 8 8 8-4 8-8-4-8-8-8zm-19 5c-2 0-4 2-4 4s2 4 4 4 4-2 4-4-2-4-4-4z" fill="rgba(255,107,107,0.05)"/></svg>');
}

.container {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    text-shadow: var(--meme-shadow);
    letter-spacing: 1px;
    transform: rotate(-1deg);
    animation: wobble 10s ease-in-out infinite;
}

@keyframes wobble {
    0%, 100% { transform: rotate(-1deg); }
    50% { transform: rotate(1deg); }
}

.tagline {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.theme-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-50%) scale(1.1);
    color: var(--primary-color);
    animation: spin 1s linear;
}

@keyframes spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

main {
    width: 100%;
    max-width: 500px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#cat-content-container {
    width: 100%;
    height: 350px;
    margin-bottom: 20px;
    position: relative;
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transform: rotate(0deg);
    border: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

#cat-content-container:hover {
    transform: scale(1.02);
    box-shadow: var(--meme-shadow);
}

#cat-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#cat-content img, #cat-content video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--loading-bg);
    font-size: 2rem;
    color: var(--primary-color);
}

.buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn {
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: rotate(0deg);
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 107, 107, 0.4);
}

.btn.clicked {
    animation: click-bounce 0.5s ease;
}

@keyframes click-bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0% { transform: translateY(-2px) rotate(1deg) scale(1); }
    50% { transform: translateY(-2px) rotate(1deg) scale(1.05); }
    100% { transform: translateY(-2px) rotate(1deg) scale(1); }
}

.btn:active {
    transform: translateY(0) rotate(0);
}

footer {
    text-align: center;
    margin-top: auto;
    padding: 20px 0;
    font-size: 0.9rem;
    color: var(--footer-color);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

.shoutout {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--footer-color);
    font-style: italic;
}

.meme-text {
    margin-top: 15px;
    font-family: 'Impact', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 1px;
    text-align: center;
    color: var(--primary-color);
    text-transform: uppercase;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
    padding: 5px 15px;
    transform: rotate(-2deg);
    animation: colorshift 15s infinite alternate;
}

@keyframes colorshift {
    0% { color: var(--primary-color); }
    50% { color: #5d9cec; }
    100% { color: #a0d468; }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.2rem;
    }
    
    #cat-content-container {
        height: 300px;
    }
    
    .buttons {
        flex-direction: column;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
} 