/* base */

body {
  background: #C0C9CC;
  color: #111;
  font-family: 
    "MS Gothic", 
    "SimSun", 
    "Microsoft YaHei",
    monospace;
  margin: 0;
  cursor: url("mecursor.png"), auto;
}

/* container */
.container {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 1000px;
  margin: 20px auto;
  margin-top: 80px;
}

.music-divider {
  position: absolute;
  z-index: 1;

  top: 340px;
  left: 50%;
  transform: translateX(-50%);

  width: 1000px;

  height: 60px;

  background: url("musicnotes.png") repeat-x;
  background-size: auto 60px;

  pointer-events: none;
  z-index: 100;
}

/* header */
.header {
  font-family: "ＭＳ ゴシック", sans-serif;

  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;

  text-align: center;
  padding: 20px;
  color: #ebebeb;

  height: 200px;

  overflow: hidden;

  backdrop-filter: blur(4px);

  box-shadow: inset 0 0 20px rgba(255,255,255,0.05);
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;

  background: url("cyber-feeshra-header.png") center/cover no-repeat;

  opacity: 0.6;

  z-index: 0;
}

.header * {
  position: relative;
  z-index: 1;
}

.header::after {
  content: "";
  display: block;
  height: 40px;
}

.header h1 {
  position: relative;
  top: 80px;
  font-size: 60px;
  margin: 0;
  letter-spacing: 3px;
  color: #000000;
  text-shadow:
    0 0 4px #333333,
    0 0 8px #444444,
    0 0 16px rgba(50, 50, 50, 0.8),
    0 0 28px rgba(50, 50, 50, 0.6);
  animation: flicker 4.5s infinite;
  filter: blur(0.25px);
}

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    opacity: 1;
    text-shadow:
      0 0 4px #333333,
      0 0 8px #444444,
      0 0 16px rgba(50, 50, 50, 0.8),
      0 0 28px rgba(50, 50, 50, 0.6);
  }
  20%, 24%, 55% {
    opacity: 0.35;
    text-shadow:
      0 0 2px #333333,
      0 0 4px #444444;
  }
  21%, 23%, 56% {
    opacity: 0.6;
    text-shadow:
      0 0 3px #333333,
      0 0 6px #444444;
  }
}

.header h2 {
  font-family: "ＭＳ ゴシック", sans-serif;
  margin: 0;
  letter-spacing: 3px;
  color: #ebebeb;
}

/* Content */
.content {
 font-family: "ＭＳ ゴシック", sans-serif;
 background: rgba(239, 239, 239, 0.6);
 border-top: 2px solid #000;
}

/* Floating Box*/
.container {
  position: relative;
}

.floating-box {
  position: absolute;

  top: 220px;
  left: -300px;

  width: 240px;
  padding: 10px;

  background: rgba(30, 30, 30, 0.7);
  border: 2px solid #000;

  color: #ddd;
  font-size: 12px;
  font-family: "MS Gothic", monospace;

  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

/* layout */
.layout {
  display: flex;
  width: 100%;
  position: relative;
  background: rgba(3, 3, 3, 0.1);
  margin-top: 100px;
  
  flex-wrap: wrap;
}

.photo1 {
  margin-top: 50px;
  border: 2px inset #999;
  width: 100%;
  background: #eaeaea;
}

/* guestbook */
.guestbook {
  margin-top: 20px;
  padding: 10px;

  border: 2px solid #000;
  background: rgba(40, 40, 40, 0.6);

  box-shadow: inset 0 0 10px rgba(0,0,0,0.7);
}

.guestbook iframe {
  width: 100%;
  height: 70vh;
  border: none;
}

/* sidebar */
.sidebar {
  width: 180px;
  background: rgba(40, 40, 40, 0);
  border-right: 2px solid #000;
  padding: 10px;
}

.sidebar h3 {
  padding-top: 20px;
  margin-left: 20px;
  color: #ebebeb;
}

.sidebar ul {
  margin-left: 20px;
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin: 10px 0;
}

.sidebar a {
  text-decoration: none;
  color: #ebebeb;
}

.sidebar a:hover {
  background: #3c3b42;
  color: #fff;
}

/* content */
.content {
  flex: 1;
  padding: 15px;
}

.box {
  margin-top: 15px;
  padding: 10px;
  border: 1px dashed #000;
  background: #404040;
  background-image: none;
  margin-bottom: 20px;
  color: #fff;
  font-family: Arial, sans-serif;
  min-height: 60px;
  /* 删掉原来的 height: 150px 和 overflow-y: scroll */
  position: relative;
}

/* right bar */
.rightbar {
  width: 220px;
  display: flex;
  flex-direction: column;
  border-left: 2px solid #000;
  padding: 10px;
}

.rightbar h3 {
  color: #dee0e3;
}

.avatar img {
  width: 100%;
  border: 2px solid #000;
}

.chat-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.bubble {
  align-self: flex-end;

  max-width: 80%;
  padding: 6px 10px;

  background: linear-gradient(#242424, #636363);
  border: 1px solid #cfcfcf;
  border-radius: 12px;

  font-size: 12px;
  color: #ffffff;

  word-wrap: break-word;
}

/* footer */
.footer {
  text-align: center;
  border-top: 2px solid #000;
  padding: 10px;
  background: #ebebeb;
}

.box {
  margin-top: 15px;
  padding: 10px;
  border: 1px dashed #000;
  background: #404040; 
  background-image: none;
  margin-bottom: 20px;
  color: #fff;
  font-family: Arial, sans-serif;

  height: 150px;
  overflow-y: scroll;
}

.music-player {
  margin-top: 10px;
}

.player-bar {
  display: flex;
  align-items: center;
  gap: 10px;

  background: #696969;
  border: 2px solid #000;
  padding: 6px;

  box-shadow: inset 0 0 6px rgba(0,0,0,0.6);
  color: #fff;

  font-family: Tahoma, Verdana, sans-serif;
  font-size: 12px;
}

#playBtn {
  width: 38px;
  height: 38px;

  background: linear-gradient(#ccc, #999);
  border: 2px outset #fff;

  cursor: pointer;
}

#playBtn:active {
  border-style: inset;
}

.track-info {
  flex: 1;
}

.title {
  font-weight: bold;
}

.artist {
  font-size: 10px;
  color: #bbb;
}

.bars {
  display: flex;
  gap: 2px;
}

.bars span {
  width: 3px;
  height: 8px;
  background: #a5cfd6;
  animation: bounce 1s infinite;
}

.bars span:nth-child(2) { animation-delay: 0.2s; }
.bars span:nth-child(3) { animation-delay: 0.4s; }
.bars span:nth-child(4) { animation-delay: 0.6s; }
.bars span:nth-child(5) { animation-delay: 0.8s; }

@keyframes bounce {
  0%,100% { height: 5px; }
  50% { height: 14px; }
}

.controls {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: #a5cfd6;
  border: 1px solid #000;
}

#progress {
  flex: 1;
}

