-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
54 lines (47 loc) · 1.15 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
/* Use the same font and text alignment styles */
body {
font-family: Arial, sans-serif;
text-align: center;
}
/* Center the game components and allow wrapping for smaller screens */
.game-container {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
}
/* Center-align the choice container and style the images */
.choice-container {
text-align: center;
margin: 10px;
}
.choice-container img {
width: 150px;
height: 150px;
}
/* Improve button styling: center buttons and enhance hover effect */
.choice-container button {
display: block;
margin: 10px auto; /* Center buttons horizontally */
padding: 10px 20px;
font-size: 16px;
background-color: #4CAF50;
color: white;
border: none;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s; /* Smooth button hover effect */
}
.choice-container button:hover {
background-color: #45a049;
}
/* Keep the h1 and result styles as before */
h1 {
color: #333;
}
#result {
margin-top: 20px;
font-size: 20px;
font-weight: bold;
text-align: center; /* Center-align the result text */
}