@import url("https://fonts.googleapis.com/css2?family=Victor+Mono:ital,wght@0,100..900;1,100..900&display=swap");

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: black;
  color: lightgrey;
  font-family: "Victor Mono", monospace;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.row {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.list {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  position: absolute;
  will-change: transform;
}

.list__item {
  padding: 4px 1px;
  display: inline-flex;
  color: lightgrey;
  white-space: nowrap;
  box-sizing: border-box;
  font-family: "Victor Mono", monospace;
  font-weight: 300;
}

/* Link styling for list items */
.list__item a {
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: transform 0.3s ease;
  display: inline-block;
  border-bottom: solid 1px #1e1e1e;
  font-variant: small-caps;
  text-transform: lowercase;
}

.list__item a:hover {
  transform: translateY(-3px);
  border-bottom: solid 1px #3c3c3c;
}

.word-container {
  display: inline-flex;
  margin: 0 12px;
}

.letter {
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
  /* Removed any border properties */
}

.linked-word:hover .letter {
  color: white;
  transform: translateY(-2px);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: rgba(0, 0, 0, 1);
  /* Initially the overlay should grab pointer events for the logo click */
  pointer-events: auto;
  transition: background 1.5s ease-out;
}

/* Logo layout */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  position: relative;
}

.letter-group {
  display: flex;
  align-items: center;
  justify-content: center;
}

.letter-box {
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 0.5em black, 0 0 1em black;
  font-size: calc(10vw + 10vh);
  font-weight: 900;
  color: white;
  font-family: "Victor Mono", monospace;
  /* Removed debugging border */
  width: 1em;
  height: 1.2em;
}

.circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: white;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.1em;
}

.circle-inner-text {
  position: relative;
  font-size: 0.9rem;
  font-family: "Victor Mono", monospace;
  font-weight: 600;
  font-variant: small-caps;
  text-transform: lowercase;
  mix-blend-mode: difference;
  color: white;
  z-index: 1;
}

/* Media Query: Adjust layout for small screens */
@media (max-width: 48em) {
  .logo-container {
    flex-direction: column;
  }
  .letter-group {
    flex-direction: row;
  }
  .letter-box {
    font-size: calc(15vw + 10vh);
  }
  .circle {
    margin: 0.1em 0;
  }
  .list__item {
    padding: 2px 0;
    font-size: 0.9rem;
  }
  .word-container {
    margin: 0 8px;
  }
}
/* Extra small screens */
@media (max-width: 30em) {
  .letter-box {
    font-size: calc(12vw + 8vh);
  }
  .circle {
    width: 40px;
    height: 40px;
  }
  .circle-inner-text {
    font-size: 0.7rem;
  }
  .word-container {
    margin: 0 6px;
  }
}
