@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

 /* By breakplay.fun 
 
 */
 
        :root {
            --primary-color: #4a4a4a;
            --secondary-color: #97deff;
            --accent-color: #ff6b6b;
            --text-color: #333;
            --background-color: #06080f;
            --ground-color: #8B4513;
        }

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

        html, body {
            height: 100%;
            overflow: hidden;
        }

        body {
            display: flex;
            justify-content: center;
            align-items: center;
            background: linear-gradient(var(--primary-color), var(--secondary-color));
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        #game-container {
            width: 100%;
            height: 100%;
            position: relative;
            overflow: hidden;
            background: linear-gradient(var(--secondary-color), var(--background-color));
        }

        #box {
            width: 30px;
            height: 30px;
            position: absolute;
            bottom: 20%;
            left: 10%;
            background-color: #333;
            z-index: 10;
        }

        .obstacle {
            position: absolute;
            bottom: 20%;
            width: 20px;
            height: 40px;
            background-color: #666;
            border-radius: 5px;
        }

        #score {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 24px;
            color: var(--text-color);
            background: rgba(255, 255, 255, 0.7);
            padding: 10px 20px;
            border-radius: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        #ground {
            position: absolute;
            bottom: 0;
            width: 100%;
            height: 20%;
            background: var(--ground-color);
            z-index: 1;
        }

        .cloud {
            position: absolute;
            background: rgba(0,212,255,0.06);
            border-radius: 50px;
            opacity: 0.8;
            filter: blur(3px);
        }

        .tree {
            position: absolute;
            width: 40px;
            height: 80px;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 200"><path d="M50,0 L0,100 L100,100 Z" fill="%23228B22"/><rect x="40" y="100" width="20" height="100" fill="%238B4513"/></svg>') no-repeat center/contain;
            z-index: 2;
            bottom: 20%;
        }

        .bird {
            position: absolute;
            width: 20px;
            height: 20px;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,50 Q50,20 80,50 Q50,80 20,50 Z" fill="%23000"/></svg>') no-repeat center/contain;
            z-index: 10;
        }

        #game-over {
            display: none;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            color: var(--text-color);
            background: rgba(255, 255, 255, 0.9);
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            z-index: 100;
        }

        #restart-btn {
            margin-top: 20px;
            padding: 15px 30px;
            background: var(--accent-color);
            color: white;
            border: none;
            border-radius: 30px;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        #restart-btn:hover {
            background: #ff8c8c;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
        }

        #day-night-toggle {
            position: absolute;
            top: 20px;
            left: 20px;
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            z-index: 100;
        }

        .power-up {
            position: absolute;
            width: 30px;
            height: 30px;
            background-color: gold;
            border-radius: 50%;
            z-index: 5;
        }

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

        @keyframes jump {
            0% { transform: translateY(0); }
            50% { transform: translateY(-80px); }
            100% { transform: translateY(0); }
        }

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

        @keyframes fly {
            0%, 100% { transform: translateY(0) rotate(5deg); }
            50% { transform: translateY(-10px) rotate(-5deg); }
        }

        .night-mode {
            --primary-color: #1a1a2e;
            --secondary-color: #16213e;
            --accent-color: #ff6b6b;
            --text-color: #e1e1e1;
            --background-color: #0f3460;
        }

        .parallax {
            position: absolute;
            bottom: 20%;
            width: 100%;
            height: 80%;
            z-index: 0;
        }

        .parallax-layer {
            position: absolute;
            width: 100%;
            height: 100%;
            background-repeat: repeat-x;
            background-position: 0 bottom;
        }

        #mountains {
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><path d="M0,300 L250,0 L500,300 L750,100 L1000,300 Z" fill="%23708090"/></svg>');
            background-size: 1000px 300px;
        }

        #hills {
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 200"><path d="M0,200 Q250,0 500,200 T1000,200 Z" fill="%2390EE90"/></svg>');
            background-size: 1000px 200px;
        }