:root {
  --hyper: #ff4438;
  --midnight: #091a23;
  --dusk: #163341;
  --radius: 16px;
  --font-family: 'JetBrains Mono', monospace;
}

.primary {
  color: var(--hyper);
}

.strong {
  font-weight: bold;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--midnight);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.4;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

#terminal-container {
  position: relative;
  background: var(--midnight);
  border-radius: var(--radius);
  padding: 1.25rem;
  width: 80vw;
  max-width: 900px;
  height: 60vh;
  min-height: 320px;
  overflow: hidden;
  box-shadow: 0 0 32px 8px rgba(255, 68, 56, 0.25),
    0 8px 32px 0 rgba(22, 51, 65, 0.25);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

#terminal {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  background: transparent;
}

.github-link {
  transition: opacity 0.3s;
  opacity: 0.5;
}

.github-link svg {
  display: block;
  width: 32px;
  height: 32px;
}

.github-link:hover {
  opacity: 1;
}

.icon-bar {
  position: absolute;
  bottom: 1.5em;
  right: 1.5em;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1em;
}

.tooltip-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tooltip-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: var(--dusk);
  font-size: 1.25em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s;
  opacity: 0.5;
}

.tooltip-icon:hover {
  opacity: 1;
}

.tooltip {
  position: absolute;
  right: 48px;
  bottom: 0;
  background: var(--midnight);
  color: #fff;
  padding: 1.5em;
  border-radius: var(--radius);
  font-size: 0.8rem;
  width: 450px;
  box-shadow: 0 0 12px 2px rgba(255, 68, 56, 0.15),
    0 4px 12px rgba(22, 51, 65, 0.2), 0 2px 4px rgba(0, 0, 0, 0.15);

  opacity: 0;
  visibility: hidden;
  transform: translateY(2px);
  transition: opacity 0.25s ease, transform 0.25s ease,
    visibility 0s linear 0.25s;
  pointer-events: none;
}

.tooltip-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5em;
  margin-bottom: 1em;
}

.tooltip-wrapper:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
  pointer-events: auto;
}

::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

@media (max-width: 600px) {
  #terminal-container {
    min-height: 180px;
    height: 90vh;
  }

  .tooltip-wrapper {
    display: none;
  }
}
