
/* Base body */
body {
  margin: 0;
  font-family: "Verdana", "Tahoma", sans-serif;
  transition: background 0.3s, color 0.3s;
  padding-top: 40px; /* space for top bar */
  padding-left: 160px; /* space for left panel */
  background-color: #c3c3c3;
  color: #000000;
}

body.dark {
  background-color: #000000;
  color: #c3c3c3;
}

/* Top bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: #000082;
  color: #c3c3c3;
  display: flex;
  align-items: center;
  padding-left: 10px;
  gap: 20px;
  font-size: 14px;
  border-bottom: 2px solid #828282;
  z-index: 100;
}

.top-bar span {
  cursor: pointer;
}

/* Left panel */
.left-panel {
  position: fixed;
  top: 40px;
  left: 0;
  bottom: 0;
  width: 150px;
  background: #828282;
  border-right: 3px solid #000000;
  padding: 10px;
  overflow-y: auto;
}

.left-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.left-panel li {
  margin: 8px 0;
}

.left-panel a {
  text-decoration: none;
  color: #000082;
  font-weight: bold;
}

.left-panel a:hover {
  text-decoration: underline;
  color: #820000;
}

/* Retro gif box */
.gif-box {
  margin-top: 20px;
  text-align: center;
}

.gif-box img {
  width: 32px;
  margin: 4px;
}

/* Content */
.content {
  padding: 20px;
}

.content h1 {
  font-size: 24px;
  color: #0000ff;
  text-shadow: 2px 2px #828282;
}

.retro-gif {
  margin-top: 30px;
  text-align: center;
}

.retro-gif img {
  width: 120px;
}

/* Theme switcher */
.theme-switch {
  position: fixed;
  top: 8px;
  right: 60px;
  z-index: 200;
}

.theme-switch button {
  font-size: 18px;
  padding: 4px 10px;
  border: 2px outset #828282;
  cursor: pointer;
  background: #c3c3c3;
  color: #000000;
}

body.dark .theme-switch button {
  background: #000000;
  color: #c3c3c3;
}

/* --- Windows 95 style windows --- */
.window {
  border: 2px solid #000000;
  background: #c3c3c3;
  box-shadow: 2px 2px #828282;
  margin: 20px 0;
}

body.dark .window {
  background: #000000;
  border: 2px solid #828282;
}

/* Title bar */
.window .title-bar {
  background: #000082;
  color: #c3c3c3;
  font-weight: bold;
  padding: 2px 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.window .title-bar .buttons {
  display: flex;
  gap: 2px;
}

.window .title-bar button {
  width: 18px;
  height: 18px;
  border: 2px outset #828282;
  background: #c3c3c3;
  padding: 0;
  font-size: 12px;
  cursor: pointer;
}

.window .content-area {
  padding: 10px;
}

/* Kipi widget */
.kipi-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 200px;
}

/* Frame inside Kipi window */
.kipi-frame {
  width: 100%;
  height: 120px;
  border: 2px dashed #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: #ffffff;
  color: #000000;
}

body.dark .kipi-frame {
  background: #000000;
  border-color: #828282;
  color: #c3c3c3;
}

#petButton {
  padding: 6px 14px;
  font-size: 14px;
  border: 2px outset #828282;
  background: #008200;
  color: #ffffff;
  cursor: pointer;
}

#petButton:hover {
  background: #00ff00;
}

.counter {
  margin-top: 6px;
  font-size: 13px;
}

/* Divider */
.divider {
  border: 0;
  height: 4px;
  background: repeating-linear-gradient(
    45deg,
    #ff0000,
    #ff0000 10px,
    #ffff00 10px,
    #ffff00 20px
  );
  margin: 20px 0;
}

.visitor-counter {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
}

/* Midi player */
.midi-player {
  margin-top: 30px;
  text-align: center;
  font-size: 13px;
  padding: 0;
}

.buttons-88x31 {
  margin-top: 30px;
  text-align: center;
}

.buttons-88x31 img {
  margin: 2px;
  border: 1px solid #000000;
}
