-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
96 lines (96 loc) · 1.93 KB
/
index.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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
text-align: center;
color: white;
}
body{
background-color: #fff;
}
header{
background-color: RGB(14, 144, 154);
font-weight: normal;
font-family: sans-serif;
font-size: 1.8rem;
}
#arrow{
position: relative;
font-size: x-large;
animation: move 1s linear alternate infinite;
}
@keyframes move {
from{top: -5px} to{top: 8px}
}
#colorId{
font-weight: 800;
font-size: 2.5rem;
}
#score{
width: min(50%, 80px);
color: #429ea7;
font-weight: bold;
margin: 0 auto;
font-size: 1.3rem;
font-family: sans-serif;
border: 3px solid RGB(14, 144, 154);
border-top: 0;
border-radius: 0 0 15px 15px;
}
#container{
max-width: 600px;
margin: 10px auto;
}
@media screen and (max-width: 400px){
#container{margin: 80px auto;} #colorId{font-size: 2.2rem;}
}
.square{
background: #429ea7;
width: 30%;
padding-top: 30%;
float: right;
margin: 1.6%;
border-radius: 15px;
transition: background .5s;
cursor: pointer;
}
#correct, #wrong{
position: absolute;
bottom: 0;
width: 100%;
background: #4CAF50;
font-weight: bold;
font-size: 2rem;
padding: 5px;
opacity: 0;
transition: .5s;
}
#wrong{background: #f44336;}
#alertCont{
position: absolute;
top: 0; left: 0;
width: 100%;
background: rgba(0, 0, 0, 0.5);
height: 100%;
display: none;
justify-content: center; align-items: center;
z-index: 10;
}
#alertBox{
width: 80%; max-width: 500px;
background: #fff;
border-radius: 5px;
padding: 20px;
font-size: 1.5rem;
color: #000;
display: none;
}
#closeAlert{
width: 100%;
background: RGB(14, 144, 154);
border-radius: 5px;
padding: 5px;
border: 0;
font-weight: bold;
font-size: 1.5rem;
}