summaryrefslogtreecommitdiff
path: root/src/css/style.css
blob: 6cd076169f9864ea59df5874d5eeb0445780be39 (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
@import url("./theme.css");
@import url("./tf.css");
@import url("./modal.css");
@import url("./editor.css");

@font-face {
  font-family: "scientifica";
  src: url("/fonts/scientifica.ttf");
}

* {
  padding: 0;
  margin: 0;
  font-family: "scientifica", monospace;
  font-smooth: never;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at top, var(--bg), transparent),
    radial-gradient(ellipse at left, var(--blue), transparent),
    radial-gradient(ellipse at right, var(--purple), transparent),
    radial-gradient(ellipse at bottom, var(--bg), transparent);
}

body {
  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;
  border-bottom: 2px solid var(--yellow);
  border-radius: 0.5rem;
}

.footer {
  border-top: 2px solid var(--yellow);
  border-radius: 0.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  text-align: center;
}

.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: 100%;
  width: auto;
  max-width: 100%;
  border: 1px solid var(--yellow);
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  background-color: var(--bg);
}

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);
}