@font-face {
  font-family: 'Share Tech Mono';
  src: url('fonts/ShareTechMono-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: #000;
  font-family: 'Share Tech Mono', monospace;
  height: 100%;
  width: 100%;
  transition: background-color 0.3s, color 0.3s;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#timer {
  font-size: 120px;
  color: #ff0000;
  text-align: center;
  letter-spacing: 4px;
}

body.light {
  background-color: #fff;
  color: #000;
}

body.light #timer {
  color: #cc0000;
}

#toggle-theme {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 16px;
  background-color: #444;
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: 'Share Tech Mono', monospace;
}

body.light #toggle-theme {
  background-color: #ddd;
  color: #000;
}

/* 기존 코드 생략 후 추가 부분만 아래에 명시 */

#question {
  font-size: 24px;
  color: #fff;
  margin-bottom: 20px;
  font-family: 'Share Tech Mono', monospace;
}

body.light #question {
  color: #000;
}

@keyframes glow {
  0% { text-shadow: 0 0 5px #fff; opacity: 1; }
  50% { text-shadow: 0 0 20px #fff; opacity: 0.6; }
  100% { text-shadow: 0 0 5px #fff; opacity: 1; }
}

.rainbow-letter {
  animation: glow 2s infinite;
}
