/* set global body font & size; h1 keeps Matemasie */
:root {
  --accent-color: #111011;
  --body-font: "Mynerve", cursive;
  --body-font-size: 1.125rem;
}

/* apply Mynerve to all text by default; h1 overrides with Matemasie */
html, body {
  font-family: var(--body-font);
  font-size: var(--body-font-size);
}

/* Matemasie for the H1 only */
.matemasie-regular {
  font-family: "Matemasie", sans-serif;
  font-weight: 400;
  font-style: normal;
  position: fixed;
  left: 50px;
}

/* helper class if you want to explicitly mark elements as Mynerve */
.mynerve-regular {
  font-family: "Mynerve", cursive;
  font-weight: 400;
  font-style: normal;
}

/* ensure all UI text inherits the same font and uses a similar size */
#feld,
.controls,
.controls #e,
.controls .button,
button,
input,
textarea,
p,
label,
a,
span {
  font-family: inherit;
  font-size: 1rem;    /* similar size for body text; change to 1.125rem if you want it closer to --body-font-size */
  line-height: 1.3;
}

/* keep textarea using inherit and readable size */
.controls #e {
  font-size: 1rem;
}



/* hide previous background pseudo-element completely (removed duplicate) */
body::before { display: none; }

/* make page scrollable so content isn't clipped */
html, body {
  height: 100%;
  margin: 0;
  overflow: auto; /* allow scrolling; cat is fixed so it won't move */
}

/* make the inline cat image the fixed, full-viewport image (single source of truth) */
#stage #cat {
  position: fixed;
  left: 70%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain; /* ensures full image visible without cropping */
  user-select: none;
  pointer-events: none;
  z-index: -1; /* behind header/controls but above page background color */
}

/* Accent color used for h1 and the translate button */
:root {
  --accent-color: #111011; /* change this to your preferred color */
}


/* tail */
#feld::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 18px solid #ffffff;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
}

#feld {
  position: fixed;
  /* place bubble near cat — adjust values to match your image */
  left: 62%;       /* horizontal anchor (percentage of image) */
  top: 25%;        /* vertical anchor (percentage of image) */
  transform: translate(-50%, -100%); /* anchor the bottom-center of bubble to that point */
  max-width: 280px;
  padding: 12px 16px;
  background: #fff;
  color: #222;
  border-radius: 14px;
  border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  /* use the global font (removed monospace) */
  font-size: 18px;
  z-index: 2;
}



/* Make input and button larger and align them */
.controls {
  position: fixed;
  left: 6%;
  transform: none;
  bottom: 36px;
  display: flex;
  gap: 0;
  align-items: stretch;
  z-index: 10;
  padding: 6px;
  
  border-radius: 12px;
  background: transparent; /* no translucent layer behind controls */
  box-shadow: none;        /* remove any lingering shadow */
  backdrop-filter: none;   /* disable blur/backdrop effects */
  box-sizing: border-box;
  max-width: min(640px, 46vw);
}

/* textarea sits inside container without its own outer border so container border is the visible edge */
.controls #e {
  margin: 0;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;          /* inner rounding so it looks nice against container */
  box-sizing: border-box;
  resize: vertical;
  min-height: 56px;
  max-height: 240px;
  width: 640px;
  max-width: 70vw;
  background: #fff;
  font-family: inherit; /* use the global font */
  outline: none;
}

/* button kept inside the same container (no outer border) so container border wraps both) */
.controls .button {
  margin-left: 8px;
  padding: 0;                 /* remove horizontal padding so fixed size is exact */
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 50%;         /* circular "paw" */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  cursor: pointer;
  box-sizing: border-box;

  /* detach button size from textarea and make it twice as large:
     textarea min-height is 56px, so button becomes 112px */
  width: 112px;
  height: 112px;
  align-self: center;         /* prevents stretching by container */
  font-size: 3rem;            /* paw glyph / icon size */
  line-height: 1;
}

