-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
99 lines (94 loc) · 1.75 KB
/
style.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
96
97
98
99
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
/* colors */
--light-cyan: hsl(193, 38%, 86%);
--neon-green: hsl(150, 100%, 66%);
--grayish-blue: hsl(217, 19%, 38%);
--grayish-dark-blue: hsl(217, 19%, 24%);
--dark-blue: hsl(218, 23%, 16%);
/* font */
--quote: 28px;
}
/* utlities */
body {
height: 100vh;
width: 100vw;
background: var(--dark-blue);
display: flex;
align-items: center;
justify-content: center;
font-family: sans-serif;
}
.hidden {
display: none;
}
/* advice */
.container {
max-width: 400px;
position: relative;
padding: 2rem 1.5rem;
background: var(--grayish-dark-blue);
border-radius: 0.5rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.container p {
color: var(--neon-green);
text-align: center;
padding: 1rem 0;
letter-spacing: 0.25rem;
text-transform: uppercase;
font-size: 0.75rem;
}
.container h1 {
font-size: var(--quote);
text-align: center;
line-height: 1.2;
color: var(--light-cyan);
min-height: 150px;
display: flex;
align-items: center;
justify-content: center;
}
.img-mobile.active {
display: block;
padding: 1.5rem 0;
margin: 0 auto;
}
.img-desktop {
display: none;
width: 100%;
}
.dice-container {
position: absolute;
display: block;
padding: 1.25rem;
left: 43%;
bottom: -2rem;
background: var(--neon-green);
border-radius: 100%;
cursor: pointer;
transition: box-shadow 0.25s ease;
}
.dice-container:hover {
box-shadow: 0 0 10px 5px var(--neon-green);
}
@media only screen and (min-width: 600px) {
.container {
min-height: 250px;
min-width: 500px;
}
.img-mobile.active {
display: none;
}
.img-desktop.active {
padding: 2.5rem 0;
display: block;
}
}