/* Win95 / IE5 aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans&display=swap');

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 40px 20px;
  background: #008080; /* classic Win95 teal desktop */
  font-family: "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Geneva, sans-serif;
  font-size: 12px;
  color: #000;
  min-height: 100vh;
}

/* ===== Window ===== */
.window {
  max-width: 760px;
  margin: 0 auto;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: 1px 1px 0 #000;
  padding: 2px;
}

/* ===== Title bar ===== */
.title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  color: #fff;
  padding: 3px 4px;
  font-weight: bold;
}

.title-bar-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.title-bar-text img {
  width: 16px;
  height: 16px;
}

.title-bar-controls {
  display: flex;
  gap: 2px;
}

.title-bar-controls button {
  width: 18px;
  height: 16px;
  background: #c0c0c0;
  color: #000;
  border: 1px solid;
  border-color: #ffffff #000000 #000000 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080;
  font-family: inherit;
  font-size: 10px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.title-bar-controls button:active {
  border-color: #000000 #ffffff #ffffff #000000;
  box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #dfdfdf;
}

/* ===== Menu bar ===== */
.menu-bar {
  background: #c0c0c0;
  padding: 2px 4px;
  display: flex;
  gap: 12px;
  border-bottom: 1px solid #808080;
}

.menu-bar span {
  cursor: default;
  padding: 1px 4px;
}

.menu-bar span:hover {
  background: #000080;
  color: #fff;
}

/* ===== Toolbar ===== */
.toolbar {
  background: #c0c0c0;
  padding: 4px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid #808080;
}

.tb-btn {
  background: #c0c0c0;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #404040;
  font-family: inherit;
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
  color: #000;
}

.tb-btn:hover {
  background: #d4d0c8;
}

.tb-btn:active {
  border-color: #808080 #ffffff #ffffff #808080;
  box-shadow: inset 1px 1px 0 #404040, inset -1px -1px 0 #dfdfdf;
}

/* ===== Address bar ===== */
.address-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
}

.address-bar label {
  font-weight: normal;
  color: #404040;
}

.address-input {
  flex: 1;
  background: #fff;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}

.page-icon {
  font-size: 12px;
}

/* ===== Content ===== */
.content {
  background: #ffffff;
  padding: 24px;
  min-height: 360px;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  margin: 4px;
}

.big-title {
  font-family: "Times New Roman", Times, serif;
  font-size: 72px;
  font-weight: bold;
  text-align: center;
  margin: 10px 0;
  background: linear-gradient(180deg, #ff00ff 0%, #00ffff 50%, #ffff00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.1);
  letter-spacing: 4px;
}

.marquee {
  background: #000080;
  color: #ffff00;
  padding: 4px;
  font-weight: bold;
  margin: 10px 0;
}

.hit-counter {
  text-align: center;
  margin: 16px 0;
}

.counter {
  display: inline-block;
  background: #000;
  color: #00ff00;
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 18px;
  padding: 4px 10px;
  letter-spacing: 3px;
  border: 2px inset #808080;
}

.construction {
  display: block;
  margin: 20px auto;
  image-rendering: pixelated;
  width: 100%;
  max-width: 400px;
  height: auto;
}

.content h2 {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  color: #ff00ff;
  text-align: center;
}

.content ul {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
}

.webring {
  text-align: center;
  margin-top: 24px;
}

.webring a {
  color: #0000ee;
}

.content a:visited { color: #551a8b; }

/* ===== Status bar ===== */
.status-bar {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: #c0c0c0;
}

.status-field {
  flex: 1;
  background: #c0c0c0;
  border: 1px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  padding: 2px 6px;
  font-size: 11px;
}

.status-field:last-child {
  flex: 0 0 auto;
}

/* ===== Clippy ===== */
.clippy {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  z-index: 100;
}

.clippy-svg {
  width: 90px;
  height: 140px;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.3));
  animation: clippy-bob 3s ease-in-out infinite;
}

@keyframes clippy-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

.speech-bubble {
  background: #ffffcc;
  border: 1px solid #000;
  padding: 10px 12px;
  max-width: 240px;
  font-size: 11px;
  position: relative;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  border-radius: 4px;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  right: -10px;
  bottom: 30px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #ffffcc;
  filter: drop-shadow(1px 0 0 #000);
}

.speech-bubble p {
  margin: 4px 0;
}

.speech-bubble ul {
  list-style: none;
  padding: 0;
  margin: 6px 0;
  font-size: 10px;
}

.speech-bubble ul li {
  padding: 1px 0;
}

.speech-bubble button {
  margin-right: 4px;
  margin-top: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  body { padding: 10px; }
  .big-title { font-size: 48px; }
  .clippy { position: static; flex-direction: column-reverse; align-items: center; margin-top: 20px; }
  .speech-bubble::after { display: none; }
}
