@import url('https://fonts.googleapis.com/css2?family=UnifrakturMaguntia&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000080;
  background-image: url("images/starsbg.png");
  background-repeat: repeat;
  font-family: "Times New Roman", Times, serif !important;
  color: #000000;
  padding: 16px;
}

/* ── page wrapper ── */
#page {
  max-width: 680px;
  margin: 0 auto;
  background: #c0c0c0;
  border: 3px outset #ffffff;
}

/* ── fake windows titlebar ── */
#titlebar {
  background: #000080;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 12px;
  padding: 3px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

#titlebar-buttons span {
  background: #c0c0c0;
  border: 2px outset #ffffff;
  display: inline-block;
  width: 16px;
  height: 14px;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  color: #000000;
  margin-left: 2px;
  cursor: default;
}

/* ── marquee banner ── */
#marquee-bar {
  background: #000080;
  color: #ffff00;
  font-family: Arial, sans-serif;
  font-size: 12px;
  padding: 3px 0;
  overflow: hidden;
  white-space: nowrap;
}

#marquee-inner {
  display: inline-block;
  animation: marquee-scroll 22s linear infinite;
  padding-left: 100%;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ── header ── */
#site-header {
  background: #c0c0c0;
  padding: 20px 16px;
  margin: 8px;
  border: 2px outset #fff;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #ffffff,
    inset -2px -2px #808080,
    inset 2px 2px #dfdfdf;
  text-align: center;
  font-weight: 700;
}

#site-subtitle {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #000000;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.blink {
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  background: linear-gradient(
    90deg,
    #ff0000, #ff9900, #ffee00, #00cc44, #0066ff, #8800ff, #ff0000
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: rainbow-scroll 4s linear infinite;
}

#site-header img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto 0;
}

@keyframes rainbow-scroll {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ── music player ── */
#music-player {
  background: #c0c0c0;
  margin: 0 8px 8px;
  padding: 8px 10px;
  border: 2px outset #fff;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #ffffff,
    inset -2px -2px #808080,
    inset 2px 2px #dfdfdf;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
 
#play-btn {
  background: #c0c0c0;
  border: 2px outset #ffffff;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-play,
.icon-pause {
  display: inline-block;
  width: 10px;
  height: 10px;
  vertical-align: middle;
}

.icon-play {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #000000;
}

.icon-pause {
  position: relative;
  width: 9px;
  height: 11px;
  background: transparent;
}

.icon-pause::before,
.icon-pause::after {
  content: "";
  position: absolute;
  top: 0;
  width: 3px;
  height: 11px;
  background: #000000;
}

.icon-pause::before {
  left: 0;
}

.icon-pause::after {
  right: 0;
}
 
#play-btn:active,
#play-btn[aria-pressed="true"] {
  border-style: inset;
}
 
#now-playing {
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: #000080;
}

#volume-label {
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: #000000;
}

#volume-slider {
  width: 90px;
  accent-color: #000080;
}


/* ── navigation ── */
#nav {
  background: #c0c0c0;
  border-bottom: 2px inset #808080;
  padding: 5px 8px;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
}

.nav-btn {
  background: #c0c0c0;
  border: 2px outset #ffffff;
  padding: 2px 10px;
  font-size: 12px;
  color: #000000;
  text-decoration: none;
  cursor: pointer;
}

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

.nav-btn:active {
  border-style: inset;
}

.under-construction {
  font-size: 12px;
  background: #ffff00;
  color: #ff0000;
  border: 1px solid #ff0000;
  padding: 1px 6px;
  font-weight: bold;
  margin-left: 4px;
}

/* ── main content area ── */
#content {
  background: #fffff0;
  margin: 8px;
  padding: 20px 24px;
  border: 2px inset #808080;
}

/* ── separator ── */
.separator {
  text-align: center;
  color: #800000;
  font-size: 16px;
  letter-spacing: 4px;
  margin: 6px 0 20px;
}

/* ── diary entries ── */
.entry {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px dashed #000080;
}

.entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.entry-date {
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: #800000;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.entry-title {
  font-size: 20px;
  font-weight: bold;
  color: #000080;
  text-decoration: underline;
  margin-bottom: 15px;
}

.entry-body {
  font-size: 14px;
  color: #000000;
  line-height: 1.9;
}

.entry-body p {
  margin-bottom: 8px;
}

.entry-body p:last-child {
  margin-bottom: 0;
}

.entry-mood {
  font-size: 12px;
  color: #800080;
  font-style: italic;
  margin: 10px 0px;
}

/* ── footer ── */
#site-footer {
  background: #c0c0c0;
  border-top: 2px outset #ffffff;
  padding: 10px 12px;
  font-size: 12px;
  color: #000000;
  text-align: center;
  line-height: 1.8;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #ffffff,
    inset -2px -2px #808080,
    inset 2px 2px #dfdfdf;
}

#site-footer img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 8px;
}

.end {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
  margin-bottom: 20px;
}

#site-footer .end img {
  margin: 0;
  position: relative;
  top: -15px;
}

.end p {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #660909;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 0;
  font-weight: 900;
}

.hit-counter {
  display: inline-block;
  background: #000000;
  color: #00ff00;
  font-family: "Courier New", monospace;
  font-size: 14px;
  padding: 2px 8px;
  letter-spacing: 4px;
  border: 2px inset #808080;
  margin: 0 6px;
}

/* ── responsive ── */
@media (max-width: 600px) {
  body {
    padding: 0;
  }

  #site-title {
    font-size: 36px;
  }

  #content {
    margin: 4px;
    padding: 14px 14px;
  }

  #nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-btn {
    text-align: center;
    padding: 4px 10px;
  }

  .under-construction {
    margin-left: 0;
    margin-top: 4px;
    text-align: center;
  }
}