/* scale down on small screens so layout stays usable */
@media (max-width: 480px) {
  .controls .button {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    margin-left: 6px;
  }
}

/* slightly larger on wide screens */
@media (min-width: 1000px) {
  .controls .button {
    width: 140px;
    height: 140px;
    font-size: 3.5rem;
  }
}

/* responsive tweaks for small screens */
@media (max-width: 480px) {
  .controls .button { width: 48px; height: 48px; font-size: 20px; margin-left: 6px; }
}

.controls .button:active { transform: scale(0.96); }
.controls .button:hover {
  box-shadow: none !important;
}

/* responsive adjustments */
@media (max-width: 480px) {
  .controls { bottom: 18px; padding: 6px; max-width: calc(100% - 20px); }
  .controls #e { width: calc(100vw - 140px); min-height: 48px; }
  .controls .button { padding: 0 12px; }
}

.button {
  background-color: rgb(20, 4, 0);
  border: none;
  border-radius: 20%;
  color: white;
  padding: 5px 5px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.button:hover,
.button:focus {
  transform: scale(1.05);
  background-color: rgb(22, 4, 0);
  outline: none;
}

.button:active {
  transform: scale(0.98);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.button:focus-visible {
  box-shadow: 0 0 0 3px rgba(108, 66, 58, 0.2);
}

#e {
  border: 1px #999 solid;
}


#e:hover, #e:focus {
  background-color: #eee;
}


#e {
  font-family: monospace;
}

body{
    background-color: rgb(211, 181, 204);

}

/* full-viewport cat background showing the whole image */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('katzi.jpg');
  background-position:  contain;
  background-repeat: no-repeat;
  background-size: contain; /* shows full image without cropping */
  opacity: 0.9;
  z-index: -1;
  pointer-events: none;
  background-color: rgb(246, 218, 240); /* fallback/tint */
}

/* controls floating on top of the background */
.controls {
  position: fixed;
  left: 6%;
  transform: none;
  bottom: 36px;
  display: flex;
  gap: 0;
  align-items: stretch;
  z-index: 10;
  padding: 6px;
  
  border-radius: 12px;
  background: transparent; /* no translucent layer behind controls */
  box-shadow: none;        /* remove any lingering shadow */
  backdrop-filter: none;   /* disable blur/backdrop effects */
  box-sizing: border-box;
  max-width: min(640px, 46vw);
}

/* textarea sits inside container without its own outer border so container border is the visible edge */
.controls #e {
  margin: 0;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;          /* inner rounding so it looks nice against container */
  box-sizing: border-box;
  resize: vertical;
  min-height: 56px;
  max-height: 240px;
  width: 640px;
  max-width: 70vw;
  background: #fff;
  font-family: inherit; /* use the global font */
  outline: none;
}

/* button kept inside the same container (no outer border) so container border wraps both) */
.controls .button {
  margin-left: 8px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  cursor: pointer;
  box-sizing: border-box;

  width: 112px;
  height: 112px;
  align-self: center;
  font-size: 3rem;
  line-height: 1;
}

/* scale down on small screens so layout stays usable */
@media (max-width: 480px) {
  .controls .button {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    margin-left: 6px;
  }
}

/* slightly larger on wide screens */
@media (min-width: 1000px) {
  .controls .button {
    width: 140px;
    height: 140px;
    font-size: 3.5rem;
  }
}

/* responsive tweaks for small screens */
@media (max-width: 480px) {
  .controls .button { width: 48px; height: 48px; font-size: 20px; margin-left: 6px; }
}

.controls .button:active { transform: scale(0.96); }
.controls .button:hover {
  box-shadow: none !important;
}

/* responsive adjustments */
@media (max-width: 480px) {
  .controls { bottom: 18px; padding: 6px; max-width: calc(100% - 20px); }
  .controls #e { width: calc(100vw - 140px); min-height: 48px; }
  .controls .button { padding: 0 12px; }
}

@media (max-width: 480px) {
  .paw { font-size: 18px; }
}
