File size: 3,145 Bytes
0b0fda2
 
 
 
 
 
 
 
b11895a
 
0b0fda2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b11895a
 
0b0fda2
 
 
 
 
 
b11895a
 
0b0fda2
 
 
 
 
 
 
 
 
b11895a
 
0b0fda2
 
b11895a
 
0b0fda2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b11895a
 
0b0fda2
 
 
 
b11895a
 
0b0fda2
 
 
b11895a
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
/* Global Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f4f9; /* Latar belakang terang */
  color: #333; /* Teks terang */
  transition: all 0.3s ease; /* Haluskan transisi untuk perubahan */
}

/* Mode Gelap */
body.dark-mode {
  background-color: #333; /* Latar belakang gelap */
  color: white; /* Teks putih untuk gelap */
}

/* Header */
header {
  background: #6200ea; /* Warna header terang */
  padding: 15px;
  color: white;
  text-align: center;
  transition: background-color 0.3s ease; /* Haluskan perubahan warna latar */
}

header.dark-mode {
  background-color: #444; /* Warna header saat mode gelap */
}

header nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
}

header nav ul li {
  margin: 0 15px;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

header nav ul li a:hover {
  color: #ffcc00; /* Warna saat hover */
}

/* Tombol Mode Gelap */
#toggleDarkMode {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px 10px;
  margin-left: 20px;
}

#toggleDarkMode:hover {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

/* Section */
section {
  padding: 40px;
  text-align: center;
  opacity: 0;
  animation: fadeIn 1s forwards; /* Animasi muncul */
}

/* Kotak Project */
.project {
  border: 1px solid #ccc;
  padding: 20px;
  margin: 10px auto;
  max-width: 500px;
  border-radius: 10px;
  background: #f9f9f9;
  transition: transform 0.3s ease, background-color 0.3s ease; /* Tambahkan transisi untuk background */
}

.project:hover {
  transform: scale(1.05); /* Efek saat hover */
}

/* Mode Gelap - Kotak Project */
body.dark-mode .project {
  background: #444; /* Ubah latar belakang kotak saat mode gelap */
  border-color: #666; /* Ubah warna border untuk mode gelap */
}

#chatbox {
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #6200ea;
  border-radius: 5px;
  display: none;
  transition: all 0.3s ease;
}

/* Mode Gelap - Chatbox */
body.dark-mode #chatbox {
  background-color: #444; /* Ubah latar belakang chatbox saat mode gelap */
  color: white; /* Ubah warna teks menjadi putih */
  border-color: #6200ea; /* Tetap pertahankan border berwarna ungu */
}

footer {
  text-align: center;
  padding: 10px;
  background: #6200ea;
  color: white;
}

/* Mode Gelap - Footer */
body.dark-mode footer {
  background-color: #444; /* Ubah warna footer saat mode gelap */
}

footer p {
  margin: 0;
}

/* Animasi Fade In */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Responsive Design untuk Layar Kecil (Mobile) */
@media (max-width: 768px) {
  header nav ul {
    flex-direction: column;
  }

  header nav ul li {
    margin-bottom: 10px;
  }

  section {
    padding: 20px;
  }

  .project {
    max-width: 90%;
    margin: 10px;
  }

  #chatMessage {
    font-size: 1rem;
  }
}

/* Efek Halus untuk Tombol dan Links */
button, a {
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover, a:hover {
  background-color: #6200ea;
  color: white;
}