-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
87 lines (75 loc) · 1.52 KB
/
index.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
/* Define the font family and size */
body {
font-family: Arial, sans-serif;
font-size: 16px;
}
/* Center the form */
form {
display: flex;
flex-direction: column;
align-items: center;
}
/* Style the input fields */
input[type="text"], input[type="number"] {
width: 100%;
padding: 12px;
margin: 8px 0;
box-sizing: border-box;
border: none;
border-bottom: 2px solid #ccc;
font-size: 16px;
}
/* Style the submit button */
input[type="submit"] {
background-color: #4CAF50;
color: white;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
}
input[type="submit"]:hover {
background-color: #45a049;
}
/* Style the table */
table {
border-collapse: collapse;
margin-top: 24px;
width: 100%;
max-width: 600px;
}
th, td {
text-align: center;
padding: 8px;
}
th {
background-color: #4CAF50;
color: white;
}
thead th {
position: sticky;
top: 0px;
}
td {
border-bottom: 1px solid #ddd;
}
/* Style the total scores */
tfoot td {
font-weight: bold;
}
#player1Total, #player2Total, #player3Total, #player4Total {
text-align: center;
}
/* Hide the winner row by default */
tfoot tr:last-child {
display: none;
}
/* Show the winner row when the winner is calculated */
#winner {
display: block;
font-weight: bold;
text-align: center;
margin-top: 16px;
color: #4CAF50;
}