-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
96 lines (84 loc) · 1.5 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
:root {
--background-color: #5f5f5f;
--main-bg-color: #fff;
--text-color: #333;
--subtext-color: #666;
}
* {
box-sizing: border-box;
}
body:before {
content: " ";
display: block;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 1;
opacity: 0.4;
background-image: url("img/bg.jpg");
background-repeat: no-repeat;
background-position: 50% 0;
background-size: cover;
}
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: var(--background-color);
background-size: cover;
background-position: center;
}
main {
position: relative;
background-color: var(--main-bg-color);
padding: 20px 40px;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
text-align: center;
max-width: 90%;
z-index: 2;
}
main::before {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -10px;
border-width: 10px;
border-style: solid;
border-color: var(--main-bg-color) transparent transparent transparent;
}
#setup {
font-size: 2rem;
font-weight: bold;
margin-bottom: 10px;
color: var(--text-color);
}
#punchline {
font-size: 1.5rem;
color: var(--subtext-color);
}
#setup i,
#punchline i {
margin-top: 20px;
}
i {
cursor: pointer;
}
/* Media Query para dispositivos más pequeños */
@media (max-width: 768px) {
main {
padding: 10px 10px;
}
#setup {
font-size: 1.5rem;
}
#punchline {
font-size: 1.2rem;
}
}