/*
Theme Name: Win95 Retro Theme v2
Theme URI: https://example.com/
Author: シュガー
Description: Windows95風のレトロテーマ（修正版: ドラッグ安定化・スタート動作改善・起動音クリック再生等）
Version: 2.0
*/

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "MS UI Gothic", "MS Sans Serif", sans-serif;
  background-color: #008080;
  color: black;
  margin: 0;
  padding: 0;
  background-image: url('assets/wallpaper.jpg');
  background-size: cover;
  background-position: center;
}

/* ===== ウィンドウ風デザイン ===== */
/* Make windows fixed by default so dragging is reliable */
.window, .floating-window {
  background-color: #c0c0c0;
  border: 2px solid #fff;
  border-right-color: #808080;
  border-bottom-color: #808080;
  width: 80%;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 2px 2px #000;
  position: fixed; /* fixed for drag */
  left: 10%; /* default position */
  top: 10%;  /* default position */
  z-index: 1000;
}

.title-bar {
  background: linear-gradient(to right, #000080, #1084d0);
  color: white;
  padding: 4px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
  user-select: none;
}

.title-bar-buttons span {
  background-color: #c0c0c0;
  border: 1px solid #808080;
  width: 18px;
  height: 18px;
  display: inline-block;
  text-align: center;
  line-height: 18px;
  font-weight: bold;
  cursor: pointer;
}

.content {
  padding: 15px;
  background: #c0c0c0;
}

/* ===== ボタン ===== */
button {
  font-family: "MS UI Gothic", "MS Sans Serif", sans-serif;
  background-color: #c0c0c0;
  border: 2px solid #fff;
  border-right-color: #808080;
  border-bottom-color: #808080;
  padding: 3px 12px;
  cursor: pointer;
}
button:active {
  border: 2px solid #808080;
  border-right-color: #fff;
  border-bottom-color: #fff;
}

/* ===== タスクバー ===== */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 36px;
  background-color: #c0c0c0;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #808080;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  z-index: 99999;
}

.start-button {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #c0c0c0;
  border: 2px solid #fff;
  border-right-color: #808080;
  border-bottom-color: #808080;
  padding: 4px 10px;
  cursor: pointer;
}
.start-button img {
  width: 18px;
  height: 18px;
}
.start-button:active {
  border: 2px solid #808080;
  border-right-color: #fff;
  border-bottom-color: #fff;
}

.clock {
  font-size: 14px;
  margin-right: 10px;
}

/* ===== スタートメニュー ===== */
.start-menu {
  position: fixed;
  bottom: 36px;
  left: 6px;
  background-color: #c0c0c0;
  border: 2px solid #808080;
  box-shadow: 2px 2px #000;
  width: 260px;
  display: none;
  flex-direction: column;
  z-index: 100000;
}
.start-menu a, .start-menu .menu-section {
  padding: 6px 10px;
  text-decoration: none;
  color: black;
  display: block;
}
.start-menu a:hover, .start-menu .menu-section:hover {
  background-color: #000080;
  color: white;
}

/* responsive */
@media (max-width: 600px) {
  .window, .floating-window { width: 90%; left: 5%; }
}

