body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

.logo-container {
  position: fixed;
  top: 15px;
  left: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  white-space: nowrap;
  overflow: hidden;
  color: #333;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  z-index: 999;
}

.base-letter {
  display: inline-block;
  color: white;
  text-shadow: -1px -1px 0 var(--bs-gray-700), 1px -1px 0 var(--bs-gray-700), -1px 1px 0 var(--bs-gray-700), 1px 1px 0 var(--bs-gray-700);
}

.hidden-letters {
  display: inline-block;
  vertical-align: baseline;
  color: var(--bs-secondary);
  text-shadow: -1px -1px 0 #fcfbfb, 1px -1px 0 #fcfbfb, -1px 1px 0 #fcfbfb, 1px 1px 0 #fcfbfb;
}

/* THIS IS THE KEY PART FOR THE REVEAL TRANSITION */

.hidden-letters .letter {
  display: inline-block;
  overflow: hidden;
  width: 0;
  opacity: 0;
  transition: width 0.15s ease-out, opacity 0.1s ease-out;
  vertical-align: middle;
  position: relative;
  top: -0.08em;
}

.space {
  display: inline-block;
  width: 0;
  opacity: 0;
  transition: width 0.3s ease-out, opacity 0.2s ease-out;
  vertical-align: baseline;
  overflow: hidden;
}

/* Keep this rule to animate the space when expanded */

.logo-container.expanded .space {
  width: 0.3em;
  opacity: 1;
  transition-delay: 0.1s;
}

/* Optional: Reset space transition delay when not expanded */

.logo-container:not(.expanded) .space {
  transition-delay: 0s;
}

#logo-container {
  z-index: 99;
}

