aboutsummaryrefslogtreecommitdiff
path: root/public/main.css
blob: 2bf60521f60eb8261811fda488930dc434fed080 (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
120
121
122
123
124
125
:root {
    /* Tol Vibrant */
    /* https://cran.r-project.org/web//packages//khroma/vignettes/tol.html */
    --color-orange: #e73;
    --color-blue: #07b;
    --color-light-blue: #3be;
    --color-pink: #e37;
    --color-red: #c31;
    --color-green: #098;
    --color-gray: #bbb;
    --color-light-gray: #eee;
}

html {
    height: 100%;
    font-family: sans-serif;
}

body {
    height: 100%;
    margin: 0;
}

/* Pages */

.g-CardsPage, .g-WordPage {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

/* Cards */

.g-Score {
    position: absolute;
    top: 3vw;
    left: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    color: black;
    font-size: 4vw;
    font-weight: bold;
}

.g-Cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5vw;
    width: 100%;
    height: 100%;
}

.g-Cards > button {
    color: var(--color-blue);
    background-color: white;
    border: 1vw solid var(--color-blue);
    cursor: pointer;
    border-radius: 1vw;
    padding: 6vw 4vw;
    font-size: 5vw;
    font-weight: bold;
}

.g-Cards > button:hover {
    background-color: var(--color-light-gray);
}

/* Word */

.g-WordPage {
    display: none;
    flex-direction: column;
    justify-content: space-evenly;
}

@keyframes appear {
    from {opacity: 0}
    to {opacity: 1}
}

.g-Word {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10vw;
    font-weight: bold;
    color: var(--color-blue);
    opacity: 0;
    animation: appear 2s ease-in 2s 1 normal forwards;
}

.g-Buttons {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 10vw;
}

.g-Buttons > button {
    padding: 1vw 3vw;
    cursor: pointer;
    font-size: 8vw;
    border-width: 1vw;
    border-style: solid;
    border-radius: 1vw;
    background-color: white;
}

.g-Buttons > button:hover {
    background-color: var(--color-light-gray);
}

.g-Good {
    color: var(--color-green);
    border-color: var(--color-green);
}

.g-Bad {
    color: var(--color-red);
    border-color: var(--color-red);
}