-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
91 lines (78 loc) · 1.35 KB
/
styles.css
File metadata and controls
91 lines (78 loc) · 1.35 KB
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
85
86
87
88
89
90
91
body {
text-align: center;
font-family: Arial, sans-serif;
background-color: #ffe6f2;
margin: 0;
padding: 0;
}
h1 {
color: #d63384;
}
#game-container {
position: relative;
width: 400px;
height: 400px;
background-color: #ffb3d9;
margin: auto;
border: 3px solid #d63384;
overflow: hidden;
touch-action: none;
}
#player, #love, .obstacle {
width: 40px;
height: 40px;
font-size: 30px;
text-align: center;
line-height: 40px;
position: absolute;
}
#player {
top: 10px;
left: 10px;
}
#love {
bottom: 10px;
right: 10px;
}
.obstacle {
font-size: 35px;
}
#message {
font-size: 20px;
color: green;
font-weight: bold;
}
/* Steuerung */
#controls {
margin-top: 20px;
}
#controls button {
font-size: 24px;
padding: 15px;
margin: 5px;
border: none;
border-radius: 10px;
background-color: #d63384;
color: white;
cursor: pointer;
}
#controls button:active {
background-color: #a12260;
}
/* Anpassung für mobile Geräte */
@media (max-width: 450px) {
#game-container {
width: 90vw;
height: 90vw;
}
#player, #love, .obstacle {
width: 10vw;
height: 10vw;
font-size: 7vw;
line-height: 10vw;
}
#controls button {
font-size: 18px;
padding: 10px;
}
}