/*
Asgn "homepage", CS50x 2026. by JunZ kaboomzxc
https://cs50.harvard.edu/x/2026/psets/8/homepage/
.
https://cs50.harvard.edu/x/2026/notes/8/
.
*/

/* ---- Body ---- */
body {
  color: #222222;
  line-height: 1.8;
}

/* ---- Headings ---- */
h1 {
  letter-spacing: -0.5px;
}

h2 {
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 0.4rem;
}

/* ---- Blockquote ---- */
blockquote.blockquote {
  border-left: 3px solid #cccccc;
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

.blockquote-footer {
  color: #888888;
}

/* ---- Footer ---- */
footer {
  font-size: 1.00rem;
  color: #888888;
}

footer a {
  color: #888888;
}

footer a:hover {
  color: #222222;
}

/* ---- Skill list ---- */
#skill-list {
  line-height: 2;
}

/* ---- Book list ---- */
#booklist li {
  margin-bottom: 0.4rem;
}

/* ---- Hobbies list ---- */
#hobbies-body li,
#hobbies-mind li,
#hobbies-craft li {
  cursor: pointer;
  margin-bottom: 0.3rem;
}

/* ---- Wave animation ---- */
.wave {
  display: inline-block;
}


@keyframes bounce {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-6px); }
  60%  { transform: translateY(2px); }
  100% { transform: translateY(0); }
}

/* ---- Dark mode toggle ---- */
.dark-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  margin-left: 1rem;
}

.toggle-pill {
  width: 64px;
  height: 28px;
  background: #e0e0e0;
  border-radius: 999px;
  position: relative;
  transition: background 0.3s;
}

.toggle-thumb {
  width: 28px;
  height: 22px;
  background: #ffffff;
  border-radius: 999px;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: left 0.3s;
}

.sun-pos {
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  pointer-events: none;
}

.moon-pos {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  pointer-events: none;
}

/* Dark mode toggle active state */
body.dark .toggle-pill {
  background: #333333;
}

body.dark .toggle-thumb {
  left: 33px;
}

/* ---- Dark mode colours ---- */
body.dark {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark .navbar {
  background-color: #1a1a1a !important;
  border-color: #333333 !important;
}

body.dark .navbar-brand,
body.dark .nav-link {
  color: #e0e0e0 !important;
}

body.dark .nav-link:hover {
  color: #ffffff !important;
}

body.dark hr {
  border-color: #333333;
}

body.dark h2 {
  border-color: #333333;
}

body.dark blockquote.blockquote {
  border-left-color: #555555;
  color: #cccccc;
}

body.dark .blockquote-footer {
  color: #888888;
}

body.dark a {
  color: #aaaaaa;
}

body.dark a:hover {
  color: #ffffff;
}

body.dark footer {
  color: #888888;
  border-color: #333333 !important;
}

body.dark footer a {
  color: #888888;
}

body.dark footer a:hover {
  color: #e0e0e0;
}
