-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
120 lines (104 loc) · 1.76 KB
/
style.css
File metadata and controls
120 lines (104 loc) · 1.76 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
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
/* General Styles */
body {
background-color: #f4f4f4;
font-family: "Arial", sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
}
/* Scoreboard Styles */
.scoreBoard {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 1rem;
margin-bottom: 2rem;
}
.pscreen,
.cscreen {
background-color: #333;
color: #fff;
height: 150px;
width: 200px;
border-radius: 8px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
border: 2px solid #fff;
}
.pscreen b,
.cscreen b {
font-size: 1.2rem;
margin-bottom: 0.5rem;
}
button {
font-family: "Arial", sans-serif;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 4px;
padding: 10px 20px;
margin: 5px;
cursor: pointer;
font-size: 1rem;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #0056b3;
}
button:active {
background-color: #004085;
}
#Restart {
background-color: #dc3545;
}
#Restart:hover {
background-color: #c82333;
}
#Restart:active {
background-color: #bd2130;
}
/* Media Queries for Responsiveness */
@media (max-width: 768px) {
.scoreBoard {
flex-direction: column;
align-items: center;
}
.pscreen,
.cscreen {
width: 80%;
height: auto;
padding: 1rem;
font-size: 0.9rem;
}
.button {
flex-direction: column;
}
button {
width: 80%;
padding: 12px;
font-size: 1rem;
margin: 5px 0;
}
}
@media (max-width: 480px) {
.scoreBoard {
margin-bottom: 1rem;
}
.pscreen,
.cscreen {
width: 90%;
font-size: 0.8rem;
}
.button button {
width: 90%;
padding: 10px;
font-size: 0.9rem;
}
}