.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    min-height: 80vh;
}

/* Enhanced title styling */
.main-content h1 {
    font-size: 4.5rem;
    color: #000;
    margin-bottom: 40px;
    text-shadow: 
        3px 3px 0px rgba(255,255,255,0.8),
        6px 6px 0px rgba(0,0,0,0.3),
        0 0 20px rgba(255,255,255,0.5);
    position: relative;
    z-index: 10;
}

/* Removed rainbowShift animation */

/* Enhanced countdown timer */
#countdown-timer {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    position: relative;
    z-index: 10;
    perspective: 1000px;
}

.timer-unit {
    background: linear-gradient(145deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    padding: 30px 20px;
    border-radius: 20px;
    min-width: 140px;
    color: #fff;
    border: 3px solid #000;
    box-shadow: 
        inset 3px 3px 8px rgba(255,255,255,0.2),
        inset -3px -3px 8px rgba(0,0,0,0.4),
        8px 8px 20px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.1);
    transform: perspective(1000px) rotateX(5deg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timer-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
}

/* Removed colorFlow animation */

.timer-unit:hover {
    transform: perspective(1000px) rotateX(2deg) translateY(-5px);
    box-shadow: 
        inset 3px 3px 8px rgba(255,255,255,0.2),
        inset -3px -3px 8px rgba(0,0,0,0.4),
        15px 15px 30px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.1);
}

.timer-unit span {
    font-size: 4rem;
    display: block;
    font-weight: bold;
    text-shadow: 
        2px 2px 0px rgba(0,0,0,0.8),
        0 0 20px rgba(255,255,255,0.5);
    animation: pulse 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

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

.timer-unit div {
    font-size: 1.8rem;
    margin-top: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    position: relative;
    z-index: 2;
}

/* Event decoration sparkles */
.event-decoration {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 2rem;
    margin-top: 20px;
    color: #ffc107;
}

.sparkle {
    animation: sparkle-anim 2s infinite ease-in-out;
}

@keyframes sparkle-anim {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* Live Chat */
/* Remove old sidebar styles */
.live-chat {
    display: none;
}

/* New Overlay Styles */
.live-event-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none; /* Allows clicks to go through the container */
    animation: slideUpIn 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideUpIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.chat-messages {
    width: 100%;
    max-width: 600px;
    height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column-reverse;
    margin-bottom: 10px;
}

.chat-message {
    background: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    margin-bottom: 5px;
    max-width: 80%;
    align-self: flex-start;
    animation: messageIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.reactions-and-chat-bar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px;
    background: rgba(100, 100, 100, 0.2);
    padding: 10px 15px;
    border-radius: 30px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: all;
    width: 100%;
    max-width: 700px;
    height: auto;
}

.live-reactions {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px;
    flex-shrink: 0;
}

.reaction-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}

.reaction-btn.clicked {
    animation: popOut 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.reaction-btn:hover {
    transform: scale(1.2);
}

.reaction-burst {
    position: absolute;
    font-size: 2.5rem;
    animation: burst-anim 1.5s ease-out forwards;
    pointer-events: none;
    will-change: transform, opacity;
}

@keyframes burst-anim {
    0% {
        transform: scale(0.5) translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(1.5) translateY(-150px) rotate(360deg);
        opacity: 0;
    }
}

#chat-message-input {
    flex-grow: 1;
    border: none;
    padding: 12px 15px;
    background: transparent;
    color: white;
    font-size: 1rem;
    font-family: 'Jersey 10', sans-serif;
    min-width: 0; /* Fix for flexbox overflow */
}

#chat-message-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#chat-send-btn {
    border: none;
    background: #007bff;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Jersey 10', sans-serif;
    font-size: 1rem;
    transition: background-color 0.2s;
}

#chat-send-btn:hover {
    background: #0056b3;
}

/* Floating particles */
.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #fff 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    z-index: 1;
}

.particle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 20%; right: 15%; animation-delay: 1s; }
.particle:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 2s; }
.particle:nth-child(4) { bottom: 20%; right: 10%; animation-delay: 3s; }
.particle:nth-child(5) { top: 50%; left: 5%; animation-delay: 4s; }
.particle:nth-child(6) { top: 60%; right: 5%; animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* Glowing border effect */
.main-content {
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, rgba(255,255,255,0.6), rgba(0,0,0,0.06));
    background-size: 100% 100%;
    border-radius: 20px;
    z-index: -1;
    opacity: 0.15;
}

/* Removed glowingBorder animation */

/* Scanlines effect */
.main-content {
    position: relative;
}

.main-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.03) 2px,
        rgba(255, 255, 255, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1;
}

/* Responsive design */
@media (max-width: 1200px) {
    .main-content h1 {
        font-size: 3.5rem;
    }
    
    #countdown-timer {
        gap: 20px;
    }
    
    .timer-unit {
        min-width: 120px;
        padding: 25px 15px;
    }
    
    .timer-unit span {
        font-size: 3rem;
    }
    
    .timer-unit div {
        font-size: 1.5rem;
    }
    
    .sparkle {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .main-content h1 {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }
    
    #countdown-timer {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    
    .timer-unit {
        min-width: 100px;
        padding: 20px 10px;
    }
    
    .timer-unit span {
        font-size: 2.5rem;
    }
    
    .timer-unit div {
        font-size: 1.2rem;
    }
    
    .sparkle {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .main-content h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    #countdown-timer {
        gap: 10px;
    }
    
    .timer-unit {
        min-width: 80px;
        padding: 15px 8px;
    }
    
    .timer-unit span {
        font-size: 2rem;
    }
    
    .timer-unit div {
        font-size: 1rem;
    }
    
    .sparkle {
        font-size: 1rem;
    }
}

