/* Premium Simon Game CSS */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700;900&display=swap');

:root {
    --bg-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    
    --simon-red: #ff3366;
    --simon-red-glow: #ff3366aa;
    
    --simon-yellow: #ffcc00;
    --simon-yellow-glow: #ffcc00aa;
    
    --simon-green: #00e676;
    --simon-green-glow: #00e676aa;
    
    --simon-purple: #b366ff;
    --simon-purple-glow: #b366ffaa;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    transition: background-color 0.3s ease;
    background-image: 
        radial-gradient(circle at 50% 0%, #1e293b 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, #1e293b 0%, transparent 50%);
}

.game-header {
    text-align: center;
    margin-bottom: 2rem;
    z-index: 10;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

h2 {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-secondary);
    min-height: 30px;
}

p {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent);
    margin-top: 10px;
    letter-spacing: 1px;
}

/* Controls */
.controls {
    margin-bottom: 2.5rem;
    z-index: 10;
}

#playBtn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 12px 32px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

#playBtn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s;
}

#playBtn:hover::after {
    left: 100%;
}

#playBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(37, 99, 235, 0.4);
}

#playBtn:active {
    transform: translateY(1px);
    box-shadow: 0 5px 10px rgba(37, 99, 235, 0.3);
}

/* Simon Board */
.btn-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #1e293b;
    padding: 20px;
    border-radius: 50%;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.7),
        inset 0 0 0 8px #0f172a,
        inset 0 0 20px rgba(0,0,0,0.5);
    position: relative;
    z-index: 5;
}

/* Center dot */
.btn-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #0f172a;
    border-radius: 50%;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
    z-index: 10;
}

.line-one, .line-two {
    display: flex;
    gap: 15px;
}

/* Buttons */
.btn {
    height: 160px;
    width: 160px;
    cursor: pointer;
    transition: all 0.15s ease-out;
    position: relative;
    overflow: hidden;
    /* Hide the text numbers */
    color: transparent;
    font-size: 0;
}

/* Wedge shapes */
.line-one .red { border-radius: 100% 20px 20px 20px; }
.line-one .yellow { border-radius: 20px 100% 20px 20px; }
.line-two .green { border-radius: 20px 20px 20px 100%; }
.line-two .purple { border-radius: 20px 20px 100% 20px; }

/* Inactive Colors */
.red { background-color: #991b3d; box-shadow: inset 5px 5px 15px rgba(255,255,255,0.1), inset -5px -5px 20px rgba(0,0,0,0.4); }
.yellow { background-color: #997a00; box-shadow: inset 5px 5px 15px rgba(255,255,255,0.1), inset -5px -5px 20px rgba(0,0,0,0.4); }
.green { background-color: #008040; box-shadow: inset 5px 5px 15px rgba(255,255,255,0.1), inset -5px -5px 20px rgba(0,0,0,0.4); }
.purple { background-color: #6b3d99; box-shadow: inset 5px 5px 15px rgba(255,255,255,0.1), inset -5px -5px 20px rgba(0,0,0,0.4); }

/* Hover effects */
.btn:hover {
    filter: brightness(1.2);
}

/* Press effect */
.btn:active {
    transform: scale(0.96);
}

/* Game sequence flash */
.flash {
    background-color: #ffffff !important;
    box-shadow: 0 0 30px #ffffff, inset 0 0 20px #ffffff !important;
    transform: scale(1.02);
    z-index: 20;
}

/* User interaction flash */
.red.userFlash { background-color: var(--simon-red) !important; box-shadow: 0 0 40px var(--simon-red-glow), inset 0 0 15px rgba(255,255,255,0.5) !important; }
.yellow.userFlash { background-color: var(--simon-yellow) !important; box-shadow: 0 0 40px var(--simon-yellow-glow), inset 0 0 15px rgba(255,255,255,0.5) !important; }
.green.userFlash { background-color: var(--simon-green) !important; box-shadow: 0 0 40px var(--simon-green-glow), inset 0 0 15px rgba(255,255,255,0.5) !important; }
.purple.userFlash { background-color: var(--simon-purple) !important; box-shadow: 0 0 40px var(--simon-purple-glow), inset 0 0 15px rgba(255,255,255,0.5) !important; }

/* Responsive */
@media (max-width: 500px) {
    h1 { font-size: 2.5rem; }
    .btn { height: 120px; width: 120px; }
    .btn-container { padding: 15px; }
    .btn-container::after { width: 30px; height: 30px; }
}

/* Footer Styles */
.game-footer {
    margin-top: 3rem;
    text-align: center;
    z-index: 10;
}

.game-footer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.footer-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.footer-links a:hover {
    color: white;
    background: rgba(59, 130, 246, 0.2);
}