-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
168 lines (143 loc) · 2.9 KB
/
style.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
/* style.css updated styles */
/* Add these styles to your existing style.css file */
/* Global Styles */
body,
html {
margin: 0;
padding: 0;
font-family: 'Open Sans', sans-serif;
}
/* Mobile Styles */
@media screen and (max-width: 600px) {
/* Adjust the main game title for mobile */
#game-stage {
font-size: 40px;
/* Smaller font size for mobile */
padding: 10px;
text-align: center;
}
/* Adjust the game section title for mobile */
#game-title {
font-size: 20px;
/* Smaller font size for mobile */
padding: 5px;
text-align: center;
}
/* Image adjustments for mobile */
.background-container img {
width: 100%;
height: auto;
display: block;
margin: 0 auto;
}
/* Input and button styles may need to be adjusted as well */
#name-form input[type="text"],
.cute-orange-button {
width: 90%;
/* Make input and button take up most of the space */
margin: 15px 15px;
/* Center them with automatic left/right margins */
display: block;
/* Ensure they appear on their own line */
}
#maker {
position: fixed;
bottom: 0;
left: 50%;
transform: translateX(-50%);
display: block;
font-family: 'Open Sans', sans-serif;
font-size: 12px;
color: #ffffff;
}
}
.gray-bg {
background-color: #b0b0b0;
}
.purple-bg {
background-color: #fadedb;
}
.green-bg {
background-color: #94e6e4;
}
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
height: 100vh;
font-family: 'Open Sans', sans-serif;
}
#game-container {
width: 80%;
display: flex;
flex-direction: column;
align-items: center;
}
h1#game-stage {
margin: 0 0 10px 0;
}
.background-container {
width: 100%;
display: flex;
justify-content: center;
margin: 0;
}
img#Image {
max-width: 20%;
/* Set max-width to 70% of the containing element */
height: auto;
/* Maintain the aspect ratio */
}
h1 {
font-family: 'Open Sans', sans-serif;
text-align: center;
z-index: 1;
font-size: 60px;
margin-top: 20px;
}
#name-form {
text-align: center;
margin-top: 20px;
}
#game-section {
text-align: center;
margin-top: -10px;
}
/* Other styles remain unchanged */
/* Reset some default styles */
button {
display: block;
border: none;
outline: none;
cursor: pointer;
}
/* Cute Orange Button */
.cute-orange-button {
margin-top: 20px;
position: absolute;
top: 80%;
left: 50%;
transform: translate(-50%, -50%);
/* 使用 transform 属性来实现居中 */
background-color: #ff8c00;
color: #fff;
padding: 10px 20px;
font-family: 'Open Sans', sans-serif;
font-size: 16px;
border-radius: 8px;
transition: background-color 0.3s ease;
}
.replay-button {
margin-top: 80px;
}
#maker {
position: fixed;
bottom: 0;
left: 50%;
transform: translateX(-50%);
display: block;
font-family: 'Open Sans', sans-serif;
font-size: 12px;
color: #ffffff;
}