blob: c14682bf1c4049061a9936fcf22eb3b95a9b680b (
plain)
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
|
@import url("./theme.css");
@import url("./tf.css");
@import url("./modal.css");
@font-face {
font-family: "scientifica";
src: url("/fonts/scientifica.ttf");
}
* {
padding: 0;
margin: 0;
font-family: "scientifica", monospace;
transition: background 0.2s ease-in-out;
font-smooth: never;
}
html,
body {
margin: 0;
width: 100%;
height: 100%;
}
body {
background-color: var(--bg);
color: var(--text);
}
a {
color: var(--blue);
}
a:visited {
color: var(--blue);
}
.main {
min-height: 100vh;
display: grid;
grid-template-rows: auto 1fr auto;
min-width: 600px;
width: 70%;
margin-left: auto;
margin-right: auto;
padding: 0;
}
.header {
display: flex;
justify-content: space-around;
padding-top: 1rem;
padding-bottom: 1rem;
}
.content {
border-top: 1px solid var(--yellow);
border-bottom: 1px solid var(--yellow);
max-height: 90vh;
}
.footer {
padding-top: 1rem;
padding-bottom: 1rem;
}
.nav {
display: flex;
}
.title {
text-decoration: none;
}
.title:hover {
text-decoration: underline;
cursor: pointer;
}
.centered-game {
display: flex;
justify-content: center;
align-items: center;
padding: 1rem;
height: 100%;
flex-direction: column;
gap: 1rem;
}
.centered-game canvas {
display: block;
max-height: 90%;
width: auto;
max-width: 100%;
border: 1px solid var(--yellow);
border-radius: 0.5rem;
margin: 0;
}
.code {
width: 100%;
}
button {
padding: 0.5rem;
border: none;
border-radius: 0.5rem;
background-color: var(--yellow);
color: var(--bg);
cursor: pointer;
transition: background 0.2s ease-in-out;
}
button:hover {
background-color: var(--blue);
}
.syntax-error {
color: var(--red);
background-color: var(--yellow);
}
|