-
Notifications
You must be signed in to change notification settings - Fork 0
/
moon.css
176 lines (165 loc) · 2.96 KB
/
moon.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
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
169
170
171
172
173
174
175
176
body{
background-image: linear-gradient( #1c0522 , #7597de );
min-height: 100vh;
overflow-x: hidden;
scroll-behavior: smooth;
}
@-ms-viewport{
width: device-width;
}
header{
position: absolute;
top : 0;
left: 0;
width : 90%;
padding : 30px 85px;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 10000;
}
header .logo{
color: #fff;
font-weight: 700;
text-decoration: none;
font-size: 2em;
text-transform: uppercase;
letter-spacing: 1px;
font-family: 'popines' , sans-serif;
}
.search-box:hover > .search-txt{
width : 240px;
padding: 0 6px;
}
.search-box:hover > .search-btn{
background: #fff;
}
.search-box{
height : 20px;
padding: 10px;
background: #fff;
border-radius: 40px;
position: absolute;
left: 65%;
top : 33.5%;
transform: translate(-100%,0);
}
.search-btn{
width: 20px;
height: 20px;
float : right;
transition: 0.4s;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
}
.search-txt{
border: none;
background: none;
outline: none;
float: left;
padding: 0px 1px;
color: rgb(0, 0, 0);
font-size: 16px;
transition: 0.4s;
line-height: 20px;
width : 0px;
}
header ul{
display: flex;
justify-content: space-between;
align-items: center;
}
header ul li{
list-style: none;
margin-left: 20px;
}
header ul li a{
text-decoration: none;
padding: 10px 22px;
color: #fff;
border-radius: 20px;
}
header ul li a:hover,
header ul li a.active
{
background : #fff;
color : #2b1055;
}
section
{
position: relative;
width: 100%;
height : 100vh;
padding : 100px;
display: flex;
justify-content: center;
align-items: center;
}
section img {
position : absolute;
top : 7%;
left : 0;
width : 100%;
height : 100%;
pointer-events: none;
object-fit: cover;
}
section img#moon{
mix-blend-mode: screen;
animation: moon 100s linear infinite;
}
#mountains_frount{
z-index: 10;
}
#text{
font-family: 'popines' , sans-serif;
color: #fff;
white-space: nowrap;
font-size: 7.2vw;
z-index: 9;
}
.team{
position: absolute;
right: 2%;
top : 38%;
animation: dream 50s linear infinite;
}
#btn{
text-decoration: none;
display : inline-block;
padding: 10px 25px;
border-radius: 40px ;
color: #2b1055;
background: #fff;
font-size: 2em;
position: absolute;
top : 60%;
left : 50%;
z-index: 9;
transform: translateY(100px);
font-family: 'popines' , sans-serif;
}
.sec{
position : relative;
padding : 100px;
background: #1c0522;
}
.sec h1{
font-size: 3.5em;
margin-bottom: 10px;
color: #fff;
font-family: 'popines' , sans-serif;
}
.sec ul{
font-size: 1.5em;
color: #fff;
font-family: 'popines' , sans-serif;
}
@keyframes dream {
100%{transform: translatex(-2000px)}
}
@keyframes moon {
100%{transform: rotate(360deg);}
}