Newer
Older
body {
margin: 0;
padding: 0;
}
nav {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding: 0 5px 0 5px;
}
nav button {
border: 1px solid black;
width: 30px;
height: 30px;
border-radius: 5px;
background: lightgreen;
cursor: pointer;
}
nav button:hover {
background: red;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: absolute;
top: -200px;
background-color: rgba(0, 0, 0, 0.5);
padding: 20px 0px 20px 0px;
width: auto;
text-decoration: none;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: white;
}
.dropdown-content a:hover {
color: red;
}
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
.dropdown-content.active {
position: relative;
top: 0px;
transition: ease 1s;
height: 200px;
}
.dropdown-content.active a:nth-child(1) {
top: 0px;
transition: 1.2s;
}
.dropdown-content.active a:nth-child(2) {
top: 0px;
transition: 1s;
}
.dropdown-content.active a:nth-child(3) {
top: 0px;
transition: 0.8s;
}
.dropdown-content.active a:nth-child(4) {
top: 0px;
transition: 0.6s;
}
.menu-btn-1 {
height: 32px;
width: 40px;
cursor: pointer;
}
.menu-btn-1 span,
.menu-btn-1 span::before,
.menu-btn-1 span::after {
background: red;
border-radius: 3px;
content: "";
position: absolute;
width: 40px;
height: 6px;
margin-top: 13px;
transition: 0.3s ease-in-out;
}
.menu-btn-1 span::before {
margin-top: -12px;
}
.menu-btn-1 span::after {
margin-top: 12px;
}
.menu-btn-1.active span {
background: transparent;
}
.menu-btn-1.active span::before {
margin-top: 0;
transform: rotate(45deg);
}
.menu-btn-1.active span::after {
margin-top: 0;
transform: rotate(-45deg);
}
header {
background-position: center;
background-repeat: no-repeat;
background-size: cover;
background-image: url("../img/bitcoin-crypto-investment.jpeg");
height: 300px;
width: 100%;
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
}
.menu-btn-1 {
height: 32px;
width: 40px;
cursor: pointer;
}
.menu-btn-1 span,
.menu-btn-1 span::before,
.menu-btn-1 span::after {
background: white;
border-radius: 3px;
content: "";
position: absolute;
width: 30px;
height: 3px;
margin-top: 16px;
transition: 0.3s ease-in-out;
}
.menu-btn-1 span::before {
margin-top: -12px;
}
.menu-btn-1 span::after {
margin-top: 12px;
}
.menu-btn-1.active span {
background: transparent;
}
.menu-btn-1.active span::before {
margin-top: 0;
transform: rotate(45deg);
}
.menu-btn-1.active span::after {
margin-top: 0;
transform: rotate(-45deg);