@import "https://fonts.googleapis.com/css?family=Kreon:300,700";

/* =================================
   Theme tokens
   ================================= */
:root {
  --background: #232b2a;
  --text: #a5b7b6;

  --user1: #a5b7b6;
  --user2: #007480;
  --user3: #a5b7b6;

  --code: #a5b7b6;
  --codeGreen: #559330;

  --user: var(--code);
}

/* Reset-ish */
* { margin: 0; padding: 0; }
body {
  margin: 0;
  padding: 0;
  background-color: var(--background);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: start;
}
.Main-Content { width: 100%; }

/* Keep page content above the fixed footer */
main, .container, #Main-Content {
  /* ≈ footer height + padding; tweak if you change sizes below */
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0));
}

/* =================================
   Fixed container at the bottom
   ================================= */
.fixed-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(40px + env(safe-area-inset-bottom, 0));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;                  /* space above the bar if you add more rows later */
  padding: 8px 12px;
  z-index: 999;

  /* Don’t block clicks outside its children */
  pointer-events: none;
}

/* Children render normally inside .fixed-bottom and remain clickable */
.fixed-bottom > .footer-bar-panel {
  position: static;
  width: 100%;
  pointer-events: auto;
  /* no display:flex here—let the panel define its own layout */
}

/* =================================
   Footer bar panel (3 equal areas)
   ================================= */
.footer-bar-panel {
  /* Full-width background bar */
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px) saturate(120%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.25);
  border-radius: 0.75vw; /* set to 0 for squared corners */

  /* Size & layout */
  height: 64px;       /* desktop/tablet bar height */
  padding: 0 12px;

  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
  align-items: center;                    /* center icons vertically */
}

/* Each icon sits centered in its grid cell */
.footer-bar-panel .tooltip {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Icon sizing: fixed px so they don’t balloon on tall screens */
.footer-bar-icon {
  flex: 1;                  /* each icon takes 1/3rd width */
  display: block;
  margin: auto;              /* center vertically and horizontally */
  width: 36px;
  height: 36px;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.15s ease;
}
.footer-bar-icon:hover { transform: scale(1.1); }


/* =================================
   Optional contact/footer patterns
   (kept for future reuse)
   ================================= */
.contact-bar { margin: 0; z-index: 1; }
.contact-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: white;
  border-radius: 0.5rem;
}
.render {
  font-size: 4.5rem;
  font-family: math;
  letter-spacing: 0;
  color: var(--text);
  font-weight: 900;
}

.githubIcon {
  color: var(--text, white);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}


/* The row that holds name — GitHub — email */
.icon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;              /* default gap */
  min-width: 0;           /* allows children to shrink if needed */
}

/* Responsive text that doesn't wrap */
.centerTextLeft,
.centerTextRight {
  white-space: nowrap;    /* don't wrap to a new line */
  overflow: hidden;       /* enable ellipsis when space is very tight */
  text-overflow: ellipsis;
}

/* Scale the font sizes with viewport width */
.centerTextLeft  { font-size: clamp(0.8rem, 2.2vw, 1rem);  color: var(--text, white); user-select: none; }
.centerTextRight { font-size: clamp(0.75rem, 2vw, 0.95rem); color: var(--text, white); user-select: none; cursor: pointer; }

/* Tighten spacing on phones */
@media (max-width: 600px) {
  .icon-row { gap: 0.9rem; }
}

/* Reusable global toast added to <body> — compact */
#copy-toast {
  position: fixed;                    /* truly viewport-relative */
  z-index: 99999;
  visibility: hidden;
  opacity: 0;

  /* JS sets left/top each time */
  left: 0;
  top: 0;
  transform: translate(-50%, -100%);  /* anchor bottom-center at the point */

  /* ↓ smaller sizing */
  font-size: 0.85rem;                 /* was default; try 0.8–0.9 if you want */
  padding: 3px 7px;                   /* was 6px 10px */
  border-radius: 4px;                 /* was 6px */
  max-width: 50vw;                    /* was 70vw */

  background-color: #555;
  color: #fff;
  text-align: center;
  pointer-events: none;

  transition: opacity 160ms ease, visibility 0s linear 160ms;
}

/* Arrow — smaller */
#copy-toast::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;                  /* was 6px */
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Visible */
#copy-toast.show {
  visibility: visible;
  opacity: 1;
  transition: opacity 160ms ease;
}

/* Ensure the label is measurable as a box */
.popup-label { display: inline-block; }


/* =================================
   Small-screen refinements
   ================================= */
@media (max-width: 600px) {
  .footer-bar-panel {
    height: calc(56px + env(safe-area-inset-bottom, 0));
    padding-bottom: env(safe-area-inset-bottom, 0);
    border-radius: 2vw; /* full-bleed look on phones (optional) */
  }
  .footer-bar-icon { width: 40px; height: 40px; }

  /* Adjust page padding to match smaller bar height */
  main, .container, #Main-Content {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0));
  }
}
