-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
133 lines (114 loc) · 2.27 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
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
126
127
128
129
130
131
132
133
/* Base Styles */
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #f4f4f4;
margin: 0;
font-family: 'Arial', sans-serif;
}
.container {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
padding: 20px;
background-color: #F5F7FA;
}
/* Advice Card Styling */
.advice-card {
background-color: #1f2632;
padding: 2rem;
border-radius: 15px;
text-align: center;
position: relative;
max-width: 400px;
width: 100%;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.advice-id {
color: #52ffa8;
font-size: 0.85rem;
letter-spacing: 0.2rem;
margin-bottom: 1rem;
}
.advice-text {
color: #ffffff;
font-size: 1.5rem;
margin-bottom: 2rem;
line-height: 1.5;
}
.divider {
background-image: url('images/pattern-divider-desktop.svg');
height: 16px;
width: 100%;
margin-bottom: 2rem;
background-repeat: no-repeat;
background-position: center;
}
.dice-button {
background-color: #52ffa8;
border: none;
border-radius: 50%;
padding: 20px;
position: absolute;
left: 50%;
bottom: -30px;
transform: translateX(-50%);
cursor: pointer;
box-shadow: 0 5px 15px rgba(82, 255, 168, 0.5);
transition: all 0.3s ease;
}
.dice-button img {
width: 24px;
height: 24px;
}
.dice-button:hover {
box-shadow: 0 8px 25px rgba(82, 255, 168, 0.7);
}
@media (max-width: 768px) {
.advice-card {
max-width: 350px;
padding: 1.5rem;
}
.advice-text {
font-size: 1.25rem;
}
.divider {
background-image: url('images/pattern-divider-mobile.svg');
height: 12px;
}
.dice-button {
padding: 15px;
bottom: -25px;
}
.dice-button img {
width: 20px;
height: 20px;
}
}
@media (max-width: 480px) {
.container {
padding: 10px;
}
.advice-card {
max-width: 100%;
padding: 1rem;
}
.advice-text {
font-size: 1.1rem;
margin-bottom: 1.5rem;
}
.divider {
height: 10px;
}
.dice-button {
padding: 12px;
bottom: -20px;
}
.dice-button img {
width: 18px;
height: 18px;
}
}