:root {
  --px-border: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="5" height="5"><path d="M2 1h1v1h-1zM1 2h1v1h-1zM3 2h1v1h-1zM2 3h1v1h-1z" fill="%238a8a8a"/></svg>');
  --px-border-light: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="5" height="5"><path d="M2 1h1v1h-1zM1 2h1v1h-1zM3 2h1v1h-1zM2 3h1v1h-1z" fill="%23d8d8d8"/></svg>');
}

.main {
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(61, 61, 61, 0.85) 35%
  );
  flex: 5 1 0;
  box-shadow: 0 0 20px 0 rgb(0, 0, 0);
}

.side {
  flex: 3 1 0;
}

.parent {
  display: flex;
  min-height: 100dvh;
  padding: 0;
}

body {
  margin: 0;
  background-image: url(./paws.png);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  color: #f2f2f2;
}

.header {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
}

.profile_frame {
  height: 200px;
  width: 200px;
  margin: 8px;
  overflow: hidden;
  border-style: solid;
  border-width: 4px;
  border-image: var(--px-border) 2 stretch;
  box-shadow: 0 0 20px 0 rgb(0, 0, 0);
}

.profile_picture {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transform: scale(1.3);
}

.username {
  font-size: 2rem;
  line-height: 1.1;
  padding: 8px;
  padding-bottom: 0;
}

.username p {
  margin: 0;
}

.username_subtext {
  margin: 0;
  padding: 8px;
  padding-top: 0;
}

.made-with {
  margin-left: auto;
  align-self: flex-start;
  padding: 8px;
  image-rendering: pixelated;
}

.linkies {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.logo {
  height: 64px;
  padding: 8px;
}

.content-parent {
  margin: 8px;
  border-style: solid;
  border-width: 4px;
  border-image: var(--px-border) 2 stretch;
}

.content-header {
  padding: 8px 12px;
  background-color: rgba(120, 120, 120, 0.35);
  background-image: repeating-linear-gradient(
    90deg,
    #8a8a8a 0 4px,
    transparent 4px 8px
  );
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 4px;
  font-size: 1.25rem;
}

.content-display {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.25);
}

.content-display p {
  margin: 0;
}

.jersey-25-regular {
  font-family: "Jersey 25", sans-serif;
  font-weight: 400;
  font-style: normal;
}

a {
  color: #d8d8d8;
  text-decoration: none;
}

a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.content-display a {
  display: block;
  padding: 8px 12px;
  background: rgba(120, 120, 120, 0.18);
  border-style: solid;
  border-width: 4px;
  border-image: var(--px-border) 2 stretch;
  color: #e8e8e8;
  text-decoration: none;
}

.content-display a:hover {
  background: rgba(120, 120, 120, 0.4);
  border-image: var(--px-border-light) 2 stretch;
  color: #ffffff;
  text-decoration: none;
}

.content-header a {
  color: inherit;
}

.content-display a.scrapbook-preview {
  display: flex;
  gap: 6px;
  height: 380px;
  padding: 0;
  background: none;
  border: none;
}

.content-display a.scrapbook-preview:hover {
  background: none;
  border: none;
}

.scrapbook-preview .main-photo {
  flex: 2;
}

.scrapbook-preview .side-photos {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scrapbook-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-style: solid;
  border-width: 4px;
  border-image: var(--px-border) 2 stretch;
}

.scrapbook-preview .side-photos img {
  flex: 1;
  min-height: 0;
}

.header-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px;
}

.header-links a {
  display: inline-block;
  padding: 0;
  line-height: 0;
}

.blinkie {
  display: block;
  width: 150px;
  height: 20px;
  image-rendering: pixelated;
}

.stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stamps a,
.content-display .stamps a {
  display: inline-block;
  padding: 0;
  background: none;
  border: none;
  line-height: 0;
}

.stamp {
  display: block;
  image-rendering: pixelated;
}

.blinkie-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 8px;
  padding: 12px;
}

.paw {
  filter: grayscale(1) brightness(0) invert(1);
}

.side-rail {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  box-sizing: border-box;
}

.music-player {
  flex: none;
  background: rgba(0, 0, 0, 0.25);
  border-style: solid;
  border-width: 4px;
  border-image: var(--px-border) 2 stretch;
  box-shadow: 0 0 20px 0 rgb(0, 0, 0);
  font-family: "Jersey 25", sans-serif;
  color: #f2f2f2;
}

.chat-frame {
  display: block;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  border: 0;
}

.music-header {
  padding: 4px 10px;
  background-color: rgba(120, 120, 120, 0.35);
  background-image: repeating-linear-gradient(
    90deg,
    #8a8a8a 0 4px,
    transparent 4px 8px
  );
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 4px;
  font-size: 1rem;
}

.music-body {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
}

.music-btn {
  flex: none;
  width: 34px;
  height: 34px;
  font-size: 0.9rem;
  color: #e8e8e8;
  background: rgba(120, 120, 120, 0.18);
  border-style: solid;
  border-width: 4px;
  border-image: var(--px-border) 2 stretch;
  cursor: pointer;
  font-family: inherit;
}

.music-btn:hover {
  background: rgba(120, 120, 120, 0.4);
  border-image: var(--px-border-light) 2 stretch;
  color: #ffffff;
}

.music-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  border-style: solid;
  border-width: 4px;
  border-image: var(--px-border) 2 stretch;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 0;
}

.music-marquee {
  display: inline-block;
  padding-left: 100%;
  animation: music-scroll 8s linear infinite;
}

.music-volume {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: calc(100% - 16px);
  height: 8px;
  margin: 0 8px 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 2px solid #4a4a4a;
  cursor: pointer;
}

.music-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 16px;
  background: #8a8a8a;
  border: 2px solid #1a1a1a;
}

.music-volume::-webkit-slider-thumb:hover {
  background: #ffffff;
}

.music-volume::-moz-range-thumb {
  width: 12px;
  height: 16px;
  border-radius: 0;
  background: #8a8a8a;
  border: 2px solid #1a1a1a;
}

.music-volume::-moz-range-thumb:hover {
  background: #ffffff;
}

@media (max-width: 700px) {
  .parent {
    flex-direction: column;
  }
  .side {
    flex: none;
  }
  .side-rail {
    position: static;
    height: auto;
  }
  .chat-frame {
    flex: none;
    height: 400px;
  }
}

@keyframes music-scroll {
  to {
    transform: translateX(-100%);
  }
}
