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

body {
  background-color: #000000;
  background-image: url("../images/0.png");
  background-repeat: repeat;
  color: #cccccc;
  font-family: 'MS UI Gothic', Hiragino Sans, Noto Sans JP, sans-serif;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px;
}

@font-face {
  font-family: '04B';
  src: url('../fonts/04B_08__.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'MS UI Gothic';
  src: local('MS UI Gothic'),
       url('../fonts/msuigothic.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

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

/* layout */

.main-container {
  width: 778px;
  display: flex;
  flex-direction: column;
}

.bordered-section {
  position: relative;
  background-color: #000000cc;
}

.inner-content {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.content-area {
  display: flex;
  min-height: 475px;
}

.layout {
  display: flex;
  gap: 8px;
  width: 100%;
}

.col-left {
  width: 150px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.col-main {
  max-width: 600px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* content rows */

/* full width, stacks label on top of box */
.row {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* side by side, equal columns */
.row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 0;
}

/* uneven splits */
.row-split.wide-left  { grid-template-columns: 2fr 1fr; }
.row-split.wide-right { grid-template-columns: 1fr 2fr; }
.row-split.auto-right { grid-template-columns: 1fr auto; }

/* each cell in a split */
.cell {
  display: flex;
  flex-direction: column;
  min-width: 0;
}


/* border */

.border-overlay {
  position: absolute;
  inset: 1px;
  pointer-events: none;
  z-index: 10;
  filter: brightness(45%) grayscale(100%);
  background:
    url("../images/waku01.png") top left no-repeat,
    url("../images/waku02.png") top right no-repeat,
    url("../images/waku03.png") bottom left no-repeat,
    url("../images/waku04.png") bottom right no-repeat,
    url("../images/waku05.png") left repeat-y,
    url("../images/waku06.png") right repeat-y,
    url("../images/waku071.png") top left repeat-x,
    url("../images/waku081.png") bottom left repeat-x;
  background-size:
    45px 45px,
    45px 45px,
    45px 45px,
    45px 45px,
    45px 45px,
    45px 45px,
    auto 10px,
    auto 10px;
}

/* boxes */

.box,
.box-sm,
.site-box {
  border: 1px solid #000000;
  background-color: #ffffff15;
  background-image: linear-gradient(to top, #000000b9, #05050546);
  color: #cccccc;
  font-size: 12px;
}

.profile {
  border: 1px solid #000000;
  background-color: #00000057;
  font-size: 12px;
}

.box     { padding: 10px; }
.up-box     { padding: 10px; }
.box-sm  { width: 200px; }

.profile {
  padding: 10px;
  display: flex;
}

/* headers */

.label {
  background-color: #000000;
  border-top: 1px solid #e0e0e021;
  border-left: 1px solid #e0e0e021;
  border-right: 1px solid #e0e0e021;
  padding-left: 4px;
  margin-bottom:7px;

}

.col-left hr {
  border: 1px #ffffff15 solid;
}

.s-label {
  font-family: '04B';
  font-size: 8px;
}

/* a */

.mq {
  border-top: 1px solid #e0e0e021;
  border-bottom: 1px solid #e0e0e021;
  background-color: #000000; 
  font-size: 10px;
  color: #cccccc;
}

.big {
  font-size: 19px;
  font-weight: normal;
  font-family: Times;
  color: #ffffff;
  text-shadow:
    -1px -1px 0 #000000, 0 -1px 0 #000000, 1px -1px 0 #000000,
    -1px  0   0 #000000,                    1px  0   0 #000000,
    -1px  1px 0 #000000, 0  1px 0 #000000, 1px  1px 0 #000000;
  opacity: 1;
  filter: blur(0px);
  transition: opacity .35s ease, filter .35s ease;
}

/* imgs */

img {
  display: block;
  border: 0;
}

.pfp {
  border: 1px solid #000000;
  max-width: 100px;
  height: 90px;
  object-fit: cover;
  filter: grayscale(60%);
}

.box-img {
  width: 100%;
  height: 135px;
  object-fit: fill;
   filter: brightness(90%);
  
}

.header-img {
  height: 95px;
  max-height: 95px;
  width: 100%;
  background: url('../images/window.png') repeat-x top center;
  background-size: 55px 95px; 
  background-color: #ffffff0a;
}

.outerwilds { filter: grayscale(60%); }

/* profile */

.profile-desc {
  font-size: 11px;
  padding-left: 7px;
  display: flex;
  flex-direction: column;
  color: #ffffff81;
}

.profile-deco {
  width: auto;
  filter: grayscale(90%);
  align-self: flex-end;
  padding-bottom: 2px;
}

.name {
  font-size: 12px;
  color: #cccccc;
  padding-bottom: 1px;
}

/*upd*/

.up-entry {
  border: 1px solid #000000;
  background-color: #dcdaec15;
  background-image: 
    linear-gradient(to top, #000000b9, #05050546);              
  color: #cccccc;
  font-size: 12px;
  padding: 11.5px;
  position: relative;
  height: 40px;
}

.up-banners {
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1; 
  filter:grayscale(90%) brightness(30%);
}

.up-text {
  position: relative;
  font-size: 12px;
  z-index: 2;
  bottom: 4px;
  left: 4px;
  text-shadow: 1px 0 #000000, 0 -1px #000000, 1px 0 #000000, 0 -1px #000000;
}

.up-subtext {
  position: relative;
  font-size: 11px;
  z-index: 2;
  bottom: 4px;
  left: 4px;
  color:#ffffff96;
  text-shadow: 1px 0 #000000, 0 -1px #000000, 1px 0 #000000, 0 -1px #000000;
}

/* leftside banners */

.site-banners {
  height: 30px;
  width: 150px;
  object-fit: fill;
  padding-bottom: 2px;
  filter: grayscale(70%);
}

.sb-entry {
  position: relative;
  font-family: '04B';
  font-size: 8px;
  text-shadow:
    -1px -1px 0 #000000, 0 -1px 0 #000000, 1px -1px 0 #000000,
    -1px  0   0 #000000,                    1px  0   0 #000000,
    -1px  1px 0 #000000, 0  1px 0 #000000, 1px  1px 0 #000000;
}

.sb-text {
  position: absolute;
  bottom: 4px;
  left: 4px;
  color: #ffffff;
  margin: 0;
  z-index: 2;
}


/* shelf*/

.shelf {
  padding-left: 1px;
  gap: 2px;
  display: grid;
  grid-template-columns: repeat(7, auto);
}

.wpn-etc {
  width: auto;
  height: 25px;
  filter: grayscale(100%) brightness(50%);
  transition: filter 0.2s ease;
}

.wpn-etc:hover { filter: none; }

/*tooltip*/

.tip { position: relative; }

.tooltip {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #000000d9;
  color: #cccccc;
  font-size: 10px;
  padding: 3px 6px;
  white-space: nowrap;
  border: 1px solid #ffffff2a;
  pointer-events: none;
  letter-spacing: 0.8px;
  z-index: 9999;
}

.tip:hover .tooltip { display: block; }

/* lastfm recent activity */

.now-playing {
  padding: 2px;
  display: flex;
  gap: 5px;
}

.np-art {
  padding-left: 7px;
  max-height: 50px;
  width: auto;
}

.np-track {
  white-space: nowrap;
  overflow: hidden;
  max-width: 85px;
}

.np-artist {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  max-width: 90px;
}

.np-track.overflow,
.np-artist.overflow { animation: none; }

.np-track.overflow span,
.np-artist.overflow span {
  display: inline-block;
  animation: marquee 8s linear infinite;
}

.np-status {
  font-size: 10px;
  color: #ffffff81;
}

/* tabs */

.tab-container {
  position: relative;
  min-height: 200px;
  flex: 1;
}

.tab {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.tab.active {
  opacity: 1;
  pointer-events: auto;
}

/* misc */

::selection {
  background-color: #00000075;
  color: #ffffff;
}

.footer {
  font-size:10px;
  color:#ffffff60;
  padding-left:2px;
}

.footer a {
  color:#ffffff88;
}