summaryrefslogtreecommitdiff
path: root/public/styles.css
blob: 720aadbdaccd7cbf5c7821f0eb755adc5470760e (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
:root {
  --bg-a: #fdf2e4;
  --bg-b: #f2e5d5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  font-family: "Alegreya Sans", sans-serif;
  background: radial-gradient(circle at 50% 20%, var(--bg-a) 0%, var(--bg-b) 100%);
  overflow-x: hidden;
}

.app-shell {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.wheel-area {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 0.75rem;
  animation: riseIn 650ms ease-out both;
}

#wheel {
  width: min(92vmin, 640px);
  height: auto;
  border-radius: 50%;
  box-shadow: inset 0 0 0 10px #fdf6ea, 0 10px 24px rgba(31, 27, 24, 0.2);
}

.pointer {
  position: absolute;
  top: 8px;
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 30px solid #2f3e46;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.2));
}

@keyframes riseIn {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .pointer {
    top: 8px;
  }
}