@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background: #fff;
  color: #000;
  font-family: 'IBM Plex Mono', monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 1.5rem;
}

main {
  width: 100%;
  max-width: 600px;
  text-align: left;
}

#footer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
  opacity: 0.7;
  font-size: clamp(0.8rem, 3vw, 0.9rem);
}

h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

#cursor {
  display: inline-block;
  margin-left: 3px;
  opacity: 1;
  transition: opacity 0.1s;
}

.blink {
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.folder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.update-time {
  font-size: 0.8rem;
  opacity: 0.5;
  margin-left: 1rem;
  font-family: 'IBM Plex Mono', monospace;
}

.folders {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.folders.show {
  opacity: 1;
}

.folders a {
  position: relative;
  color: #000;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(1rem, 3.5vw, 1.1rem);
  transition: opacity 0.3s;
}

.folders a:hover {
  opacity: 0.5;
}

.update-dot {
  width: 7px;
  height: 7px;
  background: red;
  border-radius: 50%;
  animation: blinkDot 1s infinite;
}

@keyframes blinkDot {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}


p {
  opacity: 0;
  margin-top: 1.8rem;
  font-size: clamp(0.8rem, 3vw, 0.9rem);
  transition: opacity 1.2s ease-in-out;
}

p.show {
  opacity: 0.6;
}

@media (max-width: 500px) {
  body {
    align-items: flex-start;
    padding-top: 20vh;
  }

  h1, .folders, p {
    text-align: center;
  }
}

#modeToggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: none;
  border: 1px solid #000;
  padding: 5px 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, opacity 0.3s ease;
  opacity: 1;
  z-index: 5;
}

#modeToggle:hover {
  opacity: 0.6;
}

body, a, #modeToggle {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

html.dark, html.dark body {
  background: #000;
  color: #fff;
}

html.dark a {
  color: #fff;
  border-color: #fff;
}

html.dark #modeToggle {
  border: 1px solid #fff;
  color: #fff;
}
