-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
168 lines (157 loc) · 3.62 KB
/
style.css
File metadata and controls
168 lines (157 loc) · 3.62 KB
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
@import url('https://fonts.googleapis.com/css2?family=Darker+Grotesque&display=swap');
.body{
background: #eff1f2;
height: 100vh;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
text-align: center;
}
/* Cursor */
.txt-type > .txt {
border-right: 0.2rem solid #777;
}
@media(min-width: 1200px) {
h1 {
font-size: 3rem;
}
}
@media(max-width: 800px) {
.container {
padding: 0 1rem;
}
h1 {
font-size: 4rem;
}
}
@media(max-width: 500px) {
h1 {
font-size: 2.5rem;
}
h2 {
font-size: 1.5rem;
}
}
body, html {
margin: 0;
font-family: 'Darker Grotesque', sans-serif;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
background-color: black;
}
.star {
position: absolute;
border-radius: 50%;
background-color: white;
transition: width 1s, height 1s; /* Adiciona transição para largura e altura */
}
canvas {
position: absolute;
top: 0;
left: 0;
}
#starInfo {
position: absolute;
background-color: #000000;
min-width: 160px;
font-family: 'Darker Grotesque', sans-serif;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
padding: 12px 16px;
z-index: 1;
display: none;
}
#emotionText {
color: blue;
margin-top: 10px;
}
#introBackground {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: black;
z-index: 2; /* Atrás do texto introdutório, mas acima das estrelas */
display: block; /* Inicialmente visível */
}
#firstText {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: black;
color: white;
text-align: center;
padding-top: 350px; /* Ajuste conforme necessário */
box-sizing: border-box;
z-index: 3; /* Garante que o texto fique acima do canvas */
}
/* Estilos para esconder o texto após o clique */
.hidden {
display: none;
}
#thirdText, #fourthText {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh; /* ou min-height: 100vh; se você quiser garantir que ocupe pelo menos a altura da tela */
text-align: center;
color: white;
z-index: 3;
background-color: rgba(0, 0, 0, 0.8); /* Ou qualquer outra cor que você deseja usar */
}
#thirdText {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8); /* Fundo semitransparente */
color: white;
text-align: center;
padding-top: 350px; /* Ajuste conforme necessário */
box-sizing: border-box;
display: none; /* Inicialmente oculto */
z-index: 3; /* Acima do texto introdutório */
}
#fourText {
/* Estilos semelhantes ao #thirdText */
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8); /* Fundo semitransparente */
color: white;
text-align: center;
padding-top: 350px; /* Ajuste conforme necessário */
box-sizing: border-box;
display: none; /* Inicialmente oculto */
z-index: 4; /* Acima do texto anterior */
}
#secondText {
/* Estilos semelhantes ao #firstText e #thirdText */
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
color: white;
text-align: center;
padding-top: 350px;
box-sizing: border-box;
display: none;
z-index: 3;
}