/* IXX 0.29's page, December 2023, with small repairs and the site's wall label. */
html {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  background-color: #000;
  color: #fff;
  overflow: hidden;
}

.custom-cursor {
  cursor: url('../images/skull.png'), auto;
}

#video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

/* The 2.35 frame of the film it ran over, on black. */
#background-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
}

#ixx-title {
  display: block;
  width: min(33vw, 56vh, 480px);
  height: auto;
  margin-top: -3vh;
  user-select: none;
  -webkit-user-drag: none;
}

.content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 1000;
}

#command-line-container {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: transparent;
  z-index: 1000;
}

#command-line-input {
  width: min(300px, 70vw);
  background-color: #000;
  padding: 8px;
  color: #fff;
  border: 2px solid #fff;
  outline: none;
  font-family: Arial, sans-serif;
  font-size: 14px;
  cursor: text;
}

.dropdown-content {
  display: none;
  position: absolute;
  bottom: calc(100% + 2px);
  left: 0;
  right: 0;
  max-height: 46vh;
  overflow-y: auto;
  background-color: #000;
  border: 1px solid #555;
  text-align: left;
  z-index: 1001;
}

.dropdown-content div {
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
}

.dropdown-content div:hover,
.dropdown-content div.highlighted {
  background-color: #fff;
  color: #000;
}

/* The dock. */
#taskbar {
  position: fixed;
  left: 0;
  top: 72px;
  width: 50px;
  padding: 10px;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.custom-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: transparent;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 6px 24px;
  padding: 10px 14px;
  font-size: 14px;
  z-index: 1;
}

.custom-footer a {
  color: #fff;
  text-decoration: none;
}

.custom-footer a:hover {
  text-decoration: underline;
}

.footer-left {
  flex: none;
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-right {
  color: rgba(234, 234, 234, 0.72);
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

/* The wall label, as on ARTGOD. */
#ixx-label {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 10001;
  max-width: min(440px, calc(100vw - 32px));
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8a8a;
}

#ixx-way-back {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

#ixx-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: -4px 0 -4px -6px;
  padding: 4px 6px 4px 2px;
  color: rgba(234, 234, 234, 0.72);
  text-decoration: none;
  white-space: nowrap;
}

#ixx-brand {
  color: #fff;
  font-family: Geist, -apple-system, sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
}

#ixx-label summary {
  cursor: pointer;
  list-style: none;
  margin-top: 2px;
}

#ixx-label summary::-webkit-details-marker {
  display: none;
}

#ixx-panel {
  margin-top: 8px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #cfcfcf;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 12px;
  line-height: 1.65;
}

#ixx-panel p {
  margin: 0 0 10px;
}

#ixx-panel p:last-child {
  margin: 0;
}

@media (max-width: 768px) {
  /* A phone is too narrow for the 2.35 frame: the film fills it. */
  #background-video {
    object-fit: cover;
  }

  /* With no black bands, the label and the credit get their own. */
  #video-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), transparent 17%, transparent 78%, rgba(0, 0, 0, 0.82));
  }

  #ixx-title {
    width: min(56vw, 34vh);
    margin-top: -6vh;
  }

  #command-line-container {
    top: 72%;
  }

  #command-line-input {
    font-size: 16px;
  }

  #taskbar {
    top: 84px;
    width: 40px;
    padding: 6px;
  }

  .custom-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }

  .footer-right {
    text-align: left;
  }
}
