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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #ff00ff 0%, #00ffff 25%, #ffff00 50%, #ff00ff 75%, #00ffff 100%);
    background-size: 400% 400%;
    animation: psychedelicGradient 3s ease infinite;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.calendar-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 500px;
    width: 100%;
}

.calendar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.calendar-header button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.calendar-header button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.calendar-grid {
    padding: 20px;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.weekdays div {
    text-align: center;
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #333;
}

.day:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.day.other-month {
    color: #ccc;
}

.day.today {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.day.selected {
    background: #667eea;
    color: white;
}

.day.holiday {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 100%);
    color: white;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.day.holiday:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ffca28 100%);
    transform: scale(1.08);
}

.day.holiday .day-number {
    display: block;
    font-size: 0.8rem;
    line-height: 1;
}

.day.holiday .holiday-emoji {
    display: block;
    font-size: 1rem;
    line-height: 1;
    margin-top: 2px;
}

/* Holiday animations */
@keyframes firework {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--x, 100px), var(--y, -100px)) scale(0); opacity: 0; }
}

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

@keyframes spin {
    0% { transform: rotate(0deg) scale(1); opacity: 1; }
    100% { transform: rotate(720deg) scale(0); opacity: 0; }
}

@keyframes bounce {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    50% { transform: translateY(-30px) scale(1.2); }
    100% { transform: translateY(0) scale(0); opacity: 0; }
}

@keyframes bloom {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
    100% { transform: scale(0.8) rotate(360deg); opacity: 0; }
}

@keyframes rise {
    0% { transform: translateY(0) rotate(-5deg); opacity: 1; }
    100% { transform: translateY(-200px) rotate(5deg); opacity: 0; }
}

@keyframes fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(150px) rotate(360deg); opacity: 0; }
}

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(200px) rotate(720deg); opacity: 0; }
}

@keyframes twinkle {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1.5) rotate(180deg); opacity: 1; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

@keyframes gobble {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1.3) rotate(-10deg); opacity: 1; }
    100% { transform: scale(1.1) rotate(10deg); opacity: 0; }
}

@keyframes waddle {
    0% { transform: translateX(0) rotate(0deg); opacity: 1; }
    25% { transform: translateX(-10px) rotate(-5deg); }
    50% { transform: translateX(10px) rotate(5deg); }
    75% { transform: translateX(-5px) rotate(-2deg); }
    100% { transform: translateX(100px) rotate(0deg); opacity: 0; }
}

@keyframes spooky {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(-180deg); opacity: 1; }
    100% { transform: scale(0) rotate(-360deg); opacity: 0; }
}

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

@media (max-width: 480px) {
    .calendar-container {
        border-radius: 15px;
    }
    
    .calendar-header {
        padding: 15px;
    }
    
    .calendar-header h1 {
        font-size: 1.2rem;
    }
    
    .calendar-grid {
        padding: 15px;
        gap: 5px;
    }
    
    .weekdays, .days-grid {
        gap: 5px;
    }
}