/* =========================================================
   myspace.css: Juan's profile, 2007.
   The blue and orange are the site's own colors; the
   starfield background is his "custom layout" (carried over
   from his 1999 home page, naturally).
   ========================================================= */

* { box-sizing: border-box; }
body {
  margin: 0; color: #000; font: 12px/1.45 Verdana, Arial, Helvetica, sans-serif;
  background: #000033 url("assets/tile-bg.gif");
}
a { color: #003399; font-weight: bold; text-decoration: none; }
a:hover { text-decoration: underline; color: #ff6600; }
:focus-visible { outline: 2px dotted #ff6600; outline-offset: 2px; }
.ms-wrap { max-width: 800px; margin: 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- the site header ---------- */
.ms-top { background: #003399; }
.ms-topbar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 10px 12px 8px; color: #fff; }
.ms-logo { color: #fff; font: bold 30px/1 Arial, Helvetica, sans-serif; letter-spacing: -1px; }
.ms-logo span { font-size: 15px; letter-spacing: 0; }
.ms-logo:hover { color: #fff; text-decoration: none; }
.ms-tagline { font-size: 11px; color: #cfdcff; }
.ms-help { margin-left: auto; font-size: 11px; }
.ms-help a { color: #fff; }
.ms-nav { background: #6699cc; color: #fff; font-size: 11px; }
.ms-nav .ms-wrap { padding: 4px 12px; }
.ms-nav a { color: #fff; padding: 0 2px; }

/* ---------- glitter, obviously ---------- */
.glitter {
  margin: 14px auto 10px; text-align: center;
  font: bold 30px/1.2 "Comic Sans MS", "Trebuchet MS", cursive;
  background: linear-gradient(100deg, #ff66cc, #ffffff, #66ccff, #ffffff, #ffcc00, #ffffff, #ff66cc);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 6px rgba(255, 102, 204, 0.6));
  animation: glitter 3s linear infinite;
}
@keyframes glitter { to { background-position: 300% 0; } }

/* ---------- the profile ---------- */
.ms-profile {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px;
  padding: 12px; background: #fff; border: 1px solid #6699cc;
}
.ms-profile p { margin: 0 0 6px; }
.ms-id h1 { margin: 0 0 6px; font: bold 20px Arial, Helvetica, sans-serif; }
.ms-id-row { display: flex; gap: 10px; margin-bottom: 8px; }
.ms-id-row img { display: block; width: 150px; height: 150px; object-fit: cover; border: 1px solid #999; }
.ms-id-text p { margin: 0 0 4px; font-size: 11px; }
.ms-online { color: #ff6600; font-weight: bold; display: flex; align-items: center; gap: 6px; }
.ms-online-dot { width: 10px; height: 10px; border-radius: 50%; background: #33cc33; box-shadow: 0 0 0 2px #b8f0b8; animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.ms-box { margin: 10px 0; border: 1px solid #6699cc; }
.ms-box h2 { margin: 0; padding: 3px 6px; background: #6699cc; color: #fff; font: bold 12px Verdana, Arial, sans-serif; }
.ms-right .ms-box { border-color: #ffcc99; }
.ms-right .ms-box h2 { background: #ffcc99; color: #ff6600; }
.ms-box > p, .ms-box > ul, .ms-box > ol, .ms-box > div, .ms-box > form, .ms-box > h3 { margin-left: 8px; margin-right: 8px; }
.ms-box > :last-child { margin-bottom: 8px; }
.ms-small { font-size: 11px; color: #555; }
.ms-count { font-weight: normal; }

.ms-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; padding: 8px 0 2px; }
.ms-contact-grid a, .ms-contact-grid button {
  padding: 2px 0; text-align: left; font: bold 11px Verdana, Arial, sans-serif; color: #003399;
  background: none; border: 0; cursor: pointer;
}
.ms-contact-grid button:hover { color: #ff6600; text-decoration: underline; }
.ms-toast:empty { display: none; }
.ms-toast { margin-top: 6px !important; padding: 6px 8px; background: #fffbe0; border: 1px solid #e6cf6a; font-size: 11px; }

.ms-url { margin: 10px 0; padding: 6px 8px; border: 1px solid #6699cc; font-size: 11px; word-break: break-all; }

.ms-table dl { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 2px; margin: 4px; }
.ms-table dt { padding: 4px 6px; background: #b1d0f0; color: #336699; font-weight: bold; font-size: 11px; }
.ms-table dd { margin: 0; padding: 4px 6px; background: #d5e8fb; font-size: 11px; }

/* right column */
.ms-extended {
  margin: 0 0 10px !important; padding: 12px; text-align: center; border: 1px solid #000;
  font: bold 17px Verdana, Arial, sans-serif; color: #ff6600;
}
.ms-blog { margin-top: 6px; padding-left: 18px; }
.ms-blog li { margin-bottom: 4px; }
.ms-blurbs h3, .ms-form h3 { margin: 8px 8px 2px; font-size: 12px; color: #ff6600; }

.ms-player { display: flex; align-items: center; gap: 10px; margin-top: 8px !important; padding: 6px 10px; background: #111; color: #fff; border-radius: 3px; }
.ms-player button {
  width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid #555; cursor: pointer;
  background: linear-gradient(#666, #222); color: #fff; font-size: 12px;
}
.ms-track { flex: 1; min-width: 0; font-size: 11px; }
.ms-track b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-progress { display: block; height: 4px; margin-top: 4px; background: #444; }
.ms-progress span { display: block; height: 100%; width: 0; background: #ff6600; }

.ms-pics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding-top: 8px; }
.ms-pics img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid #ccc; }
.ms-pics a:hover img { border-color: #ff6600; }

.ms-friend-count { margin-top: 6px !important; }
.ms-top8 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px; padding: 0; list-style: none; }
.ms-top8 li { text-align: center; font-size: 11px; min-width: 0; }
.ms-top8 .ms-friend-name { display: block; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #003399; font-weight: bold; }
.ms-top8 img, .ms-comments img { display: block; width: 90px; max-width: 100%; aspect-ratio: 1; margin: 0 auto; border: 1px solid #999; }
.ms-top8 .ms-empty .ms-friend-name { color: #999; }

.ms-comments { margin-top: 6px; padding: 0; list-style: none; }
.ms-comments li { display: grid; grid-template-columns: 110px minmax(0, 1fr); margin-bottom: 4px; }
.ms-comment-who { padding: 6px; background: #ffcc99; text-align: center; font-size: 11px; font-weight: bold; color: #003399; overflow-wrap: anywhere; }
.ms-comment-who img { margin-top: 4px; width: 70px; }
.ms-comment-body { padding: 6px 8px; background: #fff7ee; font-size: 12px; white-space: pre-line; overflow-wrap: anywhere; }
.ms-comment-date { display: block; margin-bottom: 4px; font-weight: bold; font-size: 11px; }

.ms-form { margin-top: 10px !important; padding: 2px 0 6px; border-top: 1px dashed #ffcc99; }
.ms-form p { margin: 0 8px 8px; }
.ms-form label { font-size: 11px; font-weight: bold; }
.ms-form input[type="text"], .ms-form textarea { width: 100%; padding: 4px; border: 1px solid #999; font: 12px Verdana, Arial, sans-serif; }
.ms-form button {
  padding: 3px 10px; cursor: pointer; font: bold 11px Verdana, Arial, sans-serif;
  background: linear-gradient(#fff, #ddd); border: 1px solid #999; border-radius: 2px;
}

.ms-footer { max-width: 800px; margin: 0 auto 30px; padding: 10px; text-align: center; font-size: 11px; color: #ccd6ff; }
.ms-footer p { margin: 4px 0; }
.ms-footer a { color: #fff; }

/* ---------- phones (MySpace never planned for these either) ---------- */
@media (max-width: 760px) {
  body { font-size: 14px; }
  .ms-profile { grid-template-columns: 1fr; }
  .glitter { font-size: 24px; padding: 0 10px; }
  .ms-help { margin-left: 0; flex-basis: 100%; }
  .ms-id-text p, .ms-small, .ms-table dt, .ms-table dd, .ms-contact-grid a, .ms-contact-grid button { font-size: 13px; }
  .ms-pics { grid-template-columns: repeat(3, 1fr); }
  .ms-comments li { grid-template-columns: 90px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .glitter, .ms-online-dot { animation: none; }
}
