-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
104 lines (89 loc) · 1.61 KB
/
styles.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
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
:root{
--primary-color: #816797;
--dark-color: #1B2430;
--light-color: #F7E2E2;
--lose-color:#F05454;
--win-color:#9AE66E;
}
*{
box-sizing: border-box;
padding: 0;
margin: 0;
}
body{
font-family: 'Roboto',sans-serif;
line-height: 1.6;
background-color: #fff;
color: #333;
background-color:#F9F2ED;
}
.container{
max-width: 1100px;
margin: auto;
overflow: hidden;
padding: 0 2rem;
text-align: center;
}
.restart-btn{
display: inline;
background: #F87474;
color: #333;
padding: 0.4rem 1.3rem;
font-size: 1rem;
margin-bottom: 1.5rem;
outline: none;
border: none;
}
.restart-btn:hover{
background-color: var(--primary-color);
color: #fff;
}
.header{
text-align: center;
margin: 1rem 0 ;
}
.header h1 {
margin-bottom: 1rem;
}
.score {
display: grid;
grid-template-columns: repeat(2,1fr);
font-size: 1.2rem;
color: #fff;
}
.score p:first-child{
background-color: var(--primary-color);
}
.score p:last-child{
background-color: var(--dark-color);
}
.choices{
display: grid;
grid-template-columns: repeat(3,1fr);
gap: 2rem;
margin-top: 3rem;
text-align: center;
}
.choice{
cursor: pointer;
}
.choice:hover{
color: var(--primary-color);
}
.text-win{
color: var(--win-color);
}
.text-lose{
color: var(--lose-color);
}
@media(max-width: 700px){
.choice{
font-size: 110px;
}
}
@media(max-width: 500px){
.choice{
font-size: 80px;
}
}