-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
145 lines (135 loc) · 2.64 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
134
135
136
137
138
139
140
141
142
143
144
145
@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Oswald&display=swap");
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
:root {
--yellow: #ffc538;
--red: #fb778b;
--green: #5ab7ac;
--black: #121212;
--grey: #cbcadad9;
--ff-comfortaa: "Comfortaa", cursive;
--ff-oswald: "Oswald", sans-serif;
}
body {
background-color: var(--black);
font-family: var(--ff-comfortaa);
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
}
main.container {
width: 100%;
min-width: 300px;
max-width: 800px;
margin: auto;
padding: 1rem;
}
/** --------- SCORE-CARD --------- */
section.score-card {
display: flex;
flex-direction: column;
align-items: center;
box-shadow: 3px 3px 1250px 1px;
color: var(--grey);
border-radius: 5px;
padding: 0.5rem;
}
.score-card .top {
font-family: var(--ff-oswald);
color: var(--red);
width: 100%;
text-align: right;
font-size: 1.2rem;
margin-bottom: 1rem;
}
.score-card .score {
color: var(--grey);
font-size: 1.8rem;
}
.score-card .description {
width: 90%;
color: var(--grey);
margin: 1rem 0;
padding-bottom: 1.2rem;
border-bottom: 1px solid var(--grey);
text-align: center;
}
/** --------- IMAGES --------- */
article.selection {
display: flex;
gap: 0.8rem;
}
.selection img {
width: 80px;
border-radius: 50%;
}
.selection img:hover {
box-shadow: 0px 5px 20px var(--grey);
cursor: pointer;
}
/** --------- CHOICES --------- */
.choice-section {
margin-top: 3rem;
text-align: center;
}
.choice-section img {
border-radius: 50%;
width: 60%;
}
article.choices {
display: flex;
justify-content: center;
}
/*? RESULT */
.message {
font-family: "Oswald", sans-serif;
margin-top: 1.5rem;
padding: 1rem 0;
transition: all 0.5s ease;
text-align: center;
color: white;
}
/** --------- MODAL-CARD --------- */
section.modal-card {
display: none;
width: 90%;
}
.modal-card.show {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
align-items: center;
justify-content: center;
color: white;
}
article.modal {
background-color: var(--red);
text-align: center;
padding: 2rem 3rem;
width: 500px;
max-width: 100%;
font-size: 1.5rem;
border-radius: 20px;
}
.modal button {
font-family: var(--ff-comfortaa);
font-size: 1.3rem;
color: var(--red);
border: none;
border-radius: 20px;
padding: 1rem;
margin-top: 1rem;
cursor: pointer;
}
.modal button:hover {
transform: translate(3px, 0px);
transition: all 0.5s;
background-color: var(--black);
}