-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.css
121 lines (105 loc) · 1.64 KB
/
game.css
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 0;
padding: 0;
}
h1 {
margin: 20px 0;
}
#score {
font-size: 24px;
margin-bottom: 20px;
}
#start-btn {
font-size: 18px;
padding: 10px 20px;
margin-bottom: 20px;
background-color: #008cba;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
}
#game-container {
position: relative;
height: 300px;
margin: 0 auto;
background-color: #ccc;
}
#player {
position: absolute;
bottom: 0;
left: 50px;
width: 50px;
height: 50px;
background-color: #f00;
transition: bottom 0.4s ease-out;
}
#obstacle {
position: absolute;
bottom: 0;
right: -50px;
width: 50px;
height: 50px;
background-color: #00f;
}
#popup {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
color: #fff;
}
#popup p {
font-size: 24px;
margin-top: 45%;
}
#yes-btn {
font-size: 18px;
padding: 10px 20px;
margin-top: 20px;
background-color: #008cba;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
}
#dark-mode-btn {
position: absolute;
top: 20px;
right: 20px;
background-color: #444;
color: #eee;
border: none;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
}
.explanation{
/* padding-top: 10%; */
}
/* 다크모드 스타일 */
body.dark-mode {
background-color: #222;
color: #eee;
}
button.dark-mode {
background-color: #eee;
color: #333;
}
#txt-file {
color: #333;
padding-top: 3%;
font-size: 20px;
font-weight: bold;
}
#game-container.dark-mode {
background-color: #333;
}
#score.dark-mode {
color: #eee;
}