-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
155 lines (137 loc) · 2.63 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
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
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
body{
font-family: "Poppins", serif;
}
/* Dark mode styles */
body.dark-mode {
background-color: #121212;
color: #ffffff;
}
html{
scroll-behavior: smooth;
}
.nav_container {
display: flex;
justify-content: space-between;
position: sticky;
}
.darkMode {
background-color: transparent;
border: none;
}
header {
background-color: blue;
box-shadow: 0 4px 8px rgba(59, 32, 213, 0.1), 0 2px 4px rgba(91, 34, 212, 0.05);
padding: 5px;
height: 10vh;
}
body.dark-mode header{
background-color: #333;
}
.logo{
font-size: 1.5rem;
color: white;
}
.nav_menu {
position: fixed;
top: 55px;
right: 0;
width: 250px;
height: auto;
border-radius: 0px 0px 10px 10px;
background-color: #0000FF;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05);
color: white;
padding: 0.5rem 0.5rem;
display: flex;
flex-direction: column;
align-items: flex-start;
transform: translateX(100%);
opacity: 0;
transition: transform 0.3s ease, opacity 0.3s ease;
z-index: 100;
max-height: 90vh;
overflow-y: auto;
}
.nav_menu ul {
list-style: none;
width: 100%;
padding: 0;
}
.nav_menu li {
margin-bottom: 1rem;
}
.nav_link {
color: white;
text-decoration: none;
font-size: 1.2rem;
}
.nav_link:hover {
color: #ddd;
}
.nav_menu.active {
transform: translateX(0);
opacity: 1;
}
body.dark-mode .nav_menu {
background-color: #444444;
}
body.dark-mode .nav_link {
color: #ddd;
}
body.dark-mode .nav_link:hover {
color: #ffffff;
}
/* Menu icon */
.menu-icon {
display: inline;
font-size: 1.5rem;
background: none;
border: none;
color: white;
cursor: pointer;
}
body.dark-mode .menu-icon {
color: #ddd;
background-color: transparent;
}
body.dark-mode .menu-icon:hover {
color: #ddd;
background-color: transparent;
}
.close-icon {
display: none;
background-color: transparent;
border: none;
cursor: pointer;
display: inline;
font-size: 1rem;
background: none;
border: none;
color: #fff;
cursor: pointer;
}
body.dark-mode .close-icon {
color: #ddd;
background-color: transparent;
}
.zoom-card {
transition: transform 0.3s ease;
}
.zoom-card:hover {
transform: scale(1.05);
}
.button{
display: flex;
justify-content: space-between;
}
body.dark-mode .card-text{
color: #121212;
}
body.dark-mode .card-title{
color: #121212;
}
/* Dark mode styles */
body.dark-mode .card {
box-shadow: 0 4px 8px rgba(33, 244, 14, 0.3), 0 2px 4px rgba(255, 255, 255, 0.1);
}