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

html, body {
  height: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  font-family: "Roboto", sans-serif;
  font-weight: 800;
}

.card {
  width: min(90vw, 580px);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

#changingColors {
  font-size: clamp(1.2rem, 2.8vw, 1.8rem);
  color: #555;
  line-height: 1.5;
}

#changingColors small {
  font-size: 0.6em;
  vertical-align: middle;
}

.letter {
  transition: color 0.8s ease-in-out;
}

.page-dots {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 100;
}

.pd-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.2s, width 0.25s;
  flex-shrink: 0;
}

.pd-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.pd-dot[aria-current="page"] {
  width: 20px;
  background: rgba(255, 255, 255, 0.9);
}

.pd-arrow {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0 3px;
  transition: color 0.2s;
}
.pd-arrow:hover { color: rgba(255, 255, 255, 0.9); }
