File size: 1,730 Bytes
602273a
b9e8fab
602273a
 
 
 
 
c4dbc16
 
602273a
993e97a
602273a
 
 
 
 
 
f1c432a
 
602273a
 
 
 
 
 
 
 
 
 
 
f5f4767
 
602273a
 
 
 
 
 
 
 
 
 
 
48a6b47
 
602273a
 
 
 
 
 
 
 
 
 
 
9f062f5
 
602273a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f5bc055
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/* General Body Styling */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(90deg, #000428, #004e92);
    font-family: Arial, sans-serif;
    overflow: hidden;
}

/* Game Container */
.game-container {
    position: relative;
    width: 100vw;
    height: 80vh; /* Reduced height for controls */
    border: 3px solid #00ffcc;
    overflow: hidden;
    box-shadow: 0 0 20px #00ffcc;
}

/* Ball */
.ball {
    position: absolute;
    top: 0;
    left: 50%;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ff00cc, #ff0066);
    border-radius: 50%;
    box-shadow: 0 0 15px #ff0066;
    transform: translate(-50%, -50%);
}

/* Platform */
.platform {
    position: absolute;
    bottom: 5%;
    left: 50%;
    width: 100px;
    height: 20px;
    background: linear-gradient(90deg, #00ffcc, #0066ff);
    border-radius: 10px;
    box-shadow: 0 0 20px #00ffcc;
    transform: translateX(-50%);
}

/* Score Board */
.score-board {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1.5em;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px #00ffcc;
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.controls button {
    background: linear-gradient(90deg, #ff0066, #ffcc00);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 1.5em;
    box-shadow: 0 0 10px #ff0066;
    cursor: pointer;
    outline: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.controls button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px #ffcc00;
}