/* Clippy (js/clippy.js): the character, and Office's balloon. It floats over
   every window, as the Office Assistant did, but under menus: menus and the
   Start menu get their z-index from WindowManager.bringToFront, a window's
   number, so they're lifted over Clippy here. */
.xp-menu,
#start-menu {
  z-index: 150002 !important;
}

.clippy {
  position: fixed;
  z-index: 150000;
  width: var(--size);
  height: var(--size);
  pointer-events: none;
}

.clippy-sprite {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  cursor: default;
  pointer-events: auto;
  touch-action: none;
}

.clippy-balloon {
  position: fixed;
  z-index: 150001;
  max-width: 240px;
  padding: 8px 10px;
  background: #ffffe1;
  border: 1px solid #000;
  border-radius: 7px;
  font: 11px Tahoma, sans-serif;
  color: #000;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.25);
}

/* The tail: a black triangle under a yellow one, pointing at Clippy. */
.clippy-balloon::before,
.clippy-balloon::after {
  content: "";
  position: absolute;
  left: calc(var(--tail, 50%) - 8px);
  border: 8px solid transparent;
  border-bottom: 0;
}
.clippy-balloon::before {
  bottom: -9px;
  border-top-color: #000;
}
.clippy-balloon::after {
  bottom: -7px;
  border-top-color: #ffffe1;
}
.clippy-balloon.below::before,
.clippy-balloon.below::after {
  bottom: auto;
  border: 8px solid transparent;
  border-top: 0;
}
.clippy-balloon.below::before {
  top: -9px;
  border-bottom-color: #000;
}
.clippy-balloon.below::after {
  top: -7px;
  border-bottom-color: #ffffe1;
}

.clippy-balloon h4 {
  margin: 0 0 6px;
  font-size: 11px;
}

.clippy-balloon p {
  margin: 0 0 6px;
}

.clippy-balloon ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.clippy-balloon li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  cursor: pointer;
}
.clippy-balloon li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #9cf, #0645d8 70%);
}
.clippy-balloon li:hover > span:first-of-type,
.clippy-balloon li:focus > span:first-of-type {
  color: #0645d8;
  text-decoration: underline;
}
.clippy-balloon li > span:first-of-type {
  flex: 1;
}

/* XP's progress bar: green blocks in a white trough. */
.clippy-bar {
  display: inline-block;
  vertical-align: middle;
  box-sizing: border-box;
  flex: none;
  width: 52px;
  height: 7px;
  padding: 1px;
  border: 1px solid #686868;
  border-radius: 2px;
  background: #fff;
}
.clippy-bar i {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, #37d337 0 5px, transparent 5px 7px);
}

.clippy-bar.wide {
  display: block;
  width: auto;
  height: 13px;
  margin: 0 0 8px;
}

/* Office's push buttons along the bottom, right-aligned. */
.clippy-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
}
