  section {
    max-width: 1000px;
    width: 90%;
    margin: 40px auto;
    box-sizing: border-box;
  }

body {
  background-color: #f9f9f9;
  font-family: "Comic Sans MS", "Comic Neue", cursive, sans-serif;
  color: #003366;
  margin: 0;
  padding: 20px;
  line-height: 1.6;
}

h1 {
  font-size: 40px;
  color: #cc00cc;
  text-shadow: 2px 2px #ffff00;
  margin-bottom: 10px;
}

h2 {
  color: #008000;
  margin-top: 30px;
  font-size: 24px;
}

ul {
  text-align: left;
  display: inline-block;
  margin: 10px auto;
  padding-left: 20px;
  list-style-type: square;
}

a {
  color: #0000ee;
  text-decoration: underline;
}

marquee {
  color: red;
  font-weight: bold;
  background: yellow;
  padding: 5px;
  margin: 10px 0;
}

section {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto 40px auto;
  padding: 10px;
  border: 2px dashed #999;
  background-color: #fffef0;
}

iframe {
  display: block;
  width: 80%;
  max-width: 800px;
  margin: 20px auto;
  border: 2px solid #999;
  background-color: #ffffe0;
  padding: 4px;
  box-shadow: 1px 1px 2px #aaa;
}

.coolword {
  font-weight: bold;
  font-family: "Comic Sans MS", cursive;
  background: linear-gradient(90deg, red, orange, yellow, green, blue, violet);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowShift 2s linear infinite;
}

@keyframes rainbowShift {
  0% { background-position: 0% }
  100% { background-position: 100% }
}

#clippy-wrapper {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  width: 200px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

#clippy-wrapper.visible {
  opacity: 1;
  animation: clippy-slide-in 0.2s ease-out forwards;
  pointer-events: auto;
}

#clippy-wrapper.show {
  opacity: 1;
  transform: translateY(0);
}

#clippy {
  width: 80px;
  pointer-events: auto; /* ✅ Allow clicks on Clippy itself */
  cursor: pointer;
  display: block;
  position: relative; /* ✅ Establish positioning context just in case */
  z-index: 10001; /* ✅ Ensure it’s above speech bubble */
}

.clippy-speech {
  position: absolute;
  bottom: 100%;
  background-color: #ffffcc;
  border: 1px solid #999;
  padding: 6px 10px;
  font-family: "Microsoft Sans Serif", Tahoma, sans-serif !important;
  font-size: 12px;
  color: #000;
  box-shadow: 2px 2px 0 #ccc;
  border-radius: 5px;
  pointer-events: none; /* ✅ prevent blocking clicks */
  font-weight: normal;
  will-change: transform, opacity;
  transform-origin: bottom left;
  z-index: 10000; /* should still be lower than #clippy */
}


.clippy-speech::after {
  content: "";
  position: absolute;
  bottom: -10px;  /* places tail below bubble */
  left: 20px;     /* aligns with Clippy */
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #ffffcc; /* same as bubble background */
  filter: drop-shadow(1px 1px 0 #999);
}

@keyframes clippyPop {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.clippy-speech.pop-in {
  animation: clippyPop 0.25s ease-out;
}

@keyframes clippy-slide-in {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tooltip-box {
  position: absolute;
  background: #ffffcc;
  color: #111;
  border: 1px solid #aaa;
  padding: 8px 10px;
  font-size: 14px;
  max-width: 250px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  z-index: 10000;
  border-radius: 5px;
  pointer-events: none;
  display: none;
  line-height: 1.4;
}

.tooltip-trigger {
  cursor: help;
  text-decoration: underline dotted;
}

/* Make tooltip modern-looking */
.tooltip-box {
  background-color: rgba(30, 30, 30, 0.95);
  color: #fff;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 99999;
  max-width: 260px;
  line-height: 1.5;
  font-family: "Segoe UI", sans-serif;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Optional fade-in */
.tooltip-box.show {
  opacity: 1;
}

body, p, li, span, h1, h2, h3, h4, h5, h6 {
  font-family: "Comic Sans MS", "Comic Neue", cursive, sans-serif;
}

#serious-cv-section, #serious-cv-section * {
    font-family: "Segoe UI", "Helvetica Neue", sans-serif !important;
    color: #222;
  }

.blink {
  animation: blinker 1s step-start infinite;
}
@keyframes blinker {
  50% { opacity: 0; }
}

.tooltip {
  font-size: 14px;
  font-family: 'Segoe UI', sans-serif !important;
  background-color: #222;
  color: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  max-width: 280px;
  line-height: 1.4;
}

