/* Base styles */
body {
    font-family: 'Comic Neue', cursive;
    background-color: #f0f0ff;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* Dark mode styles */
body.dark-mode {
    background-color: #1a1a2e;
    color: #fff;
}

/* Main content */
.main-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Dark mode toggle button */
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9000;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.dark-mode .dark-mode-toggle {
    background: rgba(26, 26, 46, 0.9);
    box-shadow: 0 2px 5px rgba(0, 255, 157, 0.3);
}

/* To The Moon button styles */
.to-the-moon-btn {
    display: block;
    margin: 30px auto;
    padding: 20px 40px;
    font-size: 1.5rem;
    min-width: 250px;
    background: #ff69b4;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.dark-mode .to-the-moon-btn {
    background: #00ff9d;
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
}

/* Floating icons */
.floating-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-icon {
    position: absolute;
    width: 30px;
    height: 30px;
    pointer-events: auto;
    cursor: pointer;
    opacity: 0.6;
    animation: float 15s linear infinite;
    z-index: 1;
}

/* Content boxes */
.content-box {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #ff69b4;
    position: relative;
    z-index: 2;
}

.dark-mode .content-box {
    background: #2a2a40;
    border-color: #00ff9d;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.2);
}

/* Performance stats */
.performance-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.stat-box {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    background: rgba(255, 105, 180, 0.1);
    cursor: pointer;
    flex: 1;
    min-width: 200px;
}

/* Chart container */
.chart-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.dark-mode .chart-container {
    background: #2a2a40;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.2);
}

/* Footer styles */
.meme-footer {
    background: rgba(255, 105, 180, 0.1);
    padding: 40px 0 20px;
    margin-top: auto;
    border-top: 2px solid #ff69b4;
    position: relative;
    z-index: 2;
}

.dark-mode .meme-footer {
    background: rgba(0, 255, 157, 0.1);
    border-top-color: #00ff9d;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-section.centered-legal {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.footer-section h4 {
    color: #ff69b4;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.dark-mode .footer-section h4 {
    color: #00ff9d;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
}

.footer-section ul li {
    margin: 15px 0;
    cursor: pointer;
    position: relative;
    z-index: 3;
}

.footer-notes {
    font-size: 0.8rem;
    margin-top: 20px;
    opacity: 0.8;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 105, 180, 0.3);
}

.dark-mode .footer-bottom {
    border-top-color: rgba(0, 255, 157, 0.3);
}

/* Footer link styles */
.footer-link {
    color: #ff69b4;
    text-decoration: none;
    display: inline-block;
}

.dark-mode .footer-link {
    color: #00ff9d;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes launch {
    0% { 
        transform: translateY(0); 
        opacity: 1;
    }
    100% { 
        transform: translateY(-1000px) rotate(10deg);
        opacity: 0;
    }
}

.launching {
    animation: launch 2s ease-in forwards;
    pointer-events: none;
}
