* {
  box-sizing: border-box;
}

html {
  background: #000;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: "Courier New", monospace;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

button {
  font-family: inherit;
  cursor: pointer;
}

#entry {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#entry-bg,
#background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#entry-bg {
  opacity: .5;
}

.entry-center {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}

.small {
  color: #888;
  font-size: 10px;
  letter-spacing: 6px;
  text-align: center;
}

.entry-title {
  font-size: clamp(25px, 8vw, 75px);
  font-weight: bold;
  letter-spacing: -3px;
}

.line {
  width: 50px;
  height: 1px;
  background: #777;
  margin: 35px auto;
}

#enter {
  background: transparent;
  color: white;
  border: 1px solid #888;
  padding: 17px 35px;
  font-size: 11px;
  letter-spacing: 4px;
  transition: .3s;
}

#enter:hover {
  background: white;
  color: black;
}

.hint {
  color: #555;
  font-size: 9px;
  letter-spacing: 3px;
  margin-top: 25px;
}

.entry-bottom {
  position: absolute;
  bottom: 25px;
  color: #555;
  font-size: 9px;
  letter-spacing: 4px;
}

#website {
  min-height: 100vh;
  position: relative;
}

#background {
  z-index: 0;
}

header {
  height: 65px;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 5;
  border-bottom: 1px solid #ffffff12;
  color: #777;
  font-size: 9px;
  letter-spacing: 3px;
}

#hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 70px 10px 100px;
}

#hero > .small {
  margin-bottom: 35px;
}

#ascii-logo {
  position: relative;
  z-index: 2;
  color: white;
  font-weight: bold;
  font-family: monospace;
  line-height: .85;
  font-size: clamp(3px, .65vw, 9px);
  white-space: pre;
  max-width: 100%;
  overflow: hidden;
  text-shadow: 0 0 12px #ffffff33;
}

.subtitle {
  color: #777;
  font-size: 9px;
  letter-spacing: 4px;
  margin-top: 30px;
}

.separator {
  color: #777;
  letter-spacing: 12px;
  margin-top: 45px;
}

#friends-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.friend-cloud {
  position: absolute;
  pointer-events: auto;
  color: #aaa;
  text-decoration: none;
  text-align: center;
  white-space: pre;
  font-size: 11px;
  animation: float 7s ease-in-out infinite;
  transition: .25s;
}

.friend-cloud:hover {
  color: white;
  text-shadow: 0 0 15px white;
}

.friend-cloud pre {
  margin: 0;
  font: inherit;
}

.cloud-name {
  display: block;
  margin-top: -2px;
  letter-spacing: 1px;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, -16px); }
}

.scroll {
  position: absolute;
  bottom: 25px;
  color: #777;
  font-size: 9px;
  letter-spacing: 3px;
}

.scroll div {
  font-size: 20px;
  margin-top: 10px;
  animation: arrow 2s infinite;
}

@keyframes arrow {
  50% { transform: translateY(7px); }
}

#friends-section {
  min-height: 65vh;
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 100px 20px;
}

.heading {
  font-size: 11px;
  letter-spacing: 6px;
}

.description {
  font-size: 9px;
  color: #666;
  letter-spacing: 3px;
  margin: 20px 0 60px;
}

#friends-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 35px;
}

.friend-list-item {
  color: #aaa;
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px solid #444;
  padding: 10px;
}

.friend-list-item:hover {
  color: white;
  border-color: white;
}

footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 70px 15px;
  border-top: 1px solid #ffffff12;
  font-size: 9px;
  letter-spacing: 4px;
  color: #777;
  line-height: 3;
}

#music-toggle {
  display: block;
  margin: 25px auto;
  background: transparent;
  color: #888;
  border: 1px solid #444;
  padding: 10px 20px;
  font-size: 9px;
  letter-spacing: 2px;
}

@media(max-width: 600px) {
  header {
    height: 50px;
    font-size: 8px;
    padding: 0 15px;
    letter-spacing: 1px;
  }

  #hero {
    min-height: 90svh;
    padding: 80px 5px 100px;
  }

  #ascii-logo {
    font-size: 2.7px;
  }

  .subtitle {
    font-size: 8px;
    letter-spacing: 2px;
  }

  .friend-cloud {
    font-size: 8px;
  }

  #friends-section {
    padding: 75px 15px;
  }

  .heading {
    letter-spacing: 3px;
  }
}

@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
