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

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

header {
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

h1 {
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 3px 3px 0px #ff6b6b, 6px 6px 0px #4ecdc4;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

.subtitle {
    font-size: 1.5rem;
    color: #ffeb3b;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0px #ff6b6b;
}

.description {
    font-size: 1.1rem;
    color: #fff;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.coin-display {
    margin: 40px 0;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.coin {
    font-size: 8rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.coin:hover {
    transform: scale(1.1) rotate(10deg);
}

.coin-text {
    font-size: 1.2rem;
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 40px 0;
    animation: fadeInUp 1s ease-out 1s both;
}

.mystery-btn {
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.mystery-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.mystery-btn:active {
    transform: translateY(0);
}

#redBtn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
}

#blueBtn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
}

#greenBtn {
    background: linear-gradient(45deg, #45b7d1, #96c93d);
    color: white;
}

#purpleBtn {
    background: linear-gradient(45deg, #a8edea, #fed6e3);
    color: #333;
}

#spinBtn {
    background: linear-gradient(45deg, #ff9a9e, #fecfef);
    color: #333;
}

#shakeBtn {
    background: linear-gradient(45deg, #a18cd1, #fbc2eb);
    color: white;
}

#randomBtn {
    background: linear-gradient(45deg, #ffecd2, #fcb69f);
    color: #333;
}

#confuseBtn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.status {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 1.2rem;
    color: #fff;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease-out 1.5s both;
}

.footer {
    margin-top: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    animation: fadeInUp 1s ease-out 2s both;
}

.footer p {
    color: #fff;
    margin: 5px 0;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Color theme classes */
.red-theme {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
}

.blue-theme {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%) !important;
}

.green-theme {
    background: linear-gradient(135deg, #45b7d1 0%, #96c93d 100%) !important;
}

.purple-theme {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%) !important;
}

/* Responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .button-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .mystery-btn {
        padding: 12px 15px;
        font-size: 1rem;
    }
}
