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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    overflow-x: hidden;
}

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

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.main-title {
    text-align: center;
    font-size: 3rem;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    animation: titlePulse 2s ease-in-out infinite;
}

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

.subtitle {
    text-align: center;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-style: italic;
}

.countries-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.country-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    padding-top: 80px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    position: relative;
}

.country-section:hover {
    transform: translateY(-5px);
}

.country-title {
    text-align: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.clock-item, .big-clock-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.clock-item:hover, .big-clock-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.clock-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.timezone-label {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.funny-text {
    display: block;
    font-size: 0.8rem;
    color: #666;
    font-weight: normal;
    font-style: italic;
    margin-top: 5px;
}

.digital-time {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4a00e0;
    font-family: 'Courier New', monospace;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.big-time {
    font-size: 4rem;
    color: #e94560;
    animation: colorPulse 3s ease-in-out infinite;
}

@keyframes colorPulse {
    0%, 100% { color: #e94560; }
    25% { color: #ff6b6b; }
    50% { color: #4ecdc4; }
    75% { color: #45b7d1; }
}

.timezone-name {
    font-size: 1rem;
    color: #666;
    margin-top: 5px;
    position: relative;
    z-index: 1;
}

.china-clock-container {
    display: flex;
    justify-content: center;
}

.big-clock-item {
    max-width: 500px;
    width: 100%;
    padding: 30px;
}

.fun-fact {
    margin-top: 15px;
    font-size: 1.1rem;
    color: #444;
    background: rgba(255, 193, 7, 0.2);
    padding: 10px;
    border-radius: 10px;
    border: 2px dashed #ffc107;
}

.cities-list {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.city-badge {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.city-badge:hover {
    transform: translateY(-2px) scale(1.1);
}

.fun-message {
    text-align: center;
    font-size: 1.3rem;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    backdrop-filter: blur(5px);
    animation: messageFloat 3s ease-in-out infinite;
}

@keyframes messageFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .countries-container {
        grid-template-columns: 1fr;
    }
    
    .clocks-grid {
        grid-template-columns: 1fr;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .digital-time {
        font-size: 2rem;
    }
    
    .big-time {
        font-size: 3rem;
    }
    
    .timezone-label {
        font-size: 1rem;
    }
    
    .funny-text {
        font-size: 0.7rem;
    }
}

/* Special effects for USA section */
.usa-section {
    background: linear-gradient(135deg, rgba(0, 56, 168, 0.2), rgba(191, 10, 48, 0.2), rgba(255, 255, 255, 0.2));
}

/* Special effects for China section */
.china-section {
    background: linear-gradient(135deg, rgba(238, 28, 37, 0.2), rgba(255, 215, 0, 0.2));
}

/* Potato People Styles */
.potato-mascots {
    text-align: center;
    margin: 30px 0;
    position: relative;
    height: 250px;
}

.potato-center {
    width: 300px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: potatoBounce 3s ease-in-out infinite;
}

@keyframes potatoBounce {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    75% { transform: translateY(-5px) rotate(-1deg); }
}

.speech-bubble {
    position: absolute;
    background: white;
    border-radius: 20px;
    padding: 15px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-size: 1.1rem;
    font-weight: bold;
    animation: bubbleFloat 4s ease-in-out infinite;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    transform: rotate(45deg);
}

.left-bubble {
    top: 20px;
    left: 50px;
    color: #e94560;
}

.left-bubble::after {
    bottom: -10px;
    right: 30px;
}

.right-bubble {
    top: 20px;
    right: 50px;
    color: #4a00e0;
}

.right-bubble::after {
    bottom: -10px;
    left: 30px;
}

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.country-potato {
    position: absolute;
    width: 150px;
    height: auto;
    z-index: 10;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.usa-potato {
    top: -20px;
    right: 20px;
    animation: usaPotatoWave 4s ease-in-out infinite;
}

.china-potato {
    top: -20px;
    left: 20px;
    animation: chinaPotatoWave 4s ease-in-out infinite;
}

@keyframes usaPotatoWave {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    25% { transform: rotate(5deg) scale(1.05); }
    50% { transform: rotate(-3deg) scale(1.02); }
    75% { transform: rotate(3deg) scale(1.05); }
}

@keyframes chinaPotatoWave {
    0%, 100% { transform: rotate(5deg) scale(1); }
    25% { transform: rotate(-5deg) scale(1.05); }
    50% { transform: rotate(3deg) scale(1.02); }
    75% { transform: rotate(-3deg) scale(1.05); }
}

/* Responsive adjustments for potato people */
@media (max-width: 768px) {
    .potato-center {
        width: 200px;
    }
    
    .potato-mascots {
        height: 200px;
    }
    
    .speech-bubble {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    
    .left-bubble, .right-bubble {
        position: static;
        display: inline-block;
        margin: 10px 5px;
    }
    
    .country-potato {
        width: 100px;
        position: static;
        display: block;
        margin: 0 auto 20px;
    }
}

/* Sparkle animation for potato clicks */
@keyframes sparkle {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(2);
    }
}