-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
95 lines (83 loc) · 1.91 KB
/
styles.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
@font-face {
font-family: 'AtkinsonHyperlegible';
src: url('./AtkinsonHyperlegible-Regular.ttf') format('woff2'),
url('./AtkinsonHyperlegible-Regular.ttf') format('woff');
font-weight: normal;
font-style: normal;
}
:root { /*Light Mode*/
--background-color: #ffffff;
--text-color: #000000;
--border-color: #000000;
--button-background: #e0e0e0;
--button-text: #000000;
--macchiato-text: #24273a;
--macchiato-link: #8aadf4;
--macchiato-link-hover: #b7bdf8;
}
body.dark-mode {
--background-color: #24273a;
--text-color: #cad3f5;
--border-color: #cad3f5;
--button-background: #494d64;
--button-text: #cad3f5;
--macchiato-text: #cad3f5;
--macchiato-link: #8aadf4;
--macchiato-link-hover: #b7bdf8;
}
body {
background-color: var(--background-color);
color: var(--text-color);
text-align: center;
font-family: 'AtkinsonHyperlegible', fallback, sans-serif;
}
#snekGame {
border: 3px solid var(--border-color);
width: 100%;
height: auto;
max-width: 500px;
}
.button {
display: flex;
justify-content: center;
align-items: center;
outline: 0;
padding: 8px 16px;
border-radius: 6px;
font-size: 13px;
background: var(--button-background);
color: var(--button-text);
border: 2px solid transparent;
cursor: pointer;
transition: background 0.3s, color 0.3s;
}
.button:hover {
background: var(--button-text);
color: var(--button-background);
}
.reset-button {
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 50%;
margin-top: 20px;
}
#scoreTxt {
font-size: 30px;
}
#toggleDarkMode {
position: absolute;
top: 10px;
right: 10px;
}
p {
color: var(--macchiato-text);
}
p a {
color: var(--macchiato-link);
text-decoration: none;
transition: color 0.3s;
}
p a:hover {
color: var(--macchiato-link-hover);
}