#volume {
  width: 80px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  background: #a5cfd6;
  border: 1px solid #000;
  cursor: pointer;
}

.extra-box {
  margin-top: 50px;
  border: 2px inset #999;
  height: 800px;
  background: #eaeaea;
}

.sticker {
  position: absolute;
  height: 500px;
  top: 0px;
  left: -600px;

  animation: float 4s ease-in-out infinite;
}

.sticker2 {
  position: absolute;
  height: 500px;
  top: 500px;
  left: 1000px;

  animation: float 4s ease-in-out infinite;
  animation-delay: -3.2s;
}

.sparkle {
  position: absolute;
  height: 220px;
  top:600px;
  left: 770px;
  border: 1px solid #000;
}

.can-container {
  position: absolute;

  bottom: 1600px;
  right: 1200px;

  width: 180px;
  z-index: 9999;

  cursor: pointer;
}

#can {
  height: 400px;
  width: auto;
  transition: transform 0.15s ease;
}

.can-text {
  position: absolute;

  top: 50%;
  right: 100%;
  transform: translateY(-50%);

  margin-right: -20px;

  color: #ffffff;
  font-size: 14px;
  font-family: "MS Gothic", monospace;

  white-space: nowrap;

  text-shadow:
    0 0 3px rgba(255,255,255,1),
    0 0 6px rgba(255,255,255,0.8),
    0 0 10px rgba(255,255,255,0.6);

  opacity: 1;
}

#can:hover {
  transform: scale(1.05);
}

#can:active {
  transform: scale(1.6);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

#noteBox {
  cursor: pointer;
  position: relative;
}

#noteInput {
  width: 100%;
  min-height: 80px;
  height: auto;
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #666;
  font-family: "MS Gothic", monospace;
  font-size: 13px;
  resize: vertical;
  padding: 6px;
  box-sizing: border-box;
}

.note-btns {
  margin-top: 6px;
  display: flex;
  gap: 8px;
}

.note-btns button, #noteLock button {
  background: #000;
  border: 1px solid #fff;
  color: #fff;
  font-family: "MS Gothic", monospace;
  font-size: 11px;
  padding: 3px 10px;
  cursor: pointer;
}

.note-btns button:hover, #noteLock button:hover {
  background: #fff;
  color: #000;
}

#noteLock {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#pinInput {
  background: #1a1a1a;
  border: 1px solid #888;
  color: #fff;
  font-size: 16px;
  letter-spacing: 6px;
  width: 80px;
  padding: 4px 8px;
  font-family: monospace;
}

#pinError {
  color: #ff4444;
  font-size: 11px;
  width: 100%;
}

#noteText {
  white-space: pre-wrap;
  margin: 0;
}

#editTrigger {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #000;
  border: 1px solid #555;
  color: #ccc;
  font-size: 12px;
  padding: 2px 6px;
  cursor: pointer;
  font-family: monospace;
  line-height: 1.4;
  z-index: 10;
}

#editTrigger:hover {
  border-color: #fff;
  color: #fff;
}