body {
  background-color: #000080;
  background-image: url("https://www.transparenttextures.com/patterns/stardust.png");
  color: #ffff00;
  font-family: Comic Sans MS, cursive;
  margin: 0;
  padding: 0;
}

#topbar {
  width: 80%;
  height: 50px;
  position: relative;
  display: flex;
  margin: auto;
  background-color: aquamarine;
  align-items: center;
}

.topbaritem {
  float: left;
  margin: 4;
  flex: 1;
  text-align: center;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #000;
  border-radius: 1px;
  font-weight: bold;
  font-family: Comic Sans MS, cursive;
  text-shadow: 1px 1px #ffffff88;
}

.topbaritem:nth-child(1) { background-color: #ff6b6b; }
.topbaritem:nth-child(2) { background-color: #f7c948; }
.topbaritem:nth-child(3) { background-color: #6bcb77; }

.topbaritem:hover {
  filter: brightness(1.3);
  color: #fff;
}

#gif-zone {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  flex-wrap: wrap;
}

.weird-gif {
  image-rendering: pixelated;
  border: 3px ridge #ffff00;
}

#marquee {
  color: #ff00ff;
  font-weight: bold;
  font-family: Comic Sans MS, cursive;
  font-size: 18px;
  background-color: #000000;
  padding: 4px;
  border-top: 2px solid #ffff00;
  border-bottom: 2px solid #ffff00;
}

.topborderbar {
  width: 80%;
  height: 10px;
  position: relative;
  margin: auto;
  background: linear-gradient(
    90deg,
    rgba(255, 0, 0, 1) 0%,
    rgba(255, 154, 0, 1) 10%,
    rgba(208, 222, 33, 1) 20%,
    rgba(79, 220, 74, 1) 30%,
    rgba(63, 218, 216, 1) 40%,
    rgba(47, 201, 226, 1) 50%,
    rgba(28, 127, 238, 1) 60%,
    rgba(95, 21, 242, 1) 70%,
    rgba(186, 12, 248, 1) 80%,
    rgba(251, 7, 217, 1) 90%,
    rgba(255, 0, 0, 1) 100%
  );
  background-size: 200% 100%;
  animation: rainbow-move 2s linear infinite;
}

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

#site-title {
  text-align: center;
  font-size: 36px;
  color: #ff00ff;
  text-shadow: 2px 2px #000000, 0 0 10px #ff00ff;
  padding: 20px;
  letter-spacing: 4px;
}

#content {
  width: 80%;
  margin: 20px auto;
  background-color: #000033;
  border: 2px solid #ffff00;
  padding: 20px;
}

#guestbook {
  width: 80%;
  margin: 20px auto;
  background-color: #000033;
  border: 2px solid #ff00ff;
  padding: 20px;
}

#guestbook-title {
  text-align: center;
  font-size: 24px;
  color: #ff00ff;
  text-shadow: 1px 1px #000, 0 0 8px #ff00ff;
  margin-bottom: 16px;
}

#guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

#guestbook-form input,
#guestbook-form textarea {
  background-color: #000066;
  border: 1px solid #ffff00;
  color: #ffff00;
  font-family: Comic Sans MS, cursive;
  font-size: 14px;
  padding: 6px;
}

#guestbook-form textarea {
  height: 80px;
  resize: vertical;
}

#guestbook-form button {
  align-self: flex-start;
  background-color: #ff00ff;
  border: 2px outset #ff88ff;
  color: #000;
  font-family: Comic Sans MS, cursive;
  font-weight: bold;
  font-size: 14px;
  padding: 4px 16px;
  cursor: pointer;
}

#guestbook-form button:active {
  border-style: inset;
}

.gb-entry {
  border-top: 1px dashed #ffff00;
  padding: 10px 0;
}

.gb-name {
  color: #ff00ff;
  font-weight: bold;
  margin-right: 10px;
}

.gb-date {
  color: #888;
  font-size: 12px;
}

.gb-message {
  color: #ffff00;
  margin: 4px 0 0 0;
}

#record-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 100;
  background-color: #000;
  border: 2px solid #ffff00;
  padding: 8px;
  box-shadow: 0 0 12px #ff00ffaa, inset 0 0 8px #00000088;
}

#record-label {
  font-family: "Courier New", monospace;
  font-size: 9px;
  color: #ff00ff;
  animation: blink 1s step-start infinite;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

#record-deck {
  display: flex;
  align-items: flex-start;
}

#record {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #222;
  box-shadow: 0 0 10px #ff00ff, 0 0 2px #fff;
  animation: spin 4s linear infinite;
  position: relative;
}

#album-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

#record-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #444;
}

#record-needle {
  width: 5px;
  height: 60px;
  background: linear-gradient(to bottom, #ffff00, #888);
  border-radius: 3px;
  transform-origin: top center;
  transform: rotate(25deg);
  margin-top: 8px;
  margin-left: -8px;
  z-index: 10;
}

#record-title {
  font-family: "Courier New", monospace;
  font-size: 8px;
  color: #00ff00;
  margin-top: 5px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  max-width: 120px;
  animation: marquee-text 6s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes blink {
  50% { opacity: 0; }
}

#click-to-play {
  font-family: "Courier New", monospace;
  font-size: 8px;
  color: #ffff00;
  text-align: center;
  margin-top: 3px;
}

@keyframes marquee-text {
  0%   { text-indent: 120px; }
  100% { text-indent: -200px; }
}

#search-box {
  width: 80%;
  margin: 16px auto 0;
}

#search-input {
  width: 100%;
  background-color: #000033;
  border: 2px solid #ffff00;
  color: #ffff00;
  font-family: Comic Sans MS, cursive;
  font-size: 14px;
  padding: 8px;
  box-sizing: border-box;
  outline: none;
}

#search-input::placeholder {
  color: #555;
}

#search-input:focus {
  border-color: #ff00ff;
  box-shadow: 0 0 6px #ff00ff88;
}

#blog {
  width: 80%;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-post {
  background-color: #000033;
  border: 2px solid #ffff00;
  padding: 12px 16px;
}

.blog-post-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed #ffff00;
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.blog-post-title {
  color: #ff00ff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 0 6px #ff00ff;
}

.blog-post-date {
  color: #888;
  font-size: 11px;
  font-family: "Courier New", monospace;
}

.blog-post-body p {
  color: #ffff00;
  margin: 0;
  line-height: 1.6;
}

.blog-post-footer {
  margin-top: 10px;
  font-size: 11px;
  color: #888;
  font-family: "Courier New", monospace;
}

.blog-post-footer a {
  color: #00ff00;
  text-decoration: none;
}

.blog-post-footer a:hover {
  text-decoration: underline;
}

#visitor-counter {
  text-align: center;
  font-size: 12px;
  color: #00ff00;
  font-family: "Courier New", monospace;
  padding: 10px;
}
