/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #45B7D1, #FFA07A);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
    color: #333;
    overflow-x: hidden;
    min-height: 100vh;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.neon-sign h1 {
    font-size: 3em;
    background: linear-gradient(to right, #FF6B6B, #4ECDC4, #45B7D1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.subtitle {
    font-size: 1.2em;
    color: #666;
    margin-top: 10px;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-3px);
}

/* Ad Container Styles */
.ad-container {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    padding: 10px;
    margin: 20px auto;
    text-align: center;
    border-radius: 10px;
}

.ad-top {
    max-width: 970px;
}

.ad-sticky-bottom {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

/* Main Layout */
.main-container {
    display: flex;
    max-width: 1400px;
    margin: 20px auto;
    gap: 20px;
    padding: 0 20px;
}

.content {
    flex: 1;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.sidebar {
    width: 200px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Hero Section - Spinning Wheel */
.hero-section {
    text-align: center;
    margin: 40px 0;
}

.spinning-wheel {
    position: relative;
    display: inline-block;
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2em;
    z-index: 10;
}

#wheelCanvas {
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 3s;
}

.spin-button {
    display: block;
    margin: 20px auto;
    padding: 15px 40px;
    font-size: 1.5em;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.spin-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.prize-display {
    margin-top: 20px;
    font-size: 1.5em;
    color: #FF6B6B;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.feature-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 3em;
    display: block;
    margin-bottom: 10px;
}

/* Trivia Section */
.trivia-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 30px;
    border-radius: 20px;
    margin: 40px 0;
    color: white;
}

.trivia-question {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.trivia-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.trivia-option {
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    font-size: 1.1em;
}

.trivia-option:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.trivia-option.correct {
    background: #4CAF50;
    animation: correctAnswer 0.5s;
}

.trivia-option.wrong {
    background: #f44336;
    animation: shake 0.5s;
}

@keyframes correctAnswer {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Meme Gallery */
.meme-gallery {
    text-align: center;
    margin: 40px 0;
}

.meme-container {
    background: #f0f0f0;
    padding: 20px;
    border-radius: 20px;
    margin: 20px 0;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-button {
    padding: 15px 30px;
    font-size: 1.2em;
    background: linear-gradient(45deg, #4ECDC4, #45B7D1);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Poll Section */
.poll-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    margin: 40px 0;
}

.poll-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.poll-option {
    padding: 15px 25px;
    font-size: 2em;
    background: white;
    border: 3px solid #4ECDC4;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.poll-option:hover {
    background: #4ECDC4;
    transform: scale(1.1);
}

.poll-result {
    padding: 10px;
    margin: 5px 0;
    background: #e0e0e0;
    border-radius: 10px;
    font-size: 1.2em;
}

/* Comment Wall */
.comment-wall {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    margin: 40px 0;
}

.comment-display {
    max-height: 300px;
    overflow-y: auto;
    margin: 20px 0;
}

.comment {
    background: white;
    padding: 15px;
    margin: 10px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.5s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.comment-time {
    float: right;
    color: #999;
    font-size: 0.9em;
}

#commentInput {
    width: 70%;
    padding: 15px;
    font-size: 1.1em;
    border: 2px solid #4ECDC4;
    border-radius: 10px;
    margin-right: 10px;
}

/* Memory Game */
.mini-game {
    margin-top: 30px;
}

.memory-game {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.memory-card {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.memory-card.flipped {
    transform: rotateY(180deg);
}

.card-back, .card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    backface-visibility: hidden;
}

.card-front {
    transform: rotateY(180deg);
    background: white;
    border-radius: 10px;
}

/* Leaderboard */
.leaderboard {
    margin-top: 30px;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin: 5px 0;
    background: #f0f0f0;
    border-radius: 10px;
    transition: all 0.3s;
}

.leaderboard-item.highlight {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    transform: scale(1.05);
}

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

.floating-emoji {
    position: absolute;
    font-size: 2em;
    animation: float 5s linear;
}

@keyframes float {
    from {
        transform: translateY(100vh) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    bottom: 100px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 90;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 20px;
    max-width: 600px;
    position: relative;
    animation: slideDown 0.5s;
}

@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2em;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

/* Achievements */
.achievement {
    padding: 20px;
    margin: 10px 0;
    border-radius: 15px;
    text-align: center;
}

.achievement.unlocked {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.achievement.locked {
    background: #e0e0e0;
    opacity: 0.5;
}

/* Dance Party Mode */
.dance-party * {
    animation: dance 1s infinite !important;
}

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

/* Dark Theme */
.dark-theme {
    background: linear-gradient(45deg, #1a1a2e, #16213e, #0f3460, #533483);
    color: white;
}

.dark-theme .header,
.dark-theme .content,
.dark-theme .sidebar {
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

.dark-theme .feature-card {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Confetti Canvas */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}

/* Simple Footer */
.simple-footer {
    background: #333;
    color: #fff;
    padding: 20px;
    margin-top: 100px;
    text-align: center;
    font-size: 0.9em;
}

.simple-footer a {
    color: #4ECDC4;
    text-decoration: none;
    margin: 0 10px;
}

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

.simple-footer p {
    margin: 5px 0;
}

/* Age Verification Modal */
.age-verification {
    text-align: center;
    max-width: 400px;
}

.age-button {
    margin: 10px;
    padding: 15px 30px;
    font-size: 1.1em;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.age-button:first-of-type {
    background: #4CAF50;
    color: white;
}

.age-button:last-of-type {
    background: #f44336;
    color: white;
}

.age-button:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .ad-vertical {
        display: none;
    }
}

@media (max-width: 768px) {
    .neon-sign h1 {
        font-size: 2em;
    }
    
    .stats-bar {
        gap: 10px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .trivia-options {
        grid-template-columns: 1fr;
    }
    
    .floating-buttons {
        bottom: 120px;
    }
    
    #commentInput {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}