:root {
  --blue-light: #cfe2ff;
  --blue-dark: #1b3f8b;
  --orange: #ff7a00;
  --orange-light: #ffc27a;
  --red: #c40000;
  --panel-white: #ffffff;
  --body-blue: #9ec0ea;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Verdana, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  color: #000000;
  background-color: var(--body-blue);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12'><rect width='12' height='12' fill='%239ec0ea'/><rect x='1' y='1' width='2' height='2' fill='%23b3cff0'/><rect x='7' y='7' width='2' height='2' fill='%23b3cff0'/></svg>");
}

a {
  color: #0033cc;
  text-decoration: underline;
}

a:visited {
  color: #551a8b;
}

a:hover {
  color: #0000ff;
}

.page {
  width: 960px;
  margin: 12px auto 20px;
  padding: 8px;
  background-color: var(--blue-light);
  border: 3px solid var(--blue-dark);
  animation: pageIn 0.25s ease-out;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background-color: var(--blue-light);
  border: 2px solid var(--blue-dark);
}

.nav-left a {
  margin-right: 10px;
  font-weight: bold;
}

.nav-right {
  font-size: 11px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.columns {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-areas:
    "profile about"
    "contact music"
    "skills top8"
    "skills comments";
  gap: 10px;
}

.module {
  background-color: var(--blue-light);
  border: 2px solid var(--blue-dark);
  animation: popIn 0.2s ease-out both;
}

.module-header {
  background-color: var(--blue-dark);
  color: var(--orange);
  font-weight: bold;
  padding: 4px 6px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  border-bottom: 2px solid var(--blue-dark);
}

.module-body {
  background-color: var(--panel-white);
  padding: 6px;
}

.profile-card {
  grid-area: profile;
}

.contact-box {
  grid-area: contact;
}

.about-box {
  grid-area: about;
}

.music-box {
  grid-area: music;
}

.top8-box {
  grid-area: top8;
}

.skills-box {
  grid-area: skills;
}

.comments-box {
  grid-area: comments;
}

.delay-1 {
  animation-delay: 0.05s;
}

.delay-2 {
  animation-delay: 0.1s;
}

.delay-3 {
  animation-delay: 0.15s;
}

.delay-4 {
  animation-delay: 0.2s;
}

.delay-5 {
  animation-delay: 0.25s;
}

.delay-6 {
  animation-delay: 0.3s;
}

.delay-7 {
  animation-delay: 0.35s;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
}

.profile-photo-cell {
  width: 170px;
  vertical-align: top;
  padding-right: 6px;
}

.profile-photo-cell img {
  display: block;
  border: 2px solid var(--blue-dark);
  background-color: #ffffff;
  width: 160px;
  height: 160px;
  object-fit: cover;
}

.profile-links {
  margin-top: 6px;
  font-size: 11px;
}

.profile-links div {
  margin-top: 2px;
}

.profile-info-cell {
  vertical-align: top;
}

.profile-name {
  font-size: 16px;
  font-weight: bold;
  color: var(--orange);
}

.profile-tagline {
  margin: 4px 0;
}

.profile-location {
  margin-bottom: 4px;
}

.profile-last-login {
  margin-bottom: 4px;
}

.profile-status {
  font-weight: bold;
  color: var(--blue-dark);
}

.contact-buttons a {
  display: block;
  padding: 4px 6px;
  margin-bottom: 4px;
  border: 2px solid var(--blue-dark);
  background-color: #e6f0ff;
  font-weight: bold;
  color: #0033cc;
  text-decoration: none;
}

.contact-buttons a:last-child {
  margin-bottom: 0;
}

.blurb-title {
  font-weight: bold;
  color: var(--orange);
  margin-top: 6px;
}

.blurb-title:first-child {
  margin-top: 0;
}

.music-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.album-art {
  width: 90px;
  height: 90px;
  border: 2px solid var(--blue-dark);
  background-color: #ffffff;
}

.music-track {
  font-weight: bold;
  color: var(--orange);
  margin-bottom: 4px;
}

.music-meta {
  margin-bottom: 6px;
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.music-controls button {
  background-color: #e6f0ff;
  border: 2px solid var(--blue-dark);
  font-family: Arial, Verdana, Helvetica, sans-serif;
  font-size: 11px;
  padding: 2px 8px;
  cursor: pointer;
}

.music-status {
  font-weight: bold;
  color: var(--blue-dark);
}

.music-box.playing .music-status {
  color: var(--red);
  text-transform: uppercase;
}

.music-progress {
  border: 2px solid var(--blue-dark);
  height: 8px;
  width: 140px;
  background-color: #ffffff;
}

.music-bar {
  height: 100%;
  width: 30%;
  background-color: var(--orange-light);
}

.top8-count {
  font-weight: bold;
  margin-bottom: 6px;
}

.top8-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.top8-item {
  display: block;
  text-align: center;
  border: 2px solid var(--blue-dark);
  background-color: #f0f6ff;
  padding: 4px;
}

.top8-item img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 4px;
  border: 2px solid var(--blue-dark);
  background-color: #ffffff;
}

.top8-item span {
  display: block;
  font-weight: bold;
}

.skills-section {
  padding-top: 6px;
  margin-top: 6px;
  border-top: 2px solid var(--orange-light);
}

.skills-section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.skills-title {
  font-weight: bold;
  color: var(--orange);
  margin-bottom: 2px;
}

.comments-count {
  font-weight: bold;
  margin-bottom: 6px;
}

.comment {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px;
  padding: 6px;
  border: 2px solid var(--blue-dark);
  background-color: #f3f8ff;
  margin-bottom: 6px;
}

.comment:last-child {
  margin-bottom: 0;
}

.comment-avatar img {
  display: block;
  border: 2px solid var(--blue-dark);
  background-color: #ffffff;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 4px;
}

.red-text {
  color: var(--red);
  font-weight: bold;
}

#track {
  display: none;
}

@media (max-width: 980px) {
  .page {
    width: 95%;
  }
}

@media (max-width: 900px) {
  .columns {
    grid-template-columns: 1fr;
    grid-template-areas:
      "profile"
      "contact"
      "about"
      "music"
      "top8"
      "skills"
      "comments";
  }

  .top-nav {
    justify-content: flex-start;
  }

  .nav-right {
    width: 100%;
    text-align: left;
  }

  .music-row {
    flex-direction: column;
  }

  .top8-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
