-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathstyles.css
83 lines (72 loc) · 1.32 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.hide {
display: none;
}
body {
padding: 2rem;
width: 100%;
min-height: 100vh;
background-image: linear-gradient(to right bottom, #cffafe, #22d3ee);
display: flex;
flex-direction: column;
}
.header-img {
display: flex;
width: 100%;
max-width: 600px;
margin-inline: auto;
filter: drop-shadow(5px 5px 20px rgba(0, 0, 0, 0.2));
}
.container {
flex: 1;
position: relative;
isolation: isolate;
width: 100%;
max-width: 1200px;
margin-inline: auto;
}
.image-1,
.image-2 {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.image-1 {
width: 175px;
}
.image-2 {
width: 250px;
}
.btn {
position: absolute;
top: calc(100% - 5rem);
min-width: 120px;
padding: 0.75rem 1rem;
font-size: 1.25rem;
outline: none;
border: none;
background-color: #f8fafc;
border-radius: 5px;
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
cursor: pointer;
transition: 0.3s;
}
.btn:hover {
background-color: #e2e8f0;
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}
.btn-yes {
left: 50%;
transform: translateX(calc(-100% - 1rem));
z-index: 1;
}
.btn-no {
left: calc(50% + 1rem);
transition: all 0.5s ease;
z-index: 2;
}